/* =========================================================
   tutorial.css — Telegram 注册教程页（tg-tutorial.html）

   只用 design.md 里的色板 / 字号 / 间距 / 圆角；
   卡片壳直接复用全局的 .ig-card / .ig-title / .ig-row / .ig-body，
   这里只补这个页面自己的布局（标题、两栏、阅读态排版、CTA）。
   ========================================================= */

/* ===== 顶栏：和详情页同一套不透明 fixed 顶栏（这页没有搜索框） ===== */
body.tut-page > .header {
    background: rgba(22, 22, 29, 0.95);
    border-bottom-color: rgba(42, 42, 58, 0.8);
    backdrop-filter: blur(8px);
    padding: 12px 0;
}
body.tut-page .container { max-width: 1400px; }
body.tut-page .logo img { height: 36px; }
body.tut-page .logo-text { font-size: 16px; margin-left: 8px; }
body.tut-page .footer { margin-left: 0; }

/* ===== 页面骨架 ===== */
.tutorial-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    /* 顶栏是 fixed 的，真实高度由页面底部脚本量出来写进 --header-h */
    padding: calc(var(--header-h, 93px) + 26px) var(--content-pad) 64px;
}

/* ===== 标题区 ===== */
.tut-head { margin-bottom: 24px; }
.tut-head h1 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}
.tut-lead {
    max-width: 820px;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #98a2b3;
}

/* ===== 两栏：正文步骤 + 右侧置顶卡（和详情页同一档 1fr/340px） ===== */
.tut-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0 32px;
    align-items: start;
}
.tut-main { min-width: 0; }
.tut-side {
    width: 340px;
    position: sticky;
    top: 80px;
}

/* ===== 正文里的步骤卡：复用 .ig-card，只把阅读态的字号 / 内边距放大一点 ===== */
.tut-main .ig-card { margin-bottom: 16px; }
/* 全局的 .ig-body 是给「提示 / 更新说明」准备的多行文本（white-space: pre-line），
   这里是有段落和列表的教程正文，必须恢复正常换行，否则源码里的缩进换行会被当成空行。 */
.tut-page .ig-body { white-space: normal; }
.tut-main .ig-title { height: 40px; font-size: 13px; }
.tut-main .ig-body {
    padding: 14px 16px;
    font-size: 13.5px;
    line-height: 1.8;
}
.tut-main .ig-body p + p,
.tut-main .ig-body p + ul,
.tut-main .ig-body p + ol,
.tut-main .ig-body ul + p,
.tut-main .ig-body ol + p { margin-top: 10px; }
.tut-main .ig-body ul,
.tut-main .ig-body ol { margin: 8px 0 0; padding-left: 20px; }
.tut-main .ig-body li { margin-top: 4px; }
.tut-main .ig-body strong { color: #fff; font-weight: 600; }
.tut-main .ig-body a { color: #4fc3f7; }

/* 步骤号：在表头里用主色，比图标更省位置 */
.tut-step-no {
    color: #4fc3f7;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 2px;
}

/* 提示条：步骤正文里的补充说明 */
.tut-note {
    margin-top: 12px;
    padding: 11px 14px;
    border-left: 2px solid #4fc3f7;
    border-radius: 6px;
    background: rgba(79, 195, 247, 0.07);
    color: #b6c0d0;
    font-size: 12.5px;
    line-height: 1.7;
}

/* FAQ：一问一段，问题行加白加粗 */
.tut-faq .ig-body p { color: #ccd4e0; }
.tut-faq .ig-body strong { color: #fff; }

/* ===== 右栏 ===== */
.tut-side .btn-primary { width: 100%; margin-bottom: 12px; }
.tut-side .ig-body p + p { margin-top: 8px; }
.tut-side .ig-card { margin-bottom: 12px; }

/* ===== 平板 / 手机 ===== */
@media (max-width: 1200px) {
    .tut-cols { grid-template-columns: minmax(0, 1fr); gap: 20px 0; }
    .tut-side { width: auto; position: static; }
}

@media (max-width: 768px) {
    body.tut-page > .header { padding: 8px 0; }
    body.tut-page .logo img { height: 28px; }
    .tutorial-page {
        padding: calc(var(--header-h, 56px) + 18px) var(--content-pad) 48px;
    }
    .tut-head { margin-bottom: 18px; }
    .tut-head h1 { font-size: 20px; }
    .tut-lead { margin-top: 8px; font-size: 13.5px; line-height: 1.7; }
    .tut-main .ig-card { margin-bottom: 12px; }
    .tut-main .ig-title { height: 40px; font-size: 13px; }
    .tut-main .ig-body { padding: 12px 14px; font-size: 13px; line-height: 1.75; }
}

@media (max-width: 480px) {
    body.tut-page > .header { padding: 6px 0; }
    body.tut-page .logo img { height: 22px; }
    .tut-head h1 { font-size: 18px; }
}
