/* ============================================================
   盒子猫官网 · 区块样式
   ============================================================ */

/* ---------- 阅读进度条 ---------- */
.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  z-index: 90;
  transition: width .12s linear;
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease),
              background-color var(--t-mid) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-xs);
}

.nav {
  display: flex; align-items: center; gap: 22px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--tx); }
.brand:hover { color: var(--tx); }
.brand-mark { width: 34px; height: 34px; color: var(--brand); flex: none; transition: transform var(--t-mid) var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--tx-3); letter-spacing: .05em; margin-top: 3px; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tx-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--brand); background: var(--brand-l); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--tx-2);
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.icon-btn .ico { width: 19px; height: 19px; }
.nav-toggle { display: none; }

/* 主题切换图标：亮色显示月亮，暗色显示太阳 */
.ico-sun { display: none; }
[data-theme="dark"] .ico-sun { display: block; }
[data-theme="dark"] .ico-moon { display: none; }

/* ---------- 移动端抽屉 ---------- */
.drawer { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 12, 22, .52);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0;
  height: 100%;
  width: min(330px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 22px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-mid) var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer-panel a.d-link {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--tx-2);
}
.drawer-panel a.d-link:hover,
.drawer-panel a.d-link.is-active { background: var(--brand-l); color: var(--brand); }
.drawer-foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ============================================================
   首屏
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 92px 0 104px; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero-bg.webp") center right / cover no-repeat;
  opacity: .92;
  z-index: 0;
}
[data-theme="dark"] .hero-bg { opacity: .3; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, var(--bg) 4%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 26%, var(--bg) 98%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.16;
  letter-spacing: -.028em;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { max-width: 34ch; margin-bottom: 32px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--tx-2);
}
.hero-facts .ico { width: 17px; height: 17px; color: var(--brand); stroke-width: 2.4; }

/* ---------- 设备示意（纯 CSS 绘制）---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 520px; }

.phone {
  position: relative;
  width: 288px;
  aspect-ratio: 288 / 592;
  border-radius: 46px;
  background: #0B1220;
  padding: 10px;
  box-shadow: 0 40px 90px -34px rgba(15, 27, 45, .5), 0 0 0 1px rgba(15, 27, 45, .07);
  z-index: 2;
}
[data-theme="dark"] .phone { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .09); }
.phone::after {
  content: "";
  position: absolute; top: 22px; left: 50%;
  width: 84px; height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0B1220;
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 37px;
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ps-status {
  height: 40px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-size: 10.5px; color: var(--tx-3);
}
.ps-status b { font-weight: 600; }
.ps-status i { width: 22px; height: 9px; border-radius: 3px; background: var(--surface-3); display: block; }

.ps-head { padding: 2px 20px 14px; display: flex; align-items: center; gap: 10px; }
.ps-avatar { width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.ps-greet b { display: block; font-size: 13px; font-weight: 650; }
.ps-greet span { font-size: 10.5px; color: var(--tx-3); }

.ps-banner {
  margin: 0 16px;
  height: 92px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), #6E93FF);
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  color: #fff;
  flex: none;
}
.ps-banner::before {
  content: "";
  position: absolute; right: -26px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.ps-banner::after {
  content: "";
  position: absolute; right: 18px; bottom: -40px;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.ps-banner b { display: block; font-size: 13px; font-weight: 650; position: relative; }
.ps-banner span { display: block; font-size: 10.5px; opacity: .82; margin-top: 4px; position: relative; }

.ps-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 16px 16px 0; flex: none; }
.ps-tile {
  aspect-ratio: 1;
  border-radius: 13px;
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--brand);
}
.ps-tile .ico { width: 19px; height: 19px; stroke-width: 1.9; }

.ps-rows { padding: 16px 16px 0; display: grid; gap: 9px; }
.ps-row {
  height: 42px;
  border-radius: 12px;
  background: var(--surface-3);
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
}
.ps-row i { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-l); flex: none; }
.ps-row u { height: 7px; border-radius: 4px; background: var(--line); display: block; text-decoration: none; }
.ps-row u:first-of-type { width: 46%; }
.ps-row u:last-of-type { width: 26%; background: var(--line-2); }

.ps-tab {
  margin-top: auto;
  height: 58px; flex: none;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
}
.ps-tab span { display: grid; place-items: center; color: var(--tx-3); }
.ps-tab span:first-child { color: var(--brand); }
.ps-tab .ico { width: 19px; height: 19px; stroke-width: 1.9; }

/* 悬浮信息卡 */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 17px;
  box-shadow: var(--sh-md);
  z-index: 3;
}
.float-card b { display: block; font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--tx); }
.float-card small { display: block; font-size: 11.5px; color: var(--tx-3); }
.float-card .ico-tile { width: 36px; height: 36px; border-radius: 11px; }
.float-card .ico { width: 18px; height: 18px; }
.float-a { top: 3%; left: -8%; }
.float-b { bottom: 11%; right: -4%; }

