/* 模板场景页共用样式（中英文站点通用，无文案） */
.tpl-page { max-width: 920px; margin: 0 auto; padding: 34px 22px 56px 22px; }

.tpl-page .tpl-breadcrumb { list-style: none; padding: 0; margin: 0 0 22px 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; font-size: 14px; color: #666; white-space: nowrap; overflow: hidden; }
.tpl-page .tpl-breadcrumb li { display: inline-flex; align-items: center; flex: 0 0 auto; color: #666; font-size: 14px; line-height: 1.6; }
.tpl-page .tpl-breadcrumb a { color: #666; text-decoration: none; }
.tpl-page .tpl-breadcrumb a:hover { color: #1473e6; }

.tpl-page h1 { color: #0d0d25; font-size: 1.72rem; line-height: 1.35; margin: .3em 0 .45em 0; }
.tpl-lead { color: #444; font-size: 1.03em; line-height: 1.85; margin: 0 0 26px 0; }
.tpl-page h2 { color: #0d0d25; font-size: 1.28rem; margin: 1.7em 0 .7em 0; border-left: 4px solid #1473e6; padding-left: 12px; }
.tpl-page h3 { color: #0d0d25; font-size: 1.05rem; margin: 1.3em 0 .5em 0; }
.tpl-page p, .tpl-page li { color: #555; line-height: 1.85; font-size: .98em; }
.tpl-page ul, .tpl-page ol { padding-left: 22px; }
.tpl-page a { color: #1473e6; }

/* 截图占位：放入截图后改成 <img class="tpl-shot-img"> */
.tpl-shot { margin: 26px 0 30px 0; }
.tpl-shot-ph {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    width: 100%; aspect-ratio: 16 / 9; min-height: 220px;
    background: repeating-linear-gradient(45deg, #f7faff, #f7faff 12px, #f1f6ff 12px, #f1f6ff 24px);
    border: 1px dashed #b9cdf0; border-radius: 14px;
    color: #7b8aa3; font-size: 14px; text-align: center; padding: 16px;
}
.tpl-shot-ph code { background: #fff; border: 1px solid #dbe4f3; border-radius: 6px; padding: 2px 8px; color: #1473e6; font-size: 13px; }
.tpl-shot-img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e8eefc; box-shadow: 0 6px 24px rgba(20,115,230,.08); cursor: zoom-in; }
.tpl-shot figcaption { margin-top: 10px; color: #888; font-size: 13px; text-align: center; }

/* 双击查看原图样式统一放在 main.css */

/* 模板参数表 */
.tpl-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px 0; font-size: 14px; background: #fff; }
.tpl-table th, .tpl-table td { border: 1px solid #e8eefc; padding: 10px 12px; text-align: left; color: #555; }
.tpl-table th { background: #f7faff; color: #0d0d25; font-weight: bold; }
.tpl-table td b { color: #1473e6; }

/* 模板卡片网格 */
.tpl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 14px; margin: 18px 0 8px 0; }
.tpl-card { display: block; background: #fff; border: 1px solid #e8eefc; border-radius: 12px; padding: 18px 18px 16px 18px; text-decoration: none; transition: box-shadow .18s, transform .18s, border-color .18s; }
.tpl-card:hover { border-color: #1473e6; box-shadow: 0 8px 24px rgba(20,115,230,.12); transform: translateY(-2px); }
.tpl-card .tpl-card-title { display: block; color: #0d0d25; font-size: 1.02rem; font-weight: bold; margin-bottom: 6px; }
.tpl-card .tpl-card-desc { display: block; color: #6b7688; font-size: 13.5px; line-height: 1.7; }
.tpl-card .tpl-card-flow { display: block; margin-top: 10px; color: #1473e6; font-size: 12.5px; }

/* 步骤 */
.tpl-steps { list-style: none; padding: 0; margin: 16px 0 10px 0; counter-reset: step; }
.tpl-steps li { position: relative; padding-left: 42px; margin-bottom: 16px; }
.tpl-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
    background: #1473e6; color: #fff; font-size: 13px; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}
.tpl-steps li b { color: #0d0d25; }

/* FAQ */
.tpl-faq details { background: #fff; border: 1px solid #e8eefc; border-radius: 10px; margin-bottom: 10px; padding: 0 18px; }
.tpl-faq summary { cursor: pointer; font-weight: bold; color: #0d0d25; padding: 14px 0; font-size: .98em; outline: none; }
.tpl-faq details[open] summary { color: #1473e6; }
.tpl-faq details p { margin: 0 0 14px 0; }

/* 下载引导 */
.tpl-cta { background: linear-gradient(135deg, #eaf4ff, #f6f0ff); border: 1px solid #d6e6ff; border-radius: 14px; text-align: center; padding: 28px 20px; margin: 36px 0 12px 0; }
.tpl-cta h2 { border: none; padding: 0; margin: 0 0 .45em 0; font-size: 1.24rem; color: #0d0d25; }
.tpl-cta p { margin: 0 0 16px 0; }
.tpl-cta .tpl-btn { display: inline-block; background: #1473e6; color: #fff; padding: 12px 30px; border-radius: 10px; font-weight: bold; text-decoration: none; font-size: 15px; }
.tpl-cta .tpl-btn:hover { background: #0d5cd0; }
.tpl-cta .tpl-cta-note { margin: 12px 0 0 0; font-size: 12.5px; color: #7b8aa3; }

/* 相关模板 */
.tpl-related { margin-top: 34px; }
.tpl-related ul { list-style: none; padding: 0; columns: 2; column-gap: 26px; }
.tpl-related li { margin-bottom: 8px; break-inside: avoid; }

@media screen and (max-width: 600px) {
    .tpl-page h1 { font-size: 1.34rem; }
    .tpl-page h2 { font-size: 1.15rem; }
    .tpl-related ul { columns: 1; }
    .tpl-table { font-size: 13px; }
    .tpl-table th, .tpl-table td { padding: 8px; }
}
