/* 教学小作坊 · 光案 Lumen
   浅色科技风。三款桌面程序共用这一套界面语言。 */

:root {
  --bg: #f4f7fb;
  --ink: #142033;
  --muted: #5c6d84;
  --faint: #8b9aaf;
  --line: rgba(20, 32, 51, 0.08);
  --paper: rgba(255, 255, 255, 0.78);
  --paper-solid: #ffffff;
  --shadow: 0 24px 60px rgba(28, 52, 92, 0.1);
  --accent: #1d4ed8;
  --accent-2: #38bdf8;
  --wash: #e0f2fe;
  --aigj: #0284c7;
  --pcxt: #0f9f6e;
  --zmgj: #3b5bdb;
  --radius: 26px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mx: 50vw;
  --my: 20vh;
}

body[data-product="aigj"] { --accent: var(--aigj); --accent-2: #7dd3fc; --wash: #e0f2fe; }
body[data-product="pcxt"] { --accent: var(--pcxt); --accent-2: #6ee7b7; --wash: #d1fae5; }
body[data-product="zmgj"] { --accent: var(--zmgj); --accent-2: #a5b4fc; --wash: #e0e7ff; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.en { font-family: Outfit, "Noto Sans SC", sans-serif; letter-spacing: 0.08em; }

.aurora, .dots, .spot, #field {
  position: fixed; inset: 0; pointer-events: none;
}
main, footer { position: relative; z-index: 2; }
.aurora {
  z-index: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 62%),
    radial-gradient(760px 480px at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    radial-gradient(680px 420px at 70% 110%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 55%);
  animation: drift 22s ease-in-out infinite alternate;
}
.dots {
  z-index: 0;
  background-image: radial-gradient(rgba(20, 32, 51, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 72%);
  opacity: 0.45;
}
.spot {
  z-index: 1;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.72), transparent 62%);
}
#field { z-index: 1; width: 100%; height: 100%; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}

.nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 28px;
  background: rgba(244, 247, 251, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { display: block; margin-top: 2px; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.18em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.94rem; font-weight: 600; color: var(--muted);
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.nav-links a[aria-current="page"] { color: var(--accent); background: #fff; box-shadow: 0 6px 18px rgba(20, 40, 80, 0.06); }
.nav-toggle { display: none; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 2; }
.page { position: relative; z-index: 2; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.h1 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1.08; font-weight: 900; letter-spacing: -0.03em;
}
.h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--ink));
  background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: 180% 0; } }
.h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.subhead { margin: 46px 0 0; font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; }
.lead + .subhead { margin-top: 28px; }
.lead { margin-top: 16px; max-width: 640px; color: var(--muted); font-size: 1.06rem; line-height: 1.85; }
.section { padding: 84px 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(20, 32, 51, 0.18); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent); }
.btn-ghost { background: rgba(255, 255, 255, 0.72); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.hero { padding: 42px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.stat {
  padding: 16px 16px 14px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.stat strong { display: block; font-family: Outfit, sans-serif; font-size: 1.55rem; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 0.86rem; }

.prism { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prism-card {
  position: relative; display: block; width: 100%;
  padding: 12px; border-radius: 24px; color: inherit;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease);
}
.prism-card img { width: 100%; height: 176px; object-fit: cover; object-position: top; border-radius: 16px; }
.prism-card .cap { display: flex; justify-content: space-between; gap: 8px; padding: 10px 6px 4px; font-size: 0.86rem; font-weight: 700; }
.prism-card small { color: var(--muted); font-weight: 600; }
.prism-card:hover { transform: translateY(-6px); z-index: 3; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--accent); background: var(--wash);
}

.marquee {
  margin-top: 54px; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; animation: ticker 36s linear infinite; }
.marquee span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.marquee b { color: var(--ink); font-weight: 800; }
@keyframes ticker { to { transform: translateX(-50%); } }

.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: 28px; min-height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(28, 52, 92, 0.05);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product .ring {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from 120deg, transparent 0 70%, var(--accent), transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s;
}
.product:hover .ring { opacity: 1; animation: spin 4.5s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.product[data-tone="aigj"] { --accent: var(--aigj); --wash: #e0f2fe; }
.product[data-tone="pcxt"] { --accent: var(--pcxt); --wash: #d1fae5; }
.product[data-tone="zmgj"] { --accent: var(--zmgj); --wash: #e0e7ff; }
.product h3 { font-size: 1.35rem; }
.product p { color: var(--muted); line-height: 1.75; font-size: 0.96rem; }
.product img { width: 100%; height: 180px; object-fit: cover; object-position: top; border-radius: 16px; }
.product .more { margin-top: auto; font-weight: 800; color: var(--accent); }

.choose { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: start; }
.steps { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line);
}
.step em {
  font-family: Outfit, sans-serif; font-style: normal; font-weight: 800; color: var(--accent);
}
.step strong { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

.p-hero { padding: 36px 0 10px; }
.p-hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 40px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 0.84rem; font-weight: 700; color: var(--muted);
}

.lens {
  position: relative; border-radius: 28px; padding: 10px;
  background: #fff; box-shadow: var(--shadow);
}
.lens img, .lens video { width: 100%; border-radius: 20px; background: #eef3f8; display: block; }
.lens-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 10px; font-size: 0.82rem; color: var(--muted); font-weight: 700;
}
.live {
  display: inline-flex; align-items: center; gap: 6px; color: #e11d48; letter-spacing: 0.12em;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: #e11d48; animation: ping 1.4s infinite; }
.scan {
  position: absolute; left: 14px; right: 14px; height: 22%; top: 46px; border-radius: 16px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-2) 45%, transparent), transparent);
  animation: scan 3.8s ease-in-out infinite; pointer-events: none; mix-blend-mode: multiply;
}
@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(280%); opacity: 0; }
}
.corners { position: absolute; inset: 18px; pointer-events: none; }
.corners i { position: absolute; width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--accent) 70%, white); }
.corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.f-card {
  padding: 20px 18px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid var(--line);
}
.f-card .n { font-family: Outfit, sans-serif; color: var(--accent); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; }
.f-card h3 { margin: 8px 0 8px; font-size: 1.08rem; }
.f-card p { color: var(--muted); line-height: 1.75; font-size: 0.94rem; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 16px; }
.tabs button {
  padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 700; color: var(--muted);
}
.tabs button.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.panel { display: none; grid-template-columns: 0.82fr 1.18fr; gap: 22px; align-items: center;
  padding: 14px; border-radius: 28px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); }
