模板:角色/styles.css:修订间差异
来自国漫宇宙
更多操作
< 模板:角色
创建页面,内容为“→=================================================== * 国漫TV · 角色词条专属组件样式 (TemplateStyles 作用域) * ===================================================: →--- 1. 结构化角色 Infobox 重构 ---: .gmtv-char-infobox { float: right; width: 320px; margin: 0 0 24px 30px; background-color: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(126, 34, 206, 0.08); border: 1px solid #f3e8ff; ov…” |
无编辑摘要 |
||
| (未显示同一用户的13个中间版本) | |||
| 第1行: | 第1行: | ||
/* | /* ────────────────────────────────────────── | ||
1. 最外层容器 | |||
限制最大宽度,禁止全屏撑满 | |||
────────────────────────────────────────── */ | |||
.gmtv-character { | |||
max-width: 1080px; | |||
margin: 0 auto; | |||
padding: 0; | |||
/*background: var(--c-bg);*/ | |||
font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; | |||
color: var(--c-text); | |||
line-height: 1.8; | |||
} | |||
/* ────────────────────────────────────────── | |||
2. 顶部英雄标题区 | |||
────────────────────────────────────────── */ | |||
.gmtv-hero { | |||
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
border-radius: var(--radius-card); | |||
padding: 22px 24px; | |||
margin-bottom: 18px; | |||
display: flex; | |||
align-items: flex-start; | |||
gap: 18px; | |||
color: #fff; | |||
position: relative; | |||
overflow: hidden; | |||
} | |||
/* 装饰光晕 */ | |||
.gmtv-hero::before { | |||
content: ''; | |||
position: absolute; | |||
top: -40px; | |||
right: -40px; | |||
width: 160px; | |||
height: 160px; | |||
border-radius: 50%; | |||
background: rgba(255, 255, 255, 0.12); | |||
pointer-events: none; | |||
} | |||
.gmtv-hero-avatar { | |||
width: 72px; | |||
height: 72px; | |||
border-radius: 14px; | |||
background: rgba(255, 255, 255, 0.25); | |||
border: 2px solid rgba(255, 255, 255, 0.4); | |||
overflow: hidden; | |||
flex-shrink: 0; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 36px; | |||
} | |||
.gmtv-hero-avatar img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
} | |||
.gmtv-hero-info { | |||
flex: 1; | |||
min-width: 0; | |||
} | |||
.gmtv-hero-name { | |||
font-size: 26px; | |||
font-weight: 900; | |||
letter-spacing: 2px; | |||
line-height: 1.2; | |||
margin: 0 0 4px; | |||
} | |||
.gmtv-hero-sub { | |||
font-size: 13px; | |||
opacity: 0.88; | |||
margin: 0 0 10px; | |||
} | |||
.gmtv-hero-tags { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 6px; | |||
} | |||
.gmtv-hero-tag { | |||
background: rgba(255, 255, 255, 0.22); | |||
border: 1px solid rgba(255, 255, 255, 0.45); | |||
border-radius: 20px; | |||
padding: 2px 12px; | |||
font-size: 11px; | |||
font-weight: 600; | |||
color: #fff; | |||
white-space: nowrap; | |||
} | |||
/* ────────────────────────────────────────── | |||
3. 主体双栏布局 | |||
PC:左侧 Infobox(260px) + 右侧卡片流 | |||
移动端:单栏,Infobox 在上 | |||
────────────────────────────────────────── */ | |||
.gmtv-body { | |||
display: flex; | |||
align-items: flex-start; | |||
gap: 16px; | |||
} | |||
.gmtv-sidebar { | |||
width: 260px; | |||
flex-shrink: 0; | |||
position: sticky; | |||
top: 72px; | |||
} | |||
.gmtv-main { | |||
flex: 1; | |||
min-width: 0; | |||
display: flex; | |||
flex-direction: column; | |||
gap: 14px; | |||
} | |||
/* ────────────────────────────────────────── | |||
4. Infobox | |||
重置 Citizen 皮肤对 table/infobox 的默认干扰 | |||
────────────────────────────────────────── */ | |||
.gmtv-character .gmtv-infobox, | |||
.gmtv-character .gmtv-infobox table, | |||
.gmtv-character .gmtv-infobox td, | |||
.gmtv-character .gmtv-infobox th { | |||
border: none !important; | |||
background: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
float: none !important; | |||
width: auto !important; | |||
} | |||
.gmtv-infobox { | |||
background: var(--c-card) !important; | |||
border-radius: var(--radius-card) !important; | |||
border: 1px solid var(--c-border) !important; | |||
overflow: hidden; | |||
box-shadow: var(--shadow-card); | |||
width: 100% !important; | |||
} | |||
.gmtv-infobox-head { | |||
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
color: #fff; | |||
font-size: 12px; | |||
font-weight: 700; | |||
letter-spacing: 1px; | |||
padding: 10px 14px; | |||
text-align: center; | |||
} | |||
.gmtv-infobox-img { | |||
width: 100%; | |||
max-height: 280px; | |||
overflow: hidden; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
background: var(--c-head-bg); | |||
border-bottom: 1px solid var(--c-border); | |||
} | |||
.gmtv-infobox-img img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
display: block; | |||
} | |||
.gmtv-infobox-img-placeholder { | |||
width: 100%; | |||
height: 180px; | |||
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 56px; | |||
} | |||
.gmtv-infobox-group { | |||
background: var(--c-head-bg); | |||
color: var(--c-primary); | |||
font-size: 11px; | |||
font-weight: 700; | |||
letter-spacing: 1px; | |||
padding: 7px 14px; | |||
border-top: 1px solid var(--c-border); | |||
border-bottom: 1px solid var(--c-border); | |||
} | |||
.gmtv-infobox-row { | |||
.gmtv- | display: flex; | ||
align-items: flex-start; | |||
padding: 8px 14px; | |||
border-bottom: 1px solid var(--c-border); | |||
gap: 8px; | |||
font-size: 12.5px; | |||
} | } | ||
/* | .gmtv-infobox-row:last-child { | ||
border-bottom: none; | |||
} | |||
.gmtv-infobox-key { | |||
color: var(--c-sub); | |||
min-width: 58px; | |||
flex-shrink: 0; | |||
padding-top: 1px; | |||
font-size: 12px; | |||
} | |||
.gmtv-infobox-val { | |||
color: var(--c-text); | |||
font-weight: 500; | |||
flex: 1; | |||
word-break: break-all; | |||
} | |||
.gmtv-infobox-val a, | |||
.gmtv-infobox-val a:visited { | |||
color: var(--c-primary); | |||
text-decoration: none; | |||
font-weight: 600; | |||
} | |||
.gmtv-infobox-val a:hover { | |||
color: var(--c-accent); | |||
text-decoration: underline; | |||
} | |||
/* ────────────────────────────────────────── | |||
5. 通用卡片 | |||
────────────────────────────────────────── */ | |||
.gmtv-card { | |||
background: var(--c-card); | |||
border-radius: var(--radius-card); | |||
border: 1px solid var(--c-border); | |||
box-shadow: var(--shadow-card); | |||
overflow: visible; | |||
isolation: isolate; | |||
} | |||
.gmtv-card-head { | |||
display: flex; | |||
align-items: center; | |||
gap: 8px; | |||
padding: 12px 16px; | |||
background: var(--c-head-bg); | |||
border-bottom: 1px solid var(--c-border); | |||
cursor: pointer; | |||
user-select: none; | |||
} | |||
/* 左侧色点装饰 */ | |||
.gmtv-card-head::before { | |||
content: ''; | |||
display: inline-block; | |||
width: 8px; | |||
height: 8px; | |||
border-radius: 50%; | |||
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
flex-shrink: 0; | |||
} | |||
.gmtv-card-title { | |||
font-size: 14px; | |||
font-weight: 700; | |||
color: var(--c-text); | |||
flex: 1; | |||
} | |||
.gmtv-card-body { | |||
padding: 16px; | |||
font-size: 13.5px; | |||
line-height: 1.85; | |||
color: var(--c-text); | |||
} | |||
/* 折叠后:隐藏底边框,避免出现空色块 */ | |||
.gmtv-card.mw-collapsed .gmtv-card-head { | |||
border-bottom: none; | |||
border-radius: calc(var(--radius-card) - 1px); | |||
} | |||
/* 折叠后卡片 overflow 改为 visible,圆角不被截断 */ | |||
.gmtv-card.mw-collapsed { | |||
overflow: visible; | |||
} | |||
/* 折叠状态下强制隐藏 p 标签防止撑开空白 */ | |||
.gmtv-card.mw-collapsed p { | |||
display: none; | |||
} | |||
/* ────────────────────────────────────────── | |||
6. 剧透卡片(默认折叠 + 自动角标) | |||
────────────────────────────────────────── */ | |||
.gmtv-card-spoiler .gmtv-card-head { | |||
background: #FFF0F5; | |||
} | |||
/* 折叠状态:显示"含剧透"角标 */ | |||
.gmtv-card-spoiler.mw-collapsed .gmtv-card-title::after { | |||
content: '⚠ 含剧透'; | |||
font-size: 10px; | |||
font-weight: 600; | |||
color: #FF6B9D; | |||
background: #FFE0EC; | |||
border: 1px solid #FFB3CC; | |||
border-radius: 8px; | |||
padding: 1px 7px; | |||
margin-left: 8px; | |||
vertical-align: middle; | |||
} | |||
/* 展开状态:角标变为"剧透已展开" */ | |||
.gmtv-card-spoiler:not(.mw-collapsed) .gmtv-card-title::after { | |||
content: '▼ 剧透已展开'; | |||
font-size: 10px; | |||
font-weight: 600; | |||
color: #FFA94D; | |||
background: #FFEAE0; | |||
border: 1px solid #FFD0A0; | |||
border-radius: 8px; | |||
padding: 1px 7px; | |||
margin-left: 8px; | |||
vertical-align: middle; | |||
} | |||
/* ────────────────────────────────────────── | |||
7. 标签 / Badge | |||
────────────────────────────────────────── */ | |||
.gmtv-tag { | |||
display: inline-block; | |||
background: var(--c-tag-bg); | |||
color: var(--c-tag-text); | |||
border-radius: 20px; | |||
padding: 2px 11px; | |||
font-size: 11px; | |||
font-weight: 600; | |||
margin: 2px 3px 2px 0; | |||
white-space: nowrap; | |||
} | |||
.gmtv-tag-primary { | |||
background: #FF6B9D; | |||
color: #fff; | |||
} | |||
.gmtv-tag-accent { | |||
background: #FFA94D; | |||
color: #fff; | |||
} | |||
.gmtv-badge-win { | |||
display: inline-block; | |||
background: #E6F9EE; | |||
color: #1E8A47; | |||
padding: 1px 10px; | |||
border-radius: 10px; | |||
font-size: 11px; | |||
font-weight: 700; | |||
} | |||
.gmtv-badge-loss { | |||
display: inline-block; | |||
background: #FDEAEA; | |||
color: #C0392B; | |||
padding: 1px 10px; | |||
border-radius: 10px; | |||
font-size: 11px; | |||
font-weight: 700; | |||
} | |||
.gmtv-badge-draw { | |||
display: inline-block; | |||
background: #F0F0F0; | |||
color: #666666; | |||
padding: 1px 10px; | |||
border-radius: 10px; | |||
font-size: 11px; | |||
font-weight: 700; | |||
} | |||
/* ────────────────────────────────────────── | |||
8. 数据表格(战绩、技能、装备) | |||
重置 Citizen wikitable 默认样式 | |||
────────────────────────────────────────── */ | |||
.gmtv-character .gmtv-table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
font-size: 12.5px; | |||
border: none !important; | |||
background: none !important; | |||
margin: 0 !important; | |||
} | |||
.gmtv-character .gmtv-table th { | |||
background: var(--c-head-bg) !important; | |||
color: var(--c-primary) !important; | |||
padding: 8px 12px !important; | |||
text-align: left !important; | |||
font-weight: 700 !important; | |||
border-bottom: 2px solid var(--c-border) !important; | |||
border-right: none !important; | |||
border-top: none !important; | |||
border-left: none !important; | |||
white-space: nowrap; | |||
} | |||
.gmtv-character .gmtv-table td { | |||
padding: 8px 12px !important; | |||
border-bottom: 1px solid var(--c-border) !important; | |||
border-right: none !important; | |||
border-top: none !important; | |||
border-left: none !important; | |||
color: var(--c-text) !important; | |||
vertical-align: top; | |||
} | |||
.gmtv-character .gmtv-table tr:last-child td { | |||
border-bottom: none !important; | |||
} | |||
.gmtv-character .gmtv-table a, | |||
.gmtv-character .gmtv-table a:visited { | |||
color: var(--c-primary); | |||
text-decoration: none; | |||
} | |||
.gmtv-character .gmtv-table a:hover { | |||
color: var(--c-accent); | |||
} | |||
/* wikitable 污染防护 */ | |||
.gmtv-character .wikitable.gmtv-table, | |||
.gmtv-character .wikitable.gmtv-table > tbody > tr > th, | |||
.gmtv-character .wikitable.gmtv-table > tbody > tr > td { | |||
background: none !important; | |||
border-color: var(--c-border) !important; | |||
} | |||
.gmtv-card-body-table { | |||
padding: 0 16px !important; | |||
overflow-x: auto; | |||
overflow-y: visible; | |||
display: block; | |||
box-sizing: border-box; | |||
} | |||
/* 表格本身宽度撑满容器,padding 由容器控制 */ | |||
.gmtv-card-body-table .gmtv-table, | |||
.gmtv-card-body-table table { | |||
width: 100% !important; | |||
margin: 0 !important; | |||
} | |||
/* th/td 左右 padding 恢复正常,不需要再单独控制首尾列 */ | |||
.gmtv-card-body-table .gmtv-table th { | |||
padding: 8px 12px !important; | |||
} | |||
.gmtv-card-body-table .gmtv-table td { | |||
padding: 8px 12px !important; | |||
} | |||
/* 表格顶部加一点间距,不和卡片头部紧贴 */ | |||
.gmtv-card-body-table .gmtv-table, | |||
.gmtv-card-body-table table.wikitable { | |||
margin-top: 0 !important; | |||
margin-bottom: 0 !important; | |||
} | |||
.gmtv-card-body h2, | |||
.gmtv-card-body h3, | |||
.gmtv-card-body h4 { | |||
padding-left: 2px !important; | |||
margin-top: 18px !important; | |||
margin-bottom: 8px !important; | |||
font-size: 14px !important; | |||
font-weight: 700 !important; | |||
color: var(--c-text) !important; | |||
border-bottom: 1px solid var(--c-border) !important; | |||
padding-bottom: 6px !important; | |||
} | |||
/* 卡片内第一个标题不需要顶部间距 */ | |||
.gmtv-card-body h2:first-child, | |||
.gmtv-card-body h3:first-child, | |||
.gmtv-card-body h4:first-child { | |||
margin-top: 4px !important; | |||
} | |||
/* 卡片内段落间距 */ | |||
.gmtv-card-body p { | |||
margin-top: 0 !important; | |||
margin-bottom: 10px !important; | |||
} | |||
.gmtv-card-body p:last-child { | |||
margin-bottom: 0 !important; | |||
} | |||
/* ────────────────────────────────────────── | |||
9. 境界进度条 | |||
动画:用 transition 替代 @keyframes | |||
宽度通过内联 style="width:xx%" 控制 | |||
────────────────────────────────────────── */ | |||
.gmtv-realm-list { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 10px; | |||
} | |||
.gmtv-realm-row { | |||
display: flex; | |||
align-items: center; | |||
gap: 10px; | |||
} | |||
.gmtv-realm-name { | |||
font-size: 12px; | |||
color: var(--c-text); | |||
font-weight: 600; | |||
width: 72px; | |||
flex-shrink: 0; | |||
white-space: nowrap; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
} | |||
.gmtv-realm-track { | |||
flex: 1; | |||
height: 8px; | |||
background: var(--c-border); | |||
border-radius: 10px; | |||
overflow: hidden; | |||
min-width: 0px; | |||
} | |||
.gmtv-realm-fill { | |||
height: 100%; | |||
background: linear-gradient(90deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
border-radius: 10px; | |||
transition: width 1s ease; | |||
} | |||
.gmtv-realm-label { | |||
font-size: 11px; | |||
color: var(--c-sub); | |||
width: 40px; | |||
text-align: right; | |||
flex-shrink: 0; | |||
white-space: nowrap; | |||
} | |||
/* 当前境界行高亮 */ | |||
.gmtv-realm-row.current .gmtv-realm-name { | |||
color: var(--c-primary); | |||
} | |||
.gmtv-realm-row.current .gmtv-realm-fill { | |||
background: #FFA94D; | |||
} | |||
.gmtv-realm-row.current .gmtv-realm-label { | |||
color: var(--c-primary); | |||
font-weight: 700; | |||
} | |||
/* ────────────────────────────────────────── | |||
10. 人物关系网格 | |||
────────────────────────────────────────── */ | |||
.gmtv-rel-grid { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); | |||
gap: 10px; | |||
} | |||
.gmtv-rel-card { | |||
background: var(--c-bg); | |||
border: 1px solid var(--c-border); | |||
border-radius: var(--radius-sm); | |||
padding: 12px 8px; | |||
text-align: center; | |||
transition: border-color 0.2s, box-shadow 0.2s; | |||
} | |||
.gmtv-rel-card:hover { | |||
border-color: #FF6B9D; | |||
box-shadow: 0 2px 10px rgba(255, 107, 157, 0.15); | |||
} | |||
.gmtv-rel-avatar { | |||
width: 44px; | |||
height: 44px; | |||
border-radius: 50%; | |||
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
margin: 0 auto 8px; | |||
overflow: hidden; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 22px; | |||
} | |||
.gmtv-rel-avatar img { | |||
width: 100%; | |||
height: 100%; | |||
object-fit: cover; | |||
} | |||
.gmtv-rel-name { | |||
font-size: 12px; | |||
font-weight: 700; | |||
color: var(--c-text); | |||
margin-bottom: 3px; | |||
} | } | ||
.gmtv-rel-name a, | |||
.gmtv- | .gmtv-rel-name a:visited { | ||
color: var(--c-text); | |||
text-decoration: none; | |||
} | } | ||
.gmtv- | |||
.gmtv-rel-name a:hover { | |||
color: var(--c-primary); | |||
} | } | ||
.gmtv- | |||
.gmtv-rel-type { | |||
font-size: 10px; | |||
color: var(--c-primary); | |||
font-weight: 600; | |||
} | } | ||
/* | |||
.gmtv- | /* ────────────────────────────────────────── | ||
11. 台词引用块 | |||
────────────────────────────────────────── */ | |||
.gmtv-quote { | |||
border-left: 3px solid var(--c-primary); | |||
background: var(--c-head-bg); | |||
border-radius: 0 var(--radius-sm) var(--radius-sm) 0; | |||
padding: 12px 16px; | |||
margin: 10px 0; | |||
position: relative; | |||
} | } | ||
.gmtv- | |||
.gmtv-quote-text { | |||
font-size: 13.5px; | |||
color: var(--c-text); | |||
font-style: italic; | |||
line-height: 1.8; | |||
margin: 0 0 6px; | |||
} | } | ||
.gmtv- | |||
.gmtv-quote-source { | |||
font-size: 11px; | |||
color: var(--c-sub); | |||
text-align: right; | |||
} | } | ||
.gmtv- | |||
/* ────────────────────────────────────────── | |||
12. 原著 vs 动漫对比 | |||
────────────────────────────────────────── */ | |||
.gmtv-compare { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 12px; | |||
margin-top: 4px; | |||
} | } | ||
.gmtv- | |||
.gmtv-compare-col { | |||
background: var(--c-bg); | |||
border: 1px solid var(--c-border); | |||
border-radius: var(--radius-sm); | |||
overflow: hidden; | |||
} | } | ||
.gmtv-compare-head { | |||
.gmtv- | padding: 7px 12px; | ||
font-size: 12px; | |||
font-weight: 700; | |||
text-align: center; | |||
} | } | ||
.gmtv- | |||
.gmtv-compare-head-novel { | |||
background: var(--c-tag-bg); | |||
color: var(--c-tag-text); | |||
} | } | ||
.gmtv- | |||
.gmtv-compare-head-anime { | |||
background: #FFEAE0; | |||
color: #FF6B9D; | |||
} | } | ||
.gmtv- | |||
.gmtv-compare-body { | |||
padding: 10px 12px; | |||
font-size: 12.5px; | |||
color: var(--c-text); | |||
line-height: 1.7; | |||
} | } | ||
.gmtv- | |||
/* ────────────────────────────────────────── | |||
13. Navbox 底部导航 | |||
────────────────────────────────────────── */ | |||
.gmtv-navbox { | |||
background: var(--c-card); | |||
border: 1px solid var(--c-border); | |||
border-radius: var(--radius-card); | |||
overflow: hidden; | |||
box-shadow: var(--shadow-card); | |||
margin-top: 14px; | |||
font-size: 12.5px; | |||
} | } | ||
.gmtv- | |||
.gmtv-navbox-title { | |||
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%); | |||
color: #fff; | |||
font-size: 13px; | |||
font-weight: 700; | |||
padding: 10px 16px; | |||
text-align: center; | |||
} | } | ||
.gmtv-navbox-row { | |||
.gmtv- | display: flex; | ||
align-items: flex-start; | |||
padding: 8px 14px; | |||
border-bottom: 1px solid var(--c-border); | |||
gap: 12px; | |||
} | } | ||
.gmtv- | |||
.gmtv-navbox-row:last-child { | |||
border-bottom: none; | |||
} | } | ||
.gmtv- | |||
.gmtv-navbox-group { | |||
color: var(--c-primary); | |||
font-weight: 700; | |||
min-width: 56px; | |||
flex-shrink: 0; | |||
padding-top: 1px; | |||
} | } | ||
.gmtv- | |||
.gmtv-navbox-links { | |||
flex: 1; | |||
color: var(--c-text); | |||
line-height: 1.8; | |||
} | } | ||
.gmtv-navbox-links a, | |||
.gmtv- | .gmtv-navbox-links a:visited { | ||
color: var(--c-primary); | |||
text-decoration: none; | |||
margin-right: 2px; | |||
} | } | ||
.gmtv- | |||
.gmtv-navbox-links a:hover { | |||
color: var(--c-accent); | |||
text-decoration: underline; | |||
} | } | ||
.gmtv- | |||
/* ────────────────────────────────────────── | |||
14. 正文内链 | |||
────────────────────────────────────────── */ | |||
.gmtv-card-body a, | |||
.gmtv-card-body a:visited { | |||
color: var(--c-primary); | |||
text-decoration: none; | |||
border-bottom: 1px solid #FFD0E0; | |||
transition: color 0.15s, border-color 0.15s; | |||
} | } | ||
.gmtv- | |||
.gmtv-card-body a:hover { | |||
color: var(--c-accent); | |||
border-bottom-color: var(--c-accent); | |||
} | } | ||
.gmtv- | |||
/* ────────────────────────────────────────── | |||
15. mw-collapsible 按钮样式 | |||
────────────────────────────────────────── */ | |||
/* 追加到 styles.css 末尾 */ | |||
.gmtv-card { | |||
position: relative; | |||
} | } | ||
.gmtv- | |||
.gmtv-character .mw-collapsible-toggle, | |||
.gmtv-character button.mw-collapsible-toggle { | |||
position: absolute; | |||
top: 10px; | |||
right: 14px; | |||
float: none; | |||
margin: 0; | |||
z-index: 1; | |||
background: rgba(255, 107, 157, 0.1) !important; | |||
color: #FF6B9D !important; | |||
border: 1px solid rgba(255, 107, 157, 0.3) !important; | |||
border-radius: 20px !important; | |||
padding: 3px 12px !important; | |||
font-size: 11px !important; | |||
font-weight: 600 !important; | |||
cursor: pointer; | |||
white-space: nowrap; | |||
line-height: 1.4; | |||
} | } | ||
.gmtv-character .mw-collapsible-toggle:hover, | |||
.gmtv- | .gmtv-character button.mw-collapsible-toggle:hover { | ||
background: rgba(255, 107, 157, 0.2) !important; | |||
border-color: #FF6B9D !important; | |||
} | } | ||
.gmtv- | |||
.gmtv-card:not(.mw-collapsed) .mw-collapsible-toggle, | |||
.gmtv-card:not(.mw-collapsed) button.mw-collapsible-toggle { | |||
background: rgba(255, 169, 77, 0.1) !important; | |||
color: #FFA94D !important; | |||
border-color: rgba(255, 169, 77, 0.3) !important; | |||
} | } | ||
.gmtv- | |||
.gmtv-card:not(.mw-collapsed) .mw-collapsible-toggle:hover, | |||
.gmtv-card:not(.mw-collapsed) button.mw-collapsible-toggle:hover { | |||
background: rgba(255, 169, 77, 0.2) !important; | |||
border-color: #FFA94D !important; | |||
} | } | ||
.gmtv-character .mw-collapsible-toggle:focus, | |||
.gmtv- | .gmtv-character button.mw-collapsible-toggle:focus { | ||
outline: none; | |||
} | } | ||
/* ────────────────────────────────────────── | |||
16. Citizen 皮肤冲突覆盖 | |||
────────────────────────────────────────── */ | |||
.gmtv-character .floatright { | |||
float: none !important; | |||
margin: 0 !important; | |||
clear: none !important; | |||
} | } | ||
.gmtv- | |||
.gmtv-character table.gmtv-table { | |||
border: none !important; | |||
border-collapse: collapse !important; | |||
} | } | ||
. | |||
font-size: | |||
/* ────────────────────────────────────────── | |||
17. 响应式:移动端 | |||
────────────────────────────────────────── */ | |||
@media screen and (max-width: 768px) { | |||
.gmtv-body { | |||
flex-direction: column; | |||
} | |||
.gmtv-sidebar { | |||
width: 100%; | |||
position: static; | |||
} | |||
.gmtv-hero { | |||
padding: 16px; | |||
gap: 12px; | |||
} | |||
.gmtv-hero-avatar { | |||
width: 54px; | |||
height: 54px; | |||
font-size: 26px; | |||
} | |||
.gmtv-hero-name { | |||
font-size: 20px; | |||
} | |||
.gmtv-compare { | |||
grid-template-columns: 1fr; | |||
} | |||
.gmtv-rel-grid { | |||
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); | |||
gap: 8px; | |||
} | |||
} | } | ||
. | |||
@media screen and (max-width: 480px) { | |||
font- | |||
.gmtv-hero { | |||
flex-direction: column; | |||
align-items: flex-start; | |||
} | |||
.gmtv-card-body { | |||
padding: 12px; | |||
} | |||
.gmtv-infobox-row { | |||
flex-direction: column; | |||
gap: 2px; | |||
} | |||
.gmtv-infobox-key { | |||
min-width: 0; | |||
font-size: 11px; | |||
} | |||
} | } | ||
2026年6月4日 (四) 00:51的最新版本
/* ──────────────────────────────────────────
1. 最外层容器
限制最大宽度,禁止全屏撑满
────────────────────────────────────────── */
.gmtv-character {
max-width: 1080px;
margin: 0 auto;
padding: 0;
/*background: var(--c-bg);*/
font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
color: var(--c-text);
line-height: 1.8;
}
/* ──────────────────────────────────────────
2. 顶部英雄标题区
────────────────────────────────────────── */
.gmtv-hero {
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
border-radius: var(--radius-card);
padding: 22px 24px;
margin-bottom: 18px;
display: flex;
align-items: flex-start;
gap: 18px;
color: #fff;
position: relative;
overflow: hidden;
}
/* 装饰光晕 */
.gmtv-hero::before {
content: '';
position: absolute;
top: -40px;
right: -40px;
width: 160px;
height: 160px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.12);
pointer-events: none;
}
.gmtv-hero-avatar {
width: 72px;
height: 72px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.25);
border: 2px solid rgba(255, 255, 255, 0.4);
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
}
.gmtv-hero-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.gmtv-hero-info {
flex: 1;
min-width: 0;
}
.gmtv-hero-name {
font-size: 26px;
font-weight: 900;
letter-spacing: 2px;
line-height: 1.2;
margin: 0 0 4px;
}
.gmtv-hero-sub {
font-size: 13px;
opacity: 0.88;
margin: 0 0 10px;
}
.gmtv-hero-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.gmtv-hero-tag {
background: rgba(255, 255, 255, 0.22);
border: 1px solid rgba(255, 255, 255, 0.45);
border-radius: 20px;
padding: 2px 12px;
font-size: 11px;
font-weight: 600;
color: #fff;
white-space: nowrap;
}
/* ──────────────────────────────────────────
3. 主体双栏布局
PC:左侧 Infobox(260px) + 右侧卡片流
移动端:单栏,Infobox 在上
────────────────────────────────────────── */
.gmtv-body {
display: flex;
align-items: flex-start;
gap: 16px;
}
.gmtv-sidebar {
width: 260px;
flex-shrink: 0;
position: sticky;
top: 72px;
}
.gmtv-main {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 14px;
}
/* ──────────────────────────────────────────
4. Infobox
重置 Citizen 皮肤对 table/infobox 的默认干扰
────────────────────────────────────────── */
.gmtv-character .gmtv-infobox,
.gmtv-character .gmtv-infobox table,
.gmtv-character .gmtv-infobox td,
.gmtv-character .gmtv-infobox th {
border: none !important;
background: none !important;
padding: 0 !important;
margin: 0 !important;
float: none !important;
width: auto !important;
}
.gmtv-infobox {
background: var(--c-card) !important;
border-radius: var(--radius-card) !important;
border: 1px solid var(--c-border) !important;
overflow: hidden;
box-shadow: var(--shadow-card);
width: 100% !important;
}
.gmtv-infobox-head {
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
color: #fff;
font-size: 12px;
font-weight: 700;
letter-spacing: 1px;
padding: 10px 14px;
text-align: center;
}
.gmtv-infobox-img {
width: 100%;
max-height: 280px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: var(--c-head-bg);
border-bottom: 1px solid var(--c-border);
}
.gmtv-infobox-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.gmtv-infobox-img-placeholder {
width: 100%;
height: 180px;
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 56px;
}
.gmtv-infobox-group {
background: var(--c-head-bg);
color: var(--c-primary);
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
padding: 7px 14px;
border-top: 1px solid var(--c-border);
border-bottom: 1px solid var(--c-border);
}
.gmtv-infobox-row {
display: flex;
align-items: flex-start;
padding: 8px 14px;
border-bottom: 1px solid var(--c-border);
gap: 8px;
font-size: 12.5px;
}
.gmtv-infobox-row:last-child {
border-bottom: none;
}
.gmtv-infobox-key {
color: var(--c-sub);
min-width: 58px;
flex-shrink: 0;
padding-top: 1px;
font-size: 12px;
}
.gmtv-infobox-val {
color: var(--c-text);
font-weight: 500;
flex: 1;
word-break: break-all;
}
.gmtv-infobox-val a,
.gmtv-infobox-val a:visited {
color: var(--c-primary);
text-decoration: none;
font-weight: 600;
}
.gmtv-infobox-val a:hover {
color: var(--c-accent);
text-decoration: underline;
}
/* ──────────────────────────────────────────
5. 通用卡片
────────────────────────────────────────── */
.gmtv-card {
background: var(--c-card);
border-radius: var(--radius-card);
border: 1px solid var(--c-border);
box-shadow: var(--shadow-card);
overflow: visible;
isolation: isolate;
}
.gmtv-card-head {
display: flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
background: var(--c-head-bg);
border-bottom: 1px solid var(--c-border);
cursor: pointer;
user-select: none;
}
/* 左侧色点装饰 */
.gmtv-card-head::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
flex-shrink: 0;
}
.gmtv-card-title {
font-size: 14px;
font-weight: 700;
color: var(--c-text);
flex: 1;
}
.gmtv-card-body {
padding: 16px;
font-size: 13.5px;
line-height: 1.85;
color: var(--c-text);
}
/* 折叠后:隐藏底边框,避免出现空色块 */
.gmtv-card.mw-collapsed .gmtv-card-head {
border-bottom: none;
border-radius: calc(var(--radius-card) - 1px);
}
/* 折叠后卡片 overflow 改为 visible,圆角不被截断 */
.gmtv-card.mw-collapsed {
overflow: visible;
}
/* 折叠状态下强制隐藏 p 标签防止撑开空白 */
.gmtv-card.mw-collapsed p {
display: none;
}
/* ──────────────────────────────────────────
6. 剧透卡片(默认折叠 + 自动角标)
────────────────────────────────────────── */
.gmtv-card-spoiler .gmtv-card-head {
background: #FFF0F5;
}
/* 折叠状态:显示"含剧透"角标 */
.gmtv-card-spoiler.mw-collapsed .gmtv-card-title::after {
content: '⚠ 含剧透';
font-size: 10px;
font-weight: 600;
color: #FF6B9D;
background: #FFE0EC;
border: 1px solid #FFB3CC;
border-radius: 8px;
padding: 1px 7px;
margin-left: 8px;
vertical-align: middle;
}
/* 展开状态:角标变为"剧透已展开" */
.gmtv-card-spoiler:not(.mw-collapsed) .gmtv-card-title::after {
content: '▼ 剧透已展开';
font-size: 10px;
font-weight: 600;
color: #FFA94D;
background: #FFEAE0;
border: 1px solid #FFD0A0;
border-radius: 8px;
padding: 1px 7px;
margin-left: 8px;
vertical-align: middle;
}
/* ──────────────────────────────────────────
7. 标签 / Badge
────────────────────────────────────────── */
.gmtv-tag {
display: inline-block;
background: var(--c-tag-bg);
color: var(--c-tag-text);
border-radius: 20px;
padding: 2px 11px;
font-size: 11px;
font-weight: 600;
margin: 2px 3px 2px 0;
white-space: nowrap;
}
.gmtv-tag-primary {
background: #FF6B9D;
color: #fff;
}
.gmtv-tag-accent {
background: #FFA94D;
color: #fff;
}
.gmtv-badge-win {
display: inline-block;
background: #E6F9EE;
color: #1E8A47;
padding: 1px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 700;
}
.gmtv-badge-loss {
display: inline-block;
background: #FDEAEA;
color: #C0392B;
padding: 1px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 700;
}
.gmtv-badge-draw {
display: inline-block;
background: #F0F0F0;
color: #666666;
padding: 1px 10px;
border-radius: 10px;
font-size: 11px;
font-weight: 700;
}
/* ──────────────────────────────────────────
8. 数据表格(战绩、技能、装备)
重置 Citizen wikitable 默认样式
────────────────────────────────────────── */
.gmtv-character .gmtv-table {
width: 100%;
border-collapse: collapse;
font-size: 12.5px;
border: none !important;
background: none !important;
margin: 0 !important;
}
.gmtv-character .gmtv-table th {
background: var(--c-head-bg) !important;
color: var(--c-primary) !important;
padding: 8px 12px !important;
text-align: left !important;
font-weight: 700 !important;
border-bottom: 2px solid var(--c-border) !important;
border-right: none !important;
border-top: none !important;
border-left: none !important;
white-space: nowrap;
}
.gmtv-character .gmtv-table td {
padding: 8px 12px !important;
border-bottom: 1px solid var(--c-border) !important;
border-right: none !important;
border-top: none !important;
border-left: none !important;
color: var(--c-text) !important;
vertical-align: top;
}
.gmtv-character .gmtv-table tr:last-child td {
border-bottom: none !important;
}
.gmtv-character .gmtv-table a,
.gmtv-character .gmtv-table a:visited {
color: var(--c-primary);
text-decoration: none;
}
.gmtv-character .gmtv-table a:hover {
color: var(--c-accent);
}
/* wikitable 污染防护 */
.gmtv-character .wikitable.gmtv-table,
.gmtv-character .wikitable.gmtv-table > tbody > tr > th,
.gmtv-character .wikitable.gmtv-table > tbody > tr > td {
background: none !important;
border-color: var(--c-border) !important;
}
.gmtv-card-body-table {
padding: 0 16px !important;
overflow-x: auto;
overflow-y: visible;
display: block;
box-sizing: border-box;
}
/* 表格本身宽度撑满容器,padding 由容器控制 */
.gmtv-card-body-table .gmtv-table,
.gmtv-card-body-table table {
width: 100% !important;
margin: 0 !important;
}
/* th/td 左右 padding 恢复正常,不需要再单独控制首尾列 */
.gmtv-card-body-table .gmtv-table th {
padding: 8px 12px !important;
}
.gmtv-card-body-table .gmtv-table td {
padding: 8px 12px !important;
}
/* 表格顶部加一点间距,不和卡片头部紧贴 */
.gmtv-card-body-table .gmtv-table,
.gmtv-card-body-table table.wikitable {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.gmtv-card-body h2,
.gmtv-card-body h3,
.gmtv-card-body h4 {
padding-left: 2px !important;
margin-top: 18px !important;
margin-bottom: 8px !important;
font-size: 14px !important;
font-weight: 700 !important;
color: var(--c-text) !important;
border-bottom: 1px solid var(--c-border) !important;
padding-bottom: 6px !important;
}
/* 卡片内第一个标题不需要顶部间距 */
.gmtv-card-body h2:first-child,
.gmtv-card-body h3:first-child,
.gmtv-card-body h4:first-child {
margin-top: 4px !important;
}
/* 卡片内段落间距 */
.gmtv-card-body p {
margin-top: 0 !important;
margin-bottom: 10px !important;
}
.gmtv-card-body p:last-child {
margin-bottom: 0 !important;
}
/* ──────────────────────────────────────────
9. 境界进度条
动画:用 transition 替代 @keyframes
宽度通过内联 style="width:xx%" 控制
────────────────────────────────────────── */
.gmtv-realm-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.gmtv-realm-row {
display: flex;
align-items: center;
gap: 10px;
}
.gmtv-realm-name {
font-size: 12px;
color: var(--c-text);
font-weight: 600;
width: 72px;
flex-shrink: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.gmtv-realm-track {
flex: 1;
height: 8px;
background: var(--c-border);
border-radius: 10px;
overflow: hidden;
min-width: 0px;
}
.gmtv-realm-fill {
height: 100%;
background: linear-gradient(90deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
border-radius: 10px;
transition: width 1s ease;
}
.gmtv-realm-label {
font-size: 11px;
color: var(--c-sub);
width: 40px;
text-align: right;
flex-shrink: 0;
white-space: nowrap;
}
/* 当前境界行高亮 */
.gmtv-realm-row.current .gmtv-realm-name {
color: var(--c-primary);
}
.gmtv-realm-row.current .gmtv-realm-fill {
background: #FFA94D;
}
.gmtv-realm-row.current .gmtv-realm-label {
color: var(--c-primary);
font-weight: 700;
}
/* ──────────────────────────────────────────
10. 人物关系网格
────────────────────────────────────────── */
.gmtv-rel-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 10px;
}
.gmtv-rel-card {
background: var(--c-bg);
border: 1px solid var(--c-border);
border-radius: var(--radius-sm);
padding: 12px 8px;
text-align: center;
transition: border-color 0.2s, box-shadow 0.2s;
}
.gmtv-rel-card:hover {
border-color: #FF6B9D;
box-shadow: 0 2px 10px rgba(255, 107, 157, 0.15);
}
.gmtv-rel-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
margin: 0 auto 8px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
}
.gmtv-rel-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.gmtv-rel-name {
font-size: 12px;
font-weight: 700;
color: var(--c-text);
margin-bottom: 3px;
}
.gmtv-rel-name a,
.gmtv-rel-name a:visited {
color: var(--c-text);
text-decoration: none;
}
.gmtv-rel-name a:hover {
color: var(--c-primary);
}
.gmtv-rel-type {
font-size: 10px;
color: var(--c-primary);
font-weight: 600;
}
/* ──────────────────────────────────────────
11. 台词引用块
────────────────────────────────────────── */
.gmtv-quote {
border-left: 3px solid var(--c-primary);
background: var(--c-head-bg);
border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
padding: 12px 16px;
margin: 10px 0;
position: relative;
}
.gmtv-quote-text {
font-size: 13.5px;
color: var(--c-text);
font-style: italic;
line-height: 1.8;
margin: 0 0 6px;
}
.gmtv-quote-source {
font-size: 11px;
color: var(--c-sub);
text-align: right;
}
/* ──────────────────────────────────────────
12. 原著 vs 动漫对比
────────────────────────────────────────── */
.gmtv-compare {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-top: 4px;
}
.gmtv-compare-col {
background: var(--c-bg);
border: 1px solid var(--c-border);
border-radius: var(--radius-sm);
overflow: hidden;
}
.gmtv-compare-head {
padding: 7px 12px;
font-size: 12px;
font-weight: 700;
text-align: center;
}
.gmtv-compare-head-novel {
background: var(--c-tag-bg);
color: var(--c-tag-text);
}
.gmtv-compare-head-anime {
background: #FFEAE0;
color: #FF6B9D;
}
.gmtv-compare-body {
padding: 10px 12px;
font-size: 12.5px;
color: var(--c-text);
line-height: 1.7;
}
/* ──────────────────────────────────────────
13. Navbox 底部导航
────────────────────────────────────────── */
.gmtv-navbox {
background: var(--c-card);
border: 1px solid var(--c-border);
border-radius: var(--radius-card);
overflow: hidden;
box-shadow: var(--shadow-card);
margin-top: 14px;
font-size: 12.5px;
}
.gmtv-navbox-title {
background: linear-gradient(135deg, var(--c-gradient-start) 0%, var(--c-gradient-end) 100%);
color: #fff;
font-size: 13px;
font-weight: 700;
padding: 10px 16px;
text-align: center;
}
.gmtv-navbox-row {
display: flex;
align-items: flex-start;
padding: 8px 14px;
border-bottom: 1px solid var(--c-border);
gap: 12px;
}
.gmtv-navbox-row:last-child {
border-bottom: none;
}
.gmtv-navbox-group {
color: var(--c-primary);
font-weight: 700;
min-width: 56px;
flex-shrink: 0;
padding-top: 1px;
}
.gmtv-navbox-links {
flex: 1;
color: var(--c-text);
line-height: 1.8;
}
.gmtv-navbox-links a,
.gmtv-navbox-links a:visited {
color: var(--c-primary);
text-decoration: none;
margin-right: 2px;
}
.gmtv-navbox-links a:hover {
color: var(--c-accent);
text-decoration: underline;
}
/* ──────────────────────────────────────────
14. 正文内链
────────────────────────────────────────── */
.gmtv-card-body a,
.gmtv-card-body a:visited {
color: var(--c-primary);
text-decoration: none;
border-bottom: 1px solid #FFD0E0;
transition: color 0.15s, border-color 0.15s;
}
.gmtv-card-body a:hover {
color: var(--c-accent);
border-bottom-color: var(--c-accent);
}
/* ──────────────────────────────────────────
15. mw-collapsible 按钮样式
────────────────────────────────────────── */
/* 追加到 styles.css 末尾 */
.gmtv-card {
position: relative;
}
.gmtv-character .mw-collapsible-toggle,
.gmtv-character button.mw-collapsible-toggle {
position: absolute;
top: 10px;
right: 14px;
float: none;
margin: 0;
z-index: 1;
background: rgba(255, 107, 157, 0.1) !important;
color: #FF6B9D !important;
border: 1px solid rgba(255, 107, 157, 0.3) !important;
border-radius: 20px !important;
padding: 3px 12px !important;
font-size: 11px !important;
font-weight: 600 !important;
cursor: pointer;
white-space: nowrap;
line-height: 1.4;
}
.gmtv-character .mw-collapsible-toggle:hover,
.gmtv-character button.mw-collapsible-toggle:hover {
background: rgba(255, 107, 157, 0.2) !important;
border-color: #FF6B9D !important;
}
.gmtv-card:not(.mw-collapsed) .mw-collapsible-toggle,
.gmtv-card:not(.mw-collapsed) button.mw-collapsible-toggle {
background: rgba(255, 169, 77, 0.1) !important;
color: #FFA94D !important;
border-color: rgba(255, 169, 77, 0.3) !important;
}
.gmtv-card:not(.mw-collapsed) .mw-collapsible-toggle:hover,
.gmtv-card:not(.mw-collapsed) button.mw-collapsible-toggle:hover {
background: rgba(255, 169, 77, 0.2) !important;
border-color: #FFA94D !important;
}
.gmtv-character .mw-collapsible-toggle:focus,
.gmtv-character button.mw-collapsible-toggle:focus {
outline: none;
}
/* ──────────────────────────────────────────
16. Citizen 皮肤冲突覆盖
────────────────────────────────────────── */
.gmtv-character .floatright {
float: none !important;
margin: 0 !important;
clear: none !important;
}
.gmtv-character table.gmtv-table {
border: none !important;
border-collapse: collapse !important;
}
/* ──────────────────────────────────────────
17. 响应式:移动端
────────────────────────────────────────── */
@media screen and (max-width: 768px) {
.gmtv-body {
flex-direction: column;
}
.gmtv-sidebar {
width: 100%;
position: static;
}
.gmtv-hero {
padding: 16px;
gap: 12px;
}
.gmtv-hero-avatar {
width: 54px;
height: 54px;
font-size: 26px;
}
.gmtv-hero-name {
font-size: 20px;
}
.gmtv-compare {
grid-template-columns: 1fr;
}
.gmtv-rel-grid {
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
gap: 8px;
}
}
@media screen and (max-width: 480px) {
.gmtv-hero {
flex-direction: column;
align-items: flex-start;
}
.gmtv-card-body {
padding: 12px;
}
.gmtv-infobox-row {
flex-direction: column;
gap: 2px;
}
.gmtv-infobox-key {
min-width: 0;
font-size: 11px;
}
}