﻿/* ==========================================================================
   /free-token/ 会员福利「无限 Token API」教程页（2026-10-19）
   骨架复用 doc.css + pages.css，这里只放本页独有的块：
   步骤条（编号 + 说明）、可复制的三行、提示框、模型表、底部按钮。
   令牌只消费不定义，全部带兜底值（理由见 site-nav.css 顶部注释）。
   ========================================================================== */

/* ---------- 领取入口 ---------- */
.dreamgift-getbox {
  margin: 16px 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-soft);
  overflow: hidden;
}
.dreamgift-getstep {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  line-height: 1.8;
}
.dreamgift-getstep + .dreamgift-getstep {
  border-top: 1px solid var(--hairline);
}
.dreamgift-getn {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-deep, #a0573b);
  border: 1px solid var(--primary-deep, #a0573b);
}

/* 遮罩值：真名不印在页面上，只提示「去 App 点复制」 */
.dreamgift-mask {
  color: var(--muted);
  font-style: normal;
}

/* ---------- 页头 ---------- */
.dreamgift-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
}
.dreamgift-leadnote {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 步骤条 ---------- */
.dreamgift-step {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.dreamgift-step:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.dreamgift-step-n {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-deep, #a0573b);
  border: 1px solid var(--primary-deep, #a0573b);
  background: var(--surface-soft);
}
.dreamgift-step-body {
  min-width: 0;
  flex: 1;
}
.dreamgift-step-body h3 {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.dreamgift-step-body p {
  margin: 8px 0;
  line-height: 1.8;
}

/* ---------- 可复制的三行 ---------- */
.dreamgift-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface-soft);
}
.dreamgift-copy-k {
  flex: none;
  width: 72px;
  font-size: 13px;
  color: var(--muted);
}
.dreamgift-copy code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
}

/* ---------- 提示框 ---------- */
.dreamgift-callout {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--primary-deep, #a0573b);
  border-radius: 10px;
  background: var(--surface-soft);
}
.dreamgift-callout.warn {
  border-left-color: #b4693f;
}
.dreamgift-callout-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.dreamgift-callout p {
  margin: 8px 0 0;
  line-height: 1.8;
}
.dreamgift-callout p:first-of-type {
  margin-top: 0;
}
.dreamgift-callout ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.9;
}
.dreamgift-callout li + li {
  margin-top: 2px;
}

/* ---------- 模型表 ---------- */
.dreamgift-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.dreamgift-table th,
.dreamgift-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.dreamgift-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.dreamgift-table code {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ---------- 底部 ---------- */
.dreamgift-backrow {
  margin: 40px 0 0;
  text-align: center;
}
.dreamgift-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .dreamgift-step {
    gap: 12px;
  }
  .dreamgift-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .dreamgift-copy-k {
    width: auto;
  }
  .dreamgift-table {
    font-size: 13px;
  }
  .dreamgift-table th,
  .dreamgift-table td {
    padding: 8px 6px;
  }
}
