/* ==========================================================================
   GT138 App 内页骨架：浅色科技蓝 · 居中 Hero + 左侧吸顶目录 + 右侧长文栏
   （与首页、其余内页骨架完全不同）
   ========================================================================== */

:root {
  --app-blue: #2563eb;
  --app-blue-dk: #1e3a8a;
  --app-sky: #38bdf8;
  --app-bg: #f5f9ff;
  --app-ink: #0f172a;
  --app-muted: #5a6b82;
  --app-line: #e2ecf8;
}

body.app-page {
  background: var(--app-bg);
  color: var(--app-ink);
}

.app-page .site-header { background: rgba(255, 255, 255, .94); }
.app-page .site-nav a.is-active { color: var(--app-blue); background: rgba(37, 99, 235, .1); }
.app-page .brand-mark { background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.app-page .brand-text em { color: var(--app-blue); }
.app-page .btn-login { background: linear-gradient(135deg, #60a5fa, #1d4ed8); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28); }

/* ---------------- Hero：居中 + 图在下方 ---------------- */
.app-hero {
  position: relative;
  padding: 72px 0 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 50% -8%, rgba(56, 189, 248, .28), transparent 68%),
    linear-gradient(180deg, #ffffff, var(--app-bg));
}

.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
  pointer-events: none;
}

.app-hero-inner { position: relative; z-index: 2; }

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--app-line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--app-blue);
}

.app-pill .ver { color: var(--app-muted); font-weight: 500; }

.app-hero h1 {
  margin: 24px auto 18px;
  max-width: 880px;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.5px;
}

.app-hero h1 .grad {
  background: linear-gradient(100deg, #38bdf8, #2563eb 60%, #1e3a8a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-hero .lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
  color: var(--app-muted);
}

.app-hero .lead strong { color: var(--app-ink); }

.app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 8px;
}

.app-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, .32);
}

.app-actions .btn-room {
  background: #fff;
  border: 1.5px dashed rgba(37, 99, 235, .45);
  color: var(--app-blue-dk);
}

.app-actions .btn-room b { color: var(--app-blue); letter-spacing: 1px; }

.app-hero-visual {
  position: relative;
  z-index: 2;
  margin-top: 46px;
}

.app-hero-visual img {
  width: min(100%, 620px);
  margin-inline: auto;
  filter: drop-shadow(0 34px 60px rgba(30, 58, 138, .22));
}

.app-hero-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: min(90%, 720px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--app-line), transparent);
}

/* 关键指标条 */
.app-metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(100%, 940px);
  margin: -26px auto 0;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: center;
}

.app-metrics div {
  padding: 22px 16px;
  border-right: 1px solid var(--app-line);
}

.app-metrics div:last-child { border-right: 0; }
.app-metrics b { display: block; font-size: 22px; font-weight: 900; color: var(--app-blue-dk); }
.app-metrics span { font-size: 12.5px; color: var(--app-muted); }

/* ---------------- 主体：左目录 + 右内容 ---------------- */
.app-body { padding: 80px 0 96px; }

.app-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  align-items: start;
}

.app-rail {
  position: sticky;
  top: 100px;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.app-rail h2 {
  font-size: 12px;
  letter-spacing: 2px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 14px;
}

.app-rail a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--app-muted);
  border-left: 2px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}

.app-rail a:hover { color: var(--app-blue); background: #f3f8ff; border-left-color: var(--app-sky); }

.app-rail .rail-cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--app-line);
}

.app-rail .rail-cta .btn { width: 100%; padding: 12px 16px; font-size: 14px; }

.app-rail .rail-tg {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--app-blue);
  font-weight: 600;
}

.app-article > section { scroll-margin-top: 100px; }
.app-article > section + section { margin-top: 64px; }

.app-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  margin-bottom: 18px;
}

.app-h2 .idx {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-family: Georgia, serif;
}

