/* ============ 天荣CMS模板商城站 全站样式 ============
   版式: 通栏Banner + 卡片网格  色调: 科技蓝(深蓝#1b2a41 + 品牌蓝#2b7de9 + 橙#ff9800) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border: 0; }
.tpl-container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部信息条 ---------- */
.tpl-topbar { background: #1b2a41; color: #b7c4d4; font-size: 13px; }
.tpl-topbar .tpl-container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.tpl-topbar a { color: #e8eef5; padding: 0 6px; }
.tpl-topbar a:hover { color: #ff9800; }
.tpl-topbar .tpl-sep { color: #46586d; }

/* ---------- 主头部 ---------- */
.tpl-header { background: #fff; border-bottom: 2px solid #2b7de9; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(27,42,65,.08); }
.tpl-header .tpl-container { display: flex; align-items: center; height: 72px; gap: 24px; }
.tpl-logo img { height: 40px; }
.tpl-nav { display: flex; gap: 4px; flex: 1; }
.tpl-nav a { padding: 10px 14px; color: #1b2a41; font-size: 15px; font-weight: 600; border-radius: 4px; }
.tpl-nav a:hover { color: #2b7de9; background: #f0f6ff; }
.tpl-nav a.active { color: #fff; background: #2b7de9; }
.tpl-search form { display: flex; }
.tpl-search input { width: 200px; height: 36px; padding: 0 12px; border: 2px solid #2b7de9; border-right: 0; border-radius: 4px 0 0 4px; outline: none; font-size: 14px; }
.tpl-search button { height: 36px; padding: 0 18px; background: #2b7de9; color: #fff; border: 0; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }
.tpl-search button:hover { background: #1b6fd8; }

/* ---------- 主体布局 ---------- */
.tpl-main { min-height: 500px; padding: 24px 0 40px; }

/* ---------- Hero 主视觉 ---------- */
.tpl-hero { background: linear-gradient(135deg, #1b2a41 0%, #24436b 60%, #2b7de9 100%); color: #fff; padding: 64px 0 56px; text-align: center; }
.tpl-hero h1 { font-size: 34px; font-weight: 700; margin-bottom: 12px; }
.tpl-hero p { color: #b7cde8; font-size: 16px; margin-bottom: 28px; }
.tpl-hero-search { max-width: 560px; margin: 0 auto 20px; }
.tpl-hero-search form { display: flex; box-shadow: 0 6px 20px rgba(0,0,0,.25); border-radius: 6px; overflow: hidden; }
.tpl-hero-search input { flex: 1; height: 48px; padding: 0 18px; border: 0; outline: none; font-size: 15px; }
.tpl-hero-search button { height: 48px; padding: 0 30px; background: #ff9800; color: #fff; border: 0; cursor: pointer; font-size: 16px; font-weight: 600; }
.tpl-hero-search button:hover { background: #e68900; }
.tpl-hero-cats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tpl-hero-cats a { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #e6eef7; padding: 6px 16px; border-radius: 20px; font-size: 13px; }
.tpl-hero-cats a:hover { background: #ff9800; border-color: #ff9800; color: #fff; }

/* ---------- 区块 ---------- */
.tpl-section { padding: 36px 0; }
.tpl-section-gray { background: #fff; border-top: 1px solid #e8ecf1; border-bottom: 1px solid #e8ecf1; }
.tpl-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tpl-section-head h2 { font-size: 22px; color: #1b2a41; padding-left: 12px; border-left: 4px solid #2b7de9; }
.tpl-more { color: #2b7de9; font-size: 14px; }
.tpl-more:hover { color: #ff9800; }

/* ---------- 模板卡片网格 ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tpl-card { background: #fff; border: 1px solid #e8ecf1; border-radius: 8px; overflow: hidden; transition: all .25s; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27,42,65,.12); border-color: #2b7de9; }
.tpl-cover { aspect-ratio: 4/3; background: #eef2f7; }
.tpl-cover img { width: 100%; height: 100%; object-fit: cover; }
.tpl-info { padding: 12px 14px 14px; }
.tpl-info h3 { font-size: 15px; color: #1b2a41; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-meta { display: flex; justify-content: space-between; margin-bottom: 8px; }
.tpl-cat { font-size: 12px; color: #2b7de9; background: #eaf3ff; padding: 2px 8px; border-radius: 10px; }
.tpl-tags { font-size: 12px; color: #999; }
.tpl-price { display: flex; justify-content: space-between; align-items: center; }
.tpl-free { color: #ff9800; font-size: 16px; font-weight: 700; }
.tpl-price .price { color: #ff4d4f; font-size: 16px; font-weight: 700; }
.tpl-down { color: #999; font-size: 12px; }

/* ---------- 服务入口 ---------- */
.tpl-entry-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl-entry { background: #fff; border: 1px solid #e8ecf1; border-radius: 8px; padding: 26px 20px; text-align: center; transition: all .25s; }
.tpl-entry:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(27,42,65,.12); border-color: #ff9800; }
.tpl-entry h3 { color: #1b2a41; font-size: 17px; margin-bottom: 8px; }
.tpl-entry p { color: #999; font-size: 13px; }

/* ---------- 页脚 ---------- */
.tpl-footer { background: #1b2a41; color: #8fa0b4; margin-top: 40px; padding: 40px 0 24px; }
.tpl-footer-row { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid #2a3d57; }
.tpl-footer-brand h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.tpl-footer-brand a { color: #fff; }
.tpl-footer-brand p { font-size: 13px; }
.tpl-footer-links { display: flex; flex-wrap: wrap; gap: 14px; max-width: 600px; }
.tpl-footer-links a { color: #b7c4d4; font-size: 14px; }
.tpl-footer-links a:hover { color: #ff9800; }
.tpl-footer-bottom { padding-top: 16px; font-size: 13px; text-align: center; color: #6d7e92; }
.tpl-footer-bottom a { color: #8fa0b4; }
.tpl-scrolltop { position: fixed; right: 24px; bottom: 40px; width: 40px; height: 40px; border-radius: 50%; background: #2b7de9; color: #fff; border: 0; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(43,125,233,.4); }

/* ---------- 列表页 ---------- */
.tpl-crumb { background: #fff; border: 1px solid #e8ecf1; border-radius: 6px; padding: 10px 16px; margin-bottom: 20px; font-size: 13px; color: #888; }
.tpl-crumb a { color: #2b7de9; }
.tpl-crumb a:hover { color: #ff9800; }
.tpl-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tpl-list-head h2 { font-size: 20px; color: #1b2a41; }
.tpl-pages { text-align: center; margin-top: 24px; }
.tpl-pages a, .tpl-pages span { display: inline-block; padding: 6px 12px; margin: 0 3px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: #666; background: #fff; }
.tpl-pages a:hover { border-color: #2b7de9; color: #2b7de9; }
.tpl-pages .active { background: #2b7de9; color: #fff; border-color: #2b7de9; }

/* ---------- 详情页 ---------- */
.tpl-show { background: #fff; border: 1px solid #e8ecf1; border-radius: 8px; padding: 26px; }
.tpl-show h1 { font-size: 24px; color: #1b2a41; margin-bottom: 10px; }
.tpl-show-meta { color: #999; font-size: 13px; padding-bottom: 16px; border-bottom: 1px dashed #e8ecf1; margin-bottom: 20px; }
.tpl-show-meta span { margin-right: 16px; }
.tpl-show-body img { max-width: 100%; }
.tpl-show-body p { margin-bottom: 12px; }
.tpl-prevnext { margin-top: 24px; padding-top: 16px; border-top: 1px dashed #e8ecf1; font-size: 14px; color: #666; }
.tpl-prevnext p { margin-bottom: 6px; }
.tpl-prevnext a { color: #2b7de9; }
.tpl-prevnext a:hover { color: #ff9800; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
    .tpl-header .tpl-container { gap: 16px; }
    .tpl-logo img { height: 34px; }
    .tpl-nav a { padding: 8px 10px; font-size: 14px; }
    .tpl-search input { width: 150px; }
    .tpl-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .tpl-grid { grid-template-columns: repeat(3, 1fr); }
    .tpl-entry-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tpl-header .tpl-container { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
    .tpl-nav { order: 3; width: 100%; overflow-x: auto; }
    .tpl-nav a { font-size: 14px; padding: 8px 10px; white-space: nowrap; }
    .tpl-search { order: 2; flex: 1; }
    .tpl-search input { width: 100%; }
    .tpl-hero h1 { font-size: 24px; }
    .tpl-grid { grid-template-columns: repeat(2, 1fr); }
    .tpl-entry-row { grid-template-columns: repeat(2, 1fr); }
    .tpl-footer-row { flex-direction: column; }
}
@media (max-width: 480px) {
    .tpl-grid { grid-template-columns: 1fr; }
    .tpl-entry-row { grid-template-columns: 1fr; }
    .tpl-topbar-left { display: none; }
}

/* 小程序模板栏目专用 */
.tpl-grid-4{grid-template-columns:repeat(4,1fr)}
.tpl-money{color:#e1251b;font-size:16px;font-weight:700}
.tpl-money small{font-size:12px;font-weight:400;margin-right:1px}
@media(max-width:980px){.tpl-grid-4{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.tpl-grid-4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.tpl-grid-4{grid-template-columns:1fr}}


.tpl-list-sub{margin:6px 0 0;font-size:13px;color:#8b96a5}

/* wxapp-head-column */
.tpl-list-head{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.tpl-list-head h2{margin:0 0 4px}
.tpl-list-sub{margin:0;font-size:13px;color:#8b96a5;line-height:1.6}
/* wxapp-pager */
.tpl-pages{margin:28px 0 10px;text-align:center}
.tpl-pages ul{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;list-style:none;margin:0;padding:0}
.tpl-pages ul li{list-style:none;margin:0;padding:0}
.tpl-pages ul li a{display:inline-block;min-width:36px;padding:6px 10px;border:1px solid #dbe2ec;border-radius:6px;background:#fff;color:#33465d;font-size:13px;line-height:1.4;text-decoration:none}
.tpl-pages ul li a:hover{border-color:#2f7ce0;color:#2f7ce0}
.tpl-pages ul li.active a{background:#2f7ce0;border-color:#2f7ce0;color:#fff}
.tpl-pages ul li:first-child a{border:0;background:none;color:#8b96a5;min-width:0;padding:6px 2px}


/* wxapp-card-align */
.tpl-grid-4 .tpl-cover{aspect-ratio:1/1}
.tpl-grid-4 .tpl-info h3{font-size:14px}
.tpl-money{color:#f4622e;font-size:16px;font-weight:600;letter-spacing:.2px}
.tpl-money small{font-size:12px;margin-right:1px;font-weight:600}
.tpl-cat{font-style:normal;color:#8b96a5;font-size:12px;margin-left:8px}
.tpl-price{display:flex;align-items:baseline;flex-wrap:wrap}

/* wxapp-price-left */
.tpl-grid-4 .tpl-price{justify-content:flex-start;gap:2px}
