/* ===== 矩阵浏览器官网 —— 极简白底 + 流动极光 ===== */
:root {
  --ink: #1b1b1f;
  --ink-2: #5f6169;
  --ink-3: #9a9ca4;
  --line: #ececf1;
  --bg: #ffffff;
  --soft: #fafaff;
  --accent: #6c5ce7;
  --radius: 22px;
  --wrap: 1200px;
  --header-h: 72px;
  --footer-h: 85px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  /* 吸附线落在标题栏下边缘：第二屏起正好卡在标题栏下方 */
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }

/* ---------- 背景极光 ---------- */
.aurora {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 960px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora__glyph { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; }
.aurora__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.aurora__glow--a { width: 620px; height: 420px; top: 520px; left: -6%; background: radial-gradient(circle, rgba(201,194,255,.85), rgba(201,194,255,0) 70%); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora__glow--b { width: 560px; height: 380px; top: 600px; right: -4%; background: radial-gradient(circle, rgba(255,243,176,.8), rgba(255,243,176,0) 70%); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora__glow--c { width: 700px; height: 300px; top: 680px; left: 28%; background: radial-gradient(circle, rgba(191,227,255,.7), rgba(191,227,255,0) 70%); animation: drift-c 26s ease-in-out infinite alternate; }
.aurora__ribbon { position: absolute; top: 240px; left: 0; width: 100%; height: 760px; opacity: .85; }
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(60px,-30px,0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-50px,20px,0) scale(1.08); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(30px,-40px,0) scale(1.15); } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(32px, calc((100% - var(--wrap)) / 2));
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(236,236,241,.8);
  z-index: 50;
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 30px rgba(20,20,40,.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 14px; color: var(--ink-2); position: relative; padding-block: 8px; transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--ink); transition: right .25s ease; }
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }
.nav__cta {
  font-size: 13px; font-weight: 600; color: #fff;
  background: #141418; padding: 10px 20px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.nav__cta:hover { transform: translateY(-1px); background: #000; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #141418; color: #fff; box-shadow: 0 10px 26px rgba(20,20,24,.18); }
.btn--primary:hover { background: #000; box-shadow: 0 14px 32px rgba(20,20,24,.24); }
.btn--ghost { background: rgba(255,255,255,.8); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: #fff; box-shadow: 0 8px 22px rgba(20,20,40,.08); }
.btn--disabled { background: #f4f4f6; color: #a8a8b0; cursor: not-allowed; }
.btn__icon { display: inline-grid; place-items: center; }
.btn__icon svg { width: 18px; height: 18px; }

/* ---------- 首屏 ---------- */
main { padding-top: 0; }

/* 首屏科技背景：网格 + 扫描光带 + 随机粒子 */
.hero__tech { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__grid {
  position: absolute; inset: -10% -10% 0;
  background-image:
    linear-gradient(rgba(108,92,231,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 0%, transparent 78%);
  animation: grid-float 24s ease-in-out infinite alternate;
}
@keyframes grid-float { from { transform: translate3d(0,0,0); } to { transform: translate3d(-30px,-20px,0); } }
.hero__scan {
  position: absolute; left: -20%; right: -20%; top: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(108,92,231,.05) 45%, rgba(176,108,255,.09) 55%, transparent);
  filter: blur(6px);
  animation: scan-sweep 9s linear infinite;
}
@keyframes scan-sweep { from { transform: translateY(-120%); } to { transform: translateY(280%); } }
.hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; padding-block: 120px 180px; }
.hero__title {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.hero__title-line { display: block; }
.hero__title-line + .hero__title-line { margin-top: 16px; }
.hero__subtitle {
  margin: 18px 0 0;
  font-size: 15px;
  letter-spacing: .28em;
  color: var(--ink-3);
  text-indent: .28em;
}
.hero__desc { margin: 30px 0 0; font-size: 16px; color: var(--ink-2); }
.hero__actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid var(--ink-3); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 7px; opacity: .5;
}
.hero__scroll span { width: 2px; height: 7px; border-radius: 2px; background: var(--ink-3); animation: scroll-dot 1.8s ease-in-out infinite; }
@keyframes scroll-dot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: .2; } }

/* ---------- 通用 section ---------- */
.section {
  position: relative; z-index: 2;
  min-height: calc(100vh - var(--header-h));
  padding: 44px 0;
  display: flex;
  align-items: center;
}
.section > .wrap { width: min(var(--wrap), calc(100% - 64px)); }
section[id] { scroll-snap-align: start; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.section__kicker { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .28em; color: var(--accent); }
.section__title { margin: 0; font-size: clamp(32px, 4vw, 50px); font-weight: 650; letter-spacing: -.035em; line-height: 1.25; }
.section__sub { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 产品展示 ---------- */
.showcase { background: #fff; padding: 24px 0; }
.showcase .section__head { margin-bottom: 22px; }
.showcase__stage {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding: 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(205,199,255,.28), rgba(255,243,176,.22) 55%, rgba(191,227,255,.28));
  box-shadow: 0 30px 80px rgba(40,35,90,.10);
}
.showcase__stage::before {
  content: ""; position: absolute; inset: -1px; border-radius: 32px;
  border: 1px solid rgba(255,255,255,.7); pointer-events: none;
}
.showcase__stage img { display: block; width: 100%; height: auto; max-height: 500px; object-fit: cover; object-position: top center; border-radius: 16px; box-shadow: 0 18px 46px rgba(30,24,80,.16); }

/* ---------- 功能卡片 ---------- */
.features { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px 22px;
  min-height: 172px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 10% 0%, rgba(108,92,231,.07), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(30,24,80,.09); border-color: transparent; }
.feature:hover::before { opacity: 1; }
.feature__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.feature__no { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #f5f4ff; color: var(--accent); }
.feature__icon svg { width: 26px; height: 26px; }
.feature__title { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.feature__desc { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

/* ---------- 用户声音 ---------- */
.voices { background: var(--soft); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice {
  margin: 0; padding: 22px 24px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}
.voice:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(30,24,80,.07); }
.voice__quote-mark { display: block; font-family: Georgia, serif; font-size: 42px; line-height: .6; color: #d9d5ff; height: 24px; }
.voice__text { margin: 10px 0 14px; font-size: 15px; line-height: 1.75; color: var(--ink); }
.voice__meta { display: flex; flex-direction: column; gap: 6px; }
.voice__name { font-size: 14px; font-weight: 600; }
.voice__tag { font-size: 12px; color: var(--ink-3); }

/* ---------- 多端下载 ---------- */
.download { background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); min-height: calc(100vh - var(--header-h) - var(--footer-h)); padding: 30px 0; }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin-inline: auto; }
.platform {
  position: relative; text-align: center;
  padding: 48px 30px 42px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.platform:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(30,24,80,.08); }
.platform--primary { border-color: #d9d5ff; box-shadow: 0 0 0 4px rgba(108,92,231,.06); }
.platform--disabled { background: #fbfbfc; }
.platform--disabled:hover { transform: none; box-shadow: none; }
.platform__icon { width: 60px; height: 60px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 18px; background: #f5f4ff; color: var(--accent); }
.platform__icon svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.platform__note {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: #f0edff; padding: 4px 10px; border-radius: 999px;
}
.platform__name { margin: 0; font-size: 21px; font-weight: 650; }
.platform__sub { margin: 8px 0 28px; font-size: 13px; color: var(--ink-3); }
.platform .btn { width: 100%; min-height: 46px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 27px 0; background: #fff; position: relative; z-index: 2; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--footer .brand__name { font-size: 16px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 13px; color: var(--ink-2); transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin: 0; font-size: 12px; color: var(--ink-3); }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 科技感光影 ---------- */
/* 滚动进度条 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, #6c5ce7, #b06cff 45%, #ffd36c);
  box-shadow: 0 0 10px rgba(108,92,231,.6);
  z-index: 100; pointer-events: none;
  transition: width .1s linear;
}
/* 光标跟随光晕 */
.cursor-glow {
  position: fixed; top: -300px; left: -300px; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(108,92,231,.20) 0%, rgba(176,108,255,.10) 32%, rgba(108,92,231,0) 66%);
  will-change: transform;
}
/* 全站细网格底纹（极淡，只在浅色区块隐约可见） */
.showcase::after, .features::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(108,92,231,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, #000, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, #000, transparent 85%);
}
/* 功能卡片 hover 流光边 */
.feature { isolation: isolate; }
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, transparent 30%, rgba(108,92,231,.55) 50%, transparent 70%);
  background-size: 220% 100%; background-position: 200% 0;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease, background-position .6s ease; pointer-events: none;
}
.feature:hover::after { opacity: 1; background-position: -40% 0; }
/* 主按钮扫光 */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn--primary:hover::after { left: 130%; }
/* 平台卡片 hover 顶部霓虹条 */
.platform::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.platform:hover::before { opacity: 1; }
/* 区块标题渐变点缀 */
.section__kicker { background: linear-gradient(90deg, var(--accent), #b06cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; padding: 18px 32px 24px; flex-direction: column; align-items: stretch; gap: 6px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav__link { padding: 10px 0; }
  .nav__cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: block; }
  .hero { min-height: 100vh; }
  .section { padding: 40px 0; }
  .feature-grid, .voice-grid, .platform-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; padding: 36px 30px 40px; }
  .feature__top { margin-bottom: 34px; }
  .voice-grid { gap: 16px; }
  .cursor-glow { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .hero__title { font-size: 40px; }
  .hero__inner { padding-block: 90px 140px; }
  .section__title { font-size: 30px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
  .scroll-progress { transition: none; }
}

/* ---------- 软件中心（官网，数据来自管理后台） ---------- */
.software-section { background: #fff; }
.sw-site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sw-site-card {
  display: flex; flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.sw-site-card:hover { transform: translateY(-6px); box-shadow: 0 20px 46px rgba(30,24,80,.08); border-color: #dcd8f8; }
.sw-site-card__head { display: flex; align-items: center; gap: 15px; }
.sw-site-card__logo {
  width: 60px; height: 60px; flex: none;
  border-radius: 14px; object-fit: cover; background: #f4f4f8;
}
.sw-site-card__logo--empty {
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #8b7bff, #6c5ce7);
}
.sw-site-card__meta { min-width: 0; }
.sw-site-card__name { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.sw-site-card__sys { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.sw-site-card__desc {
  margin: 16px 0 22px; font-size: 14px; line-height: 1.75; color: var(--ink-2);
  flex: 1;
}
.sw-site-card__btn { align-self: flex-start; }
.sw-site-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 14px; padding: 30px 0; }

@media (max-width: 980px) {
  .sw-site-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sw-site-grid { grid-template-columns: 1fr; }
}