.panel.is-on { display: grid; }
.panel h3 { font-size: 1.35rem; margin-bottom: 8px; }
.panel p { color: var(--muted); line-height: 1.8; }
.panel img { width: 100%; border-radius: 18px; background: #eef3f8; cursor: zoom-in; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; margin-top: 42px; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .copy { order: 2; }
.block-img { border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.block-img img { width: 100%; cursor: zoom-in; }
.caption { padding: 12px 14px 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.gif-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 14px; margin-top: 22px; }
.gif-row.duo { grid-template-columns: 1.35fr 0.85fr; }
.gif-row .lens img, .gif-row .lens video { height: 280px; object-fit: cover; object-position: top; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.shot {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line);
}
.shot h3 { font-size: 1.08rem; }
.shot p { color: var(--muted); font-size: 0.92rem; line-height: 1.72; }
.shot img { width: 100%; margin-top: 8px; border-radius: 14px; background: #eef3f8; cursor: zoom-in; }
.shot.span {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(220px, 0.68fr) 1.32fr;
  gap: 22px; align-items: center;
}
.shot.span img { margin-top: 0; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.theme {
  padding: 12px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line);
}
.theme img { width: 100%; border-radius: 14px; cursor: zoom-in; }
.theme figcaption { padding: 10px 4px 4px; }
.theme strong { display: block; font-size: 0.98rem; }
.theme span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

.cta {
  margin: 20px 0 70px; padding: 42px 32px; border-radius: 32px; text-align: center;
  background:
    radial-gradient(500px 180px at 20% 0%, color-mix(in srgb, var(--accent-2) 50%, transparent), transparent 70%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--wash) 70%, white));
  border: 1px solid var(--line);
}
.cta p { color: var(--muted); margin: 10px auto 0; max-width: 560px; line-height: 1.75; }
.cta .btn-row { justify-content: center; }

.dock {
  position: fixed; z-index: 30; right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(20, 40, 80, 0.16); backdrop-filter: blur(16px);
  transform: translateY(160%);
  transition: transform 0.45s var(--ease);
}
.dock.is-on { transform: none; }
body[data-product="aigj"] footer,
body[data-product="pcxt"] footer,
body[data-product="zmgj"] footer { padding-bottom: 120px; }
.dock b { display: block; }
.dock span { color: var(--muted); font-size: 0.84rem; }

footer { position: relative; z-index: 2; padding: 28px 0 48px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 700; }
.follow { display: flex; gap: 16px; align-items: end; }
.follow-item { text-align: center; font-size: 0.78rem; }
.qr {
  width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); margin-bottom: 6px; padding: 4px;
}
.qr img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; background: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lightbox {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 28px;
  background: rgba(244, 247, 251, 0.86); backdrop-filter: blur(10px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; border-radius: 16px; box-shadow: var(--shadow); background: #fff; }
.lightbox button {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; font-size: 1.6rem; border: 1px solid var(--line);
}

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.8s var(--ease) forwards; }
.reveal.d2 { animation-delay: 0.08s; }
.reveal.d3 { animation-delay: 0.16s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero-grid, .p-hero-grid, .choose, .panel, .split, .split.reverse, .matrix, .features, .gif-row, .gif-row.duo, .shots, .shot.span, .prism {
    grid-template-columns: 1fr;
  }
  .shot.span { grid-column: auto; }
  .themes { grid-template-columns: 1fr 1fr; }
  .split.reverse .copy { order: 0; }
  .prism-card { animation: none; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: calc(var(--nav-h) - 8px); right: 16px; left: 16px;
    flex-direction: column; align-items: stretch; padding: 10px;
    background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .dock { right: 12px; left: 12px; justify-content: space-between; }
}
@media (max-width: 640px) {
  .stat-row, .themes { columns: 1; grid-template-columns: 1fr; }
  .h1 { font-size: 2.2rem; }
  .wrap { width: min(1180px, calc(100% - 28px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