@media (prefers-reduced-motion: no-preference) {
  .float-a { animation: bob 6s var(--ease) infinite; }
  .float-b { animation: bob 6s var(--ease) infinite reverse; animation-delay: 1.2s; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ============================================================
   信任条（深色带）
   ============================================================ */
.trust { background: var(--band-bg); color: var(--band-tx); padding-block: 62px; }
[data-theme="dark"] .trust { border-block: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-n {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.trust-n sup { font-size: .46em; font-weight: 600; margin-left: 4px; vertical-align: super; }
.trust-l { font-size: 14.5px; color: var(--band-tx-2); }
.trust-sub { font-size: 12.5px; color: var(--band-tx-2); opacity: .78; }

/* ============================================================
   关于我们
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: start; }
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--tx-2); font-size: 16px; line-height: 1.85; }

.facts { margin-top: 30px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}
.facts dt { color: var(--tx-3); }
.facts dd { margin: 0; color: var(--tx); font-weight: 500; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); }
.feature .ico-tile { margin-bottom: 16px; }
.feature:hover .ico-tile { background: var(--brand); color: #fff; }
.feature h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--tx-2); line-height: 1.72; }

/* ============================================================
   服务项目
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.svc:hover .ico-tile { background: var(--brand); color: #fff; transform: scale(1.06) rotate(-4deg); }
.svc h3 { font-size: 18px; font-weight: 650; margin: 20px 0 10px; }
.svc > p { font-size: 14.5px; color: var(--tx-2); line-height: 1.75; }
.svc .ticks { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-2); flex: 1; }
/* 服务卡底部内链：指向对应详情页 */
.svc-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.svc-more .ico { width: 15px; height: 15px; flex: none; transition: transform var(--t-fast) var(--ease); }
.svc-more:hover { color: var(--brand-d); }
.svc-more:hover .ico { transform: translateX(3px); }

/* FAQ 下方的延伸阅读链路 */
.faq-more {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 14px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.faq-more .fm-label { font-size: 13.5px; font-weight: 650; color: var(--tx-3); margin-right: 2px; }
.faq-more a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13.5px; font-weight: 600;
  color: var(--tx-2);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.faq-more a .ico { width: 15px; height: 15px; flex: none; color: var(--brand); }
.faq-more a:hover { border-color: color-mix(in srgb, var(--brand) 42%, transparent); color: var(--brand); }

/* ============================================================
   作品与平台
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tx-2);
  transition: all var(--t-fast) var(--ease);
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.filter b { font-weight: 600; opacity: .68; margin-left: 6px; font-size: 13px; }

.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease);
}
.work:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.work.is-hidden { display: none; }

.work-cover {
  height: 128px;
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  color: #fff;
}
.work-cover::before,
.work-cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.work-cover::before { width: 128px; height: 128px; right: -30px; top: -46px; }
.work-cover::after { width: 76px; height: 76px; left: -22px; bottom: -34px; }
.work-cover .ico { width: 42px; height: 42px; stroke-width: 1.6; position: relative; z-index: 2; }

.cat-edu  { background: linear-gradient(135deg, #2B5CE6, #6E93FF); }
.cat-read { background: linear-gradient(135deg, #0E93AC, #37C2D8); }
.cat-tool { background: linear-gradient(135deg, #4A54C4, #8A7BFF); }

.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.work-name { font-size: 16.5px; font-weight: 650; }
.work-no { font-size: 12px; color: var(--tx-3); font-family: ui-monospace, Consolas, monospace; }
.work-desc { font-size: 14px; color: var(--tx-2); line-height: 1.7; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 4px; }
.work-tags span { font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--tx-2); }

/* ============================================================
   软著证书墙
   ============================================================ */
.certs { background: var(--surface); }
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cert-card {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--gold);
}
.cert-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  transition: opacity var(--t-mid) var(--ease);
}
.cert-card:hover img { opacity: .93; }
.cert-meta { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 5px; }
.cert-name { font-size: 14px; font-weight: 650; line-height: 1.5; }
.cert-no { font-size: 11.5px; color: var(--gold); font-family: ui-monospace, Consolas, monospace; letter-spacing: .01em; }

.cert-note {
  margin-top: 26px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--tx-2);
  background: var(--gold-l);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  padding: 16px 20px;
}
.cert-note .ico { color: var(--gold); flex: none; }

/* ---------- 证书放大查看 ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: none; }
.lb.is-open { display: block; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6, 10, 20, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: lbFade var(--t-mid) var(--ease); }
.lb-stage {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  padding: 64px 76px;
}
.lb-img {
  max-height: 74vh; max-width: 100%;
  width: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sh-lg);
  animation: lbPop .32s var(--ease-out);
}
.lb-cap { text-align: center; color: #fff; }
.lb-cap .lb-name { display: block; font-size: 15px; font-weight: 600; }
.lb-cap .lb-no { display: block; margin-top: 5px; font-size: 12.5px; color: rgba(255, 255, 255, .62); font-family: ui-monospace, Consolas, monospace; }
.lb-count { color: rgba(255, 255, 255, .55); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.lb-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  display: grid; place-items: center;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close { position: absolute; top: 22px; right: 22px; }

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ============================================================
   开发流程
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 20px 24px;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--brand) 36%, var(--line)); }
.step-n { font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--brand); }
.step h3 { font-size: 16px; font-weight: 650; margin: 12px 0 9px; }
.step p { font-size: 13.5px; color: var(--tx-3); line-height: 1.68; }
.step::after {
  content: "";
  position: absolute; right: -11px; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.step:last-child::after { display: none; }

/* ============================================================
   常见问题
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease);
}
.faq-item.is-open { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tx);
  transition: color var(--t-fast) var(--ease);
}
.faq-q:hover { color: var(--brand); }
.faq-sign { position: relative; width: 20px; height: 20px; flex: none; }
.faq-sign::before,
.faq-sign::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.faq-sign::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-sign::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-sign { color: var(--brand); }
.faq-item.is-open .faq-sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-mid) var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.82; color: var(--tx-2); }

/* ============================================================
   联系我们
   ============================================================ */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.cc:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--line); }
