/* ============================================================
   为数·AI+BIM 数据智能体 — 介绍页 v2 样式
   品牌色：钢蓝 #4A7BA6 / 墨蓝 #2F5470 / 青碧 #14B8A6
   明亮清新 + 升级动效（Canvas 粒子、打字机、滚动进度）
   ============================================================ */

:root {
  --brand: #4A7BA6;
  --brand-dark: #2F5470;
  --brand-darker: #223D52;
  --teal: #14B8A6;
  --teal-dark: #0D8C7F;
  --ink: #22354A;
  --ink-soft: #5B6E82;
  --line: #DCE5EE;
  --bg: #F6F9FC;
  --bg-tint: #EDF2F7;
  --bg-soft: #E7EFF6;
  --card-bg: #FFFFFF;

  --read: #2E9E5B;
  --read-bg: rgba(46,158,91,.12);
  --write: #D9700A;
  --write-bg: rgba(217,112,10,.12);

  --dark-0: #0A1322;
  --dark-1: #101F36;
  --dark-2: #17293F;
  --dark-card: rgba(255,255,255,.045);
  --dark-border: rgba(74,123,166,.30);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(34,53,74,.07), 0 1px 2px rgba(34,53,74,.05);
  --shadow-md: 0 8px 28px rgba(34,53,74,.10), 0 2px 6px rgba(34,53,74,.06);
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code { font-family: "Consolas", "Cascadia Code", monospace; font-size: .9em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* ============================================================
   导航（含滚动进度条）
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav__progress {
  position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--teal));
  transition: width .1s linear; z-index: 2;
}
.nav:not(.is-scrolled) {
  background: rgba(246,249,252,.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.nav:not(.is-scrolled) .nav__logo,
.nav:not(.is-scrolled) .nav__logo-text { color: var(--brand-dark); }
.nav:not(.is-scrolled) .nav__logo-text b { color: var(--ink); }
.nav:not(.is-scrolled) .nav__links > a { color: var(--ink-soft); }
.nav:not(.is-scrolled) .nav__links > a:hover { color: var(--brand); background: rgba(74,123,166,.1); }
.nav:not(.is-scrolled) .nav__burger span { background: var(--ink); }
.nav.is-scrolled {
  background: rgba(10,19,34,.74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--dark-border);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.02rem; letter-spacing: .3px; transition: color .3s; }
.nav__logo-mark { width: 32px; height: 32px; }
.nav__logo-text { color: #EAF1F7; transition: color .3s; }
.nav__logo-text b { color: #fff; transition: color .3s; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links > a {
  color: rgba(234,241,247,.78); padding: 8px 13px; border-radius: 8px;
  font-size: .93rem; transition: color .2s, background .2s;
}
.nav__links > a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  color: #fff !important; font-weight: 600;
  box-shadow: 0 4px 14px rgba(74,123,166,.4);
}
.nav__cta:hover { background: linear-gradient(135deg, #5889b4, #385f7d) !important; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav__burger span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero（Canvas 粒子轴网 + 柔和高光）
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: var(--ink); overflow: hidden; padding: 120px 24px 80px;
  background: linear-gradient(180deg, #EFF7FD 0%, #E2EFF8 55%, #F6F9FC 100%);
}
.hero__canvas { position: absolute; inset: 0; z-index: 1; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/hero-cover.jpg") center/cover no-repeat;
  opacity: .05; filter: saturate(.85);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .45;
  animation: breathe 9s ease-in-out infinite;
}
.hero__glow--1 {
  width: 560px; height: 560px; top: -140px; left: -100px;
  background: radial-gradient(circle, #BCE2F7, transparent 70%);
}
.hero__glow--2 {
  width: 620px; height: 620px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, #BDF0EA, transparent 70%);
  animation-delay: -4.5s; opacity: .5;
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: .4; }
  50%     { transform: scale(1.12); opacity: .6; }
}

.hero__content { position: relative; z-index: 2; max-width: 880px; }
.hero__badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.78); color: var(--brand-dark);
  border: 1px solid rgba(74,123,166,.22); backdrop-filter: blur(6px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(20,184,166,.5); }

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.12;
  letter-spacing: -.5px; margin-bottom: 18px; color: var(--ink);
}
.grad-text {
  background: linear-gradient(120deg, #2B8FD4, #14B8A6 55%, #2B8FD4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--brand-dark); font-weight: 600; margin-bottom: 14px;
}
.hero__desc { font-size: 1.05rem; color: var(--ink-soft); font-weight: 500; max-width: 700px; margin: 0 auto 36px; }

.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(74,123,166,.45);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(74,123,166,.55); }
.btn--ghost {
  background: rgba(255,255,255,.7); color: var(--brand-dark);
  border: 1px solid rgba(74,123,166,.3); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: #fff; border-color: var(--brand); transform: translateY(-2px); }
.btn--lg { padding: 15px 34px; font-size: 1.08rem; }

.hero__stats {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  padding: 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.72); border: 1px solid rgba(74,123,166,.18);
  backdrop-filter: blur(10px); max-width: 720px; margin: 0 auto;
  box-shadow: 0 8px 30px rgba(74,123,166,.10);
}
.stat { flex: 1; min-width: 120px; text-align: center; }
.stat__num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__suffix { font-size: 1.4rem; font-weight: 800; color: var(--teal); }
.stat__label { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(47,84,112,.45);
  border-radius: 14px; position: relative;
}
.mouse__wheel {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--brand);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel { 0% { opacity:1; top:8px; } 70% { opacity:0; top:20px; } 100% { opacity:0; } }

/* ============================================================
   通用 section
   ============================================================ */
.section { padding: 96px 0; }
.section--light { background: var(--bg); }
.section--tint  { background: var(--bg-tint); }
.section--dark  { background: linear-gradient(180deg, var(--dark-0), var(--dark-1)); color: #D9E4EF; }

.section__head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brand); padding: 5px 14px; border-radius: 999px;
  background: var(--bg-soft); margin-bottom: 18px;
}
.kicker--light { background: rgba(74,123,166,.18); color: #8FB4D4; }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--ink); line-height: 1.25; }
.section__title--light { color: #fff; }
.section__lead { margin-top: 16px; font-size: 1.05rem; color: var(--ink-soft); }
.section__lead--light { color: #A5BACD; }
.section__lead code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; color: var(--brand-dark); }

/* 权限徽章（全局通用） */
.priv {
  display: inline-block; font-size: .68rem; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; letter-spacing: .4px; line-height: 1.5;
}
.priv--read  { background: var(--read-bg); color: var(--read); }
.priv--write { background: var(--write-bg); color: var(--write); }
.priv--auto  { background: rgba(74,123,166,.14); color: var(--brand-dark); }
.priv--lg { font-size: .78rem; padding: 5px 13px; margin-bottom: 14px; }

/* ============================================================
   四大能力 pillars
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pillar {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--teal)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.pillar:hover::before { transform: scaleX(1); }
.pillar__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-soft), #fff); color: var(--brand);
  margin-bottom: 18px; border: 1px solid var(--line);
}
.pillar__icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 10px; }
.pillar p { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.pillar__skills {
  display: block; margin-top: 16px; font-family: "Consolas", "Cascadia Code", monospace;
  font-size: .74rem; color: var(--brand); background: var(--bg-soft);
  padding: 6px 10px; border-radius: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================================================
   对话演示（打字机）
   ============================================================ */
.chatmock {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); overflow: hidden; text-align: left;
}
.chatmock__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--bg-tint); border-bottom: 1px solid var(--line);
}
.chatmock__title { font-weight: 600; font-size: .95rem; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.chatmock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.2); }
.chatmock__tools { display: flex; gap: 8px; }
.chatmock__chip { font-size: .74rem; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

.chatmock__body {
  padding: 22px; display: flex; flex-direction: column; gap: 16px;
  height: 470px; overflow-y: auto; scroll-behavior: smooth;
  transition: opacity .4s var(--ease);
}
.chatmock__body.is-fading { opacity: 0; }

.msg { display: flex; gap: 10px; max-width: 88%; animation: msgIn .35s var(--ease) both; }
.msg--ai { align-self: flex-start; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff;
}
.msg__avatar svg { width: 20px; height: 20px; }
.msg__avatar--ai { background: var(--brand); }
.msg__avatar--user { background: var(--teal); }
.msg__text {
  background: var(--bg-soft); padding: 12px 16px; border-radius: 12px; font-size: .9rem; color: var(--ink);
  line-height: 1.65;
}
.msg--user .msg__text { background: var(--brand); color: #fff; }
.msg__text code { background: rgba(74,123,166,.12); padding: 1px 6px; border-radius: 4px; font-size: .84em; }
/* 打字光标 */
.caret { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: caretBlink .8s step-end infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* 思考气泡 */
.msg--thinking { align-self: flex-start; }
.think {
  background: #EFF4F9; border-radius: 10px; padding: 10px 14px; font-size: .84rem; color: var(--ink-soft);
  border-left: 4px solid var(--brand); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.thinkdot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: thinkBounce 1.4s infinite ease-in-out; }
.thinkdot:nth-child(2) { animation-delay: .2s; }
.thinkdot:nth-child(3) { animation-delay: .4s; }
@keyframes thinkBounce { 0%,80%,100% { transform: scale(.6); opacity:.4; } 40% { transform: scale(1); opacity:1; } }

/* 工具调用卡片 */
.toolcall {
  align-self: flex-start; max-width: 88%;
  background: #F2F7FB; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 10px; padding: 12px 16px; font-size: .84rem; color: var(--ink-soft);
  animation: msgIn .35s var(--ease) both;
}
.toolcall__head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-dark); margin-bottom: 4px; }
.toolcall__head svg { width: 16px; height: 16px; color: var(--brand); }
.toolcall__name { font-family: "Consolas", monospace; }
.toolcall__priv { margin-left: auto; }
.toolcall__args { font-family: "Consolas", monospace; font-size: .78rem; color: var(--ink-soft); }

/* 确认卡片（Write 技能） */
.confirm {
  align-self: flex-start; max-width: 88%;
  background: #FDF6EC; border: 1px solid #F0D9B5; border-left: 3px solid var(--write);
  border-radius: 10px; padding: 14px 16px; font-size: .86rem; color: var(--ink);
  animation: msgIn .35s var(--ease) both;
}
.confirm__title { font-weight: 700; color: var(--write); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.confirm__title svg { width: 16px; height: 16px; }
.confirm__btns { display: flex; gap: 10px; margin-top: 12px; }
.confirm__btn {
  padding: 6px 18px; border-radius: 8px; font-size: .84rem; font-weight: 700; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); transition: all .25s var(--ease);
}
.confirm__btn--ok.is-picked {
  background: var(--read); border-color: var(--read); color: #fff;
  box-shadow: 0 0 0 4px rgba(46,158,91,.18); transform: scale(1.05);
}

/* 结果表格与迷你图 */
.mini-table {
  margin: 12px 0 4px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); font-size: .82rem;
}
.mini-table__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; background: #fff; opacity: 0; animation: msgIn .3s var(--ease) forwards; }
.mini-table__row > span { padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--ink); }
.mini-table__row > span:last-child { border-right: 0; }
.mini-table__row:last-child > span { border-bottom: 0; }
.mini-table__row--head { background: var(--bg-tint); font-weight: 700; color: var(--brand-dark); }
.mini-table__row > span:first-child { font-weight: 600; }

