navmini/src/styles/global.css
eric 2cf42c3fd9 feat(web): PC 响应式侧栏与加宽网格
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 00:35:02 -05:00

1222 lines
22 KiB
CSS

:root,
[data-theme='light'] {
--bg: #e9eef4;
--bg-elevated: #f7fafc;
--ink: #15202b;
--ink-muted: #5b6b7c;
--ink-faint: #8a98a8;
--line: rgba(21, 32, 43, 0.08);
--surface: rgba(255, 255, 255, 0.78);
--surface-solid: #ffffff;
--surface-hover: #ffffff;
--accent: #0d8f7b;
--accent-deep: #0a6e5f;
--accent-soft: rgba(13, 143, 123, 0.12);
--glow-a: rgba(13, 143, 123, 0.2);
--glow-b: rgba(56, 120, 180, 0.14);
--shadow: 0 8px 24px rgba(21, 32, 43, 0.06);
--shadow-card: 0 1px 2px rgba(21, 32, 43, 0.04), 0 6px 16px rgba(21, 32, 43, 0.04);
--toast-bg: #15202b;
--toast-ink: #f4f7fa;
--chip: rgba(21, 32, 43, 0.045);
--chip-active: #15202b;
--chip-active-ink: #f7fafc;
--topbar-bg: rgba(233, 238, 244, 0.78);
--rail: #0d8f7b;
--font-display: 'Sora', system-ui, sans-serif;
--font-body: 'Manrope', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
--radius: 14px;
--max-w: 560px;
--rail-w: 0px;
}
[data-theme='dark'] {
--bg: #0a0f14;
--bg-elevated: #121820;
--ink: #e8eef4;
--ink-muted: #8b99a8;
--ink-faint: #5d6c7c;
--line: rgba(232, 238, 244, 0.1);
--surface: rgba(18, 24, 32, 0.88);
--surface-solid: #121820;
--surface-hover: #18212c;
--accent: #3dceb8;
--accent-deep: #2aa892;
--accent-soft: rgba(61, 206, 184, 0.14);
--glow-a: rgba(61, 206, 184, 0.14);
--glow-b: rgba(70, 130, 200, 0.12);
--shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 20px rgba(0, 0, 0, 0.28);
--toast-bg: #e8eef4;
--toast-ink: #0a0f14;
--chip: rgba(232, 238, 244, 0.06);
--chip-active: #e8eef4;
--chip-active-ink: #0a0f14;
--topbar-bg: rgba(10, 15, 20, 0.82);
--rail: #3dceb8;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body,
#root {
margin: 0;
min-height: 100%;
}
body {
font-family: var(--font-body);
color: var(--ink);
background: var(--bg);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
button,
input {
font: inherit;
color: inherit;
}
button {
border: none;
background: none;
cursor: pointer;
padding: 0;
}
.app-shell {
position: relative;
min-height: 100dvh;
isolation: isolate;
}
.desktop-rail {
display: none;
}
.desktop-main {
position: relative;
z-index: 1;
min-width: 0;
}
.bg-glow {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
background:
radial-gradient(680px 380px at 8% -12%, var(--glow-a), transparent 58%),
radial-gradient(560px 320px at 100% 4%, var(--glow-b), transparent 55%),
radial-gradient(420px 280px at 50% 100%, rgba(13, 143, 123, 0.06), transparent 60%),
var(--bg);
}
.bg-glow::after {
content: '';
position: absolute;
inset: 0;
opacity: 0.35;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
background-size: 180px 180px;
mix-blend-mode: soft-light;
animation: grain 8s steps(6) infinite;
}
.orb {
position: absolute;
border-radius: 50%;
filter: blur(2px);
opacity: 0.55;
will-change: transform;
}
.orb-a {
width: 220px;
height: 220px;
left: -70px;
top: 12%;
background: radial-gradient(circle, var(--glow-a), transparent 70%);
animation: drift-a 16s ease-in-out infinite;
}
.orb-b {
width: 260px;
height: 260px;
right: -90px;
top: 38%;
background: radial-gradient(circle, var(--glow-b), transparent 70%);
animation: drift-b 19s ease-in-out infinite;
}
.orb-c {
width: 180px;
height: 180px;
left: 35%;
bottom: 8%;
background: radial-gradient(circle, rgba(13, 143, 123, 0.18), transparent 70%);
animation: drift-c 14s ease-in-out infinite;
}
.topbar {
padding: 10px 14px;
}
.brand-row {
display: flex;
align-items: center;
gap: 10px;
}
.icon-btn {
width: 36px;
height: 36px;
border-radius: 11px;
background: var(--surface);
border: 1px solid var(--line);
box-shadow: var(--shadow-card);
display: grid;
place-items: center;
flex-shrink: 0;
color: var(--ink);
transition:
transform 0.15s ease,
background 0.2s ease,
border-color 0.2s ease;
}
.icon-btn:hover {
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.icon-btn:active {
transform: scale(0.94);
}
.icon-btn svg {
width: 18px;
height: 18px;
display: block;
}
.brand-mark {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
flex: 1;
}
.brand-mark img {
width: 28px;
height: 28px;
border-radius: 9px;
object-fit: cover;
flex-shrink: 0;
box-shadow: var(--shadow-card);
border: 1px solid var(--line);
}
.brand-text {
min-width: 0;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 2px;
}
.brand-name {
margin: 0;
font-family: var(--font-display);
font-size: 1.02rem;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.2;
}
.brand-current {
margin: 0;
max-width: 100%;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: -0.01em;
line-height: 1.25;
color: var(--accent-deep);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
animation: pill-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand-logo {
animation: logo-float 5.5s ease-in-out infinite;
}
.menu-icon .menu-line {
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
transform-origin: center;
}
.menu-trigger.open .menu-line.top {
transform: translateY(5px) rotate(45deg);
}
.menu-trigger.open .menu-line.mid {
opacity: 0;
transform: scaleX(0.2);
}
.menu-trigger.open .menu-line.bot {
transform: translateY(-5px) translateX(2px) rotate(-45deg);
/* bot path is shorter; stretch feel via rotate only */
}
.theme-trigger.spin svg {
animation: theme-spin 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
html {
transition: background-color 0.35s ease, color 0.35s ease;
}
[data-theme='dark'] .brand-current {
color: var(--accent);
}
.sticky-stack {
position: sticky;
top: 0;
z-index: 30;
width: min(100%, var(--max-w));
margin: 0 auto;
background: var(--topbar-bg);
backdrop-filter: blur(18px) saturate(1.2);
-webkit-backdrop-filter: blur(18px) saturate(1.2);
border-bottom: 1px solid var(--line);
}
.drawer-root {
position: fixed;
inset: 0;
z-index: 60;
pointer-events: none;
}
.drawer-root.open {
pointer-events: auto;
}
.drawer-mask {
position: absolute;
inset: 0;
border: none;
padding: 0;
margin: 0;
background: rgba(8, 12, 18, 0.46);
opacity: 0;
transition: opacity 0.24s ease;
cursor: pointer;
backdrop-filter: blur(2px);
}
.drawer-root.open .drawer-mask {
opacity: 1;
}
.drawer-panel {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: min(80vw, 310px);
background:
linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg-elevated)), var(--bg-elevated) 28%),
var(--bg-elevated);
border-right: 1px solid var(--line);
box-shadow: var(--shadow);
transform: translateX(-104%);
transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
display: flex;
flex-direction: column;
padding: calc(12px + env(safe-area-inset-top, 0px)) 0
calc(18px + env(safe-area-inset-bottom, 0px));
}
.drawer-root.open .drawer-panel {
transform: translateX(0);
}
.drawer-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 6px 16px 14px;
border-bottom: 1px solid var(--line);
}
.drawer-brand-wrap {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.drawer-brand-wrap img {
width: 28px;
height: 28px;
border-radius: 8px;
object-fit: cover;
border: 1px solid var(--line);
}
.drawer-brand {
font-family: var(--font-display);
font-weight: 700;
font-size: 1.05rem;
letter-spacing: -0.03em;
}
.drawer-sub {
display: block;
margin-top: 2px;
font-size: 0.68rem;
color: var(--ink-muted);
}
.drawer-nav {
display: flex;
flex-direction: column;
gap: 4px;
padding: 14px 10px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
.drawer-item {
position: relative;
display: flex;
align-items: center;
gap: 10px;
width: 100%;
text-align: left;
padding: 12px 12px 12px 14px;
border-radius: 14px;
color: var(--ink-muted);
opacity: 0;
transform: translateX(-12px);
transition:
background 0.18s ease,
color 0.18s ease,
transform 0.12s ease;
}
.drawer-root.open .drawer-item {
animation: drawer-item-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
animation-delay: calc(0.05s + var(--i, 0) * 0.045s);
}
.drawer-item:active {
transform: scale(0.985);
}
.drawer-item.active {
background: var(--accent-soft);
color: var(--accent);
}
.drawer-item.active::before {
content: '';
position: absolute;
left: 4px;
top: 10px;
bottom: 10px;
width: 3px;
border-radius: 99px;
background: var(--rail);
}
.drawer-emoji {
width: 1.25rem;
text-align: center;
font-size: 0.9rem;
flex-shrink: 0;
}
.drawer-item-title {
flex: 1;
min-width: 0;
font-size: 0.94rem;
font-weight: 600;
color: inherit;
}
.drawer-item.active .drawer-item-title {
color: var(--ink);
}
.drawer-item-count {
font-size: 0.68rem;
font-weight: 650;
color: var(--ink-faint);
background: var(--chip);
padding: 2px 7px;
border-radius: 999px;
}
.drawer-item.active .drawer-item-count {
background: color-mix(in srgb, var(--accent) 18%, transparent);
color: var(--accent-deep);
}
[data-theme='dark'] .drawer-item.active .drawer-item-count {
color: var(--accent);
}
.page {
position: relative;
z-index: 1;
width: min(100%, var(--max-w));
margin: 0 auto;
padding: 14px 12px 80px;
}
.cat-panel + .cat-panel {
margin-top: 26px;
}
.cat-panel {
scroll-margin-top: 62px;
}
.cat-heading {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 10px;
padding-left: 10px;
position: relative;
}
.cat-heading::before {
content: '';
position: absolute;
left: 0;
top: 0.2em;
bottom: 0.2em;
width: 3px;
border-radius: 99px;
background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
}
.cat-heading h2 {
margin: 0;
font-family: var(--font-display);
font-size: 1.08rem;
font-weight: 700;
letter-spacing: -0.03em;
}
.cat-count {
font-size: 0.66rem;
background: var(--accent-soft);
color: var(--accent-deep);
padding: 2px 7px;
border-radius: 999px;
font-weight: 700;
}
[data-theme='dark'] .cat-count {
color: var(--accent);
}
.group-block + .group-block {
margin-top: 14px;
}
.group-title {
margin: 0 0 7px;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--ink-faint);
}
.link-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 7px;
}
@media (min-width: 560px) {
.link-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.link-card {
position: relative;
display: flex;
align-items: center;
gap: 8px;
width: 100%;
min-width: 0;
text-align: left;
padding: 9px;
border-radius: var(--radius);
background: var(--surface);
border: 1px solid var(--line);
box-shadow: var(--shadow-card);
overflow: hidden;
transition:
transform 0.16s ease,
background 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.link-card:hover {
background: var(--surface-hover);
border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
box-shadow: 0 8px 22px rgba(13, 143, 123, 0.1);
}
.link-card:hover .link-icon-wrap {
transform: scale(1.06) rotate(-2deg);
}
.link-card:active {
transform: scale(0.978);
}
.link-icon-wrap {
width: 34px;
height: 34px;
border-radius: 10px;
background: linear-gradient(160deg, var(--chip), transparent);
border: 1px solid var(--line);
display: grid;
place-items: center;
overflow: hidden;
flex-shrink: 0;
transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.ripple {
position: absolute;
width: 8px;
height: 8px;
margin: -4px 0 0 -4px;
border-radius: 50%;
background: color-mix(in srgb, var(--accent) 35%, transparent);
pointer-events: none;
animation: ripple 0.55s ease-out forwards;
}
.link-icon {
width: 100%;
height: 100%;
object-fit: cover;
}
.link-meta {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.link-title {
font-size: 0.82rem;
font-weight: 700;
letter-spacing: -0.01em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.link-desc {
font-size: 0.65rem;
color: var(--ink-muted);
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.link-arrow {
display: none;
}
.empty-hint {
margin: 16px 0;
text-align: center;
color: var(--ink-muted);
font-size: 0.84rem;
}
.footer {
margin-top: 28px;
padding-top: 16px;
border-top: 1px solid var(--line);
text-align: center;
font-size: 0.7rem;
color: var(--ink-faint);
letter-spacing: 0.02em;
}
.back-top {
position: fixed;
right: max(14px, calc((100vw - var(--max-w)) / 2 + 14px));
bottom: 20px;
width: 40px;
height: 40px;
border-radius: 14px;
background: var(--chip-active);
color: var(--chip-active-ink);
box-shadow: var(--shadow);
opacity: 0;
pointer-events: none;
transform: translateY(10px) scale(0.96);
transition:
opacity 0.22s ease,
transform 0.22s ease;
z-index: 40;
display: grid;
place-items: center;
}
.back-top svg {
width: 18px;
height: 18px;
}
.back-top.show {
opacity: 1;
pointer-events: auto;
transform: translateY(0) scale(1);
animation: back-top-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.back-top:hover svg {
animation: nudge-up 0.7s ease-in-out infinite;
}
.toast {
position: fixed;
left: 50%;
bottom: 24px;
transform: translateX(-50%) translateY(10px);
padding: 9px 16px;
border-radius: 999px;
background: var(--toast-bg);
color: var(--toast-ink);
font-size: 0.8rem;
font-weight: 600;
opacity: 0;
pointer-events: none;
transition:
opacity 0.2s ease,
transform 0.2s ease;
z-index: 50;
box-shadow: var(--shadow);
}
.toast.show {
opacity: 1;
transform: translateX(-50%) translateY(0);
animation: toast-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Scroll reveal */
.reveal {
opacity: 0;
transform: translateY(14px);
transition:
opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
opacity: 1;
transform: translateY(0);
}
.cat-heading.reveal.is-visible::before {
animation: rail-grow 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes intro-card {
from {
opacity: 0;
transform: translateY(16px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes intro-glow {
0%,
100% {
transform: scale(1);
opacity: 0.9;
}
50% {
transform: scale(1.15);
opacity: 1;
}
}
@keyframes pill-in {
from {
opacity: 0;
transform: translateY(4px) scale(0.92);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes logo-float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-2px);
}
}
@keyframes theme-spin {
from {
transform: rotate(-90deg) scale(0.7);
opacity: 0.4;
}
to {
transform: rotate(0) scale(1);
opacity: 1;
}
}
@keyframes drawer-item-in {
from {
opacity: 0;
transform: translateX(-14px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes ripple {
to {
transform: scale(28);
opacity: 0;
}
}
@keyframes rail-grow {
from {
transform: scaleY(0);
transform-origin: top;
}
to {
transform: scaleY(1);
transform-origin: top;
}
}
@keyframes drift-a {
0%,
100% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(24px, -18px) scale(1.08);
}
}
@keyframes drift-b {
0%,
100% {
transform: translate(0, 0) scale(1);
}
50% {
transform: translate(-20px, 22px) scale(1.05);
}
}
@keyframes drift-c {
0%,
100% {
transform: translate(0, 0);
}
50% {
transform: translate(16px, -12px);
}
}
@keyframes back-top-in {
from {
opacity: 0;
transform: translateY(12px) scale(0.9);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes nudge-up {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-2px);
}
}
@keyframes toast-pop {
from {
opacity: 0;
transform: translateX(-50%) translateY(12px) scale(0.94);
}
to {
opacity: 1;
transform: translateX(-50%) translateY(0) scale(1);
}
}
@keyframes grain {
0%,
100% {
transform: translate(0, 0);
}
20% {
transform: translate(-1%, 1%);
}
40% {
transform: translate(1%, -1%);
}
60% {
transform: translate(-1%, -1%);
}
80% {
transform: translate(1%, 1%);
}
}
/* —— PC / 宽屏:常驻侧栏 + 加宽内容 —— */
@media (min-width: 960px) {
:root,
[data-theme='light'],
[data-theme='dark'] {
--max-w: 1040px;
--rail-w: 248px;
}
.app-shell {
display: grid;
grid-template-columns: var(--rail-w) minmax(0, 1fr);
width: min(100%, calc(var(--rail-w) + var(--max-w)));
margin: 0 auto;
align-items: start;
}
.desktop-rail {
display: flex;
flex-direction: column;
position: sticky;
top: 0;
height: 100dvh;
z-index: 20;
padding: 22px 14px 20px;
border-right: 1px solid var(--line);
background:
linear-gradient(
180deg,
color-mix(in srgb, var(--accent) 7%, var(--bg-elevated)),
var(--bg-elevated) 36%
),
var(--bg-elevated);
overflow: hidden;
}
.desktop-rail-brand {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 4px 8px 18px;
margin-bottom: 6px;
border-bottom: 1px solid var(--line);
}
.desktop-rail-brand img {
width: 36px;
height: 36px;
border-radius: 11px;
object-fit: cover;
border: 1px solid var(--line);
box-shadow: var(--shadow-card);
flex-shrink: 0;
}
.desktop-rail-title {
display: block;
font-family: var(--font-display);
font-size: 1.05rem;
font-weight: 700;
letter-spacing: -0.03em;
line-height: 1.25;
}
.desktop-rail-sub {
display: block;
margin-top: 4px;
font-size: 0.72rem;
line-height: 1.4;
color: var(--ink-muted);
}
.desktop-rail-nav {
flex: 1;
overflow-y: auto;
padding: 10px 4px 8px;
display: flex;
flex-direction: column;
gap: 4px;
scrollbar-width: thin;
}
.desktop-rail-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 12px;
border-radius: 12px;
text-align: left;
color: var(--ink-muted);
transition:
background 0.18s ease,
color 0.18s ease,
transform 0.15s ease;
}
.desktop-rail-item:hover {
background: var(--chip);
color: var(--ink);
}
.desktop-rail-item.active {
background: var(--chip-active);
color: var(--chip-active-ink);
box-shadow: var(--shadow-card);
}
.desktop-rail-emoji {
width: 1.2em;
text-align: center;
flex-shrink: 0;
font-size: 0.9rem;
}
.desktop-rail-item-title {
flex: 1;
min-width: 0;
font-size: 0.9rem;
font-weight: 650;
letter-spacing: -0.01em;
}
.desktop-rail-item-count {
font-size: 0.68rem;
font-weight: 700;
padding: 2px 7px;
border-radius: 999px;
background: color-mix(in srgb, currentColor 12%, transparent);
opacity: 0.9;
}
.menu-trigger {
display: none;
}
.drawer-root {
display: none !important;
}
.sticky-stack {
width: 100%;
max-width: none;
}
.topbar {
padding: 14px 28px 14px 22px;
}
.brand-mark img,
.brand-logo {
width: 32px;
height: 32px;
}
.brand-name {
font-size: 1.12rem;
}
.brand-current {
font-size: 0.78rem;
}
.page {
width: 100%;
max-width: none;
padding: 22px 28px 96px 22px;
}
.cat-panel + .cat-panel {
margin-top: 36px;
}
.cat-heading h2 {
font-size: 1.28rem;
}
.cat-count {
font-size: 0.72rem;
padding: 3px 9px;
}
.group-title {
font-size: 0.76rem;
margin-bottom: 10px;
}
.link-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.link-card {
padding: 12px;
gap: 10px;
border-radius: 16px;
}
.link-card:hover {
transform: translateY(-2px);
}
.link-card:active {
transform: translateY(0) scale(0.99);
}
.link-icon-wrap {
width: 40px;
height: 40px;
border-radius: 12px;
}
.link-title {
font-size: 0.9rem;
}
.link-desc {
font-size: 0.72rem;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.footer {
margin-top: 40px;
font-size: 0.76rem;
}
.back-top {
right: max(24px, calc((100vw - (var(--rail-w) + var(--max-w))) / 2 + 24px));
bottom: 28px;
width: 44px;
height: 44px;
}
}
@media (min-width: 1280px) {
:root,
[data-theme='light'],
[data-theme='dark'] {
--max-w: 1180px;
--rail-w: 268px;
}
.link-grid {
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 12px;
}
.page {
padding: 26px 36px 110px 28px;
}
.topbar {
padding: 16px 36px 16px 28px;
}
}
@media (prefers-reduced-motion: reduce) {
.bg-glow::after,
.orb,
.brand-logo,
.brand-current,
.drawer-root.open .drawer-item,
.theme-trigger.spin svg,
.back-top.show,
.toast.show,
.cat-heading.reveal.is-visible::before {
animation: none !important;
}
.reveal,
.drawer-item {
opacity: 1 !important;
transform: none !important;
transition: none !important;
}
.menu-icon .menu-line {
transition: none;
}
}