.cc .ico-tile { width: 52px; height: 52px; border-radius: 16px; }
.cc h3 { font-size: 17px; font-weight: 650; margin: 18px 0 6px; }
.cc-val { font-family: ui-monospace, Consolas, monospace; font-size: 14.5px; color: var(--tx-2); }
.cc-qr {
  width: 176px; height: 176px;
  margin: 20px auto 14px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-mid) var(--ease-out);
}
.cc:hover .cc-qr { transform: scale(1.03); }
.cc-hint { font-size: 13px; color: var(--tx-3); line-height: 1.7; }
.cc-body { flex: 1; display: flex; flex-direction: column; }
.cc-mail {
  width: 176px; height: 176px;
  margin: 20px auto 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  display: grid; place-items: center;
  padding: 18px;
  font-size: 13px; color: var(--tx-3); line-height: 1.7;
}
.copy-btn {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px; font-weight: 500;
  color: var(--tx-2);
  transition: all var(--t-fast) var(--ease);
}
.copy-btn:hover { color: var(--brand); border-color: var(--brand); }
.copy-btn .ico { width: 16px; height: 16px; }

/* ============================================================
   页脚
   ============================================================ */
.footer { background: var(--band-bg); color: var(--band-tx-2); }
[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-block: 68px 48px;
  border-bottom: 1px solid var(--band-line);
}
.footer h4 { color: var(--band-tx); font-size: 14px; font-weight: 650; margin-bottom: 18px; letter-spacing: .02em; }
.footer a { color: var(--band-tx-2); font-size: 14.5px; }
.footer a:hover { color: var(--band-tx); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-mark { width: 38px; height: 38px; color: #fff; }
.footer-brand b { color: var(--band-tx); font-size: 17px; font-weight: 700; display: block; }
.footer-brand span { font-size: 11.5px; letter-spacing: .05em; }
.footer-desc { font-size: 14px; line-height: 1.85; max-width: 34ch; }
.footer-links { display: grid; gap: 12px; }
.footer-contact { display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.footer-contact .ico { width: 17px; height: 17px; flex: none; opacity: .7; }

/* 页脚服务内链：锚文本内链，帮助搜索引擎理解站点主题 */
.footer-tags {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding-block: 26px 0;
}
.footer-tags a { font-size: 13.5px; text-decoration: none; }
.footer-tags a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-bot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  padding-block: 26px 34px;
  font-size: 13px;
}
.footer-bot .beian { display: inline-flex; align-items: center; gap: 7px; }
.footer-bot img { height: 18px; width: auto; }

/* ============================================================
   浮动组件
   ============================================================ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  color: var(--tx-2);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out),
              visibility var(--t-mid), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 75; display: none; }

.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 130;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14.5px;
  box-shadow: var(--sh-lg);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease-out);
}
[data-theme="dark"] .toast { background: var(--surface-3); border: 1px solid var(--line); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { width: 18px; height: 18px; color: #6EE7A8; stroke-width: 2.6; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  :root { --sec-y: 96px; }
  .svc-grid, .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(3)::after { display: none; }
  .hero-inner { gap: 40px; }
  .stage { min-height: 460px; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav { gap: 14px; }
  .brand-sub { display: none; }
  .hero { padding: 56px 0 76px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero .lead { max-width: none; }
  .stage { min-height: 0; margin-top: 8px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-desc { max-width: none; }
}

@media (max-width: 720px) {
  :root { --sec-y: 72px; --pad: 20px; }
  .sec-head { margin-bottom: 36px; }
  .svc-grid, .works-grid, .contact-grid, .feature-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .process { grid-template-columns: 1fr; gap: 12px; }
  .step::after {
    right: auto; top: auto; bottom: -9px; left: 32px;
    transform: rotate(135deg);
  }
  .step:nth-child(3)::after { display: block; }
  .step:last-child::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; padding-block: 52px 36px; }
  .mobile-cta { display: block; }
  .to-top { bottom: 88px; right: 16px; }
  .toast { bottom: 96px; }
  .footer-bot { padding-bottom: 88px; }
  .lb-stage { padding: 56px 14px 88px; }
  .lb-img { max-height: 68vh; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
  .float-card { padding: 10px 13px; }
  .float-card .ico-tile { width: 30px; height: 30px; border-radius: 9px; }
  .float-card b { font-size: 13px; }
  .float-a { left: 0; top: 4%; }
  .float-b { right: 0; bottom: 6%; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .btn { padding: 12px 22px; font-size: 15px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-meta { padding: 12px 12px 14px; }
  .cert-name { font-size: 13px; }
}

/* ============================================================
   04 · AI 时代怎么做项目（人机分工）
   ============================================================ */
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.split-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 28px;
}
.split-col--key {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
  box-shadow: var(--sh-sm);
}
.split-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.split-t { display: block; min-width: 0; }
.split-t b { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--tx); }
.split-t small { font-size: 12.5px; color: var(--tx-3); }
.split-list { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.split-list li { position: relative; padding-left: 20px; line-height: 1.6; color: var(--tx-2); }
.split-list li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tx-3);
}
.split-col--key .split-list li { color: var(--tx); }
.split-col--key .split-list li::before { background: var(--brand); }
.split-note {
  max-width: 790px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--tx-2);
}
.split-note b { color: var(--tx); font-weight: 650; }

