/* ==========================================================================
   工联远控官网
   ========================================================================== */

:root {
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #eef4fe;
  --ink: #1f2329;
  --gray: #6b7280;
  --gray-light: #9ca3af;
  --line: #e5e7eb;
  --line-light: #f0f1f3;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------------- 页面切换过渡(导航栏不动,只过渡内容区) ---------------- */
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
}

main { animation: page-in .4s ease; transition: opacity .16s ease; }
main.page-leaving { opacity: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1080px, 90%); margin: 0 auto; }
.container-narrow { width: min(760px, 90%); margin: 0 auto; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  padding: 11px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }

.btn-outline { background: #fff; color: var(--ink); border-color: #d1d5db; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
}
.brand-logo svg { width: 16px; height: 16px; }
.brand-name { font-size: 17px; letter-spacing: .3px; }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--ink); }
.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: 8px; }

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

/* ---------------- 首屏 ---------------- */
.hero { padding: 84px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.3;
}
.hero-sub {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 16.5px;
  color: var(--gray);
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.platform-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 26px;
  font-size: 14px;
  color: var(--gray);
}
.platform-row li { display: inline-flex; align-items: center; gap: 7px; }
.platform-row svg { width: 16px; height: 16px; }

/* ---------------- 产品截图 ---------------- */
.shot-wrap { padding: 10px 0 72px; }
.shot {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .18);
  font-size: 11px;
  text-align: left;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-light);
  background: #fafbfc;
}
.app-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; }
.app-ico {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
}
.app-ico svg { width: 12px; height: 12px; }
.app-win-controls { display: flex; gap: 10px; }
.app-win-controls i {
  width: 10px; height: 10px;
  border: 1.3px solid #c4ccd8;
  border-radius: 2px;
}
.app-win-controls i:first-child { border-radius: 50%; }
.app-win-controls i.close { border-color: #dda3a3; background: #faeeee; }

.app-body { display: flex; min-height: 320px; }

.app-side {
  width: 140px;
  flex-shrink: 0;
  background: #fafbfc;
  border-right: 1px solid var(--line-light);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
}
.app-side-brand { font-weight: 600; font-size: 12.5px; margin: 2px 6px 12px; }
.app-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--gray);
  font-weight: 500;
}
.app-nav a svg { width: 12px; height: 12px; }
.app-nav a.active { color: var(--brand); background: var(--brand-light); }
.app-side-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 6px 2px;
  border-top: 1px solid var(--line-light);
}
.app-side-foot b { display: block; font-size: 10.5px; }
.app-side-foot i { font-style: normal; font-size: 9.5px; color: var(--gray-light); }
.online-dot {
  width: 7px; height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22c55e;
}

.app-main { flex: 1; padding: 14px 16px; background: #fff; }
.app-main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-main-head b { font-size: 15px; }
.app-license {
  font-size: 9.5px;
  font-weight: 500;
  color: #b45309;
  background: #fdf3e1;
  border: 1px solid #f3ddb0;
  padding: 2px 9px;
  border-radius: 4px;
}

.app-card {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 10px;
}
.app-card.current {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.app-card.current label { display: block; font-size: 9.5px; color: var(--gray-light); margin-bottom: 2px; }
.app-card.current b { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.app-card.current i { font-style: normal; font-size: 9.5px; color: var(--gray-light); }
.edit {
  width: 11px; height: 11px;
  display: inline-block;
  border: 1.2px solid #c4ccd8;
  border-radius: 3px;
  position: relative;
}
.edit::after {
  content: "";
  position: absolute;
  inset: 2px 2px 5px 5px;
  background: #c4ccd8;
  clip-path: polygon(0 100%, 20% 100%, 100% 20%, 80% 0, 0 80%);
}

.app-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.app-card-head b { font-size: 12px; }
.app-card-head i { font-style: normal; font-size: 9.5px; color: var(--gray-light); }

.app-row { display: flex; align-items: center; gap: 9px; padding: 8px 4px; }
.app-row + .app-row { border-top: 1px solid var(--line-light); }
.dev-ico {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-light);
  flex-shrink: 0;
}
.dev-ico svg { width: 13px; height: 13px; }
.dev-info { flex: 1; min-width: 0; }
.dev-info b { display: block; font-size: 11.5px; }
.dev-info i { font-style: normal; font-size: 9.5px; color: var(--gray-light); }
.app-row button {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--brand);
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 5px;
  padding: 3px 14px;
  cursor: default;
}

/* ---------------- 通用版块 ---------------- */
.section { padding: 72px 0; }
.section.bt { border-top: 1px solid var(--line-light); }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: 27px; font-weight: 700; letter-spacing: -.3px; }
.sec-head p { color: var(--gray); font-size: 15px; margin-top: 10px; }

