:root {
  --bg: #070b12;
  --bg-elev: #0e1522;
  --ink: #e8eef8;
  --muted: #8b97ab;
  --line: rgba(232, 238, 248, 0.12);
  --accent: #3ee0c5;
  --accent-2: #7aa7ff;
  --accent-deep: #1fb89f;
  --danger-glow: rgba(62, 224, 197, 0.22);
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  /* 中文优先在标点处断行，避免「客|户」这类词中拆开 */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.fx-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(122, 167, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 167, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.fx-orb {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.55;
}

.fx-orb-a {
  width: 42vw;
  height: 42vw;
  top: -12vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(62, 224, 197, 0.35), transparent 65%);
  animation: orbDrift 14s ease-in-out infinite alternate;
}

.fx-orb-b {
  width: 36vw;
  height: 36vw;
  bottom: 8vh;
  left: -12vw;
  background: radial-gradient(circle, rgba(122, 167, 255, 0.28), transparent 65%);
  animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.045;
  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.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px var(--danger-glow);
  transform: rotate(45deg);
}

.brand-name {
  font-size: 1.15rem;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

.header-cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: #041016;
  background: linear-gradient(120deg, var(--accent), #7cf0dc);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 24px var(--danger-glow);
}

.header-cta:hover {
  filter: brightness(1.06);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(88vh, 820px);
  padding: clamp(1.25rem, 3.5vw, 2.75rem) clamp(0.85rem, 3vw, 2rem)
    clamp(2rem, 5vw, 3.5rem);
  isolation: isolate;
  overflow: visible;
}

/* 文字与装饰框同一面板：框随内容撑开，窗口缩小时一起缩放 */
.hero-panel {
  position: relative;
  width: min(var(--max), 100%);
  display: grid;
}

.hero-frame {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(62, 224, 197, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(14, 21, 34, 0.2), rgba(7, 11, 18, 0.55)),
    radial-gradient(circle at 30% 40%, rgba(62, 224, 197, 0.18), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(122, 167, 255, 0.16), transparent 40%);
  box-shadow: inset 0 0 80px rgba(62, 224, 197, 0.08);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-frame-label {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.6vw, 0.72rem);
  letter-spacing: 0.28em;
  color: rgba(232, 238, 248, 0.55);
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent);
  animation: scanY 4.8s linear infinite;
}

@keyframes scanY {
  from { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { top: 90%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: clamp(3.25rem, 7vw, 5.25rem) clamp(1.1rem, 4vw, 2.75rem)
    clamp(1.75rem, 4.5vw, 3rem);
  box-sizing: border-box;
}

.hero-brand {
  margin: 0 0 0.75rem;
  padding: 0.18em 0.04em 0.1em 0;
  max-width: 100%;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font-display), sans-serif;
  font-weight: 800;
  font-size: clamp(2.35rem, 7.5vw, 5.75rem);
  line-height: 1.22;
  letter-spacing: 0.16em;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  overflow: visible;
  animation: rise 0.9s ease both;
}

.hero-title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.12rem, 2.6vw, 2.05rem);
  line-height: 1.4;
  animation: rise 0.9s ease 0.08s both;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 中等宽度起就在逗号后断行，避免挤出框外 */
.hero-title-break {
  display: none;
}

@media (max-width: 960px) {
  .hero-title-break {
    display: inline;
  }
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 420px) {
  /* 极窄屏允许「客户」随句换行，优先保证不撑破布局 */
  .hero-title .nowrap {
    white-space: normal;
  }
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  animation: rise 0.9s ease 0.16s both;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: rise 0.9s ease 0.24s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #041016;
  background: linear-gradient(120deg, var(--accent), #7cf0dc);
  box-shadow: 0 0 28px var(--danger-glow);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(14, 21, 34, 0.55);
}

.btn-ghost:hover {
  border-color: rgba(62, 224, 197, 0.55);
  color: var(--accent);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.product-block h3,
.dl-card h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}

.product-block {
  position: relative;
  padding: 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(14, 21, 34, 0.9), rgba(7, 11, 18, 0.55));
  overflow: hidden;
}

.product-block::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(62, 224, 197, 0.18), transparent 70%);
}

.product-block .idx {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
}

.product-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.product-block p {
  margin: 0;
  color: var(--muted);
}

.features {
  background: linear-gradient(180deg, rgba(122, 167, 255, 0.05), transparent 70%);
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 21, 34, 0.55);
}

.feature-list strong {
  font-size: 1.05rem;
}

.feature-list span {
  color: var(--muted);
}

.download {
  background:
    radial-gradient(700px 340px at 85% 20%, rgba(62, 224, 197, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(14, 21, 34, 0.35), transparent);
}

.download-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.qr-card {
  margin: 0;
  justify-self: start;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(62, 224, 197, 0.35);
  background: linear-gradient(160deg, #101827, #0a101a);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(62, 224, 197, 0.12);
  animation: floatSoft 5.5s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.qr-card img {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  border-radius: 8px;
}

.qr-card figcaption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.download-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.company-meta {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.company-meta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.company-meta p {
  margin: 0;
  color: var(--muted);
}

.scope {
  font-size: 0.92rem;
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.icp {
  margin: 0;
}

.icp a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.icp a:hover {
  color: var(--accent);
}

.dl-page {
  padding: 5rem 0 4rem;
  min-height: 70vh;
}

.dl-card {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 21, 34, 0.7);
  display: grid;
  gap: 0.75rem;
}

.dl-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.dl-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .download-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .qr-card {
    justify-self: end;
  }

  .company-meta {
    grid-template-columns: 1fr 1.35fr;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
