/* ============================================================
   tools 页专用样式
   由 pages/tools.php 的内联 <style> 块外迁生成，
   经 header.php 的 $extraCss 机制按需加载。
   ============================================================ */

.thub-wrap { max-width: var(--max-width); margin: 0 auto; }
/* 编辑式页头：大标题 + 细线分区，与全站栏目页一致 */
.thub-hero { padding: 20px 0 30px; border-bottom: 1px solid var(--md-outline-subtle); }
.thub-hero h1 { font-size: clamp(30px,3.4vw,46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--md-on-surface); margin: 0 0 14px; }
.thub-hero h1 i { color: var(--md-on-surface-variant); font-size: .72em; }
.thub-hero p { font-size: 15px; line-height: 1.85; color: var(--md-on-surface-variant); max-width: 760px; margin: 0; }

.thub-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 18px; }
.thub-card { background: var(--md-surface); border: 1px solid var(--md-outline-subtle); border-radius: var(--md-shape-lg); padding: 26px 24px; text-decoration: none; transition: border-color .2s, box-shadow .2s; display: flex; flex-direction: column; }
.thub-card:hover { border-color: var(--md-outline-variant); box-shadow: 0 6px 18px rgba(58,67,75,.05); }
/* 图标统一为浅暖灰底 + 墨灰字形，靠图标形状区分，不再用多色色块 */
.thub-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 18px; background: var(--md-surface-container); color: var(--md-primary); border: 1px solid var(--md-outline-subtle); }
.thub-card-title { font-size: 16px; font-weight: 700; color: var(--md-on-surface); margin: 0 0 8px; }
.thub-card-desc { font-size: 13px; color: var(--md-on-surface-variant); line-height: 1.75; margin: 0 0 18px; flex: 1; }
.thub-card-link { font-size: 13px; font-weight: 600; color: var(--md-on-surface); display: flex; align-items: center; gap: 5px; }
.thub-card:hover .thub-card-link { text-decoration: underline; }

/* 区块头：底部细线，替代原来的彩色左边框 */
.thub-sec { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--md-on-surface); margin: 44px 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--md-outline-subtle); }

@media (max-width: 768px) {
    .thub-grid { grid-template-columns: 1fr; }
}