/* 主要功能栅格 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 40px;
}
.feat .f-ico { color: var(--brand); margin-bottom: 14px; }
.feat .f-ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--gray); }

/* 三步使用 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
  counter-reset: step;
}
.step { text-align: center; padding: 0 12px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--gray); }

/* 首页下载条 */
.home-dl { text-align: center; }
.home-dl .dl-btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.home-dl .note { font-size: 13.5px; color: var(--gray-light); margin-top: 20px; }
.home-dl .note a { color: var(--brand); }
.home-dl .note a:hover { text-decoration: underline; }
.sec-head p a { color: var(--brand); }
.sec-head p a:hover { text-decoration: underline; }

/* 首页左侧引导导航(宽屏显示,悬浮卡片) */
.page-guide {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 28px -20px rgba(0, 0, 0, .28);
}
@media (min-width: 1366px) { .page-guide { display: flex; } }
.page-guide a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--gray);
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.page-guide a i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd2dd;
  flex-shrink: 0;
  transition: background .15s ease;
}
.page-guide a:hover { color: var(--brand); background: #f6f8fb; }
.page-guide a.active {
  color: var(--brand);
  font-weight: 600;
  background: var(--brand-light);
}
.page-guide a.active i { background: var(--brand); }

/* 锚点定位避开吸顶导航 */
#features, #steps, #demo, #help, #download, #changelog { scroll-margin-top: 76px; }

/* 演示动画 iframe */
.demo-frame-wrap {
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .25);
  background: #0a0e16;
  aspect-ratio: 16 / 9;
}
.demo-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-actions { display: flex; justify-content: center; margin-top: 22px; }
.demo-tip {
  display: none;
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-light);
  margin: 14px 0 -6px;
}
/* 手机端:演示窗口按设计比例放不下,改用方形画布最大化内容 */
@media (max-width: 620px) {
  .demo-frame-wrap { aspect-ratio: 1 / 1; }
  .demo-tip { display: block; }
}

/* 首页内嵌文档区块 */
.home-docs .doc-block { padding: 40px 0; }
.home-docs .doc-block.hot { margin-top: 0; padding: 32px 30px; }
.home-docs .doc-block:last-child { padding-bottom: 0; }

/* ---------------- 子页页头 ---------------- */
.page-head { padding: 60px 0 8px; }
.page-head h1 { font-size: 30px; font-weight: 700; }
.page-head p { color: var(--gray); margin-top: 10px; font-size: 15.5px; }

