/**
 * 站点模板引擎 · 结构样式
 * 颜色变量（--tb 品牌 / --ta 强调 / --tbg / --tink / --tink2 / --tline / --tsoft / --tcard）
 * 由 static/css/site-templates/tpl-XXX.css 按模板注入。
 */
.tpl-body {
    --tcard: #fff;
    margin: 0;
    color: var(--tink, #1c2420);
    background: var(--tbg, #f5f7f6);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}
.tpl-body a { color: var(--ta, #0f766e); text-decoration: none; }
.tpl-body a:hover { text-decoration: underline; }
.tpl-body img { max-width: 100%; }

/* ---------- 容器 ---------- */
.t-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.w-narrow { max-width: 860px; }

/* ---------- 导航骨架 ---------- */
.t-head { background: var(--thead, var(--tb, #123c33)); color: var(--thead-ink, #fff); }
.t-head a { color: inherit; }
.t-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.t-head-row--col { flex-direction: column; gap: 10px; }
.t-brand { display: flex; align-items: baseline; gap: 10px; }
.t-brand > a { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.t-tagline { font-size: 13px; opacity: .8; }
.t-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.t-nav a { font-size: 14px; padding: 6px 12px; border-radius: 6px; opacity: .92; }
.t-nav a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; opacity: 1; }
.t-head--center .t-head-row { flex-direction: column; }
.t-head--center .t-nav { justify-content: center; }
.t-head--center .t-brand { flex-direction: column; align-items: center; gap: 4px; }
.t-head--minimal .t-head { background: transparent; color: var(--tink); }
.t-head--minimal .t-head-row { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--tline); }
.t-head--minimal .t-nav a { opacity: .75; }
.t-head--minimal .t-nav a:hover { background: var(--tsoft); }
.t-head--search .t-head-row { flex-wrap: wrap; }
.t-quick { display: flex; gap: 8px; }
.t-quick a { font-size: 13px; border: 1px solid rgba(255, 255, 255, .4); padding: 4px 10px; border-radius: 999px; }
.t-head--sticky { position: sticky; top: 0; z-index: 30; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .4); }
.t-head--masthead .t-head-row--col { padding-top: 22px; padding-bottom: 18px; }
.t-head--masthead .t-brand { flex-direction: column; align-items: center; gap: 6px; }
.t-head--masthead .t-brand > a { font-size: 30px; }
.t-head--masthead .t-nav { justify-content: center; }
.t-head--masthead .t-nav a { border-bottom: 2px solid transparent; border-radius: 0; }
.t-head--masthead .t-nav a:hover { background: transparent; border-bottom-color: currentColor; }
.t-topbar { background: rgba(0, 0, 0, .18); font-size: 13px; }
.t-topbar .t-container { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.t-head-lead { text-align: center; padding-bottom: 18px; opacity: .85; font-size: 14px; }

/* ---------- 侧边导航骨架 ---------- */
.t-shell--side { display: flex; min-height: 100vh; align-items: stretch; }
.t-side { width: 230px; flex: none; background: var(--tside, var(--tb, #123c33)); color: var(--thead-ink, #fff); padding: 26px 18px; display: flex; flex-direction: column; gap: 22px; }
.t-side a { color: inherit; }
.t-side-brand a { font-size: 20px; font-weight: 800; display: block; }
.t-side-brand span { font-size: 12px; opacity: .75; display: block; margin-top: 4px; }
.t-side-nav { display: flex; flex-direction: column; gap: 2px; }
.t-side-nav a { padding: 9px 12px; border-radius: 8px; font-size: 14px; opacity: .9; }
.t-side-nav a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; opacity: 1; }
.t-side-foot { margin-top: auto; font-size: 13px; display: flex; flex-direction: column; gap: 8px; opacity: .85; }
.t-side-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.t-side-main .t-container { flex: 1; width: 100%; padding-top: 26px; padding-bottom: 26px; }

/* ---------- Hero ---------- */
.t-hero { margin-top: 26px; }
.t-hero--banner { background: var(--thero, linear-gradient(135deg, var(--tb, #123c33), var(--ta, #1d8a74))); color: var(--thero-ink, #fff); border-radius: 16px; padding: 46px 36px; }
.t-hero--banner h1 { margin: 0 0 10px; font-size: 26px; }
.t-hero--banner p { margin: 0 0 18px; opacity: .9; max-width: 760px; }
.t-hero--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch; }
.t-hero--split h1 { font-size: 25px; margin: 0 0 10px; color: var(--tink); }
.t-hero--split p { color: var(--tink2); margin: 0 0 16px; }
.t-hero-text { background: var(--tcard); border: 1px solid var(--tline); border-radius: 14px; padding: 30px 28px; }
.t-hero-aside { background: var(--tsoft); border-radius: 14px; padding: 24px 22px; }
.t-hero-aside h3 { margin: 8px 0 6px; font-size: 16px; }
.t-hero-aside p { color: var(--tink2); font-size: 14px; margin: 0; }
.t-hero--strip { border-bottom: 1px solid var(--tline); padding: 30px 0 18px; text-align: center; }
.t-hero--strip h1 { font-size: 24px; margin: 0 0 8px; color: var(--tink); }
.t-hero--strip p { margin: 0; color: var(--tink2); }
.t-hero-act { display: flex; gap: 12px; flex-wrap: wrap; }
.t-btn { display: inline-block; background: var(--ta); color: #fff; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.t-btn:hover { text-decoration: none; filter: brightness(1.08); }
.t-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .55); }
.t-hero--split .t-btn--ghost { display: none; }

/* ---------- 区块与标题 ---------- */
.t-sec { margin: 34px 0; }
.t-sec--plain { background: var(--tsoft); border-radius: 14px; padding: 24px 26px; }
.t-sec-title { font-size: 20px; margin: 0 0 16px; color: var(--tink); position: relative; padding-left: 14px; }
.t-sec-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--ta); }

/* ---------- 网格与卡片 ---------- */
.t-grid { display: grid; gap: 16px; }
.t-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.t-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.t-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.t-card { background: var(--tcard); border: 1px solid var(--tline); border-radius: 12px; padding: 18px 20px; }
.t-card h3 { margin: 4px 0 8px; font-size: 15.5px; }
.t-card h3 a { color: var(--tink); }
.t-card h3 a:hover { color: var(--ta); text-decoration: none; }
.t-card p { margin: 0; color: var(--tink2); font-size: 13.5px; }
.t-card-list { margin: 0; padding-left: 18px; color: var(--tink2); font-size: 14px; }
.t-card-list li { margin: 6px 0; }
.t-card--mini { padding: 14px 16px; }
.t-card--mini h3 { margin: 0; font-size: 14.5px; }
.t-card--svc h3 { color: var(--ta); }
.t-more { font-size: 13.5px; font-weight: 600; }
.t-date { display: inline-block; font-size: 12px; color: var(--tink2); margin-bottom: 6px; }
.t-chip { display: inline-block; background: var(--tsoft); color: var(--ta); font-size: 12.5px; padding: 3px 12px; border-radius: 999px; margin: 2px 4px 2px 0; }
a.t-chip--link:hover { text-decoration: none; filter: brightness(.96); }
.t-chips { line-height: 2; }
.t-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tsoft); color: var(--ta); font-size: 16px; margin-right: 10px; flex: none; }

/* ---------- 行列表 / 表格 / 时间轴 ---------- */
.t-rows { list-style: none; margin: 0; padding: 0; }
.t-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 4px; border-bottom: 1px dashed var(--tline); font-size: 14.5px; }
.t-row time { color: var(--tink2); font-size: 13px; flex: none; }
.t-table { width: 100%; border-collapse: collapse; background: var(--tcard); border: 1px solid var(--tline); border-radius: 12px; overflow: hidden; font-size: 14px; }
.t-table th, .t-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--tline); }
.t-table th { background: var(--tsoft); color: var(--tink); font-size: 13px; }
.t-timeline { list-style: none; margin: 0; padding: 0; }
.t-tl-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--tline); }
.t-tl-item > time { flex: none; color: var(--ta); font-size: 13px; font-family: Consolas, monospace; padding-top: 3px; }
.t-tl-body h3 { margin: 0 0 4px; font-size: 15.5px; }
.t-tl-body p { margin: 0; color: var(--tink2); font-size: 13.5px; }
.t-two-col { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.t-blog-side { background: var(--tcard); border: 1px solid var(--tline); border-radius: 12px; padding: 18px; }
.t-side-title { font-size: 16px; margin: 0 0 12px; }
.t-side-topic { margin-bottom: 16px; }
.t-side-topic h4 { margin: 0 0 6px; font-size: 14px; color: var(--ta); }
.t-side-topic ul { margin: 0; padding-left: 16px; font-size: 13.5px; color: var(--tink2); }
.t-side-topic li { margin: 5px 0; }

/* ---------- 资讯 / 问答 / 文档 / 产品 / 视频 ---------- */
.t-headline { background: var(--tcard); border: 1px solid var(--tline); border-left: 4px solid var(--ta); border-radius: 12px; padding: 22px 24px; }
.t-headline h3 { margin: 0 0 8px; font-size: 20px; }
.t-headline p { color: var(--tink2); margin: 6px 0 0; }
.t-meta { display: flex; gap: 14px; color: var(--tink2); font-size: 13px; margin: 6px 0 10px; }
.t-news-list { list-style: none; margin: 0; padding: 0; }
.t-news-list li { display: grid; grid-template-columns: 92px 1fr; gap: 4px 14px; padding: 13px 4px; border-bottom: 1px dashed var(--tline); }
.t-news-list li p { grid-column: 2; margin: 0; color: var(--tink2); font-size: 13px; }
.t-badge { background: var(--tsoft); color: var(--ta); border-radius: 6px; font-size: 12.5px; padding: 3px 8px; text-align: center; }
.t-qa-list { display: grid; gap: 14px; }
.t-qa { background: var(--tcard); border: 1px solid var(--tline); border-radius: 12px; padding: 18px 20px; }
.t-qa h3 { margin: 0 0 10px; font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.t-qa p { margin: 0; color: var(--tink2); font-size: 14px; display: flex; gap: 10px; }
.t-qa-q { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ta); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.t-qa-a { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--tsoft); color: var(--ta); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.t-doc { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.t-doc-chapter { background: var(--tcard); border: 1px solid var(--tline); border-radius: 12px; padding: 16px 18px; }
.t-doc-chapter h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15.5px; }
.t-doc-chapter h3 i { font-style: normal; background: var(--ta); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: 12.5px; }
.t-doc-chapter ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--tink2); }
.t-doc-chapter li { margin: 6px 0; }
.t-product-featured { display: grid; grid-template-columns: 280px 1fr; gap: 22px; background: var(--tcard); border: 1px solid var(--tline); border-radius: 14px; padding: 24px; }
.t-product-visual { background: var(--thero, linear-gradient(135deg, var(--tb, #123c33), var(--ta, #1d8a74))); border-radius: 12px; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.t-product-visual span { font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .85); }
.t-product-info h3 { margin: 0 0 10px; font-size: 20px; }
.t-product-info p { color: var(--tink2); margin: 0 0 16px; }
.t-card--video { padding: 0; overflow: hidden; }
.t-card--video h3, .t-card--video .t-meta { margin: 10px 16px; }
.t-video-cover { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; background: var(--thero, linear-gradient(135deg, var(--tb, #123c33), var(--ta, #1d8a74))); }
.t-video-cover:hover { text-decoration: none; }
.t-play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 4px; }
.t-duration { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; font-weight: 400; }
.t-player { background: var(--thero, linear-gradient(135deg, var(--tb, #123c33), var(--ta, #1d8a74))); border-radius: 14px; height: 300px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.t-player span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; padding-left: 6px; }

/* ---------- FAQ / 关于 ---------- */
.t-faq { margin: 0; display: grid; gap: 12px; }
.t-faq-item { background: var(--tcard); border: 1px solid var(--tline); border-radius: 12px; padding: 14px 18px; }
.t-faq-item dt { font-weight: 700; color: var(--tink); margin-bottom: 6px; }
.t-faq-item dt::before { content: "Q"; display: inline-block; background: var(--ta); color: #fff; border-radius: 5px; font-size: 12px; padding: 0 7px; margin-right: 8px; }
.t-faq-item dd { margin: 0; color: var(--tink2); font-size: 14px; }
.t-about h2 { margin: 0 0 10px; font-size: 18px; }
.t-about p { margin: 0 0 14px; color: var(--tink2); max-width: 800px; }
.t-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.t-steps { display: flex; gap: 22px; flex-wrap: wrap; }
.t-steps div { display: flex; align-items: center; gap: 8px; }
.t-steps b { color: var(--ta); font-size: 18px; }
.t-steps span { font-size: 14px; color: var(--tink2); }

/* ---------- 文章页 ---------- */
.t-crumbs { font-size: 13px; color: var(--tink2); padding: 16px 0 0; }
.t-crumbs em { font-style: normal; margin: 0 6px; opacity: .5; }
.t-article { background: var(--tcard); border: 1px solid var(--tline); border-radius: 14px; padding: 28px 30px; margin-top: 14px; }
.t-art-head h1 { margin: 0 0 8px; font-size: 24px; color: var(--tink); }
.t-art-head .t-meta { margin-bottom: 16px; }
.t-prose { font-size: 15px; color: var(--tink); }
.t-prose p { margin: 0 0 14px; }
.t-prose h2, .t-prose h3 { color: var(--tb, var(--tink)); }
.t-prose ul, .t-prose ol { padding-left: 22px; }
.t-q-title { display: flex; gap: 12px; align-items: baseline; font-size: 22px; margin: 0 0 16px; }
.t-a-body { display: flex; gap: 12px; }
.t-doc-next { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--tline); font-size: 14px; }
.t-doc-next span { color: var(--tink2); margin-right: 10px; }

/* ---------- 页脚 ---------- */
.t-foot { margin-top: 48px; background: var(--tfoot, var(--tb, #123c33)); color: var(--thead-ink, #fff); }
.t-foot a { color: inherit; opacity: .85; }
.t-foot a:hover { opacity: 1; text-decoration: none; }
.t-foot--simple .t-foot-simple { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 0; font-size: 13px; }
.t-foot--simple p { margin: 0; }
.t-foot--rich { padding: 34px 0 0; }
.t-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 26px; padding-bottom: 24px; }
.t-foot-col h4 { margin: 0 0 10px; font-size: 15px; }
.t-foot-col p { font-size: 13px; opacity: .8; margin: 0; }
.t-foot-col a { display: block; font-size: 13.5px; margin: 7px 0; }
.t-foot-line { border-top: 1px solid rgba(255, 255, 255, .18); padding: 14px 0; font-size: 13px; }
.t-foot-line p { margin: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .t-grid.c3, .t-grid.c4 { grid-template-columns: repeat(2, 1fr); }
    .t-two-col, .t-hero--split, .t-product-featured { grid-template-columns: 1fr; }
    .t-shell--side { flex-direction: column; }
    .t-side { width: 100%; }
    .t-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .t-grid.c2, .t-grid.c3, .t-grid.c4 { grid-template-columns: 1fr; }
    .t-head-row { flex-wrap: wrap; }
    .t-foot-grid { grid-template-columns: 1fr; }
    .t-news-list li { grid-template-columns: 1fr; }
    .t-article { padding: 20px 18px; }
}

/* 广告位 */
.glad { max-width: 100%; margin: 14px 0; overflow: hidden; line-height: 0; }
.glad img, .glad iframe { max-width: 100%; height: auto; }
.glad-head { margin-top: 0; }

/* ---------- 列表页（分类 / 标签 / 搜索） ---------- */
.t-list-head { padding-top: 28px; }
.t-list-title { margin: 0 0 8px; font-size: 28px; line-height: 1.3; }
.t-list-desc { margin: 0; font-size: 14.5px; opacity: .82; }
.t-list-meta { margin: 10px 0 0; font-size: 13px; opacity: .68; }
.t-list-meta b { font-weight: 700; }
.t-card--item { display: flex; flex-direction: column; gap: 6px; }
.t-card--item h3 { margin: 0; font-size: 16.5px; line-height: 1.45; }
.t-card--item p { margin: 0; font-size: 13.5px; opacity: .78; }
.t-empty { padding: 60px 0; text-align: center; opacity: .75; }
.t-empty p { margin: 6px 0; }

/* ---------- 分页 ---------- */
.t-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 26px 0 40px; }
.t-pager a, .t-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--tline, #dfe5e2); border-radius: 8px; font-size: 13.5px; background: var(--tcard, #fff); color: var(--tink, #1c2420); }
.t-pager a:hover { border-color: var(--ta, #0f766e); color: var(--ta, #0f766e); text-decoration: none; }
.t-pager .is-current { background: var(--tb, #123c33); border-color: var(--tb, #123c33); color: #fff; font-weight: 700; }
.t-pager .is-off { opacity: .45; }
.t-pager .t-pager-gap { border: 0; background: none; min-width: 18px; padding: 0; opacity: .6; }
@media (max-width: 560px) {
    .t-list-title { font-size: 22px; }
    .t-pager a, .t-pager span { min-width: 32px; height: 32px; padding: 0 8px; }
}
