/* ============================================================
   视觉规范来源：index/app.css（SSLBot 新手引导设计稿）
   墨绿 #0B3C49 / 橙 #FF9F1C / 薄荷底 #E8F5F1
   要调整整体观感，改这里的变量即可。
   ============================================================ */
:root {
  --ink: #0B3C49;
  --ink-deep: #072c36;
  --ink-soft: #3f6470;
  --amber: #FF9F1C;
  --amber-deep: #e88a00;
  --mint: #E8F5F1;
  --mint-line: #cfe6df;
  --mint-deep: #d3ebe3;
  --green: #1a9a57;
  --radius: 20px;
  --shadow: 0 14px 36px rgba(11, 60, 73, .09);

  /* 兼容别名：编辑器沿用的旧变量名，统一映射到新配色 */
  --bg: var(--mint);
  --card: #ffffff;
  --text: var(--ink);
  --muted: var(--ink-soft);
  --border: var(--mint-line);
  --brand: var(--amber);
  --brand-dark: var(--amber-deep);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--ink);
  background: var(--mint);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 页面底 ---------- */
.page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 85% -5%, rgba(255, 159, 28, .12), transparent 70%),
    radial-gradient(700px 400px at 0% 10%, rgba(255, 255, 255, .8), transparent 70%),
    var(--mint);
  padding: 26px 20px 56px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- 顶栏 ---------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4px;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.quick-link {
  background: none;
  border: 0;
  color: var(--amber-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color .15s;
}
.quick-link:hover { color: var(--ink); }

/* ---------- 进度卡 ---------- */
.stepper {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px 22px 18px;
  margin-bottom: 16px;
}

.stepper-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stepper-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .2px;
}

.stepper-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.stepper-track {
  position: relative;
  height: 6px;
  background: var(--mint-line);
  border-radius: 6px;
}

.stepper-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: var(--amber);
  border-radius: 6px;
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

.stepper-fill::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, .22);
}

/* ---------- 主卡片 ---------- */
.panel {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-body {
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 48px) clamp(20px, 3vw, 32px);
}

/* 切换动效：前进从右滑入，返回来自左侧 */
.panel-body.fwd { animation: inFwd .42s ease both; }
.panel-body.back { animation: inBack .42s ease both; }

@keyframes inFwd {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes inBack {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: none; }
}

.panel-num {
  display: block;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  font-weight: 800;
  color: var(--mint-deep);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: clamp(21px, 3.2vw, 28px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ---------- 正文 ---------- */
.body { font-size: 15.5px; color: var(--ink-soft); }

.body p { margin: 0 0 14px; }
.body p:last-child { margin-bottom: 0; }

.body ul,
.body ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.body ul li,
.body ol li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.body ol { counter-reset: n; }
.body ol li { counter-increment: n; }
.body ol li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: .18em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.body b,
.body strong { font-weight: 800; color: var(--ink); }

.body a {
  color: var(--amber-deep);
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 159, 28, .35);
  padding-bottom: 1px;
}
.body a:hover { border-bottom-color: var(--amber); }

.body code {
  background: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 提示块 ---------- */
.note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}

.note-info {
  background: var(--mint);
  color: var(--ink);
  border: 1px solid var(--mint-line);
}

.note-warn {
  background: #fff1d9;
  color: #8a5a00;
}

.note-success {
  background: #e3f6ec;
  color: #147a45;
}

/* ---------- 代码块 ---------- */
.codebox {
  margin: 18px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-deep);
  box-shadow: 0 10px 24px rgba(11, 60, 73, .18);
}

.codebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .05);
  color: rgba(232, 245, 241, .55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.copybtn {
  border: 1px solid rgba(232, 245, 241, .25);
  background: none;
  color: rgba(232, 245, 241, .75);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 8px;
  letter-spacing: 0;
  text-transform: none;
  transition: background .15s, color .15s, border-color .15s;
}
.copybtn:hover {
  background: rgba(255, 159, 28, .16);
  border-color: rgba(255, 159, 28, .5);
  color: var(--amber);
}

.codebox pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.codebox code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mint);
  white-space: pre;
  font-weight: 400;
  /* 抵消 .body code 的行内代码样式，避免代码块内出现白底圆角 */
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

/* ---------- 图片 ---------- */
.figure { margin: 18px 0 0; }

.figure img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--mint-line);
}

.figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 底部导航 ---------- */
.panel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(22px, 4vw, 48px) 20px;
  border-top: 1px solid var(--mint-line);
  background: #fbfefd;
  flex-wrap: wrap;
}

.count {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13.5px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 11px 26px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s;
}

.btn:hover:not(:disabled) { transform: translateY(-2px); }

.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  opacity: .72;
  margin-top: 2px;
  white-space: normal;
}

.btn.has-desc { align-items: flex-start; text-align: left; }

.btn-amber {
  background: var(--amber);
  color: var(--ink-deep);
  box-shadow: 0 6px 18px rgba(255, 159, 28, .38);
}
.btn-amber:hover:not(:disabled) { background: #ffad3a; }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}
.btn-outline:hover:not(:disabled) {
  background: var(--ink);
  color: var(--mint);
}

.btn-plain {
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 10px 4px;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
}
.btn-plain:hover { color: var(--ink); transform: none; }

/* ---------- 页脚 ---------- */
.page-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.page-foot a {
  color: var(--amber-deep);
  font-weight: 800;
  border-bottom: 2px solid rgba(255, 159, 28, .35);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.page-foot a:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* ---------- 移动端 ---------- */
@media (max-width: 600px) {
  .page { padding: 18px 14px 44px; }
  .logo img { height: 28px; }
  .stepper { padding: 14px 18px 16px; border-radius: 18px; }
  .panel { border-radius: 22px; }
  .panel-nav { padding: 16px 20px 18px; }
  .count { display: none; }
  .actions { width: 100%; margin-left: 0; }
  .actions .btn { flex: 1; padding-left: 14px; padding-right: 14px; }
  .btn-plain { flex: none !important; }
}
