/* ============================================================
   星芽计划 · 使用教程模块样式
   ------------------------------------------------------------
   2026-10-11 新增。依赖 css/xhs-design.css 的设计令牌
   （--xhs-* / --r-* / --shadow-* / --top-h），不覆盖任何全站样式。
   ============================================================ */

.tut-page{max-width:980px;margin:0 auto;padding:calc(var(--top-h) + 32px) 20px 72px}

/* ---------- 总览页 ---------- */
.tut-hero{padding:4px 0 30px}
.tut-eyebrow{margin:0 0 10px;font-size:12px;font-weight:600;letter-spacing:.14em;color:var(--xhs-red);text-transform:uppercase}
.tut-hero h1{margin:0 0 12px;font-size:32px;line-height:1.25;color:var(--xhs-ink)}
.tut-hero p{margin:0;max-width:660px;font-size:15px;line-height:1.8;color:var(--xhs-text-2)}

.tut-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:16px}
.tut-card{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid var(--xhs-line);border-radius:var(--r-lg);background:var(--xhs-surface);box-shadow:var(--shadow-xs);text-decoration:none;color:inherit;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.tut-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:rgba(255,36,66,.28)}
.tut-card-no{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--r-sm);background:var(--xhs-red-soft);color:var(--xhs-red);font-family:var(--font-num);font-size:14px;font-weight:700}
.tut-card h2{margin:0;font-size:17px;line-height:1.4;color:var(--xhs-ink)}
.tut-card p{margin:0;flex:1;font-size:13px;line-height:1.7;color:var(--xhs-text-2)}
.tut-card-go{font-size:13px;font-weight:600;color:var(--xhs-red)}

/* ---------- 章节页 ---------- */
.tut-crumb{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:13px;color:var(--xhs-gray)}
.tut-crumb a{color:var(--xhs-gray);text-decoration:none;transition:color .16s}
.tut-crumb a:hover{color:var(--xhs-red)}
.tut-head h1{margin:0 0 10px;font-size:28px;line-height:1.3;color:var(--xhs-ink)}
.tut-head p{margin:0 0 24px;font-size:15px;line-height:1.8;color:var(--xhs-text-2)}

.tut-player{border-radius:var(--r-lg);overflow:hidden;background:#101014;box-shadow:var(--shadow-sm)}
.tut-player video{display:block;width:100%;height:auto;max-height:70vh;background:#101014}
.tut-fallback{margin:10px 0 0;font-size:12.5px;line-height:1.6;color:var(--xhs-gray)}
.tut-fallback a{color:var(--xhs-red);font-weight:600;text-decoration:none}
.tut-fallback a:hover{text-decoration:underline}

.tut-section{margin-top:38px}
.tut-section>h2{margin:0 0 6px;font-size:19px;color:var(--xhs-ink)}
.tut-section>small{display:block;margin-bottom:18px;font-size:13px;color:var(--xhs-gray)}

.tut-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:16px;counter-reset:tut-step}
.tut-step{position:relative;padding:20px 22px 20px 68px;border:1px solid var(--xhs-line);border-radius:var(--r-md);background:var(--xhs-surface);box-shadow:var(--shadow-xs)}
.tut-step::before{counter-increment:tut-step;content:counter(tut-step,decimal-leading-zero);position:absolute;left:22px;top:20px;font-family:var(--font-num);font-size:13px;font-weight:700;color:var(--xhs-red)}
.tut-step h3{margin:0 0 8px;font-size:15px;line-height:1.5;color:var(--xhs-ink)}
.tut-step p{margin:0;font-size:14px;line-height:1.85;color:var(--xhs-text-2);white-space:pre-line}
.tut-step img{display:block;width:100%;height:auto;margin:14px 0 0;border:1px solid var(--xhs-line);border-radius:var(--r-sm)}

.tut-empty{padding:32px 24px;border:1px dashed var(--xhs-line);border-radius:var(--r-md);background:var(--xhs-canvas);text-align:center}
.tut-empty b{display:block;margin-bottom:6px;font-size:14px;color:var(--xhs-text-2)}
.tut-empty span{font-size:13px;line-height:1.7;color:var(--xhs-gray)}

.tut-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:38px}
.tut-cta{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 26px;border-radius:var(--r-full);background:var(--xhs-red-grad);color:#fff;font-size:14px;font-weight:600;text-decoration:none;box-shadow:var(--shadow-red);transition:opacity .18s,transform .18s}
.tut-cta:hover{opacity:.92;transform:translateY(-1px)}
.tut-ghost{display:inline-flex;align-items:center;height:46px;padding:0 22px;border:1px solid var(--xhs-line);border-radius:var(--r-full);color:var(--xhs-text-2);font-size:14px;font-weight:600;text-decoration:none;transition:.18s}
.tut-ghost:hover{border-color:var(--xhs-red);color:var(--xhs-red);background:var(--xhs-red-soft)}

.tut-pager{display:flex;gap:12px;margin-top:40px;padding-top:24px;border-top:1px solid var(--xhs-line)}
.tut-pager a{flex:1 1 0;min-width:0;padding:16px 18px;border:1px solid var(--xhs-line);border-radius:var(--r-md);background:var(--xhs-surface);text-decoration:none;transition:.18s}
.tut-pager a:hover{border-color:rgba(255,36,66,.3);box-shadow:var(--shadow-sm)}
.tut-pager a.tut-pager-next{margin-left:auto;text-align:right}
.tut-pager small{display:block;margin-bottom:4px;font-size:12px;color:var(--xhs-gray)}
.tut-pager b{display:block;font-size:14px;color:var(--xhs-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.tut-notice{max-width:560px;margin:56px auto;padding:38px 28px;border:1px solid var(--xhs-line);border-radius:var(--r-lg);background:var(--xhs-surface);box-shadow:var(--shadow-sm);text-align:center}
.tut-notice h1{margin:0 0 10px;font-size:20px;color:var(--xhs-ink)}
.tut-notice p{margin:0 0 22px;font-size:14px;line-height:1.8;color:var(--xhs-text-2)}

@media(max-width:640px){
  .tut-hero h1{font-size:25px}
  .tut-head h1{font-size:22px}
  .tut-step{padding:18px 18px 18px 56px}
  .tut-step::before{left:18px;top:18px}
  .tut-pager{flex-direction:column}
  .tut-pager a.tut-pager-next{margin-left:0;text-align:left}
}