/* ============================================================
   09 · 我们不做什么（反向定位）
   ============================================================ */
.dont-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dont-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.dont-item:hover { border-color: color-mix(in srgb, var(--danger) 26%, var(--line)); box-shadow: var(--sh-sm); }
.dont-item > div { min-width: 0; }
.dont-x {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
}
.dont-x .ico { width: 17px; height: 17px; }
.dont-item h3 { font-size: 15.5px; font-weight: 650; line-height: 1.45; color: var(--tx); margin-bottom: 8px; }
.dont-item p { font-size: 14px; line-height: 1.7; color: var(--tx-2); }
.dont-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 30px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--tx-2);
}
.dont-note .ico { flex: none; width: 18px; height: 18px; color: var(--ok); }

@media (max-width: 960px) {
  .split-grid, .dont-grid { grid-template-columns: minmax(0, 1fr); }
  .split-note { font-size: 15px; }
}
@media (max-width: 720px) {
  .split-col { padding: 24px 20px; }
  .dont-item { padding: 20px; }
  .dont-note { flex-direction: column; text-align: center; }
}

/* 打印：去掉装饰，保证资质信息可读 */
@media print {
  .site-header, .progress, .to-top, .mobile-cta, .toast, .hero-bg, .hero-veil, .stage { display: none !important; }
  .sec { padding-block: 24px; break-inside: avoid; }
  body { background: #fff; }
}
