/* 修改这里的颜色变量即可换色。所有选择器均限定在本示例中。 */
.custom-page-example {
  --example-accent: #b4a1ff;
  --example-surface: #141b2b;
  --example-text: #f2f4fc;
  --example-muted: #b0bcd3;
  color: var(--example-text);
  max-width: 1160px;
  margin: 0 auto;
  line-height: 1.75;
}
.custom-page-example * { box-sizing: border-box; }
.custom-page-example p { margin: 0; }
.custom-page-example a { text-decoration: none; }
.custom-page-example h1, .custom-page-example h2, .custom-page-example h3 { color: var(--example-text); margin: 0; line-height: 1.3; }
.custom-page-example .example-hero { padding: clamp(28px, 5vw, 64px); border: 1px solid #3b3759; border-radius: 24px; background: radial-gradient(ellipse at 100% 100%, #343054 0, transparent 60%), #171d30; position: relative; overflow: hidden; }
.custom-page-example .example-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--example-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.custom-page-example .example-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--example-accent); }
.custom-page-example h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.04em; margin: 22px 0; max-width: 700px; position: relative; z-index: 1; }
.custom-page-example h1 em { color: var(--example-accent); font-style: normal; }
.custom-page-example .example-lead { font-size: 16px; color: var(--example-muted); max-width: 580px; position: relative; z-index: 1; }
.custom-page-example .example-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.custom-page-example .example-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 13px 20px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.custom-page-example .example-primary { background: var(--example-accent); color: #14162c; }
.custom-page-example .example-primary:hover { filter: brightness(1.08); }
.custom-page-example .example-secondary { background: transparent; color: var(--example-text); border-color: #56617a; }
.custom-page-example .example-text-link { color: var(--example-accent); font-size: 14px; }
.custom-page-example :focus-visible { outline: 3px solid var(--example-accent); outline-offset: 5px; }
.custom-page-example .example-note { margin-top: 24px; max-width: 580px; color: var(--example-muted); font-size: 12px; }
.custom-page-example .example-orb { position: absolute; right: 38px; top: 55px; font: 700 112px/1 ui-monospace, monospace; color: #b4a1ff; opacity: .12; transform: rotate(-12deg); pointer-events: none; }
.custom-page-example .example-section { margin-top: 48px; scroll-margin-top: 100px; }
.custom-page-example h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.custom-page-example .example-section-heading { margin-bottom: 24px; }
.custom-page-example .example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.custom-page-example .example-card { padding: 26px; border: 1px solid #343e55; background: var(--example-surface); border-radius: 16px; }
.custom-page-example .example-number { font: 12px/1.5 ui-monospace, monospace; color: var(--example-accent); }
.custom-page-example h3 { font-size: 21px; margin: 22px 0 12px; }
.custom-page-example .example-card p { color: var(--example-muted); font-size: 14px; }
.custom-page-example .example-pill { display: inline-block; border: 1px solid #42465e; border-radius: 6px; padding: 4px 9px; margin-top: 24px; font-size: 11px; color: var(--example-accent); }
.custom-page-example .example-playground { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 32px; padding: 32px; background: var(--example-surface); border: 1px solid #343e55; border-radius: 16px; scroll-margin-top: 100px; }
.custom-page-example .example-playground > div > p:not(.example-eyebrow) { color: var(--example-muted); font-size: 14px; margin-top: 16px; }
.custom-page-example .example-controls { border-left: 1px solid #343e55; padding-left: 32px; }
.custom-page-example .example-counter { display: flex; gap: 12px; align-items: baseline; }
.custom-page-example .example-counter span:first-child { font: 700 56px/1 ui-monospace, monospace; color: var(--example-accent); }
.custom-page-example .example-message { min-height: 2em; color: var(--example-muted); font-size: 12px; }
.custom-page-example .example-steps { list-style: none; counter-reset: steps; padding: 0; margin: 0 0 24px; }
.custom-page-example .example-steps li { counter-increment: steps; display: grid; grid-template-columns: 36px 180px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid #343e55; font-size: 14px; }
.custom-page-example .example-steps li::before { content: '0' counter(steps); color: var(--example-accent); font-family: ui-monospace, monospace; }
.custom-page-example .example-steps li > span { color: var(--example-muted); }
.custom-page-example .example-faq { padding: 20px 0; border-bottom: 1px solid #343e55; }
.custom-page-example .example-faq summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.custom-page-example .example-faq p { margin-top: 14px; color: var(--example-muted); font-size: 14px; }
.custom-page-example .example-back { display: inline-block; margin: 26px 0 12px; }
/* 手机布局：三列卡片改为一列，交互区改为上下排列。 */
@media (max-width: 760px) {
  .custom-page-example .example-grid { grid-template-columns: 1fr; }
  .custom-page-example .example-playground { grid-template-columns: 1fr; padding: 24px; }
  .custom-page-example .example-controls { border-left: 0; border-top: 1px solid #343e55; padding: 22px 0 0; }
  .custom-page-example .example-steps li { grid-template-columns: 28px 1fr; gap: 10px; }
  .custom-page-example .example-steps li > span { grid-column: 2; }
  .custom-page-example .example-orb { right: 18px; top: 70px; font-size: 80px; }
}