.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin: 12px 0 4px; padding: 8px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.mini-chart span {
  width: 100%; background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-radius: 4px 4px 0 0; height: 0; font-size: 0; color: transparent;
  transition: height .7s var(--ease);
}
.mini-chart span:nth-child(3n+2) { background: linear-gradient(180deg, var(--teal), var(--teal-dark)); }
.mini-chart span:nth-child(3n) { background: linear-gradient(180deg, #7FA8C8, var(--brand)); }

.chatmock__input {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-top: 1px solid var(--line); background: var(--bg-tint);
}
.chatmock__slash { font-size: .82rem; color: var(--brand); font-weight: 600; background: rgba(74,123,166,.1); padding: 4px 10px; border-radius: 6px; }
.chatmock__placeholder { flex: 1; font-size: .86rem; color: var(--ink-soft); }
.chatmock__send {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand); color: #fff;
}
.chatmock__hint { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: 14px; }

/* ============================================================
   技能浏览器
   ============================================================ */
.skillexp__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.skillexp__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.skillexp__tab {
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--card-bg); color: var(--ink-soft); border: 1px solid var(--line);
  cursor: pointer; transition: all .25s var(--ease);
}
.skillexp__tab:hover { border-color: var(--brand); color: var(--brand); }
.skillexp__tab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(74,123,166,.35);
}
.skillexp__tab .n { font-size: .72rem; opacity: .75; margin-left: 3px; }

