个人主页装扮 · 模板分享PROFILE SKIN · TEMPLATE SHARE
最近平台上了「个人主页」这玩意,浅浅做了五套后感觉还挺好玩的,昨天做了个简单的番长同人主题,决定分享下,让大伙也能方便地整上好看的个人主页,理论上来说换个图链和主题配色就是新的一套皮肤了。完整 CSS 都在下面可以直接复制。虽然 20 级确实高了点,等级没到的也可以先学一下——都是简单的纯 CSS。
虽说开源,不过我技术也很烂,算是抛砖引玉,给大伙提供个骨架和想法;有遗漏或不对的地方还请大佬们轻喷并指正,目的还是为了分享。
能力边界
Capabilities先划清能做与不能做,少走弯路。
- 改任意元素样式(色 / 版式 / 字体 / 背景 / 动画 / 伪元素)
@font-face外链字体 woff2@property/ 渐变 /mask/clip-path/filter:hover/:has()/ 结构伪类 驱动交互@media响应式(桌面 / 手机)- 伪元素
content注入装饰文字
- 作品卡若干属性被锁,需绕法(见下)
:has()/@property旧内核需降级background-attachment:fixed手机不稳,改position:fixed伪元素- 字体子集有限,中文需配兜底
- 任何 JavaScript
@import外链 CSS- 增 / 删 / 重排 DOM(自定义元素只能用
::before/::after模拟) - 触达
#profileBuiltInCss之外 - 持久"点击切换"状态
- 替换昵称文本(只可样式化)
<input> / 复选框 / #锚点 来"记住点击"。替代:① hover / 手机轻触翻面(鼠标离开会弹回);② 滚动驱动(最稳,内容完全可交互)。background-image / box-shadow / filter / 内层<a>宽度(240px) 改不动。绕法:阴影→filter:drop-shadow 或伪元素;边框→outline;放大→内层 <a>{zoom:1.x};色块/图→伪元素背景。入口与基本规则
Entry变量定义在 #profile-page
不要用 :root(会失效)。
字体走 @font-face
禁 @import;外链 cdn.jsdelivr.net/npm/@fontsource/… woff2。
长度上限
CSS 约 10 万字符上限,超出会被拒。
页面全部可设置 ID
ID Map这是目前扒出来的整个页面 ID,基本每个组件都有了,包括金 / 银 / 无冠作品。我总感觉金银冠的图也能换——自定义冠的时代要到来了吗?
#profileBuiltInCss ← 注入根(你的 CSS 只作用在这里面)
└ #profile-page ← 整页画布(设背景 / 整体布局 / CSS变量都写这)
├ #profile-header-banner ← 顶部横幅(头像·昵称·徽章·关注·签名)
│ ├ #profile-header-avatar ← 头像框(外层容器)
│ │ ├ #profile-avatar (圆形外壳)
│ │ │ └ #profile-avatar-image (头像图 <img>)
│ │ └ #profile-header-level (等级牌「32」)
│ ├ #profile-header-name-row ← 昵称行
│ │ ├ #profile-header-personalize-icon (昵称旁的小图标 svg)
│ │ └ #profile-user-name (昵称文字)
│ ├ #profile-header-medals ← 徽章区(成就/勋章图标,无独立子 id)
│ ├ #profile-header-stats ← 关注 / 粉丝区
│ │ ├ #profile-following (关注块)
│ │ │ ├ #profile-following-label 「关注」二字
│ │ │ └ #profile-following-value 关注数字
│ │ └ #profile-followers (粉丝块)
│ │ ├ #profile-followers-label 「粉丝」二字
│ │ └ #profile-followers-value 粉丝数字
│ └ #profile-signature ← 签名 / 简介
│ └ #profile-signature-root
│ └ #profile-signature-box
│ └ #profile-signature-text (签名文字本体)
├ #profile-decoration-trigger ← 「个性化」按钮(右下角,也是上传 CSS 的入口)
└ #profile-tabs ← 标签 + 作品区
├ #profile-tabs-header ← 标签头
│ ├ #profile-tabs-list
│ │ └ #profile-tab-work-card (「我的作品」标签)
│ │ └ #profile-work-card-tab
│ │ └ #profile-work-card-type-trigger
│ ├ #profile-display-mode-trigger (显示模式切换)
│ └ #profile-sort-trigger (「默认排序」)
└ #profile-tabs-content
└ #profile-tab-content-work-card
└ #profile-apps-section
└ #profile-apps
└ #profile-apps-grid ← 作品网格(卡片容器)
├ #profile-app-card-<UUID> 每张作品卡(按 UUID,见第二节)
├ #profile-apps-empty (没有作品时的空状态)
└ #profile-apps-pagination (翻页器)
<span> 的 img src 文件名,用 :has() 命中:[id^="profile-app-card-"]:has(span:first-child img[src*="gold.webp"]) { /* 金冠 */ }
[id^="profile-app-card-"]:has(span:first-child img[src*="silver.webp"]) { /* 银冠 */ }
[id^="profile-app-card-"]:not(:has(span:first-child img[src*="gold.webp"])):not(:has(span:first-child img[src*="silver.webp"])) { /* 无冠 */ }
完整皮肤源码
GLOSS ONE / Source整段可复制。换三处图链 + 配色变量,就是一套你的新皮肤。
- · 左信息列 + 全屏 banner 底图 + 右侧立绘幕(hover 滑开露出作品)
- · 头像狗牌切角;昵称白字 + 扫光 + 硬阴影
- · 作品卡流光边框、桌面横向"档案条"
- · 桌面 / 手机两套布局 +
prefers-reduced-motion降级
@font-face{font-family:'ChakraX';font-weight:700;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/chakra-petch/files/chakra-petch-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'ChakraX';font-weight:500;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/chakra-petch/files/chakra-petch-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'MonoX';font-weight:700;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/space-mono/files/space-mono-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'MonoX';font-weight:400;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/space-mono/files/space-mono-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'NotoSC';font-weight:400;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc/files/noto-sans-sc-chinese-simplified-400-normal.woff2') format('woff2');}
@font-face{font-family:'NotoSC';font-weight:500;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc/files/noto-sans-sc-chinese-simplified-500-normal.woff2') format('woff2');}
@font-face{font-family:'NotoSC';font-weight:700;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc/files/noto-sans-sc-chinese-simplified-700-normal.woff2') format('woff2');}
@font-face{font-family:'NotoSC';font-weight:900;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/noto-sans-sc/files/noto-sans-sc-chinese-simplified-900-normal.woff2') format('woff2');}
@font-face{font-family:'OswaldX';font-weight:700;font-display:swap;src:url('https://cdn.jsdelivr.net/npm/@fontsource/oswald/files/oswald-latin-700-normal.woff2') format('woff2');}
@property --beamAngle{syntax:'<angle>';inherits:false;initial-value:0deg;}
@keyframes beamFlow{to{--beamAngle:360deg}}
@keyframes holoDrift{0%{background-position:0 0}100%{background-position:300px 0}}
@keyframes dust{from{transform:translateY(0)}to{transform:translateY(-26px)}}
@keyframes nameSweep{0%{background-position:140% 0}100%{background-position:-40% 0}}
@keyframes nameGlow{0%,100%{filter:drop-shadow(0 0 2px rgba(110,60,208,.15))}50%{filter:drop-shadow(0 0 16px rgba(138,91,230,.6))}}
@keyframes nameIgnite{0%{opacity:0;clip-path:inset(0 100% 0 0);filter:brightness(2.2)}100%{opacity:1;clip-path:inset(0 0 0 0);filter:brightness(1)}}
@keyframes streak{0%{transform:translateX(-120%) rotate(-18deg);opacity:0}10%{opacity:1}90%{opacity:1}100%{transform:translateX(120%) rotate(-18deg);opacity:0}}
@keyframes rise{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
@keyframes revealSwipe{0%{opacity:.35;background:linear-gradient(90deg,rgba(70,230,207,.35),transparent)}100%{opacity:0}}
#profile-page{
--paper:#F5F1FB;--paper-2:#ECE6F8;--mist:#D9CEF0;
--violet:#6E3CD0;--violet-2:#8A5BE6;--violet-deep:#3E2380;--ink:#1E1530;
--teal:#0FBFA6;--teal-bright:#46E6CF;--magenta:#FF7AD0;--sky:#7FB8FF;--gem:#3A2E8C;
--line:rgba(200,182,255,.28);
--line-dark:rgba(62,35,128,.16);
--sh:rgba(30,21,48,.45);
--holo:linear-gradient(110deg,#C8B6FF,#A8F0E0,#FFC2EC,#A9D8FF,#C8B6FF);
--tag:polygon(0 0,calc(100% - 22px) 0,100% 22px,100% 100%,0 100%);
--scrim-left:linear-gradient(90deg,rgba(16,11,26,.95) 0%,rgba(16,11,26,.90) 30%,rgba(28,18,52,.66) 56%,rgba(28,18,52,.22) 80%,transparent 100%);
--scrim-bottom:linear-gradient(to top,rgba(30,21,48,.92) 0%,rgba(62,35,128,.42) 46%,transparent 74%);
--img-banner:url('https://catai.wiki/837d3d60-2687-4dcc-4512-f21543248800/w=1000');
--img-avatar:url('https://catai.wiki/fa7a448f-39c7-4cf8-b41a-e5ac100f6300/w=1000');
--img-portrait:url('https://catai.wiki/739e9c2d-2288-47a5-6bdc-81691b86a500/w=1000');
color:var(--ink)!important;
font-family:'ChakraX','NotoSC','PingFang SC','Microsoft YaHei',sans-serif!important;
-webkit-font-smoothing:antialiased!important;text-rendering:optimizeLegibility!important;
display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
position:relative!important;isolation:isolate!important;overflow-x:clip!important;min-height:100vh!important;max-height:none!important;
}
#profile-page::before{
content:""!important;position:fixed!important;inset:0!important;z-index:0!important;pointer-events:none!important;clip-path:none!important;
background:var(--scrim-bottom),var(--img-portrait) center top/cover no-repeat!important;background-color:transparent!important;
}
#profile-page::after{
content:""!important;position:fixed!important;inset:0!important;z-index:0!important;pointer-events:none!important;opacity:.04!important;clip-path:none!important;
background-image:radial-gradient(rgba(110,60,208,.6) 1px,transparent 1.7px),radial-gradient(rgba(15,191,166,.5) 1px,transparent 1.7px)!important;
background-size:16px 16px,16px 16px!important;background-position:0 0,8px 8px!important;
animation:dust 14s linear infinite!important;
}
#profile-header-banner,#profile-tabs{position:relative!important;z-index:1!important;}
#profile-header-banner{
position:relative!important;display:flex!important;flex-direction:column!important;
align-items:flex-start!important;text-align:left!important;
background:transparent!important;border:none!important;height:auto!important;
padding:clamp(20px,6vw,40px)!important;gap:clamp(10px,1.4vw,18px)!important;overflow:visible!important;
}
#profile-header-avatar{
position:relative!important;z-index:3!important;isolation:isolate!important;order:1!important;
width:clamp(86px,7.5vw,124px)!important;height:clamp(86px,7.5vw,124px)!important;margin:0 0 6px!important;
filter:drop-shadow(0 12px 20px rgba(62,35,128,.34))!important;
}
#profile-header-avatar::before,#profile-header-avatar::after{content:""!important;position:absolute!important;inset:0!important;clip-path:var(--tag)!important;pointer-events:none!important;}
#profile-header-avatar::before{background:var(--violet-2)!important;transform:translate(19px,19px)!important;z-index:1!important;opacity:.9!important;}
#profile-header-avatar::after{background:var(--magenta)!important;transform:translate(12px,12px)!important;z-index:2!important;opacity:.92!important;}
#profile-avatar{position:relative!important;z-index:3!important;display:block!important;width:100%!important;height:100%!important;background:transparent!important;box-shadow:none!important;border:none!important;outline:none!important;border-radius:0!important;}
#profile-avatar-image{box-shadow:none!important;border:none!important;}
#profile-avatar::before{content:""!important;position:absolute!important;inset:0!important;clip-path:var(--tag)!important;background:var(--teal-bright)!important;transform:translate(6px,6px)!important;z-index:-1!important;pointer-events:none!important;}
#profile-avatar-image{position:relative!important;z-index:1!important;width:100%!important;height:100%!important;object-fit:cover!important;clip-path:var(--tag)!important;border-radius:0!important;box-shadow:none!important;}
#profile-avatar::after{display:none!important;content:none!important;}
#profile-header-level{
z-index:4!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
width:fit-content!important;min-width:0!important;max-width:none!important;
background:linear-gradient(135deg,var(--violet),var(--violet-deep))!important;
padding:2px 9px 3px!important;border:none!important;border-top:1.5px solid var(--teal-bright)!important;border-radius:0!important;
clip-path:polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,0 100%)!important;
box-shadow:0 2px 0 var(--gem),0 0 9px rgba(110,60,208,.65)!important;filter:none!important;
}
#profile-header-level img{display:none!important;}
#profile-header-level>div{position:static!important;display:inline-flex!important;align-items:center!important;width:auto!important;min-width:0!important;margin:0!important;}
#profile-header-level span{position:static!important;right:auto!important;left:auto!important;}
#profile-header-level,#profile-header-level *{color:#fff!important;-webkit-text-fill-color:#fff!important;font-family:'MonoX',monospace!important;font-weight:700!important;font-size:11px!important;letter-spacing:.04em!important;line-height:1.4!important;}
#profile-header-level::before{content:"\25C6"!important;font-size:8px!important;margin-right:3px!important;color:var(--teal-bright)!important;-webkit-text-fill-color:var(--teal-bright)!important;opacity:.9!important;}
#profile-header-name-row{order:2!important;justify-content:flex-start!important;width:100%!important;margin-top:2px!important;}
#profile-user-name{
font-family:'OswaldX','ChakraX','NotoSC',sans-serif!important;font-weight:700!important;
font-size:clamp(38px,3.4vw,72px)!important;line-height:.9!important;letter-spacing:.01em!important;text-transform:uppercase!important;
overflow-wrap:anywhere!important;max-width:none!important;
color:#fff!important;
background-image:linear-gradient(100deg,#fff 0%,#fff 30%,#7B5BD6 41%,#C79BFF 50%,#46E6CF 53%,#7B5BD6 60%,#fff 71%,#fff 100%)!important;
background-size:230% 100%!important;background-repeat:no-repeat!important;
-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;
text-shadow:4px 4px 0 var(--violet-deep),7px 7px 0 rgba(30,21,48,.45)!important;
animation:nameSweep 3.4s linear infinite,nameGlow 2.6s ease-in-out infinite!important;
}
#profile-user-name::after{
content:"⚡ NO.1 IN THE UNIVERSE"!important;display:block!important;text-align:left!important;margin-top:10px!important;
-webkit-text-fill-color:var(--teal-bright)!important;color:var(--teal-bright)!important;background:none!important;filter:none!important;
font-family:'MonoX',monospace!important;font-weight:700!important;font-size:clamp(11px,.92vw,15px)!important;
letter-spacing:.3em!important;text-transform:uppercase!important;
}
#profile-header-medals{display:flex!important;gap:8px!important;align-items:center!important;order:4!important;margin-top:6px!important;}
#profile-header-medals span{
width:22px!important;height:22px!important;display:grid!important;place-items:center!important;
background:rgba(245,241,251,.12)!important;backdrop-filter:blur(6px)!important;border:1px solid var(--line)!important;
clip-path:var(--tag)!important;box-shadow:2px 2px 0 rgba(30,21,48,.35)!important;
}
#profile-header-medals span img{width:15px!important;height:15px!important;object-fit:contain!important;filter:drop-shadow(0 1px 0 var(--gem))!important;}
#profile-header-stats{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:12px!important;width:100%!important;order:5!important;margin-top:6px!important;}
#profile-following,#profile-followers{
flex:1 1 92px!important;max-width:128px!important;
background:rgba(245,241,251,.10)!important;backdrop-filter:blur(10px)!important;
border:1px solid var(--line)!important;border-left:4px solid var(--violet)!important;border-radius:0!important;
padding:7px 12px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;
clip-path:polygon(0 0,100% 0,100% 100%,8px 100%)!important;transition:transform .16s ease,border-left-width .16s ease,border-left-color .16s ease!important;
}
#profile-following:hover,#profile-followers:hover{transform:translateX(3px)!important;border-left-color:var(--teal)!important;border-left-width:6px!important;}
#profile-following-value,#profile-followers-value{font-family:'ChakraX',sans-serif!important;font-weight:700!important;font-size:clamp(15px,1vw,19px)!important;color:var(--paper)!important;line-height:1!important;}
#profile-following-label,#profile-followers-label{font-family:'NotoSC',sans-serif!important;font-weight:500!important;font-size:11px!important;letter-spacing:0!important;text-transform:none!important;color:var(--mist)!important;}
#profile-signature{order:6!important;width:min(330px,100%)!important;margin:10px 0 0!important;background:transparent!important;border:none!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;}
#profile-signature::before{content:"GET LOUD"!important;font-family:'MonoX',monospace!important;font-weight:700!important;font-size:11px!important;letter-spacing:.4em!important;color:var(--teal)!important;margin-bottom:6px!important;}
#profile-signature-root,#profile-signature-box{width:100%!important;background:transparent!important;}
#profile-signature-text{
text-align:left!important;color:var(--ink)!important;font-family:'NotoSC',sans-serif!important;font-weight:400!important;
font-size:clamp(11.5px,.8vw,13.5px)!important;line-height:1.6!important;letter-spacing:0!important;
padding:10px 13px!important;background:var(--paper)!important;border:1px solid var(--line-dark)!important;
clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px))!important;
}
#profile-header-actions{order:7!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:10px!important;width:100%!important;margin-top:14px!important;}
#profile-header-actions button{
height:auto!important;padding:7px 15px!important;border-radius:0!important;cursor:pointer!important;
font-family:'NotoSC',sans-serif!important;font-weight:700!important;font-size:12px!important;letter-spacing:0!important;text-transform:none!important;
clip-path:polygon(0 0,100% 0,100% 100%,10px 100%)!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important;
}
#profile-header-actions button svg{width:15px!important;height:15px!important;}
#profile-follow-btn[data-variant="default"]{background:var(--violet)!important;color:#fff!important;border:2px solid var(--violet)!important;box-shadow:5px 5px 0 var(--gem)!important;}
#profile-follow-btn[data-variant="default"]:hover{background:var(--violet-2)!important;}
#profile-follow-btn[data-variant="outline"],#profile-private-chat-btn{background:rgba(245,241,251,.85)!important;color:var(--violet-deep)!important;border:2px solid var(--violet)!important;box-shadow:5px 5px 0 var(--mist)!important;}
#profile-header-actions button:hover{transform:translate(-2px,-2px)!important;box-shadow:7px 7px 0 var(--gem)!important;}
#profile-header-actions button:active{transform:translate(1px,1px)!important;box-shadow:3px 3px 0 var(--gem)!important;}
#profile-block-btn{background:transparent!important;color:var(--paper)!important;opacity:.55!important;border:1px dashed var(--line)!important;box-shadow:none!important;}
#profile-tabs{flex:1 1 auto!important;min-width:0!important;background:transparent!important;width:100%!important;}
#profile-tabs-header{
position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
padding:clamp(24px,3vw,40px) clamp(20px,3vw,44px) 12px!important;border-bottom:2px solid var(--line)!important;
}
#profile-tabs-header::before{
content:""!important;position:absolute!important;left:clamp(20px,3vw,44px)!important;top:14px!important;width:120px!important;height:10px!important;
background:repeating-linear-gradient(90deg,var(--violet-2) 0 4px,transparent 4px 9px)!important;opacity:.7!important;
}
#profile-tab-work-card,#profile-work-card-tab{
font-family:'NotoSC',sans-serif!important;font-weight:900!important;transform:skewX(-7deg)!important;
font-size:clamp(18px,1.4vw,26px)!important;letter-spacing:0!important;text-transform:none!important;
position:relative!important;
color:var(--violet-deep)!important;-webkit-text-fill-color:var(--violet-deep)!important;-webkit-text-stroke:0!important;
text-shadow:0 0 4px #fff,0 0 8px #fff,1px 2px 3px rgba(124,77,255,.45)!important;
padding-bottom:8px!important;border:none!important;border-bottom:3px solid var(--teal)!important;background:transparent!important;border-radius:0!important;
}
#profile-sort-trigger{
font-family:'NotoSC',sans-serif!important;font-weight:700!important;transform:skewX(-7deg)!important;
background:rgba(245,241,251,.92)!important;backdrop-filter:blur(8px)!important;border:2px solid var(--violet)!important;
color:var(--violet-deep)!important;-webkit-text-fill-color:var(--violet-deep)!important;box-shadow:3px 3px 0 var(--mist)!important;
border-radius:0!important;font-size:13px!important;letter-spacing:0!important;text-transform:none!important;padding:6px 12px!important;
transition:transform .16s ease,box-shadow .16s ease!important;
}
#profile-sort-trigger:hover{box-shadow:5px 5px 0 var(--mist)!important;transform:skewX(-7deg) translate(-1px,-1px)!important;}
#profile-display-mode-trigger{
background:rgba(245,241,251,.92)!important;color:var(--violet-deep)!important;-webkit-text-fill-color:var(--violet-deep)!important;
border:2px solid var(--violet)!important;border-radius:0!important;
font-family:'NotoSC',sans-serif!important;font-weight:700!important;font-size:13px!important;
letter-spacing:0!important;text-transform:none!important;padding:6px 14px!important;box-shadow:3px 3px 0 var(--mist)!important;
}
#profile-tabs-content{overflow-y:auto!important;}
#profile-apps-section{position:relative!important;}
#profile-apps-grid{
display:grid!important;grid-template-columns:minmax(0,300px)!important;justify-content:center!important;align-items:start!important;
width:100%!important;max-width:760px!important;margin-inline:auto!important;
gap:clamp(14px,1.4vw,24px)!important;padding:clamp(16px,1.8vw,30px) clamp(14px,2vw,30px) 30px!important;opacity:1!important;
}
#profile-apps-grid [id^="profile-app-card-"]{
position:relative!important;width:auto!important;max-width:none!important;z-index:0!important;align-self:start!important;
outline:2px solid var(--violet)!important;outline-offset:0!important;background:#fff!important;
clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,0 100%)!important;transition:transform .18s ease!important;
}
#profile-apps-grid [id^="profile-app-card-"]::after{display:none!important;content:none!important;}
#profile-apps-grid [id^="profile-app-card-"]::before{
content:""!important;position:absolute!important;inset:0!important;box-sizing:border-box!important;padding:2px!important;z-index:5!important;pointer-events:none!important;
background:conic-gradient(from var(--beamAngle),transparent 0deg,var(--violet-2) 60deg,transparent 130deg,transparent 240deg,var(--teal-bright) 305deg,transparent 360deg)!important;
-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;-webkit-mask-composite:xor!important;mask-composite:exclude!important;
clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,0 100%)!important;animation:beamFlow 5s linear infinite!important;animation-play-state:paused!important;
}
#profile-apps-grid [id^="profile-app-card-"]:hover{transform:translate(-6px,-6px)!important;}
#profile-apps-grid [id^="profile-app-card-"]:hover::before{animation-play-state:running!important;}
#profile-apps-grid [id^="profile-app-card-"]:hover::after{transform:translate(8px,8px)!important;background:var(--teal)!important;}
#profile-apps-grid [id^="profile-app-card-"]>a{background:#fff!important;border-radius:0!important;display:block!important;}
#profile-apps-grid [id^="profile-app-card-"] img{border-radius:0!important;width:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;display:block!important;}
#profile-apps-grid [id^="profile-app-card-"] a>span:first-child img{
width:auto!important;height:34px!important;max-width:none!important;aspect-ratio:auto!important;object-fit:contain!important;
}
#profile-apps-grid [id^="profile-app-card-"] a>span:first-child{
position:absolute!important;top:3px!important;left:3px!important;
width:auto!important;height:auto!important;z-index:7!important;
background:transparent!important;margin:0!important;padding:0!important;line-height:0!important;
filter:drop-shadow(1px 2px 2px rgba(30,21,48,.5))!important;
}
#profile-apps-grid [id^="profile-app-card-"]>a span.absolute.top-2.left-2{top:6px!important;left:auto!important;right:6px!important;bottom:auto!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div{background:transparent!important;}
#profile-apps-grid [id^="profile-app-card-"]>a,
#profile-apps-grid [id^="profile-app-card-"]>a div,
#profile-apps-grid [id^="profile-app-card-"]>a span,
#profile-apps-grid [id^="profile-app-card-"]>a p{color:var(--violet-deep)!important;-webkit-text-fill-color:var(--violet-deep)!important;}
#profile-apps-grid [id^="profile-app-card-"]>a .text-xs,
#profile-apps-grid [id^="profile-app-card-"]>a .text-sm{color:var(--violet-deep)!important;-webkit-text-fill-color:var(--violet-deep)!important;opacity:.9!important;}
#profile-apps-grid [id^="profile-app-card-"]>a .font-bold{color:var(--violet)!important;-webkit-text-fill-color:var(--violet)!important;font-weight:700!important;}
#profile-apps-grid [id^="profile-app-card-"]>a [class*="bg-background"]{background:rgba(110,60,208,.12)!important;color:var(--violet-deep)!important;-webkit-text-fill-color:var(--violet-deep)!important;border:1px solid var(--line-dark)!important;}
#profile-apps-grid [id^="profile-app-card-"]>a span.absolute,
#profile-apps-grid [id^="profile-app-card-"]>a span.absolute *{color:#fff!important;-webkit-text-fill-color:#fff!important;}
#profile-apps-grid [id^="profile-app-card-"]>a span.absolute.top-2.left-2{background:rgba(30,21,48,.78)!important;}
#profile-apps-pagination{display:none!important;}
#profile-decoration-trigger{
position:fixed!important;right:14px!important;bottom:14px!important;z-index:50!important;opacity:.45!important;width:auto!important;
background:rgba(245,241,251,.6)!important;border:1px solid var(--line-dark)!important;border-radius:0!important;clip-path:var(--tag)!important;transition:opacity .16s ease!important;
}
#profile-decoration-trigger:hover{opacity:.85!important;}
#profile-tabs-content::-webkit-scrollbar{width:10px;}
#profile-tabs-content::-webkit-scrollbar-track{background:rgba(62,35,128,.10);}
#profile-tabs-content::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--violet),var(--violet-2));border-radius:0;}
@media (min-width:960px){
#profile-page{display:flex!important;flex-direction:row!important;align-items:stretch!important;height:100vh!important;min-height:0!important;max-height:none!important;overflow:hidden!important;}
#profile-page::before{
clip-path:none!important;height:100vh!important;background-color:transparent!important;
background:
repeating-linear-gradient(115deg,rgba(255,255,255,0) 0 26px,rgba(200,182,255,.10) 30px,rgba(168,240,224,.09) 34px,rgba(255,255,255,0) 60px),
var(--img-banner) center/cover no-repeat!important;
background-size:300px 100%,cover!important;animation:holoDrift 12s linear infinite!important;
}
#profile-page::after{height:100vh!important;clip-path:none!important;background-color:transparent!important;}
#profile-header-banner{
flex:0 0 min(40vw,440px)!important;width:auto!important;height:100vh!important;justify-content:center!important;
padding:clamp(22px,2.6vw,46px)!important;gap:clamp(8px,1vw,14px)!important;overflow:visible!important;
background:var(--scrim-left)!important;-webkit-backdrop-filter:blur(2px)!important;backdrop-filter:blur(2px)!important;z-index:2!important;
}
#profile-tabs{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:100vh!important;position:relative!important;overflow:hidden!important;z-index:1!important;background:transparent!important;}
#profile-tabs-content{height:calc(100vh - 88px)!important;overflow-y:auto!important;background:transparent!important;}
#profile-header-banner::after{
content:""!important;position:absolute!important;left:0!important;top:46%!important;width:74%!important;height:5px!important;z-index:6!important;pointer-events:none!important;clip-path:none!important;
background:linear-gradient(90deg,transparent,rgba(70,230,207,.9),#fff,rgba(110,60,208,.8),transparent)!important;
filter:drop-shadow(0 0 8px rgba(70,230,207,.8))!important;opacity:0!important;transform:translateX(-120%) rotate(-18deg)!important;
animation:streak 520ms ease-in .25s 1 both!important;
}
#profile-tabs-header::after{background:none!important;border:none!important;}
#profile-header-avatar{width:clamp(86px,7.5vw,124px)!important;height:clamp(86px,7.5vw,124px)!important;}
#profile-user-name{animation:nameSweep 4s linear infinite,nameGlow 3.2s ease-in-out infinite!important;}
#profile-header-avatar{animation:rise 520ms ease-out 0ms both!important;}
#profile-header-name-row{animation:rise 520ms ease-out 250ms both!important;}
#profile-header-medals{animation:rise 520ms ease-out 620ms both!important;}
#profile-header-stats{animation:rise 520ms ease-out 760ms both!important;}
#profile-signature{animation:rise 520ms ease-out 900ms both!important;}
#profile-header-actions{animation:rise 520ms ease-out 1040ms both!important;}
#profile-apps-grid{grid-template-columns:minmax(0,1fr)!important;justify-content:stretch!important;max-width:720px!important;gap:14px!important;}
#profile-apps-grid [id^="profile-app-card-"]{clip-path:none!important;overflow:visible!important;width:100%!important;max-width:none!important;justify-self:stretch!important;}
#profile-apps-grid [id^="profile-app-card-"] a>span:first-child{top:-11px!important;left:-11px!important;}
#profile-apps-grid [id^="profile-app-card-"]::before{clip-path:none!important;}
#profile-apps-grid [id^="profile-app-card-"]>a{display:flex!important;flex-direction:row!important;align-items:stretch!important;width:100%!important;min-height:0!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:first-of-type{flex:0 0 230px!important;width:230px!important;border-radius:0!important;overflow:hidden!important;position:relative!important;align-self:stretch!important;background-color:var(--violet-deep)!important;background-size:cover!important;background-position:center 26%!important;background-repeat:no-repeat!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:first-of-type img{opacity:0!important;position:absolute!important;width:1px!important;height:1px!important;}
#profile-apps-grid [id^="profile-app-card-"]:has(img[src*="gold.webp"])>a>div:first-of-type{background-image:url(https://catai.wiki/5a69f725-7341-4f49-8dfe-816f595ff500/w=1000)!important;}
#profile-apps-grid [id^="profile-app-card-"]:has(img[src*="silver.webp"])>a>div:first-of-type{background-image:url(https://catai.wiki/f31ffbae-51f4-47c7-b4e8-d76ff7256200/w=1000)!important;}
#profile-apps-grid [id^="profile-app-card-"]:not(:has(img[src*="gold.webp"])):not(:has(img[src*="silver.webp"]))>a>div:first-of-type{background-image:url(https://catai.wiki/0b780f86-8b7d-4b56-3e67-0b3435718d00/w=1000)!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:first-of-type::after{content:""!important;position:absolute!important;top:0!important;right:0!important;width:3px!important;height:100%!important;background:var(--holo)!important;z-index:4!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type{flex:1 1 auto!important;position:relative!important;min-width:0!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;padding:8px 14px!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div{margin:0!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type .grid{gap:4px!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type .grid>*,
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div[class*="rounded"]{padding:2px 6px!important;line-height:1.12!important;min-height:0!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div[class*="h-[60px]"]{height:auto!important;max-height:44px!important;overflow:hidden!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div:nth-child(3),
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div:nth-child(6),
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div:nth-child(7){display:none!important;}
#profile-apps-grid [id^="profile-app-card-"]>a span.absolute.top-2.left-2{top:8px!important;left:auto!important;right:8px!important;bottom:auto!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:last-of-type>div:nth-child(2){
position:absolute!important;left:12px!important;right:12px!important;top:30px!important;bottom:8px!important;
background:var(--paper)!important;border:1px solid var(--violet)!important;z-index:9!important;
opacity:0!important;pointer-events:none!important;transition:opacity .22s ease!important;
height:auto!important;max-height:none!important;overflow-y:auto!important;padding:8px 10px!important;line-height:1.55!important;
}
#profile-apps-grid [id^="profile-app-card-"]:hover>a>div:last-of-type>div:nth-child(2){opacity:1!important;pointer-events:auto!important;}
}
@media (min-width:960px) and (hover:hover) and (pointer:fine){
#profile-tabs::before{
content:""!important;position:absolute!important;inset:0!important;z-index:20!important;pointer-events:none!important;
background:var(--img-portrait) right bottom/contain no-repeat!important;
-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%)!important;mask-image:linear-gradient(90deg,transparent 0,#000 16%)!important;
filter:drop-shadow(12px 0 0 rgba(110,60,208,.50)) drop-shadow(-9px 0 0 rgba(70,230,207,.45)) drop-shadow(5px 0 0 var(--magenta))!important;
transition:transform .62s cubic-bezier(.16,.84,.36,1),opacity .42s ease .08s!important;
}
#profile-apps-grid{opacity:0!important;transition:opacity .4s ease .12s!important;}
#profile-tabs:hover #profile-apps-grid{opacity:1!important;}
#profile-tabs-header{opacity:0!important;transition:opacity .4s ease .1s!important;}
#profile-tabs:hover #profile-tabs-header{opacity:1!important;}
#profile-tabs:hover::before{transform:translateX(60%)!important;opacity:0!important;}
#profile-tabs::after{content:""!important;position:absolute!important;inset:0!important;z-index:21!important;pointer-events:none!important;background:linear-gradient(90deg,transparent,rgba(70,230,207,0))!important;opacity:0!important;}
#profile-tabs:hover::after{animation:revealSwipe .62s ease forwards!important;}
}
@media(prefers-reduced-motion:reduce){
#profile-page::before,#profile-page::after,#profile-user-name,#profile-avatar::after,
#profile-apps-grid [id^="profile-app-card-"]::before,#profile-header-banner::after,
#profile-header-avatar,#profile-header-name-row,#profile-header-medals,
#profile-header-stats,#profile-signature,#profile-header-actions{animation:none!important;}
#profile-user-name{opacity:1!important;clip-path:none!important;filter:drop-shadow(0 2px 0 rgba(62,35,128,.18)) drop-shadow(0 0 20px rgba(110,60,208,.30))!important;}
#profile-header-avatar,#profile-header-name-row,#profile-header-medals,
#profile-header-stats,#profile-signature,#profile-header-actions{transform:none!important;opacity:1!important;}
#profile-apps-grid{opacity:1!important;}
#profile-tabs-header{opacity:1!important;}
#profile-tabs::before{transition:none!important;opacity:.12!important;}
#profile-tabs::after{animation:none!important;opacity:0!important;}
}
#profile-header-medals),在帖子里找到对应 id,再说你想改成什么样式、颜色。重点技巧
Notes三个图变量集中在 #profile-page 令牌区,改这三行即可换图。手机背景 ::before 取用 --img-portrait,与立绘同图;竖图更适合手机。
--img-banner:url('……'); /* 桌面横幅底图 */
--img-portrait:url('……'); /* 立绘(桌面右侧幕 + 手机背景 共用一张) */
--img-avatar:url('……'); /* 头像 */
换图步骤:上传图片到「创作图库」→ 复制图片直链 → 替换上面的 url('…')。
平台默认封面是缩略图,放大偏糊;上传高清原图到创作图库,复制图链,用 background-image 覆盖封面区,按冠级别分别指定。
[id^="profile-app-card-"]>a>div:first-of-type{flex:0 0 230px!important;width:230px!important;border-radius:0!important;overflow:hidden!important;position:relative!important;align-self:stretch!important;background-color:var(--violet-deep)!important;background-size:cover!important;background-position:center 26%!important;background-repeat:no-repeat!important;}
#profile-apps-grid [id^="profile-app-card-"]>a>div:first-of-type img{opacity:0!important;position:absolute!important;width:1px!important;height:1px!important;}
#profile-apps-grid [id^="profile-app-card-"]:has(img[src*="gold.webp"])>a>div:first-of-type{background-image:url(https://catai.wiki/5a69f725-7341-4f49-8dfe-816f595ff500/w=1000)!important;}
#profile-apps-grid [id^="profile-app-card-"]:has(img[src*="silver.webp"])>a>div:first-of-type{background-image:url(https://catai.wiki/f31ffbae-51f4-47c7-b4e8-d76ff7256200/w=1000)!important;}
#profile-apps-grid [id^="profile-app-card-"]:not(:has(img[src*="gold.webp"])):not(:has(img[src*="silver.webp"]))>a>div:first-of-type{background-image:url(https://catai.wiki/0b780f86-8b7d-4b56-3e67-0b3435718d00/w=1000)!important;}
!important 会压过 animation
被动画的属性别加 !important,背景用长写法。
绕框流光(border-beam)
@property 角度 + conic-gradient + mask-composite:exclude 做 1px 渐变边环。
hover 揭示
纯 CSS 用 :hover 切 opacity;本皮肤用立绘幕滑开露出作品。
隐藏元素
display:none:头像、关注粉丝、翻页、拉黑按钮。
响应式
手机优先纵向流;@media(min-width:960px) 切桌面双栏。
显示名只样式化
昵称是真实 ID,仅改样式,不用 content 替换文字。