/* ============================================================
   标签聚合页 · 参照资讯列表页风格（左分组卡片 + 右栏）
   ============================================================ */

:root{
	--o:#206ae4; --o2:#4d8fff; --o3:#1856c8;
	--ink:#1d2733; --body:#5b6675; --muted:#9aa4b2;
	--line:#ebf0f6; --bg:#f4f7fb; --card:#ffffff;
	--radius:16px; --shadow-sm:0 4px 16px rgba(20,40,80,.05);
	--shadow-md:0 12px 34px rgba(20,40,80,.10);
}

/* 全屏铺底、内容留白 */
body{ overflow-x:hidden; }
.tg-hero .wrap,
.tg-main .wrap{ max-width:none; padding-left:min(5vw,80px); padding-right:min(5vw,80px); overflow-x:hidden; }

/* ===================== HERO ===================== */
.tg-hero{ position:relative; overflow:hidden; background:linear-gradient(135deg,#0f1f3d 0%,#16356b 55%,#206ae4 100%); padding:170px 0 46px; }
.tg-hero-bg{ position:absolute; inset:0; pointer-events:none;
	background:
		radial-gradient(circle at 88% 8%,rgba(77,143,255,.40) 0%,transparent 44%),
		radial-gradient(circle at 6% 96%,rgba(96,165,250,.20) 0%,transparent 42%),
		repeating-linear-gradient(0deg,transparent,transparent 30px,rgba(255,255,255,.025) 30px,rgba(255,255,255,.025) 31px); }
.tg-hero-in{ position:relative; z-index:1; }
.tg-crumbs{ display:flex; align-items:center; gap:9px; color:rgba(255,255,255,.7); font-size:13.5px; margin-bottom:18px; }
.tg-crumbs > i.fa-house{ font-size:12px; color:#9cc2ff; }
.tg-crumbs a{ color:rgba(255,255,255,.7); text-decoration:none; transition:color .25s; }
.tg-crumbs a:hover{ color:#fff; }
.tg-crumbs .fa-angle-right{ font-size:11px; color:rgba(255,255,255,.4); }
.tg-crumbs span{ color:#fff; font-weight:600; }
.tg-hero-main{ display:flex; flex-direction:column; align-items:flex-start; }
.tg-hero-kicker{ display:inline-flex; align-items:center; gap:7px; background:rgba(255,255,255,.14); color:#fff; font-size:12px; font-weight:700; letter-spacing:.18em; padding:5px 14px; border-radius:30px; margin-bottom:14px; }
.tg-hero-tt{ margin:0 0 10px; font-size:34px; font-weight:900; line-height:1.3; color:#fff; }
.tg-hero-sub{ margin:0; font-size:14.5px; line-height:1.9; color:rgba(255,255,255,.78); max-width:680px; }
.tg-hero-sub b{ font-size:1.15em; font-weight:800; color:#fff; }

/* ===================== 主布局 ===================== */
.tg-main{ padding:34px 0 56px; background:var(--bg); overflow-x:hidden; }
.tg-grid{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:28px; align-items:start; min-width:0; }
.tg-content{ min-width:0; max-width:100%; overflow:hidden; }

/* ===================== 内容分组 ===================== */
.tg-sec{ margin-bottom:36px; }
.tg-sec:last-child{ margin-bottom:0; }
.tg-sec-head{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.tg-sec-ico{ flex:0 0 auto; width:38px; height:38px; border-radius:11px; display:grid; place-items:center; color:#fff; font-size:16px; background:var(--grad, var(--o)); box-shadow:0 8px 18px rgba(20,40,80,.14); }
.tg-sec-tt{ margin:0; font-size:21px; font-weight:800; color:var(--ink); }
.tg-sec-count{ margin-left:2px; font-size:13px; font-weight:700; color:var(--muted); padding:3px 12px; border-radius:20px; background:var(--card); border:1px solid var(--line); }

/* ===================== 列表卡片 ===================== */
.tg-list{ display:flex; flex-direction:column; gap:18px; }
.tg-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); transition:box-shadow .3s ease,transform .3s ease,border-color .3s ease; }
.tg-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:rgba(32,106,228,.25); }
.tg-card-link{ display:flex; align-items:stretch; gap:22px; padding:18px 20px; text-decoration:none; min-width:0; overflow:hidden; }

/* 左侧色块：渐变底 + 图标 + 标题（无图设计） */
.tg-thumb{ position:relative; flex:0 0 252px; width:252px; align-self:stretch; min-height:160px; border-radius:12px; overflow:hidden;
	padding:18px; display:flex; flex-direction:column; justify-content:center;
	background:var(--grad, linear-gradient(135deg,#1b2c4d,#2c4a86)); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); max-width:100%; }
.tg-thumb::before{ content:""; position:absolute; inset:0; pointer-events:none;
	background:
		radial-gradient(circle at 82% 12%,rgba(255,255,255,.24),transparent 46%),
		radial-gradient(circle at 10% 92%,rgba(0,0,0,.22),transparent 52%); }
.tg-thumb::after{ content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
	background:repeating-linear-gradient(45deg,transparent,transparent 12px,rgba(255,255,255,.04) 12px,rgba(255,255,255,.04) 13px); }
.tg-thumb-ico{ position:absolute; right:-8px; bottom:-16px; z-index:1; font-size:106px; line-height:1;
	color:rgba(255,255,255,.13); transform:rotate(-8deg); transition:transform .5s ease; pointer-events:none; }
.tg-card:hover .tg-thumb-ico{ transform:rotate(-8deg) scale(1.14) translateY(-6px); }
.tg-thumb-brand{ position:absolute; right:14px; top:13px; z-index:2; font-size:10px; font-weight:800; letter-spacing:.16em; color:rgba(255,255,255,.5); }
.tg-thumb-title{ position:relative; z-index:2; margin:0; font-size:18px; font-weight:800; line-height:1.5; color:#fff;
	text-shadow:0 2px 12px rgba(0,0,0,.3); letter-spacing:.01em;
	display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; transition:transform .3s ease; }
.tg-card:hover .tg-thumb-title{ transform:translateY(-2px); }

/* 右侧：标题 + 描述 + 元信息 */
.tg-body{ flex:1; min-width:0; display:flex; flex-direction:column; padding-top:2px; }
.tg-title{ margin:0 0 8px; font-size:18px; font-weight:800; color:var(--ink); line-height:1.45;
	display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; transition:color .25s; }
.tg-card:hover .tg-title{ color:var(--o3); }
.tg-excerpt{ margin:0 0 auto; font-size:13.5px; line-height:1.8; color:var(--body);
	display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tg-meta{ display:flex; align-items:center; gap:16px; margin-top:12px; padding-top:11px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted); }
.tg-meta span{ display:inline-flex; align-items:center; gap:5px; }
.tg-meta .tg-more{ margin-left:auto; color:var(--o); font-weight:700; }
.tg-meta .tg-more i{ transition:transform .25s ease; }
.tg-card:hover .tg-meta .tg-more i{ transform:translateX(4px); }

/* 空状态 */
.tg-empty{ text-align:center; padding:60px 20px; background:var(--card); border:1px dashed var(--line); border-radius:var(--radius); }
.tg-empty i{ font-size:42px; color:#cdd6e2; }
.tg-empty-t{ margin:16px 0 4px; font-size:16px; color:var(--ink); font-weight:700; }
.tg-empty-p{ margin:0; font-size:13px; color:var(--muted); }

/* ===================== 侧栏 ===================== */
.tg-side{ position:sticky; top:78px; display:flex; flex-direction:column; gap:20px; }
.tg-widget{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; box-shadow:var(--shadow-sm); transition:box-shadow .3s ease; }
.tg-widget:hover{ box-shadow:var(--shadow-md); }
.tg-widget-head{ margin-bottom:16px; }
.tg-widget-head h3{ margin:0; font-size:16.5px; font-weight:800; color:var(--ink); display:flex; align-items:center; }
.tg-widget-head h3 i{ color:var(--o); font-size:15px; margin-right:9px; }
.tg-widget-head h3::after{ content:""; flex:1; height:1px; margin-left:14px; background:linear-gradient(90deg,var(--line),transparent); }

/* 内容分布 */
.tg-types{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.tg-type-link{ position:relative; display:flex; align-items:center; gap:14px; padding:16px 18px; background:linear-gradient(180deg,#fff 0%,#fbfcff 100%); border:1px solid #eef2f8; border-radius:16px; text-decoration:none; overflow:hidden; box-shadow:0 6px 18px rgba(20,40,80,.04); transition:transform .28s, border-color .28s, box-shadow .28s; }
.tg-type-link::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--grad, var(--o)); opacity:0; transition:opacity .28s; }
.tg-type-link::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:var(--grad, var(--o)); opacity:0; transition:opacity .28s; }
.tg-type-link:hover{ transform:translateY(-3px); border-color:rgba(32,106,228,.28); box-shadow:0 14px 32px rgba(32,106,228,.13); }
.tg-type-link:hover::before,
.tg-type-link:hover::after{ opacity:1; }
.tg-type-ico{ flex:0 0 44px; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; color:#fff; font-size:16px; background:linear-gradient(135deg,var(--o2),var(--o3)); border:1px solid rgba(255,255,255,.25); box-shadow:0 8px 18px rgba(20,40,80,.22), inset 0 1px 1px rgba(255,255,255,.25); position:relative; overflow:hidden; }
.tg-type-ico::after{ content:""; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,.32),transparent 55%); pointer-events:none; }
.tg-type-name{ flex:1; min-width:0; font-size:15px; font-weight:800; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color .28s; }
.tg-type-link:hover .tg-type-name{ color:var(--o3); }
.tg-type-no{ min-width:34px; height:34px; display:grid; place-items:center; padding:0 10px; border-radius:50%; font-size:13px; font-weight:800; color:#fff; background:linear-gradient(135deg,var(--o2),var(--o3)); border:1px solid rgba(255,255,255,.25); box-shadow:0 4px 12px rgba(20,40,80,.22), inset 0 1px 1px rgba(255,255,255,.25); position:relative; z-index:1; transition:transform .28s; }
.tg-type-link:hover .tg-type-no{ transform:scale(1.05); }

/* 热门标签 */
.tg-tags{ display:flex; flex-wrap:wrap; gap:9px; }
.tg-tag{ padding:6px 15px; background:var(--bg); border:1px solid var(--line); border-radius:20px; font-size:12.5px; color:var(--body); text-decoration:none; transition:all .22s ease; }
.tg-tag:hover{ color:#fff; background:linear-gradient(135deg,var(--o),var(--o3)); border-color:transparent; transform:translateY(-2px); box-shadow:0 6px 14px rgba(32,106,228,.2); }

/* 链接列表 */
.tg-links{ list-style:none; margin:0; padding:0; }
.tg-links li{ margin-bottom:4px; }
.tg-links li:last-child{ margin-bottom:0; }
.tg-links a{ display:flex; align-items:center; gap:9px; padding:10px 12px; background:#fafbfd; border:1px solid transparent; border-radius:10px; text-decoration:none; transition:all .22s ease; }
.tg-links a i{ flex:0 0 auto; font-size:11px; color:var(--o); transition:transform .22s ease; }
.tg-links a span{ flex:1; min-width:0; font-size:13.5px; color:var(--body); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color .22s; }
.tg-links a:hover{ background:#fff; border-color:rgba(32,106,228,.25); transform:translateX(3px); box-shadow:0 4px 12px rgba(32,106,228,.08); }
.tg-links a:hover i{ transform:translateX(3px); }
.tg-links a:hover span{ color:var(--o); }

/* ===================== 响应式 ===================== */
/* 大屏以下：侧栏下移、卡片改纵向，消除窄屏 252px 封面横向挤压溢出 */
@media (max-width:1100px){
	.tg-grid{ grid-template-columns:minmax(0,1fr); }
	.tg-side{ position:static; flex-direction:row; flex-wrap:wrap; }
	.tg-widget{ flex:1 1 300px; max-width:100%; min-width:0; }
	.tg-card-link{ flex-direction:column; gap:14px; padding:16px; }
	.tg-thumb{ flex:0 0 auto; width:100%; max-width:100%; min-height:150px; }
	.tg-thumb-title{ font-size:18px; -webkit-line-clamp:2; }
	.tg-meta{ gap:12px; flex-wrap:wrap; }
}
/* 平板：收紧 hero 与标题 */
@media (max-width:900px){
	.tg-hero{ padding:44px 0 38px; }
	.tg-hero-tt{ font-size:28px; }
	.tg-hero-sub{ font-size:14px; }
}
/* 手机：整页单列、侧栏堆叠、固定留白 */
@media (max-width:768px){
	.tg-main .wrap{ padding-left:16px; padding-right:16px; }
	.tg-hero{ padding:30px 0 26px; }
	.tg-hero-tt{ font-size:24px; }
	.tg-hero-sub{ font-size:13px; line-height:1.7; }
	.tg-sec-tt{ font-size:18px; }
	.tg-side{ flex-direction:column; gap:14px; }
	.tg-widget{ flex:1 1 auto; padding:16px 16px; }
	.tg-card-link{ gap:12px; padding:14px; }
	.tg-thumb{ min-height:128px; padding:14px; }
	.tg-thumb-title{ font-size:17px; }
	.tg-title{ font-size:16.5px; }
	.tg-excerpt{ font-size:13px; }
	.tg-meta{ gap:10px 14px; font-size:11.5px; }
	.tg-meta .tg-more{ margin-left:0; width:100%; margin-top:6px; }
	.tg-type-link{ padding:14px 16px; }
	.tg-type-name{ font-size:14px; }
}
/* 超小屏：进一步收紧 */
@media (max-width:480px){
	.tg-main .wrap{ padding-left:12px; padding-right:12px; }
	.tg-hero-tt{ font-size:21px; }
	.tg-card-link{ padding:12px; }
	.tg-thumb{ min-height:112px; }
	.tg-thumb-title{ font-size:15.5px; }
	.tg-title{ font-size:15.5px; }
	.tg-meta{ gap:8px 12px; }
}
