@font-face { font-family: PacificoReplica; src: local("Pacifico"), url("assets/Pacifico-Regular.ttf") format("truetype"); font-display: swap; }
:root { --bg: url("assets/bg.jpg") center / cover fixed no-repeat; --ink: #263247; --card: rgb(255 255 255 / 48%); --card-hover: rgb(255 255 255 / 72%); --tag: rgb(255 255 255 / 42%); --muted: #44516a; --filter: 18px; }
* { box-sizing: border-box; } html { min-height: 100%; scroll-behavior: smooth; } body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--bg); font-family: "Microsoft YaHei", system-ui, sans-serif; user-select: none; -webkit-user-select: none; }
#fps { position: fixed; z-index: 10; top: 0; left: 0; padding: 2px 4px; color: var(--ink); font: 700 16px/1.2 monospace; }.page-filter { position: fixed; z-index: -1; inset: 0; background: rgb(237 245 255 / 18%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-shell { display: flex; width: min(1150px, 100%); min-height: 100vh; margin: auto; }.sidebar { position: sticky; top: 0; display: flex; flex: 0 0 230px; height: 100vh; padding: 0 15px; align-items: center; flex-direction: column; overflow-y: auto; }.sidebar::-webkit-scrollbar { display: none; }
/* ===== 头像区域 ===== */
.avatar-stage { position: relative; width: 178px; max-width: 100%; aspect-ratio: 1; margin-top: 48px; flex-shrink: 0; transform: perspective(620px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); cursor: pointer; }
.avatar-stage--mobile { display: none; }
.avatar-stage > .avatar-glow { position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgb(237 114 178 / .6), rgb(116 215 173 / .22) 55%, transparent 70%); filter: blur(16px); opacity: .55; z-index: 0; transition: opacity .4s ease; animation: avatar-glow 4.2s ease-in-out infinite; }
.avatar-stage > .avatar-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .45); box-shadow: inset 0 0 16px rgb(255 255 255 / .14); z-index: 1; transition: border-color .4s ease; }
.avatar-stage > .avatar-orbit { position: absolute; inset: -6px; border-radius: 50%; z-index: 1; animation: avatar-orbit 6s linear infinite; }
.avatar-stage > .avatar-orbit > .avatar-orbit-dot { position: absolute; top: -4px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgb(255 255 255 / .85), 0 0 18px 4px rgb(237 114 178 / .5); }
.avatar, .mobile-avatar { position: absolute; inset: 0; display: block; width: 100%; height: 100%; margin: 0; flex-shrink: 0; object-fit: cover; border-radius: 50%; z-index: 2; filter: drop-shadow(0 14px 22px rgb(54 84 134 / 32%)); animation: avatar-float 5.4s ease-in-out infinite; transition: filter .4s ease; }
.avatar-stage > .avatar-shine { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; z-index: 3; pointer-events: none; }
.avatar-stage > .avatar-shine::after { content: ""; position: absolute; top: -50%; left: -60%; width: 55%; height: 200%; background: linear-gradient(115deg, transparent, rgb(255 255 255 / .6), transparent); transform: translateX(0) skewX(-18deg); transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.avatar-stage > .avatar-status { position: absolute; right: 8%; bottom: 8%; width: 16px; height: 16px; border-radius: 50%; background: #74d7ad; border: 3px solid #fff; z-index: 4; animation: avatar-pulse 2s ease-out infinite; }
.avatar-stage:hover > .avatar-glow { opacity: 1; }
.avatar-stage:hover > .avatar-ring { border-color: rgb(255 255 255 / .85); }
.avatar-stage:hover > .avatar-orbit { animation-duration: 2.2s; }
.avatar-stage:hover .avatar-shine::after { transform: translateX(320%) skewX(-18deg); }
.avatar-stage:hover .avatar { filter: drop-shadow(0 18px 28px rgb(54 84 134 / .42)) saturate(1.08) brightness(1.04); }
@keyframes avatar-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: 1.25deg; } }
@keyframes avatar-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes avatar-orbit { to { transform: rotate(360deg); } }
@keyframes avatar-pulse { 0% { box-shadow: 0 0 0 0 rgb(116 215 173 / .55); } 70% { box-shadow: 0 0 0 10px rgb(116 215 173 / 0); } 100% { box-shadow: 0 0 0 0 rgb(116 215 173 / 0); } }
.side-block { width: 100%; margin-top: 15px; border: 1px solid rgb(255 255 255 / 42%); border-radius: 8px; background: var(--card); backdrop-filter: blur(var(--filter)); -webkit-backdrop-filter: blur(var(--filter)); }.identity { padding: 13px 14px; font-size: 14px; }.identity p { margin: 0 0 10px; }.identity p:last-child { margin: 0; }.project-list { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.project-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; transition: background .25s ease, transform .25s ease; }
.project-row:hover { background: rgb(255 255 255 / .4); transform: translateX(3px); }
.proj-name { font-size: 13px; }
.app-icon { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; vertical-align: middle; box-shadow: 0 3px 7px rgb(0 0 0 / 12%); }
.app-icon svg { width: 13px; height: 13px; display: block; }
.identity .app-icon { margin-right: 8px; }
.project-row .app-icon { width: 26px; height: 26px; border-radius: 7px; }
.project-row .app-icon svg { width: 15px; height: 15px; }
.g-blue { background: linear-gradient(135deg, #5a9bff, #2c5fff); }
.g-indigo { background: linear-gradient(135deg, #7b8cff, #4254ff); }
.g-purple { background: linear-gradient(135deg, #b07bff, #7a3cff); }
.g-pink { background: linear-gradient(135deg, #ff8ac0, #ed4a9a); }
.g-orange { background: linear-gradient(135deg, #ffb659, #ff7a1a); }
.g-teal { background: linear-gradient(135deg, #4fdcd0, #16a8a0); }
.g-green { background: linear-gradient(135deg, #6ee08a, #2cb557); }
.g-dark { background: linear-gradient(135deg, #4a4a4a, #1a1a1a); }
.card-icon-wrap { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto; box-shadow: 0 4px 10px rgb(0 0 0 / 14%); transition: transform .4s ease, width .4s ease, opacity .4s ease; }
.card-icon-wrap svg { width: 21px; height: 21px; display: block; }
.project-card:hover .card-icon-wrap { width: 0; opacity: 0; transform: rotate(40deg); }.contact-rail { width: 100%; margin: 15px 0 30px; padding: 0 0 0 9px; list-style: none; font-size: 12px; }.contact-rail li { position: relative; display: grid; gap: 4px; padding: 14px 0 14px 14px; border-left: 2px solid rgb(255 255 255 / 48%); }.contact-rail i { position: absolute; top: 50%; left: -6px; width: 9px; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: #fff; }.contact-rail li:first-child i { background: #74d7ad; box-shadow: 0 0 0 4px rgb(116 215 173 / 24%); }.contact-rail b { font-weight: 400; overflow-wrap: anywhere; }
.main-content { width: calc(100% - 230px); padding: 20px 20px 30px; }.hero { position: relative; }.rainbow-title { margin: 20px 0; font-family: PacificoReplica, "Brush Script MT", cursive; font-size: 65px; font-weight: 800; line-height: normal; background: linear-gradient(120deg, #ff0000 10%, #ff9933 30%, #ffff00 40%, #66ff33 50%, #00ffcc 60%, #0099ff 75%, #ad33ff 90%); background-size: 200%; background-position: 0%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; animation: rainbow 10s ease-in-out infinite; }@keyframes rainbow { 0% { background-position: 100%; } 25% { background-position: 50%; } 50% { background-position: 0%; } 75% { background-position: 50%; } 100% { background-position: 100%; } }.lead { margin: 7px 0; font-size: 19px; }.lead strong { margin: 0 3px; padding: 2px 4px; border-radius: 5px; background: rgb(255 255 255 / 45%); color: #e472ad; }.xrm-brand { color: #ed72b2; font-weight: 800; }
.quick-actions { display: flex; height: 60px; margin-top: 20px; align-items: center; overflow-x: auto; }.quick-actions::-webkit-scrollbar { display: none; }.quick-action { display: flex; width: 49px; height: 43px; margin-left: 10px; padding: 0; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / 36%); border-radius: 7px; background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; backdrop-filter: blur(var(--filter)); -webkit-backdrop-filter: blur(var(--filter)); transition: width .3s ease, transform .3s ease, background .3s ease; }.quick-action svg { width: 20px; height: 20px; display: block; }.quick-action em { display: none; margin-left: 6px; font-size: 13px; font-style: normal; white-space: nowrap; }.quick-action:hover { width: 95px; transform: translateY(-2px); background: var(--card-hover); }.quick-action:hover em { display: block; }.snake-art { width: 85%; margin-top: 2px; }.snake-art img { display: block; width: 100%; }
.content-group { margin-top: 20px; }.content-group h2 { margin: 20px 0; font-size: 25px; transition: transform .35s ease; }.content-group h2 .h-icon { width: 26px; height: 26px; vertical-align: -6px; margin-right: 8px; }.content-group h2:hover { transform: translateY(-4px); }.card-list { display: flex; flex-wrap: wrap; }.project-card { display: flex; width: calc(25% - 14px); height: 100px; margin: 7px; padding: 15px; align-items: center; border: 1px solid rgb(255 255 255 / 42%); border-radius: 8px; background: var(--card); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; overflow: hidden; backdrop-filter: blur(var(--filter)); -webkit-backdrop-filter: blur(var(--filter)); transition: transform .3s ease, background .3s ease; }.project-card:hover { transform: translateY(-2px); background: var(--card-hover); }.project-card > div { width: 80%; transition: width .4s ease; }.project-card h3 { margin: 0; font-size: 16px; }.project-card p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }.project-card img { width: 39px; height: 39px; margin-left: auto; object-fit: contain; transition: transform .4s ease, width .4s ease; }.project-card:hover > div { width: 100%; }.project-card:hover img { width: 0; transform: rotate(40deg); }.resource-list .project-card { width: calc(33.333% - 14px); }
footer { width: 100%; padding: 14px; border-top: 1px solid rgb(255 255 255 / 38%); background: rgb(255 255 255 / 48%); color: #344159; text-align: center; font-size: 13px; backdrop-filter: blur(var(--filter)); -webkit-backdrop-filter: blur(var(--filter)); }
.qr-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.qr-modal.open { opacity: 1; visibility: visible; }
.qr-modal-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qr-modal-box { position: relative; z-index: 1; width: min(320px, 90vw); padding: 28px 24px 24px; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / .3); text-align: center; transform: scale(.85) translateY(20px); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.3,1.1), opacity .35s ease; }
.qr-modal.open .qr-modal-box { transform: scale(1) translateY(0); opacity: 1; }
.qr-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: none; border-radius: 50%; background: rgb(0 0 0 / .05); color: #888; font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.qr-close:hover { background: rgb(0 0 0 / .1); transform: rotate(90deg); }
.qr-title { margin: 0 0 16px; font-size: 18px; color: #263247; }
.qr-image { display: block; width: 100%; max-width: 240px; margin: 0 auto; border-radius: 10px; border: 1px solid rgb(0 0 0 / .08); }
.qr-hint { margin: 14px 0 0; color: #888; font-size: 13px; }.toast { position: fixed; bottom: 56px; left: 50%; z-index: 2; padding: 9px 13px; border-radius: 6px; background: rgb(255 255 255 / 84%); color: #263247; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .2s ease; backdrop-filter: blur(var(--filter)); }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1150px) { .project-card, .resource-list .project-card { width: calc(50% - 20px); margin: 10px; } }@media (max-width: 800px) { .sidebar { display: none; }.main-content { width: 100%; padding: 20px 14px 30px; }.avatar-stage--mobile { display: block; width: min(45%, 180px); margin-top: 10px; }.rainbow-title { margin: 2vw 0; font-size: 10vw; }.lead { font-size: 4vw; }.snake-art { width: 100%; }.card-list, .resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.project-card, .resource-list .project-card { width: auto; height: 95px; margin: 8px; padding: 10px; }.project-card img, .project-card .card-icon-wrap { display: none; }.project-card > div { width: 100%; }.content-group h2 { margin: 20px 0 12px; font-size: 22px; } }@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