/* 功能介绍页 */
.doc-block { padding: 44px 0; border-top: 1px solid var(--line-light); }
.doc-block.hot {
  background: var(--brand-light);
  border: 1px solid rgba(37, 99, 235, .22);
  border-radius: 12px;
  padding: 32px 30px;
  margin-top: 32px;
}
.doc-block.hot h2 { color: var(--brand); font-size: 24px; }
.doc-block.hot .doc-cols > div > p { color: #1e40af; font-weight: 600; }
.doc-more { margin-top: 14px; font-size: 14px; color: var(--gray); }
.doc-more a { color: var(--brand); font-weight: 500; }
.doc-more a:hover { text-decoration: underline; }

/* 表格导入示例 */
.sheet {
  max-width: 480px;
  margin: 16px 0 8px;
  border: 1px solid #d5d9e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .1);
}
.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: Consolas, "Courier New", monospace;
  table-layout: fixed;
}
.sheet th, .sheet td {
  border: 1px solid #e3e6ea;
  padding: 6px 12px;
  text-align: left;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.sheet thead th {
  background: #f5f6f8;
  color: var(--gray-light);
  text-align: center;
  font-family: var(--font);
  font-size: 12px;
  padding: 4px 12px;
}
.sheet thead th.sel { background: #217346; color: #fff; }
.sheet .rownum {
  width: 36px;
  background: #f5f6f8;
  color: var(--gray-light);
  text-align: center;
  font-family: var(--font);
  font-size: 12px;
}
.sheet .sel-cell { border-left: 2px solid #217346; border-right: 2px solid #217346; }
.sheet tbody tr:last-child .sel-cell { border-bottom: 2px solid #217346; }
.sheet-note { font-size: 13px; color: var(--gray); }
.doc-cols {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}
.doc-cols h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.doc-cols > div > p { font-size: 14.5px; color: var(--gray); }
.doc-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 14.5px;
  color: var(--ink-2, #374151);
  border-bottom: 1px dashed var(--line-light);
}
.doc-list li:last-child { border-bottom: 0; }
.doc-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* 安全页 */
.plain-block { padding: 40px 0; border-top: 1px solid var(--line-light); }
.plain-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.plain-block p { font-size: 14.5px; color: #374151; margin-bottom: 10px; max-width: 720px; }
.plain-block a { color: var(--brand); }
.plain-block a:hover { text-decoration: underline; }
.hl { color: #d92b2b; font-weight: 700; }

/* 收款码 */
.donate-card {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 30px;
  background: #fafbfc;
}
.donate-text { flex: 1; }
.donate-text p { max-width: none; margin-bottom: 8px; }
.donate-title { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.donate-contact { font-size: 13.5px; color: var(--gray); }
.donate-qr {
  flex-shrink: 0;
  width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.donate-qr img {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
}
.zoomable { cursor: zoom-in; }
.donate-qr span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--gray); }

/* 图片放大预览 */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 18, 24, 0.78);
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.img-lightbox[hidden] { display: none; }
.img-lightbox.show { opacity: 1; }
.img-lightbox img {
  max-width: min(520px, 90vw);
  max-height: 88vh;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.94);
  transition: transform 0.2s ease;
}
.img-lightbox.show img { transform: scale(1); }

/* 下载页 */
.dl-list { margin-top: 36px; border-top: 1px solid var(--line); }
.dl-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line-light);
}
.dl-row .dl-ico { color: var(--gray); flex-shrink: 0; }
.dl-row .dl-ico svg { width: 30px; height: 30px; }
.dl-row .dl-info { flex: 1; }
.dl-row .dl-info b { display: block; font-size: 16.5px; font-weight: 600; }
.dl-row .dl-info span { font-size: 13.5px; color: var(--gray); }
.dl-row .btn { flex-shrink: 0; }
.dl-foot {
  padding: 26px 6px;
  font-size: 13.5px;
  color: var(--gray);
}
.dl-foot a { color: var(--brand); }
.dl-foot a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { margin-top: 30px; }
.faq-item { border-bottom: 1px solid var(--line-light); padding: 0 4px; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.chev {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--gray-light);
  transition: transform .2s ease;
}
.faq-item[open] .chev { transform: rotate(180deg); color: var(--brand); }
.faq-item p { padding: 0 0 20px; color: var(--gray); font-size: 14.5px; }
.faq-item a { color: var(--brand); }
.faq-item a:hover { text-decoration: underline; }
.faq-more { text-align: center; padding: 36px 0 0; font-size: 14.5px; color: var(--gray); }
.faq-more a { color: var(--brand); font-weight: 500; }
.faq-more a:hover { text-decoration: underline; }

/* 版本历史页 */
.ver-timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 42px;
  padding-bottom: 8px;
  list-style: none;
}
.ver-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 34px;
  width: 2px;
  background: var(--line);
}
.ver-item { position: relative; padding-bottom: 26px; }
.ver-item:last-child { padding-bottom: 0; }
.ver-dot {
  position: absolute;
  left: -39px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #b6c3d8;
}
.ver-item:first-child .ver-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-light);
}
.ver-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  background: #fff;
}
.ver-card-latest {
  border-color: rgba(37, 99, 235, .4);
  background: linear-gradient(180deg, #f3f7ff 0%, #fff 62%);
}
.ver-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 10px;
}
.ver-head h2 { font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.ver-badge {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  padding: 2px 11px;
  border-radius: 999px;
}
.ver-date { font-size: 13.5px; color: var(--gray-light); margin-left: auto; }
.ver-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  color: #374151;
  border-bottom: 1px dashed var(--line-light);
}
.ver-list li:last-child { border-bottom: 0; }
.ver-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  padding: 0 8px;
  border-radius: 4px;
}
.ver-tag.add { color: #15803d; background: #e9f9ef; }
.ver-tag.opt { color: #1d4ed8; background: var(--brand-light); }
.ver-tag.fix { color: #b45309; background: #fdf3e1; }
.ver-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}
.ver-plats { font-size: 13px; color: var(--gray); }
.ver-foot .btn { margin-left: auto; }
.ver-more { padding: 30px 0 76px; font-size: 14px; color: var(--gray); }
.ver-more a { color: var(--brand); }
.ver-more a:hover { text-decoration: underline; }

/* 首页内嵌版本历史 */
.home-ver .ver-timeline { max-width: 860px; margin-left: auto; margin-right: auto; }
.home-ver .ver-more { padding: 26px 0 0; text-align: center; }

/* ---------------- 协议 / 隐私页 ---------------- */
.legal-wrap { padding: 36px 0 80px; }
.legal-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.legal-box.intro { border-left: 3px solid var(--brand); }
.legal-box.intro p { font-size: 14.5px; color: #374151; line-height: 1.9; }
.legal-box.intro p + p { margin-top: 10px; }

.legal-box.notice { border-left: 3px solid #d97706; }
.legal-box.notice b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.legal-box.notice p { font-size: 14px; color: var(--gray); line-height: 1.8; }
.legal-box.notice.personal { border-left-color: var(--brand); }

.legal-text {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 44px;
  margin-top: 20px;
}
.legal-text h2 { font-size: 21px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.legal-text h3 { font-size: 16.5px; margin: 28px 0 10px; }
.legal-text p { font-size: 14px; color: #374151; line-height: 1.9; margin-bottom: 8px; }
.legal-text a { color: var(--brand); }

.legal-contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 20px;
}
.legal-contact b { display: block; font-size: 16.5px; margin-bottom: 8px; }
.legal-contact p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.legal-contact ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 28px; }
.legal-contact li { font-size: 14px; color: #374151; }
.legal-contact a { color: var(--brand); }
.legal-contact a:hover { text-decoration: underline; }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 0; font-size: 14px; color: var(--gray); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; line-height: 1.8; font-size: 13.5px; }
.site-footer .brand-name { color: var(--ink); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col b { color: var(--ink); font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.footer-col a:hover { color: var(--brand); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
  color: var(--gray-light);
}
.footer-bar a { color: var(--gray); }
.footer-bar a:hover { color: var(--brand); }

/* 授权方案页 */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 30px;
}
.plan-card.hot { border-color: var(--brand); }
.plan-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand);
  background: var(--brand-light);
  padding: 3px 12px;
  border-radius: 4px;
}
.plan-price { font-size: 30px; font-weight: 700; margin: 14px 0 4px; }
.plan-price small { font-size: 13px; font-weight: 400; color: var(--gray); }
.plan-desc { color: var(--gray); font-size: 14px; margin-bottom: 18px; }
.plan-list { margin-bottom: 24px; }
.plan-list li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 14px;
  color: #374151;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.plan-card .btn { width: 100%; }

/* 404 页 */
.not-found { text-align: center; padding: 110px 0 130px; }
.not-found b { font-size: 62px; font-weight: 700; color: var(--brand); letter-spacing: 2px; }
.not-found h1 { font-size: 22px; margin: 8px 0 6px; }
.not-found p { color: var(--gray); margin-bottom: 26px; }

/* 联系弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.show { opacity: 1; }

.modal {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 32px 34px 28px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .3);
  transform: translateY(10px);
  transition: transform .2s ease;
}
.modal-overlay.show .modal { transform: none; }

.modal h2 { font-size: 20px; margin-bottom: 6px; }
.modal > p { color: var(--gray); font-size: 14px; margin-bottom: 16px; }

.modal-contact { border-top: 1px solid var(--line-light); margin-bottom: 22px; }
.modal-contact li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14.5px;
}
.modal-contact b { color: var(--gray); font-weight: 500; }
.modal-contact a { color: var(--brand); }
.modal-contact a:hover { text-decoration: underline; }

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--gray-light);
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--ink); }

.modal .btn { width: 100%; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .doc-cols { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(76vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 80px 28px 28px;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px -30px rgba(0, 0, 0, .25);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { font-size: 16px; padding: 8px 0; }
  .nav-toggle { display: flex; z-index: 110; }
}

@media (max-width: 620px) {
  .hero { padding: 56px 0 44px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .donate-card { flex-direction: column; align-items: center; text-align: center; }
  .steps { gap: 28px; }
  .section { padding: 52px 0; }
  .app-side { width: 106px; }
  .dl-row { flex-wrap: wrap; }
  .dl-row .btn { width: 100%; }
  .ver-timeline { padding-left: 26px; }
  .ver-timeline::before { left: 5px; }
  .ver-dot { left: -23px; width: 12px; height: 12px; }
  .ver-item:first-child .ver-dot { box-shadow: 0 0 0 4px var(--brand-light); }
  .ver-card { padding: 18px 18px; }
  .ver-date { margin-left: 0; width: 100%; }
  .ver-foot .btn { margin-left: 0; width: 100%; }
  .legal-text { padding: 26px 20px; }
  .legal-contact ul { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bar { flex-direction: column; text-align: center; }
}
