/* BigBigAPI · 图文教程页样式
 * 浅色风格，沿用控制台主色 teal 与 Geist 字体，与 app.css 视觉统一。
 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    background: #fafafa;
    color: #1a1a1a;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 860px; margin: 0 auto; padding: 40px 24px 96px; }

/* 返回指南 */
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #6b7280; font-size: 14px; font-weight: 500;
    text-decoration: none; margin-bottom: 24px;
    padding: 6px 12px; border-radius: 8px; transition: all .15s;
}
.back-link:hover { background: #f0fdfa; color: #0d9488; text-decoration: none; }

/* 头部 */
header { border-bottom: 1px solid #e5e7eb; padding-bottom: 28px; margin-bottom: 36px; }
.eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: 2px;
    color: #0d9488; text-transform: uppercase; font-weight: 700; margin-bottom: 12px;
}
h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; color: #0f172a; }
.subtitle { color: #6b7280; font-size: 15px; }

/* 简介块 */
.intro {
    background: #fff; border: 1px solid #e5e7eb;
    border-left: 3px solid #0d9488; border-radius: 12px;
    padding: 18px 22px; margin-bottom: 36px;
}
.intro p { color: #374151; }
.intro p + p { margin-top: 6px; color: #6b7280; font-size: 14px; }
.intro a { color: #0d9488; text-decoration: none; border-bottom: 1px dashed #99f6e4; }
.intro a:hover { border-color: #0d9488; }
.intro strong { color: #0f172a; }

/* 步骤卡片 */
.step {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 26px 28px 22px; margin-bottom: 20px; transition: box-shadow .2s, border-color .2s;
}
.step:hover { border-color: #99f6e4; box-shadow: 0 8px 24px rgba(13,148,136,.08); }
.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.step-title { font-size: 17px; font-weight: 700; color: #0f172a; }
.step-desc { color: #374151; margin-bottom: 16px; font-size: 15px; }
.step-desc code {
    background: #f1f5f9; color: #be185d;
    padding: 2px 8px; border-radius: 5px; font-size: 13px;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
.step-desc .hl { color: #0d9488; font-weight: 600; }
.step-desc ul, .step-desc ol { margin: -6px 0 16px 20px; color: #4b5563; font-size: 14px; }
.step-desc ul li, .step-desc ol li { margin: 4px 0; }
.step-desc ul li strong, .step-desc ol li strong { color: #0f172a; }

/* 步骤截图 */
.step-img {
    width: 100%; border-radius: 10px; border: 1px solid #e5e7eb;
    display: block; margin-bottom: 12px;
}
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .img-row { grid-template-columns: 1fr; } }

/* 提示框 */
.alert {
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 10px; padding: 13px 18px; margin: 14px 0 18px;
    color: #92400e; font-size: 14px;
}
.alert strong { color: #b45309; }

/* 结束卡片 */
.end-card {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border: 1px solid #e0e7ff; border-radius: 14px;
    padding: 32px; text-align: center; margin-top: 44px;
}
.end-card h2 { font-size: 22px; margin-bottom: 8px; color: #0f172a; }
.end-card p { color: #6b7280; font-size: 14px; }
.end-card a {
    display: inline-block; margin-top: 16px;
    background: #0d9488; color: #fff; text-decoration: none;
    padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.end-card a:hover { background: #0f766e; }

footer {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb;
    text-align: center; color: #9ca3af; font-size: 13px;
}

@media (max-width: 600px) {
    .container { padding: 24px 16px 64px; }
    h1 { font-size: 25px; }
    .step { padding: 20px; }
}
