/* ===== PLM悬浮助手 引导页 · 玻璃拟态（简约版） ===== */
:root {
  --bg-1: #eef1ff;
  --bg-2: #fdeef6;
  --bg-3: #e8fbff;
  --ink: #2b2b3a;
  --ink-soft: #6a6a7c;
  --accent: #6d5efc;
  --accent-2: #b56cf0;
  --accent-grad: linear-gradient(135deg, #6d5efc 0%, #b56cf0 100%);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  --radius: 22px;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== 轻提示 toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(43, 43, 58, 0.92);
  color: #fff;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 28px rgba(31, 38, 135, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  max-width: 86vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* ===== 背景柔光斑 ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 8% 0%, var(--bg-2), transparent 60%),
    radial-gradient(1000px 700px at 100% 18%, var(--bg-3), transparent 55%),
    linear-gradient(160deg, var(--bg-1), #f6f1ff 60%, #eafaff);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; left: -90px; top: 6%; background: #c7b8ff; }
.blob-2 { width: 360px; height: 360px; right: -70px; top: 32%; background: #ffc6e6; animation-delay: -7s; }
.blob-3 { width: 380px; height: 380px; left: 32%; bottom: -130px; background: #b8e9ff; animation-delay: -13s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(28px, -36px) scale(1.07); }
}

/* ===== 玻璃卡 ===== */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* ===== 顶栏 ===== */
.topbar { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo { display: inline-flex; color: var(--accent); }
.brand-logo svg { width: 22px; height: 22px; }
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 14px; transition: color .2s; }
.nav a:hover { color: var(--accent); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease;
  min-height: 46px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 22px rgba(109, 94, 252, 0.32); }
.btn-ghost { background: rgba(255, 255, 255, 0.45); border-color: var(--glass-border); color: var(--ink); }
.btn-small { padding: 8px 18px; font-size: 14px; min-height: 38px; background: var(--accent-grad); color: #fff; }
.btn-block { width: 100%; margin-top: 18px; }

/* ===== Hero ===== */
.hero { max-width: var(--maxw); margin: 72px auto 16px; padding: 0 16px; }
.hero-card { padding: clamp(40px, 7vw, 80px); text-align: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(109, 94, 252, 0.1);
  color: var(--accent);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  text-align: center;
  min-height: 1.2em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.hero-title .title-text {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0.14em 0.18em;
  isolation: isolate;
  transform-style: preserve-3d;
  overflow: visible;
  animation: title-idle-float 5.6s ease-in-out infinite;
}
.hero-title .title-text::before {
  content: "";
  position: absolute;
  inset: -0.08em -0.14em;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(181, 108, 240, 0.22), transparent 58%),
    linear-gradient(120deg, rgba(109, 94, 252, 0.08), rgba(255, 255, 255, 0));
  filter: blur(14px);
  opacity: 0.9;
  z-index: -2;
}
.hero-title .title-text::after {
  content: "";
  position: absolute;
  inset: -0.02em;
  border-radius: 999px;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.72) 50%, transparent 82%);
  opacity: 0;
  transform: translateX(-130%) skewX(-18deg);
  mix-blend-mode: screen;
  z-index: 3;
}
.hero-title .title-text.is-animating::after {
  opacity: 1;
  animation: title-sheen 1s cubic-bezier(.19, 1, .22, 1);
}
.hero-title .title-layer {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transform-origin: 50% 55%;
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.hero-title .title-word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  user-select: none;
}
.hero-title .title-word--main {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(135deg, #6d5efc 6%, #8f6bff 34%, #f3f0ff 48%, #b56cf0 67%, #6d5efc 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 34px rgba(109, 94, 252, 0.18);
  animation: title-idle-gradient 7.5s linear infinite;
}
.hero-title .title-word--echo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.38), rgba(181, 108, 240, 0.28));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(14px);
  transform: translate3d(0, 0.08em, -50px) scale(1.03);
  opacity: 0.8;
  animation: title-idle-echo 3.8s ease-in-out infinite alternate;
}
.hero-title .title-layer--current {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}
.hero-title .title-layer--next {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 0.58em, -80px) rotateX(-62deg) scale(0.92);
}
@keyframes title-sheen {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-18deg);
  }
  30% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(135%) skewX(-18deg);
  }
}
@keyframes title-idle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.02em); }
}
@keyframes title-idle-gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes title-idle-echo {
  0% {
    opacity: 0.62;
    transform: translate3d(0, 0.09em, -50px) scale(1.01);
  }
  100% {
    opacity: 0.9;
    transform: translate3d(0, 0.05em, -40px) scale(1.05);
  }
}
.lead {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--ink-soft);
  font-size: clamp(15px, 2.4vw, 18px);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 40px 0 0;
}
.hero-tags li {
  padding: 7px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

/* ===== 区块通用 ===== */
.section { max-width: var(--maxw); margin: 104px auto; padding: 0 16px; scroll-margin-top: 90px; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 10px; }
.section-head p { margin: 0; color: var(--ink-soft); }

/* ===== 浏览器识别 ===== */
.detect-card { padding: clamp(28px, 5vw, 44px); }
.detect-loading { color: var(--ink-soft); text-align: center; padding: 18px; }
.detect-result { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.detect-browser { display: flex; align-items: center; gap: 18px; flex: 1 1 240px; }
.detect-icon {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  color: var(--accent);
}
.detect-icon svg { width: 36px; height: 36px; }
.detect-name { font-size: 21px; font-weight: 700; }
.detect-ver { color: var(--ink-soft); font-size: 14px; }
.detect-rec { flex: 2 1 340px; }
.detect-rec-title { font-weight: 600; margin-bottom: 14px; }
.detect-rec-title span { color: var(--accent); }
.detect-links { display: flex; flex-wrap: wrap; gap: 10px; }
.detect-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: transform .15s, box-shadow .2s;
}
.detect-links a:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow); }
.detect-links a.manager-primary { background: var(--accent-grad); color: #fff; border-color: transparent; }
.detect-links .hint { width: 100%; margin: 0 0 4px; }
.detect-extra {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(109, 94, 252, 0.08);
  border: 1px solid rgba(109, 94, 252, 0.2);
  font-size: 14px;
  color: var(--ink);
}
.detect-extra code {
  background: rgba(109, 94, 252, 0.12);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 13px;
}
.detect-extra .ext-link {
  display: inline-block;
  background: rgba(109, 94, 252, 0.12);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(109, 94, 252, 0.3);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.detect-extra .ext-link:hover {
  background: rgba(109, 94, 252, 0.22);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, 0.12);
}
.detect-extra .warn {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===== 安装三步 ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 34px 28px; }
.step-no {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 12px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ===== 教程卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { padding: 36px 30px; }
.card-icon {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--accent);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin: 0 0 12px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.note {
  margin-top: 22px;
  padding: 18px 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.note code, .faq-item code {
  background: rgba(109, 94, 252, 0.1);
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 13px;
}

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { padding: 4px 24px; }
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; color: var(--ink-soft); font-size: 15px; }

/* ===== 页脚 ===== */
.footer { max-width: var(--maxw); margin: 96px auto 40px; padding: 0 16px; }
.footer-inner { padding: 26px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.footer p { margin: 4px 0; }
.footer-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer-meta { font-size: 12px; opacity: 0.65; margin-top: 8px !important; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .section { margin: 76px auto; }
  .detect-result { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}
