@font-face { font-family: Manrope; src: url('assets/manrope.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --accent: #0071e3;
  --accent-soft: #0071e30c;
  --glass: #ffffffa1;
  --glass-hover: #ffffffd4;
  --glass-deep: #fafafcba;
  --glass-highlight: #fffffff2;
  --glass-filter: blur(30px) saturate(155%);
  --glass-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 28px #242f4b06;
  --line: #1d244510;
  --header: #f8f8fbb5;
  --field: #7d87970c;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101116;
  --text: #f5f5f7;
  --muted: #a6a8b2;
  --subtle: #808493;
  --accent: #78b5ff;
  --accent-soft: #78b5ff12;
  --glass: #2529358a;
  --glass-hover: #323849b3;
  --glass-deep: #20242fc9;
  --glass-highlight: #ffffff1c;
  --glass-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 30px #00000015;
  --line: #cdd6ff13;
  --header: #151720b3;
  --field: #05081430;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; scrollbar-gutter: stable; }
body { position: relative; isolation: isolate; overflow-x: clip; color: var(--text); background: var(--bg); font: 14px/1.6 Manrope, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; transition: color .35s, background .35s; }
button, input { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg, img { display: block; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex='0']:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #0071e32b; }
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-thumb { background: #9095a34d; border-radius: 5px; }
[hidden] { display: none !important; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--bg); border-radius: 20px; }
.skip-link:focus { top: 14px; }

/* 光影穿过磨砂玻璃，保持页面的银白底色 */
.page-lighting { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-light { position: absolute; border-radius: 50%; filter: blur(100px); animation: light-drift 28s ease-in-out infinite alternate; }
.light-blue { width: 55vw; height: 60vh; left: -30vw; top: 44vh; background: #accdf6; opacity: .24; }
.light-violet { width: 50vw; height: 60vh; right: -26vw; top: -22vh; background: #b4c5f3; opacity: .26; animation-delay: -9s; }
.light-rose { width: 45vw; height: 50vh; right: -24vw; bottom: -25vh; background: #ecd1cf; opacity: .26; animation-delay: -17s; }
[data-theme='dark'] .light-blue { background: #2d5ea6; opacity: .22; }
[data-theme='dark'] .light-violet { background: #7065ac; opacity: .2; }
[data-theme='dark'] .light-rose { background: #775270; opacity: .18; }

/* 导航 */
.reading-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 110; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; }
/* 导航栏玻璃独立成层，避免截断下拉菜单对页面背景的模糊采样 */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--header); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); pointer-events: none; }
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -.8px; white-space: nowrap; }
.brand img { width: 29px; height: 29px; border-radius: 50%; }
.brand-light { font-weight: 500; }
.brand-period { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; color: var(--muted); font-size: 12px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.external-link { display: inline-flex; align-items: center; gap: 4px; }
.external-link .icon { width: 12px; height: 12px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 20px; color: var(--muted); font-size: 11px; transition: background .2s; }
.nav-search:hover { background: var(--field); }
.nav-search .icon { width: 15px; height: 15px; }
kbd { font-family: inherit; font-size: 9px; line-height: 19px; padding: 0 5px; color: var(--subtle); background: var(--field); border-radius: 5px; }
.nav-search kbd { margin-left: 8px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); border-radius: 50%; transition: color .2s, background .2s; }
.icon-button:hover { color: var(--text); background: var(--field); }
.theme-toggle .icon { width: 17px; height: 17px; }
.moon-icon, .mobile-menu-toggle, .mobile-menu { display: none; }
[data-theme='light'] .sun-icon { display: none; }
[data-theme='light'] .moon-icon { display: block; }

/* 大标题与留白 */
.hero { padding-top: 68px; }
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 65px 62px; }
.hero-eyebrow { color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: clamp(56px, 6.3vw, 88px); font-weight: 750; line-height: 1.15; letter-spacing: -5.5px; }
.hero-title-accent { color: #0071e3; }
[data-theme='dark'] .hero-title-accent { color: var(--accent); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-bottom: 10px; flex-shrink: 0; }
.hero-count { font-size: 12px; color: var(--subtle); white-space: nowrap; }
.hero-count strong { font-weight: 600; margin-right: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 22px; border-radius: 30px; font-size: 13px; font-weight: 500; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.button:hover { transform: translateY(-2px); }
.button .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.button:hover .icon { transform: translateX(3px); }
.button-primary { color: #fff; background: #0071e3; box-shadow: 0 5px 16px #0071e314; }
.button-primary:hover { background: #0077ed; box-shadow: 0 8px 22px #0071e327; }
.button-soft { color: var(--accent); background: var(--accent-soft); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { font-size: 34px; font-weight: 700; letter-spacing: -1.6px; line-height: 1.35; }
.heading-period { color: var(--subtle); }

/* 商品式项目陈列，原生滚动与吸附保留触屏手感 */
.featured-section { padding-top: 15px; }
.featured-section .section-heading { margin-bottom: 10px; }
.featured-rail { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: max(56px, calc((100vw - 1286px) / 2)); overscroll-behavior-x: contain; cursor: grab; padding-inline: max(56px, calc((100% - 1280px) / 2)); }
.featured-rail::-webkit-scrollbar { display: none; }
.featured-rail:focus-visible { outline-offset: -4px; border-radius: 6px; }
.featured-track { display: flex; width: max-content; gap: 24px; padding-block: 14px 32px; }
.featured-rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.featured-rail.is-dragging a { cursor: grabbing; }
.feature-card { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 400px; width: 400px; height: 510px; border-radius: 28px; color: #1d2536; box-shadow: 0 9px 18px -9px #202c4930, inset 0 1px 0 #ffffffa6; scroll-snap-align: start; transition: transform .5s var(--ease), box-shadow .5s; }
.feature-card::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 1px 0 #fff7; pointer-events: none; background: linear-gradient(135deg, #ffffff0b, transparent 40%); }
.feature-copy { padding: 31px 31px 0; }
.feature-kicker { display: flex; gap: 7px; color: #4c566a; font-size: 11px; font-weight: 600; }
.feature-kicker > span { opacity: .5; }
.feature-copy h3 { font-size: 27px; font-weight: 750; line-height: 1.3; letter-spacing: -1px; margin-top: 12px; }
.feature-copy h3 a { cursor: grab; }
.feature-copy h3 a::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.feature-copy h3 a:focus-visible { outline: none; }
.feature-card:has(a:focus-visible) { outline: 3px solid #0071e3; outline-offset: 5px; }
.feature-copy p { font-size: 15px; color: #414b5e; margin-top: 11px; letter-spacing: -.2px; }
.feature-art { position: absolute; left: 0; right: 0; bottom: 0; height: 332px; z-index: 1; transform: translateY(var(--parallax, 0px)); transition: transform .7s var(--ease); pointer-events: none; }
.feature-open { position: absolute; right: 23px; bottom: 23px; z-index: 5; display: grid; place-items: center; width: 39px; height: 39px; color: #434957; background: #ffffffb8; border-radius: 50%; backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 #fff9, 0 3px 10px #26324b08; pointer-events: none; transition: background .3s, transform .3s var(--ease); }
.feature-open .icon { width: 19px; height: 19px; stroke-width: 2; }
.carousel-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.carousel-position { color: var(--subtle); font-size: 11px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.carousel-controls { display: flex; gap: 15px; }
.carousel-button { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #dedee480; color: #606067; transition: background .25s, opacity .25s, transform .25s var(--ease); }
.carousel-button > .icon { width: 19px; height: 19px; stroke-width: 2.8; }
.carousel-button:hover:enabled { background: #d5d5dda6; transform: scale(1.06); }
.carousel-button:disabled { opacity: .35; cursor: default; }
[data-theme='dark'] .carousel-button { background: #ffffff15; color: #d6d8df; }
[data-theme='dark'] .carousel-button:hover:enabled { background: #ffffff25; }
@media (hover: hover) {
  .feature-card:hover { transform: translateY(-5px) scale(1.005); box-shadow: 0 18px 35px -16px #202c493d; }
  .feature-card:hover .feature-open { background: #fffffff2; transform: scale(1.08); }
  .featured-rail.is-dragging .feature-card { transform: none; }
}

/* 完整项目库 */
.project-section { padding-top: 78px; position: relative; scroll-margin-top: 0; }
.catalog-toolbar { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-bottom: 24px; }
.search-field { display: flex; align-items: center; gap: 11px; min-width: 0; height: 48px; padding: 11px 17px; color: var(--subtle); background: var(--glass-deep); border-radius: 24px; backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); box-shadow: var(--glass-shadow); transition: box-shadow .2s; }
.search-field:focus-within { box-shadow: 0 0 0 2px #0071e33b; }
.search-field > .icon { width: 16px; height: 16px; }
.search-field input { min-width: 0; width: 100%; outline: none; border: 0; background: none; font-size: 12px; line-height: 24px; }
.search-field input::placeholder { color: var(--subtle); }
.search-field input:focus-visible { outline: none; }
.search-field kbd { line-height: 18px; background: none; }
.catalog-layout { position: relative; isolation: isolate; display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 28px; }
.catalog-sidebar { position: sticky; top: 82px; min-width: 0; }
.catalog-sidebar::before { content: ''; position: absolute; inset: 24px -30px auto -35px; height: 440px; z-index: -1; background: radial-gradient(ellipse at 25% 28%, #aac9ee70, transparent 64%), radial-gradient(ellipse at 84% 80%, #d6c8ec70, transparent 60%); filter: blur(35px); pointer-events: none; }
.filter-content { position: relative; max-height: calc(100dvh - 106px); overflow-y: auto; padding: 24px 14px 18px; border-radius: 25px; background: linear-gradient(135deg, #ffffff40, transparent 65%), var(--glass-deep); backdrop-filter: blur(34px) saturate(165%); -webkit-backdrop-filter: blur(34px) saturate(165%); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 1px 0 0 #ffffff30, 0 14px 36px -16px #34436e26; }
.filter-group h3 { padding-inline: 13px; margin-bottom: 12px; font-size: 11px; color: var(--subtle); font-weight: 500; }
.filter-options { display: grid; gap: 5px; }
.filter-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 43px; padding: 11px 13px; border-radius: 13px; color: var(--muted); text-align: left; font-size: 12px; transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--ease); }
.filter-option > .icon { width: 15px; height: 15px; }
.filter-option > span:last-child { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; min-height: 22px; padding: 2px 6px; margin-left: auto; border-radius: 7px; font-size: 10px; color: var(--subtle); font-variant-numeric: tabular-nums; transition: color .2s, background .2s, box-shadow .2s; }
.filter-option.active { color: #005ccd; background: linear-gradient(115deg, #e3f0ffdd, #a9cdff99); box-shadow: inset 0 1px 0 #fff, 0 5px 14px -7px #1c6bda70; font-weight: 650; }
.filter-option.active > .icon { stroke-width: 1.9; }
.filter-option.active > span:last-child { color: #fff; background: #0071e3; box-shadow: 0 2px 6px #0071e326; font-weight: 650; }
@media (hover: hover) and (pointer: fine) {
  .filter-option:hover:not(.active) { background: linear-gradient(115deg, #c5d5ee70, #aec5eb45); color: var(--text); box-shadow: inset 0 1px 0 #ffffffb3, 0 4px 10px #244b7b08; transform: translateX(2px); }
  .filter-option:hover:not(.active) > span:last-child { color: var(--text); background: #6a89b11a; }
  .filter-option.active:hover { background: linear-gradient(115deg, #d3e8ff, #a9cdffbb); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -7px #1c6bda80; }
}
.category-group { margin-top: 30px; }
.category-dot { width: 5px; height: 5px; margin-inline: 5px; border-radius: 50%; background: var(--muted); }
.category-dot.dev { background: #7299d2; }.category-dot.design { background: #ad92c7; }.category-dot.daily { background: #d3a78d; }.category-dot.opensource { background: #91a5b9; }
[data-theme='dark'] .filter-content { background: linear-gradient(135deg, #ffffff08, transparent 65%), var(--glass-deep); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 14px 36px -16px #0005; }
[data-theme='dark'] .catalog-sidebar::before { opacity: .2; }
[data-theme='dark'] .filter-option.active { color: #d4e8ff; background: linear-gradient(115deg, #28558cdd, #24447cb3); box-shadow: inset 0 1px 0 #ffffff2b, 0 6px 16px -8px #006eff80; }
[data-theme='dark'] .filter-option.active > span:last-child { color: #11243b; background: #8fc2ff; box-shadow: 0 2px 8px #092e7059; }
@media (hover: hover) and (pointer: fine) {
  [data-theme='dark'] .filter-option:hover:not(.active) { background: linear-gradient(115deg, #719bd13d, #6483b12b); box-shadow: inset 0 1px 0 #ffffff1c; }
  [data-theme='dark'] .filter-option:hover:not(.active) > span:last-child { background: #8fb6ef24; }
  [data-theme='dark'] .filter-option.active:hover { background: linear-gradient(115deg, #32649de8, #315994c9); }
}
.mobile-filter-toggle { display: none; }
.catalog-main { min-width: 0; }
.catalog-controls { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.results-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sort-control { position: relative; }
.sort-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding-inline: 14px; border-radius: 20px; background: var(--glass-deep); color: var(--muted); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); font-size: 11px; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s; }
.sort-trigger > .icon { width: 15px; height: 15px; }.sort-trigger > .sort-chevron { width: 11px; height: 11px; margin-left: 3px; transition: transform .25s var(--ease); }
.sort-trigger:hover, .sort-trigger[aria-expanded='true'] { color: var(--accent); background: var(--glass-hover); }.sort-trigger[aria-expanded='true'] > .sort-chevron { transform: rotate(180deg); }
.sort-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 200px; padding: 7px; border-radius: 20px; color: var(--text); background: linear-gradient(135deg, #ffffff38, transparent 70%), var(--glass-hover); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 1px 0 0 #ffffff24, 0 18px 50px -12px #283c6640, 0 4px 12px #24355208; transform-origin: top right; animation: sort-appear .2s var(--ease) both; }
.sort-option { display: grid; grid-template-columns: 30px 1fr 15px; align-items: center; gap: 10px; width: 100%; min-height: 49px; padding: 8px 10px; border-radius: 13px; color: var(--muted); text-align: left; font-size: 12px; transition: color .18s, background .18s; }.sort-option + .sort-option { margin-top: 3px; }
.sort-option-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--subtle); background: var(--field); border-radius: 9px; box-shadow: inset 0 1px 0 var(--glass-highlight); }.sort-option-icon > .icon { width: 15px; height: 15px; }
.sort-option[aria-checked='true'] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }.sort-option[aria-checked='true'] .sort-option-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.sort-check { width: 14px; height: 14px; stroke-width: 2; visibility: hidden; }.sort-option[aria-checked='true'] > .sort-check { visibility: visible; }
.sort-option:hover { background: var(--field); color: var(--text); }.sort-option:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
[data-theme='dark'] .sort-menu { background: linear-gradient(135deg, #ffffff08, transparent 70%), #272d3bd9; box-shadow: inset 0 1px 0 #ffffff1f, 0 20px 50px -8px #0008; }
@keyframes sort-appear { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.favorites-filter, .view-switch { background: var(--glass-deep); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); box-shadow: var(--glass-shadow); }
.favorites-filter { width: 38px; height: 38px; }.favorites-filter > .icon { width: 15px; height: 15px; }.favorites-filter.active { color: var(--accent); background: var(--accent-soft); }.favorites-filter.active > .icon { fill: color-mix(in srgb, var(--accent) 15%, transparent); }
.view-switch { display: flex; gap: 3px; padding: 4px; border-radius: 20px; }.view-switch .icon-button { width: 30px; height: 30px; }.view-switch .icon { width: 15px; height: 15px; }.view-switch .active { color: var(--text); background: var(--glass-hover); box-shadow: 0 2px 5px #1723400c; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }.filter-chip { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 6px 10px; border-radius: 20px; color: var(--accent); background: var(--accent-soft); font-size: 10px; overflow-wrap: anywhere; text-align: left; }.filter-chip .icon { width: 10px; height: 10px; }.clear-filters { color: var(--subtle); padding: 4px; font-size: 10px; }

/* 卡片高度统一，长描述截断，标签与操作始终对齐 */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 400px; padding: 28px 26px 23px; min-width: 0; border-radius: 24px; background: linear-gradient(145deg, #ffffff1a, transparent 70%), var(--glass); box-shadow: var(--glass-shadow), 0 7px 16px #26395503; backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); transform: perspective(1000px) translateY(0) rotateX(0deg) rotateY(0deg); transition: transform .55s var(--ease), box-shadow .4s, background .4s, opacity .7s var(--ease) calc(var(--card-index) * 25ms), translate .7s var(--ease) calc(var(--card-index) * 25ms); }
.project-card::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(280px circle at var(--mouse-x, 50%) var(--mouse-y, 35%), color-mix(in srgb, var(--card-color) 42%, transparent), transparent 75%), radial-gradient(160px circle at var(--mouse-x, 50%) var(--mouse-y, 35%), #ffffff80, transparent 70%); opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.project-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--card-color); background: color-mix(in srgb, var(--card-color) 11%, transparent); box-shadow: inset 0 1px 0 var(--glass-highlight); flex-shrink: 0; }
.project-icon > img { width: 39px; height: 39px; object-fit: contain; border-radius: 10px; }.project-icon > .icon { width: 27px; height: 27px; stroke-width: 1.5; }
.card-platform { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--subtle); margin-left: auto; white-space: nowrap; }.card-platform > .icon { width: 12px; height: 12px; }
.bookmark-button { position: relative; z-index: 3; display: grid; place-items: center; width: 29px; height: 32px; border-radius: 50%; color: var(--subtle); transition: color .2s, background .2s; }.bookmark-button > .icon { width: 16px; height: 16px; }.bookmark-button:hover, .bookmark-button.saved { color: var(--accent); background: var(--accent-soft); }.bookmark-button.saved > .icon { fill: color-mix(in srgb, var(--accent) 15%, transparent); }
.card-heading { font-size: 19px; font-weight: 750; letter-spacing: -.6px; line-height: 1.45; overflow-wrap: anywhere; margin-bottom: 12px; }
.card-heading a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 24px; }.card-heading a:focus-visible { outline: none; }.project-card:has(.card-heading a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; flex-shrink: 0; font-size: 13px; color: var(--muted); line-height: 1.95; }
.card-top, .card-heading, .card-tags, .card-footer { flex-shrink: 0; }
.card-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; padding-top: 22px; margin-top: auto; margin-bottom: 22px; }
.card-tag { position: relative; z-index: 3; color: var(--subtle); background: var(--field); border-radius: 7px; padding: 4px 8px; font-size: 9px; line-height: 1.5; transition: color .2s, background .2s; }.card-tag:hover { color: var(--accent); background: var(--accent-soft); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; padding-top: 0; }
.card-source { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 10px; white-space: nowrap; }.card-source .icon { width: 12px; height: 12px; }.source-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--card-color); }
.card-actions { display: flex; align-items: center; gap: 7px; }
.card-download, .card-visit { position: relative; z-index: 3; display: inline-flex; align-items: center; justify-content: center; height: 36px; box-shadow: inset 0 1px 0 var(--glass-highlight), 0 2px 5px #283f6505; transition: background .25s, color .25s, transform .3s var(--ease), box-shadow .25s; }
.card-download { gap: 7px; padding-inline: 12px; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--glass)); font-size: 11px; font-weight: 600; white-space: nowrap; }.card-download > .icon { width: 16px; height: 16px; }
.card-visit { width: 36px; border-radius: 12px; color: var(--muted); background: var(--field); }.card-visit > .icon { width: 17px; height: 17px; }
.card-download:hover { color: var(--bg); background: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 17%, transparent); }.card-visit:hover { color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
/* 鼠标高光、背部柔光和立体倾斜保持同一运动方向 */
@media (hover: hover) and (pointer: fine) {
  .project-card:hover { z-index: 2; background-color: var(--glass-hover); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 24px 48px -18px #24345a38, var(--shadow-x, 0px) var(--shadow-y, 18px) 44px -10px color-mix(in srgb, var(--card-color) 60%, transparent), 0 0 30px -10px color-mix(in srgb, var(--card-color) 22%, transparent); }
  .project-card:hover::before { opacity: 1; transition-duration: .2s; }
  .project-card.is-tilting { transform: perspective(1000px) translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .14s ease-out, box-shadow .3s, background .3s; will-change: transform; }
  [data-theme='dark'] .project-card::before { background: radial-gradient(280px circle at var(--mouse-x, 50%) var(--mouse-y, 35%), color-mix(in srgb, var(--card-color) 36%, transparent), transparent 75%), radial-gradient(160px circle at var(--mouse-x, 50%) var(--mouse-y, 35%), #ffffff12, transparent 70%); }
}

/* 列表模式使用紧凑的固定高度，保留下载与访问入口 */
.list-view { grid-template-columns: 1fr; gap: 15px; }
.list-view .project-card { display: grid; grid-template-columns: 54px minmax(180px, 1fr) minmax(210px, 1.6fr) 150px; height: 160px; gap: 6px 22px; align-items: center; padding: 25px 27px; }
.list-view .card-top { display: contents; }.list-view .project-icon { grid-column: 1; grid-row: 1 / 4; }.list-view .card-heading { grid-column: 2; grid-row: 1; margin: 0; font-size: 18px; padding-top: 1px; }.list-view .card-platform { grid-column: 2; grid-row: 2; margin: 1px 0 0; }.list-view .bookmark-button { position: absolute; right: 24px; top: 17px; width: 26px; height: 26px; }.list-view .card-description { grid-column: 3; grid-row: 1 / 4; padding-right: 2px; font-size: 13px; line-height: 1.9; }.list-view .card-tags { grid-column: 2; grid-row: 3; padding: 3px 0 0; margin: 0; }.list-view .card-tag { font-size: 9px; padding: 3px 6px; }.list-view .card-footer { grid-column: 4; grid-row: 2 / 4; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0; gap: 10px; }.list-view .card-source { font-size: 10px; }
.empty-state { padding: 65px 20px 75px; text-align: center; border-radius: 24px; background: var(--glass); backdrop-filter: var(--glass-filter); box-shadow: var(--glass-shadow); }.empty-symbol { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 18px; background: var(--field); color: var(--subtle); margin: 0 auto 23px; }.empty-symbol .icon { width: 24px; height: 24px; }.empty-state h3 { font-size: 19px; font-weight: 600; }.empty-state p { margin-top: 9px; color: var(--subtle); font-size: 12px; }.empty-state .button { margin-top: 25px; }

/* 页脚与反馈 */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 42px; margin-top: 65px; }
.site-footer .brand { font-size: 15px; gap: 8px; letter-spacing: -.5px; }.site-footer .brand img { width: 25px; height: 25px; }
.site-footer p { color: var(--subtle); font-size: 10px; }
.back-top { display: grid; place-items: center; width: 35px; height: 35px; color: var(--muted); border-radius: 50%; background: var(--field); }.back-top > .icon { width: 15px; height: 15px; transition: transform .3s; }.back-top:hover > .icon { transform: translate(2px, -2px); color: var(--accent); }
.toast { position: fixed; bottom: 25px; left: 50%; z-index: 120; padding: 12px 20px; border-radius: 24px; background: var(--glass-deep); color: var(--text); backdrop-filter: var(--glass-filter); box-shadow: var(--glass-shadow), 0 10px 40px #0000000c; font-size: 12px; white-space: nowrap; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-message { position: fixed; inset: auto 20px 20px; z-index: 150; padding: 20px; color: #fff; background: #0071e3; border-radius: 16px; text-align: center; }

/* 滚动入场与轻微视差 */
.entrance { animation: entrance 1s var(--ease) both; }.hero-eyebrow { animation-delay: .05s; }.hero h1 { animation-delay: .12s; }.hero-actions { animation-delay: .2s; }
.featured-track { animation: entrance 1.1s .22s var(--ease) both; }
.reveal:not(.project-card) { transition: opacity .8s var(--ease), translate .8s var(--ease); }.motion-ready .reveal:not(.is-visible) { opacity: 0; translate: 0 20px; }.reveal.is-visible { opacity: 1; translate: 0 0; }
@keyframes entrance { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes light-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, -4vh, 0) scale(1.12); } }

@media (max-width: 1150px) {
  .container { width: calc(100% - 72px); }
  .nav-links { gap: 28px; }.nav-search > span { display: none; }.nav-search kbd { margin-left: 0; }
  .hero h1 { font-size: 72px; letter-spacing: -4.5px; }.hero-inner { padding-block: 58px 56px; }.hero-actions { gap: 16px; }.hero-count { font-size: 11px; }
  .featured-rail { padding-inline: 36px; scroll-padding-inline: 36px; }.feature-card { flex-basis: 370px; width: 370px; height: 495px; }.feature-copy { padding-inline: 28px; }.feature-copy h3 { font-size: 25px; }.feature-copy p { font-size: 14px; }.feature-art { left: -12px; right: -18px; }
  .catalog-toolbar { grid-template-columns: 1fr; gap: 13px; }.catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.project-card { padding-inline: 25px; }
  .list-view { grid-template-columns: 1fr; }.list-view .project-card { height: 200px; grid-template-columns: 48px minmax(140px, .9fr) minmax(180px, 1.2fr); padding: 24px; column-gap: 17px; }.list-view .project-icon { width: 48px; height: 48px; }.list-view .card-description { grid-column: 3; grid-row: 1 / 4; padding-right: 24px; }.list-view .card-footer { grid-column: 2 / -1; grid-row: 4; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; }.list-view .card-heading { font-size: 16px; }
}

@media (max-width: 900px) {
  .nav { height: 64px; }.brand { font-size: 18px; }.nav-links { gap: 23px; }.nav-link { font-size: 11px; }.nav-actions { gap: 6px; }.nav-search kbd { display: none; }
  .hero { padding-top: 64px; }.hero-inner { padding-block: 50px; }.hero h1 { font-size: 59px; letter-spacing: -3.5px; }.hero-eyebrow { font-size: 12px; }.hero-actions { flex-direction: column; align-items: flex-end; gap: 10px; margin-bottom: 4px; }.hero-count { font-size: 10px; }.hero-actions .button { padding: 10px 17px; font-size: 12px; gap: 12px; }
  .section-heading h2 { font-size: 30px; }.featured-track { gap: 20px; }.feature-card { flex-basis: 350px; width: 350px; height: 480px; }.feature-art { left: -23px; right: -27px; bottom: -6px; scale: .96; }.feature-copy { padding-top: 28px; }.feature-copy h3 { font-size: 24px; }.feature-copy p { font-size: 13px; }.feature-kicker { font-size: 10px; }
  .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }.catalog-sidebar { top: 78px; }.filter-content { max-height: calc(100dvh - 102px); padding-inline: 12px; }.filter-option { font-size: 11px; padding-inline: 10px; gap: 8px; }
  .project-grid { gap: 17px; }.project-card { padding: 23px 21px 20px; }.card-top { gap: 6px; margin-bottom: 23px; }.project-icon { width: 47px; height: 47px; border-radius: 14px; }.project-icon > img { width: 34px; height: 34px; }.card-platform { font-size: 9px; gap: 4px; }.card-platform > .icon { width: 11px; height: 11px; }.bookmark-button { width: 25px; }.card-heading { font-size: 17px; }.card-description { font-size: 12px; }.card-tags { gap: 5px; }.card-tag { font-size: 8px; padding-inline: 7px; }.card-source { font-size: 9px; }.card-download { font-size: 10px; padding-inline: 10px; gap: 6px; }
  .list-view .project-card { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.1fr); padding: 22px; column-gap: 14px; }.list-view .project-icon { width: 44px; height: 44px; }.list-view .card-heading { font-size: 14px; }.list-view .card-description { font-size: 11px; line-height: 1.9; padding-right: 18px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 90px; }.container { width: calc(100% - 44px); }
  .ambient-light { filter: blur(70px); }.light-blue { width: 90vw; left: -65vw; }.light-violet { width: 100vw; right: -60vw; }.light-rose { width: 80vw; right: -50vw; }
  .nav { height: 62px; gap: 10px; }.brand { font-size: 17px; gap: 7px; }.brand img { width: 27px; height: 27px; }.nav-links { display: none; }.nav-actions { gap: 0; }.nav-search { padding: 8px; }.nav-search > .icon { width: 17px; height: 17px; }.theme-toggle { width: 33px; }.mobile-menu-toggle { display: grid; }
  .mobile-menu { display: grid; position: absolute; inset: 70px 12px auto; padding: 12px; gap: 4px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--glass-highlight) 34%, transparent), transparent 65%), var(--glass-deep); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); box-shadow: var(--glass-shadow), 0 18px 44px -16px #1d24452b; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s; }.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }.mobile-menu > a { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border-radius: 14px; color: var(--text); font-size: 13px; }.mobile-menu > a:active { color: var(--accent); background: var(--accent-soft); }.mobile-menu .icon { width: 15px; height: 15px; color: var(--subtle); }
  .hero { padding-top: 62px; }.hero-inner { padding-block: 46px 36px; align-items: flex-start; flex-direction: column; gap: 24px; }.hero-eyebrow { font-size: 11px; margin-bottom: 11px; }.hero h1 { font-size: clamp(45px, 8.2vw, 58px); letter-spacing: -2.8px; }.hero-actions { flex-direction: row; align-items: center; gap: 17px; margin: 0; }.hero-actions .button { padding: 9px 16px; font-size: 11px; order: -1; gap: 13px; }.hero-actions .button .icon { width: 14px; height: 14px; }.hero-count { font-size: 10px; }
  .section-heading { margin-bottom: 21px; }.section-heading h2 { font-size: 27px; letter-spacing: -1px; }.featured-section { padding-top: 10px; }.featured-section .section-heading { margin-bottom: 5px; }.featured-rail { padding-inline: 22px; scroll-padding-inline: 22px; }.featured-track { gap: 18px; padding-bottom: 24px; }.feature-card { width: 330px; flex-basis: 330px; height: 462px; border-radius: 24px; }.feature-copy { padding: 26px 26px 0; }.feature-copy h3 { font-size: 24px; letter-spacing: -.8px; }.feature-copy p { font-size: 13px; margin-top: 10px; }.feature-art { bottom: -5px; left: -34px; right: -36px; scale: .89; transform-origin: center bottom; }.feature-open { width: 35px; height: 35px; right: 20px; bottom: 20px; }.feature-open .icon { width: 17px; height: 17px; }.carousel-controls { gap: 12px; }.carousel-button { width: 34px; height: 34px; }.carousel-button > .icon { width: 17px; height: 17px; }.carousel-position { font-size: 9px; letter-spacing: 1.4px; }
  .project-section { padding-top: 60px; }.catalog-toolbar { gap: 13px; margin-bottom: 20px; }.search-field { height: 46px; padding: 10px 15px; }.search-field input { font-size: 12px; }.search-field kbd { display: none; }.catalog-controls { gap: 12px; }.results-actions { gap: 8px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 18px; }.catalog-sidebar { position: static; z-index: 24; }.catalog-sidebar::before { display: none; }.mobile-filter-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 15px; color: var(--muted); background: var(--glass-deep); border-radius: 16px; box-shadow: var(--glass-shadow); font-size: 12px; backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); }.mobile-filter-toggle > .icon { width: 14px; height: 14px; }.mobile-filter-toggle > .icon:last-child { margin-left: auto; transition: transform .2s; }.mobile-filter-toggle[aria-expanded='true'] > .icon:last-child { transform: rotate(180deg); }
  .filter-content { display: none; grid-template-columns: 1fr 1fr; gap: 18px; max-height: none; overflow: visible; margin-top: 10px; padding: 21px 12px 16px; border-radius: 20px; }.filters-open .filter-content { display: grid; }.filter-group h3 { margin-bottom: 10px; }.category-group { margin: 0; }.filter-option { font-size: 12px; padding-inline: 10px; }
  .project-grid { gap: 17px; }.project-card { padding: 24px 21px 20px; }.card-top { gap: 6px; }.card-heading { font-size: 17px; }.card-description { font-size: 12px; }.card-tags { padding-top: 20px; margin-bottom: 20px; }
  /* 手机列表压缩为半高，描述与底部操作横向铺满 */
  .project-grid.list-view { gap: 12px; }
  .list-view .project-card { height: 150px; grid-template-columns: 40px minmax(0, 1fr) 32px; grid-template-rows: 22px 14px minmax(0, 1fr) 32px; gap: 2px 10px; padding: 14px 16px; border-radius: 20px; }
  .list-view .project-icon { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; }
  .list-view .project-icon > img { width: 30px; height: 30px; border-radius: 8px; }.list-view .project-icon > .icon { width: 22px; height: 22px; }
  .list-view .card-heading { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; font-size: 15px; line-height: 1.4; }
  .list-view .card-heading a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.list-view .card-heading a::after { border-radius: 20px; }
  .list-view .card-platform { grid-column: 2; grid-row: 2; font-size: 9px; line-height: 14px; margin: 0; }
  .list-view .bookmark-button { position: static; grid-column: 3; grid-row: 1 / 3; width: 32px; height: 40px; margin: 0; }
  .list-view .card-description { grid-column: 1 / -1; grid-row: 3; align-self: center; padding: 0; margin: 0; font-size: 11px; line-height: 1.65; -webkit-line-clamp: 2; }
  .list-view .card-tags { grid-column: 1 / -1; grid-row: 4; align-self: center; min-width: 0; max-width: calc(100% - 132px); flex-wrap: nowrap; gap: 4px; padding: 0; margin: 0; overflow: hidden; }
  .list-view .card-tag { flex-shrink: 0; padding: 3px 6px; font-size: 8px; }
  .list-view .card-footer { display: contents; }.list-view .card-source { display: none; }
  .list-view .card-actions { grid-column: 2 / -1; grid-row: 4; justify-self: end; gap: 6px; }
  .list-view .card-download, .list-view .card-visit { height: 32px; border-radius: 10px; }.list-view .card-visit { width: 32px; }.list-view .card-download { padding-inline: 10px; gap: 5px; font-size: 10px; }.list-view .card-download > .icon { width: 14px; height: 14px; }.list-view .card-visit > .icon { width: 15px; height: 15px; }
  .site-footer { gap: 18px; margin-top: 35px; padding-block: 30px; }.site-footer .brand { font-size: 14px; }.site-footer .brand img { width: 24px; height: 24px; }.site-footer p { font-size: 9px; }.toast { max-width: calc(100vw - 30px); font-size: 11px; white-space: normal; text-align: center; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: clamp(40px, 10.4vw, 54px); letter-spacing: -2.5px; }.hero-inner { padding-block: 42px 35px; gap: 21px; }.hero-eyebrow { font-size: 11px; }
  .feature-card { flex-basis: min(330px, calc(100vw - 62px)); width: min(330px, calc(100vw - 62px)); height: 458px; }.feature-art { scale: .86; }.feature-copy h3 { font-size: 24px; }.feature-copy p { font-size: 12px; }.feature-kicker { font-size: 9px; }.feature-copy { padding-inline: 25px; }
  .project-section { padding-top: 52px; }.section-heading h2 { font-size: 26px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }.project-card { padding: 27px 26px 23px; border-radius: 24px; }.card-top { gap: 10px; margin-bottom: 24px; }.project-icon { width: 54px; height: 54px; border-radius: 16px; }.project-icon > img { width: 39px; height: 39px; }.project-icon > .icon { width: 27px; height: 27px; }.card-platform { font-size: 10px; }.card-platform > .icon { width: 12px; height: 12px; }.bookmark-button { width: 31px; height: 34px; }.bookmark-button > .icon { width: 17px; height: 17px; }.card-heading { font-size: 21px; }.card-description { font-size: 13px; line-height: 1.95; }.card-tag { font-size: 10px; padding: 4px 9px; }.card-tags { margin-bottom: 23px; }.card-source { font-size: 10px; }.card-download { font-size: 11px; padding-inline: 12px; }.card-download, .card-visit { height: 38px; }.card-visit { width: 38px; }
  .site-footer { flex-wrap: wrap; }.site-footer p { order: 3; width: 100%; }.site-footer .back-top { margin-left: auto; }
}

@media (max-width: 370px) {
  .container { width: calc(100% - 36px); }.brand { font-size: 16px; }.brand img { width: 25px; height: 25px; }.nav-actions .icon-button { width: 29px; }.nav-search { padding: 6px; }.featured-rail { padding-inline: 18px; scroll-padding-inline: 18px; }
  .hero h1 { font-size: 38px; letter-spacing: -2.2px; }.hero-inner { padding-block: 36px 30px; }.hero-eyebrow { font-size: 10px; }.feature-card { height: 430px; }.feature-copy { padding: 24px 23px 0; }.feature-copy h3 { font-size: 23px; }.feature-art { scale: .79; bottom: -9px; left: -60px; right: -60px; }.feature-open { right: 18px; bottom: 18px; }
  .project-card { padding-inline: 23px; }.card-heading { font-size: 19px; }.search-field input { font-size: 11px; }.results-actions { gap: 7px; }.sort-trigger { font-size: 10px; gap: 6px; padding-inline: 11px; }.filter-content { gap: 7px; padding-inline: 8px; }.filter-option { font-size: 11px; gap: 6px; padding-inline: 7px; }.filter-group h3 { padding-inline: 7px; }.list-view .project-card { grid-template-columns: 36px minmax(0, 1fr) 30px; padding-inline: 14px; column-gap: 8px; }.list-view .project-icon { width: 36px; height: 36px; }.list-view .card-heading { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal:not(.is-visible) { opacity: 1; translate: 0 0; }
  .feature-art { transform: none !important; }
  .project-card, .project-card.is-tilting, .project-card:hover, .filter-option:hover, .feature-card:hover, .button:hover { transform: none; }
}
