diff --git a/custom/public/assets/css/qq-pages.css b/custom/public/assets/css/qq-pages.css index 2086397..46727d4 100644 --- a/custom/public/assets/css/qq-pages.css +++ b/custom/public/assets/css/qq-pages.css @@ -24,18 +24,6 @@ } /* 跟随鼠标的柔光:JS 只改两个变量,不触发重排 */ -.qq-lp-hero::before { - content: ""; - position: absolute; - inset: -14% -10%; - z-index: 0; - pointer-events: none; - background: radial-gradient(420px circle at var(--qq-mx) var(--qq-my), - color-mix(in srgb, var(--color-primary) 10%, transparent), - transparent 64%); - transition: background 0.12s linear; -} - .qq-lp-hero-copy, .qq-lp-visual { position: relative; @@ -61,10 +49,10 @@ .qq-lp-title { margin: 18px 0 0; - font-family: var(--qq-font-mono); + font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: clamp(52px, 6.6vw, 86px); font-weight: 800; - letter-spacing: -0.035em; + letter-spacing: -0.025em; line-height: 1.02; background: linear-gradient(100deg, #1D4ED8 0%, #2563EB 24%, #3B82F6 52%, #60A5FA 78%, #38BDF8 100%); -webkit-background-clip: text; @@ -188,28 +176,12 @@ overflow: hidden; aspect-ratio: 6 / 5; min-height: 320px; - border: 1px solid var(--color-secondary); + border: 1px solid color-mix(in srgb, var(--color-primary) 13%, var(--color-secondary)); border-radius: 18px; - background: - linear-gradient(155deg, - color-mix(in srgb, var(--color-primary) 9%, var(--color-box-body)) 0%, - color-mix(in srgb, #38BDF8 7%, var(--color-box-body)) 52%, - var(--color-box-body) 100%); - box-shadow: 0 30px 64px -44px color-mix(in srgb, var(--color-primary) 70%, transparent); - backdrop-filter: blur(12px); - -webkit-backdrop-filter: blur(12px); -} - -/* 卡片内的一层柔光,避免整块太空 */ -.qq-lp-graph::before { - content: ""; - position: absolute; - inset: -30% -10% auto -10%; - height: 80%; - pointer-events: none; - background: radial-gradient(closest-side, - color-mix(in srgb, var(--color-primary) 14%, transparent), - transparent 78%); + background: linear-gradient(180deg, + color-mix(in srgb, var(--color-primary) 5%, var(--color-box-body)) 0%, + var(--color-box-body) 76%); + box-shadow: 0 22px 44px -40px color-mix(in srgb, var(--color-primary) 55%, transparent); } .qq-lp-graph-svg { @@ -455,7 +427,7 @@ padding: 16px 18px 14px; border: 1px solid var(--color-secondary); border-radius: 8px; - background: color-mix(in srgb, var(--color-box-body) 92%, transparent); + background: var(--color-box-body); color: var(--color-text); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; } @@ -814,10 +786,6 @@ opacity: 0.35; } - .qq-lp-hero::before { - transition: none; - } - .qq-lp-sub.qq-typing::after, .qq-lp-sub.qq-typed::after { animation: none; diff --git a/custom/public/assets/css/qq-ui.css b/custom/public/assets/css/qq-ui.css index 3af8bdb..ea03a09 100644 --- a/custom/public/assets/css/qq-ui.css +++ b/custom/public/assets/css/qq-ui.css @@ -6,6 +6,13 @@ */ /* ---------------------------------------------------------------- 字体 */ +@font-face { + font-family: "Inter"; + font-style: normal; + font-weight: 800; + font-display: swap; + src: url("../fonts/inter-latin-800-normal.woff2") format("woff2"); +} @font-face { font-family: "JetBrains Mono"; font-style: normal; diff --git a/custom/public/assets/fonts/inter-latin-800-normal.woff2 b/custom/public/assets/fonts/inter-latin-800-normal.woff2 new file mode 100644 index 0000000..882bd18 Binary files /dev/null and b/custom/public/assets/fonts/inter-latin-800-normal.woff2 differ diff --git a/custom/public/assets/js/qq-fx.js b/custom/public/assets/js/qq-fx.js index e61bb13..27eeb4f 100644 --- a/custom/public/assets/js/qq-fx.js +++ b/custom/public/assets/js/qq-fx.js @@ -5,7 +5,7 @@ * 其余页面直接 return,一点开销都不加。 * * 做三件事: - * 1. 背景粒子星座(canvas,40 个慢速漂移的点 + 近邻连线,颜色取 --color-primary) + * 1. 背景粒子星座(仅登录页;落地页保持干净的白底) * 2. 首页大标题下的口号打字机(data-qq-type),打完留着光标闪烁 * 3. 首页 hero 跟随鼠标的柔和光斑(只改两个 CSS 变量,不做重排) * @@ -177,7 +177,7 @@ }); } - initParticles(); + if (!isHome) initParticles(); initTyping(); initSpotlight(); })(); diff --git a/custom/templates/custom/footer.tmpl b/custom/templates/custom/footer.tmpl index 078bfc2..8ba9e6c 100644 --- a/custom/templates/custom/footer.tmpl +++ b/custom/templates/custom/footer.tmpl @@ -15,4 +15,4 @@ 动效层:只在首页(.page-content.home)和登录页(.page-content.user.signin)生效, 其它页面 qq-fx.js 里第一行就 return,不会加载 canvas、不会挂 rAF。 */}} - + diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index 9293ad8..491b0e8 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -4,9 +4,9 @@ 注意:只做外观增强,不引入任何外部依赖,全部资源随 custom/ 一起发布 */}} - + - +