.skillexp__search {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 340px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; color: var(--ink-soft); transition: border-color .25s, box-shadow .25s;
}
.skillexp__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(74,123,166,.15); }
.skillexp__search input {
  flex: 1; border: 0; outline: 0; background: none; font-size: .9rem; color: var(--ink);
  font-family: inherit;
}
.skillexp__search input::placeholder { color: #9AABBC; }

.skillexp__meta { font-size: .82rem; color: var(--ink-soft); margin-bottom: 20px; }

.skillgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skillcard {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; position: relative; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation: msgIn .4s var(--ease) both;
}
.skillcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.skillcard__priv { position: absolute; top: 14px; right: 14px; }
.skillcard__name {
  font-family: "Consolas", "Cascadia Code", monospace; font-size: .82rem; color: var(--brand);
  margin-bottom: 6px; padding-right: 56px; word-break: break-all;
}
.skillcard__cn { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding-right: 40px; }
.skillcard__desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.6; }
.skillcard__hidden {
  display: inline-block; margin-top: 10px; font-size: .7rem; color: #8A6FB8;
  background: rgba(138,111,184,.12); padding: 2px 8px; border-radius: 999px;
}
.skillexp__empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--ink-soft); font-size: .95rem;
}

/* ============================================================
   安全机制
   ============================================================ */
.safegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.safecard {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.safecard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.safecard--accent { border-color: #F0D9B5; background: linear-gradient(160deg, #FFFDF8, #fff); }
.safecard h3 { font-size: 1.06rem; color: var(--ink); margin-bottom: 10px; }
.safecard p { font-size: .92rem; color: var(--ink-soft); }

/* ============================================================
   剧本库
   ============================================================ */
.pbgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pbcard {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.pbcard::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--teal));
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.pbcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.pbcard:hover::after { transform: scaleY(1); }
.pbcard__cn { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pbcard__name {
  font-family: "Consolas", "Cascadia Code", monospace; font-size: .74rem; color: var(--teal-dark);
  display: block; margin-bottom: 8px; word-break: break-all;
}
.pbcard__desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   多模型支持
   ============================================================ */
.modelgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.modelcard {
  background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; position: relative;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.modelcard:hover {
  transform: translateY(-5px); border-color: var(--brand);
  background: rgba(74,123,166,.12);
}
.modelcard__mark {
  display: block; font-size: .72rem; color: var(--teal); margin-bottom: 10px; letter-spacing: .5px;
}
.modelcard b { display: block; font-size: 1rem; color: #fff; margin-bottom: 4px; }
.modelcard__sub { font-size: .76rem; color: #8BA1B6; line-height: 1.55; display: block; }
.modelcard--custom { border-style: dashed; }

/* ============================================================
   MCP 流程
   ============================================================ */
.mcpflow {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  flex-wrap: wrap; margin-bottom: 44px;
}
.mcpbox {
  flex: 1; min-width: 180px; max-width: 240px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.mcpbox:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mcpbox--core {
  background: linear-gradient(135deg, var(--dark-2), var(--dark-1)); color: #fff;
  border-color: var(--brand); box-shadow: 0 10px 30px rgba(74,123,166,.3);
}
.mcpbox--revit { background: var(--bg-soft); }
.mcpbox__icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--brand); border: 1px solid var(--line);
}
.mcpbox__icon svg { width: 30px; height: 30px; }
.mcpbox__icon--brand { background: transparent; border: 0; color: var(--brand); }
.mcpbox h4 { font-size: 1.05rem; color: var(--ink); }
.mcpbox--core h4 { color: #fff; }
.mcpbox p { font-size: .82rem; color: var(--ink-soft); }
.mcpbox--core p { color: #A5BACD; }

.mcparrow {
  flex: 0 0 110px; min-width: 70px; position: relative; display: flex; align-items: center; justify-content: center;
}
.mcparrow__line { position: absolute; top: 50%; left: 6px; right: 6px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.mcparrow__pulse {
  position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: pulseMove 2.2s linear infinite;
}
.mcparrow__pulse--rev { animation-direction: reverse; background: linear-gradient(90deg, transparent, var(--teal), transparent); }
@keyframes pulseMove { from { left: -30%; } to { left: 100%; } }
.mcparrow__label {
  position: absolute; top: calc(50% - 40px); left: 50%; transform: translateX(-50%);
  font-size: .72rem; color: var(--brand); font-weight: 600; text-align: center; white-space: nowrap; line-height: 1.35;
}
.mcparrow__label--bottom { top: calc(50% + 16px); color: var(--teal-dark); }

.mcpnotes { list-style: none; max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.mcpnotes li {
  background: var(--card-bg); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: .92rem; color: var(--ink-soft);
}
.mcpnotes li b { color: var(--ink); }
.mcpnotes code { background: var(--bg-soft); padding: 2px 7px; border-radius: 5px; color: var(--brand-dark); }

/* ============================================================
   兼容性与下载
   ============================================================ */
.compatgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-bottom: 56px; }
.compatcell {
  background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius);
  padding: 26px 8px; text-align: center; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.compatcell:hover { transform: translateY(-4px); border-color: var(--brand); background: rgba(74,123,166,.1); }
.compatcell--new { border-color: rgba(20,184,166,.45); }
.compatcell__ver { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.compatcell__fw { display: block; font-size: .74rem; color: #8BA1B6; margin-top: 4px; }

.download { display: flex; justify-content: center; }
.download__card {
  max-width: 560px; text-align: center; padding: 44px 32px;
  background: linear-gradient(135deg, rgba(74,123,166,.16), rgba(20,184,166,.08));
  border: 1px solid var(--dark-border); border-radius: 20px; backdrop-filter: blur(6px);
}
.download__card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.download__card > p { color: #A5BACD; margin-bottom: 28px; }
.download__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.download__note { font-size: .82rem; color: #7B91A7; margin-top: 20px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--dark-0); color: #A5BACD; padding: 56px 0 32px; border-top: 1px solid var(--dark-border); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__logo { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: #EAF1F7; margin-bottom: 14px; }
.footer__logo b { color: #fff; }
.footer__tag { font-size: .92rem; max-width: 340px; }
.footer__contact h4, .footer__meta p:first-child { color: #fff; font-size: .98rem; margin-bottom: 8px; font-weight: 700; }
.footer__contact p, .footer__meta p { font-size: .88rem; margin-bottom: 6px; }

.backtop {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  box-shadow: var(--shadow-md); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { transform: translateY(-3px); }

/* ============================================================
   滚动揭示动画
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .skillgrid, .pbgrid { grid-template-columns: repeat(3, 1fr); }
  .modelgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; top: 64px; right: 0; height: calc(100vh - 64px); width: 260px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 18px;
    background: rgba(10,19,34,.97); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform .35s var(--ease);
    border-left: 1px solid var(--dark-border);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links > a { padding: 14px 16px; font-size: 1rem; }
  .nav__burger { display: flex; }

  .section { padding: 72px 0; }
  .safegrid { grid-template-columns: 1fr; }
  .mcpflow { flex-direction: column; align-items: center; gap: 8px; }
  .mcparrow { flex: 0 0 64px; width: 64px; transform: rotate(90deg); }
  .mcparrow__label { white-space: normal; width: 110px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .chatmock__body { height: 540px; }
  .skillexp__bar { flex-direction: column; align-items: stretch; }
  .skillexp__search { max-width: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .skillgrid, .pbgrid { grid-template-columns: repeat(2, 1fr); }
  .modelgrid { grid-template-columns: repeat(2, 1fr); }
  .compatgrid { grid-template-columns: repeat(4, 1fr); }
  .hero__stats { gap: 6px; padding: 16px 10px; }
  .stat { min-width: 0; }
  .stat__num { font-size: 1.6rem; }
  .stat__label { font-size: .74rem; }
  .btn--lg { padding: 13px 24px; font-size: 1rem; }
  .download__card { padding: 32px 22px; }
}
@media (max-width: 420px) {
  .pillars { grid-template-columns: 1fr; }
  .skillgrid, .pbgrid { grid-template-columns: 1fr; }
  .compatgrid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