.app-article p { font-size: 15.5px; line-height: 1.9; color: #3c4c63; }
.app-article p + p { margin-top: 14px; }
.app-article a.inline { color: var(--app-blue); font-weight: 600; border-bottom: 1px solid rgba(37, 99, 235, .35); }
.app-article a.inline:hover { border-bottom-color: var(--app-blue); }

/* 模块卡片 */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.mod-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-md);
  transition: box-shadow .25s, transform .25s;
}

.mod-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(30, 58, 138, .1); }

.mod-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--app-blue);
  font-size: 20px;
  margin-bottom: 14px;
}

.mod-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.mod-card p { font-size: 14px; line-height: 1.8; color: var(--app-muted); }

/* 界面说明：编号步骤式 */
.ui-steps { margin-top: 26px; border-left: 2px dashed #cfe0f5; padding-left: 26px; }

.ui-step { position: relative; padding-bottom: 26px; }
.ui-step:last-child { padding-bottom: 0; }

.ui-step::before {
  content: "";
  position: absolute;
  left: -33px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--app-blue);
}

.ui-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.ui-step p { font-size: 14.5px; color: var(--app-muted); }

/* 运行要求表 */
.spec-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14.5px;
}

.spec-table caption {
  text-align: left;
  padding: 0 0 12px;
  font-size: 13px;
  color: var(--app-muted);
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--app-line);
}

.spec-table thead th {
  background: #f2f7ff;
  font-size: 13px;
  font-weight: 700;
  color: var(--app-blue-dk);
  letter-spacing: .5px;
}

.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody th { font-weight: 700; width: 34%; color: var(--app-ink); }
.spec-table tbody td { color: var(--app-muted); }

/* 安全提示块 */
.safe-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 26px;
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.safe-note .shield {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: #dbeafe;
  color: var(--app-blue);
  font-size: 24px;
}

.safe-note h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.safe-note p { font-size: 14.5px; color: var(--app-muted); }
.safe-note ul { margin-top: 12px; display: grid; gap: 8px; }
.safe-note li { position: relative; padding-left: 20px; font-size: 14px; color: var(--app-muted); }
.safe-note li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--app-sky);
}

/* 底部下载跳转条 */
.app-download-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 64px;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b2545, #123a63);
  color: #fff;
}

.app-download-strip h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.app-download-strip p { font-size: 14.5px; color: #a9c6e6; }

.app-download-strip .btn-primary {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  box-shadow: 0 14px 30px rgba(56, 189, 248, .3);
}

/* 相关阅读 */
.related { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--app-line); }
.related h3 { font-size: 15px; font-weight: 800; margin-bottom: 16px; color: #334155; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.related-grid a {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--app-line);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--app-blue-dk);
  transition: border-color .2s, transform .2s;
}

.related-grid a:hover { border-color: var(--app-sky); transform: translateY(-3px); }
.related-grid a span { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 400; color: var(--app-muted); }

/* 入场 */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 1fr; gap: 32px; }
  .app-rail { position: static; }
  .app-rail nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .app-rail a { padding: 7px 12px; border-left: 0; border-radius: 999px; background: #f3f8ff; }
  .app-rail a:hover { border-left-color: transparent; }
  .app-rail .rail-cta { display: block; width: 100%; }
}

@media (max-width: 860px) {
  .app-metrics { grid-template-columns: 1fr 1fr; }
  .app-metrics div:nth-child(2) { border-right: 0; }
  .app-metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--app-line); }
  .mod-grid { grid-template-columns: 1fr; }
  .app-download-strip { grid-template-columns: 1fr; padding: 28px 24px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app-hero { padding-top: 52px; }
  .app-hero h1 { font-size: 30px; }
  .app-actions .btn { width: 100%; }
  .app-body { padding: 56px 0 72px; }
  .ui-steps { padding-left: 20px; }
  .ui-step::before { left: -27px; }
  .spec-table th, .spec-table td { padding: 12px 12px; font-size: 13.5px; }
  .spec-table tbody th { width: 40%; }
  .safe-note { grid-template-columns: 1fr; }
}
