/* Static homepage. Region contracts and breakpoints: docs/00-需求与结构.md. */
:root {
  color-scheme: dark;
  --background: #0a0d17;
  --foreground: #f2f1fc;
  --muted: #a4acc4;
  --accent: #c7b0ff;
  --line: #ffffff18;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 16px/1.7 "Segoe UI", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #b296f269; color: white; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 8px 16px; border-radius: 8px; background: #252139; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 0 50%, #392b6019, transparent 65%), radial-gradient(ellipse at 100% 80%, #18375820, transparent 55%); }

/* Hero: clear background, separate avatar and copy, compact right-hand links. */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 90px max(7vw, 28px) clamp(64px, 10svh, 120px); overflow: hidden; background: #171d34; }
.hero-background { position: absolute; z-index: -3; inset: -22px; transform: translate3d(0, var(--background-y, 0px), 0) scale(1.025); }
.hero-background img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% 43%; }
.hero-preview { opacity: .8; }
.hero-image { opacity: 0; transition: opacity 1.1s ease; }
.hero-image.is-loaded { opacity: 1; }
.hero-nojs { opacity: 1; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, #080b16f2 0%, #080c196b 44%, #09102508 83%), linear-gradient(90deg, #080c1760, transparent 55%, #13132a20); }
.hero:after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--pointer-x, 50%) var(--pointer-y, 40%), #c7b0ff0a, transparent 40%); }
.hero-content { width: 100%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 34vw, 500px); gap: clamp(32px, 5vw, 84px); align-items: end; }
.hero-introduction { min-width: 0; }
.avatar-shell { width: 92px; height: 92px; position: relative; margin-bottom: 27px; }
.avatar-shell:before { content: ''; position: absolute; inset: 10px; background: #bca5f9; filter: blur(24px); opacity: .28; border-radius: 50%; }
.avatar { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid #ffffffa0; box-shadow: 0 8px 30px #09102166; }
.hero h1 { font-size: clamp(36px, 5vw, 72px); line-height: 1.22; font-weight: 900; letter-spacing: -2px; margin: 0 0 15px; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 3px 15px #090c20b0; }
.hero h1 strong { color: #d3beff; font-weight: 900; text-shadow: 0 2px 12px #090c2080, 0 0 30px #b1a0f055; }
.hero-subtitle { font-size: clamp(16px, 1.55vw, 23px); line-height: 1.8; font-weight: 700; margin: 0 0 20px; text-shadow: 0 2px 10px #000c; }
.hero-intro { font-size: 15px; color: #e2deef; line-height: 1.9; max-width: 650px; margin: 0 0 17px; text-shadow: 0 2px 10px #000c; text-wrap: pretty; }
.hero-quote { margin: 0 0 25px; color: #d3cde5; font-size: 14px; text-shadow: 0 2px 10px #000b; }
.hero-quote>span { color: var(--accent); font: 24px/0 Georgia, serif; vertical-align: -3px; margin: 0 8px 0 0; }
.hero-quote>span:last-child { margin: 0 0 0 8px; }
.hero-collections { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-collections a { display: flex; gap: 7px; align-items: center; min-height: 38px; padding: 6px 11px; border: 1px solid #ffffff28; border-radius: 100px; background: #0c122b40; font-size: 11px; color: #ede6fa; transition: background .2s, border-color .2s, translate .2s; }
.hero-collections a:hover { background: #b49bef22; border-color: #d3beff80; translate: 0 -2px; }
.hero-collections .icon { width: 13px; height: 13px; color: var(--accent); }
.hero-collections small { font-size: 9px; color: #b4a9cf; }
.hero-element { transform: translate3d(0, var(--element-y, 0px), 0); filter: blur(var(--element-blur, 0px)); }
.hero.motion-ready .hero-element { animation: arrive .9s cubic-bezier(.2,.7,.2,1) both; }
.hero.motion-ready h1 { animation-delay: .07s; }
.hero.motion-ready .hero-subtitle { animation-delay: .13s; }
.hero.motion-ready .hero-intro { animation-delay: .18s; }
.hero.motion-ready .hero-quote { animation-delay: .24s; }
.hero.motion-ready .hero-collections { animation-delay: .3s; }
@keyframes arrive { from { opacity: 0; translate: 0 18px; filter: blur(7px); } to { opacity: 1; translate: 0 0; } }
.hero-portals { min-width: 0; width: 100%; }
.portal-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.eyebrow { margin: 0 0 6px; font-size: 9px; color: var(--muted); font-weight: 500; letter-spacing: 2.3px; }
.portal-heading .eyebrow { font-size: 8px; color: #c6badc; }
.portal-heading h2 { font-size: clamp(21px, 1.8vw, 27px); line-height: 1.4; margin: 0; letter-spacing: 1px; font-weight: 750; text-shadow: 0 2px 12px #0009; }
.portal-heading>.icon { width: 18px; height: 18px; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.contact { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 5px; background: #0b10294f; border: 1px solid #ffffff20; border-radius: 9px; font-size: 12px; color: #efeaf9; transition: background .2s, border-color .2s; }
.contact .icon { width: 14px; height: 14px; }
.contact:hover { background: #bca4ef24; border-color: #bda5f870; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal { display: flex; gap: 10px; align-items: center; min-height: 74px; padding: 16px 17px; border: 1px solid #ffffff24; border-radius: 12px; isolation: isolate; position: relative; overflow: hidden; background: #10172a73; transition: border-color .25s, translate .25s, box-shadow .25s; }
.portal.has-image { min-height: 104px; align-items: flex-end; }
.portal.has-image:after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #0b1128d6, #0d132b26); }
.portal-image { position: absolute; z-index: -2; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: .64; transition: scale .6s; }
.portal strong { min-width: 0; flex: 1; font-size: 16px; line-height: 1.5; font-weight: 650; text-shadow: 0 2px 10px #000a; }
.portal-symbol { display: flex; color: #d3c1ff; }
.portal-symbol .icon { width: 17px; height: 17px; }
.portal-arrow { color: #c7bddb; display: flex; }
.portal-arrow .icon { width: 12px; height: 12px; }
.portal:hover { border-color: #c6adff85; translate: 0 -3px; box-shadow: 0 10px 25px #06091830; }
.portal:hover .portal-image { scale: 1.06; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 11px; color: #c1b8d2; opacity: .7; }
.scroll-cue span { font-size: 8px; letter-spacing: 2.4px; }
.scroll-cue .icon { width: 13px; height: 13px; animation: cue 2.5s ease-in-out infinite; }
@keyframes cue { 50% { translate: 0 4px; } }

/* Scroll navigation stays hidden until the visitor leaves the hero. */
.floating-nav { position: fixed; z-index: 20; top: 50%; right: 22px; display: flex; flex-direction: column; gap: 6px; max-height: 88svh; padding: 9px; border-radius: 50px; border: 1px solid #ffffff1c; background: #12182be0; backdrop-filter: blur(18px); box-shadow: 0 12px 40px #0004; opacity: 0; visibility: hidden; translate: 12px -50%; transition: opacity .3s, visibility .3s, translate .3s; }
.floating-nav.visible { opacity: 1; visibility: visible; translate: 0 -50%; }
.floating-nav a { width: 42px; height: 42px; display: grid; place-items: center; color: #a8afc8; border-radius: 50%; position: relative; transition: color .2s, background .2s; }
.floating-nav a.active, .floating-nav a:hover { color: var(--accent); background: #b59af41b; }
.floating-nav .icon { width: 21px; height: 21px; }
.floating-nav a>span { position: absolute; right: 57px; white-space: nowrap; font-size: 12px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 7px; background: #161b2ff5; opacity: 0; pointer-events: none; transition: opacity .2s; }
.floating-nav a:hover>span, .floating-nav a:focus-visible>span { opacity: 1; }
.nav-progress { position: absolute; bottom: 6px; width: 18px; height: 2px; left: calc(50% - 9px); border-radius: 3px; background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left; }

/* Content remains real HTML; search and dialogs enhance it without a framework. */
.content-wrap { width: min(1200px, calc(100% - 160px)); margin: 0 auto; padding: 85px 0 20px; }
.section { margin-bottom: 85px; scroll-margin-top: 100px; }
.section-head { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; }
.section-symbol { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: #c7b0ff09; border: 1px solid #c7b0ff1b; color: var(--accent); flex-shrink: 0; }
.section-head h2 { font-size: 27px; line-height: 1.5; margin: 0; font-weight: 700; letter-spacing: 1px; }
.count { vertical-align: middle; font-size: 11px; font-weight: 400; margin-left: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--muted); letter-spacing: 0; }
.section-line { height: 1px; flex: 1; background: linear-gradient(90deg, #ffffff1b, transparent); }
.section-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 0 0 23px; }
.project-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 9px; background: #ffffff03; color: #8b94b2; }
.project-search .icon { width: 16px; height: 16px; }
.project-search input { background: none; border: 0; outline: 0; font-size: 13px; width: 190px; min-height: 27px; }
.project-search:focus-within { border-color: #c7b0ff80; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: transparent; color: #929bb6; border-radius: 100px; padding: 7px 11px; min-height: 34px; font-size: 10px; letter-spacing: .5px; }
.filter.active { color: var(--accent); border-color: #b59af44d; background: #b59af411; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #19203580, #10162666); padding: 15px 16px 9px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, box-shadow .3s; transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); translate: 0 var(--card-y, 0px); }
.project-card:before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(300px circle at var(--shine-x, 50%) var(--shine-y, 0%), #b8a0ff14, transparent 75%); }
.project-card:hover { border-color: #bca5f05e; box-shadow: 0 14px 40px #0002; }
.project-card:hover:before { opacity: 1; }
.project-card.featured { background: linear-gradient(125deg, #6c4d9b24, #10162666); border-color: #bea4ff38; }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid #bca5ff1e; border-radius: 9px; background: #bca5ff09; color: var(--item-accent, var(--accent)); }
.card-icon .icon { width: 17px; height: 17px; }
.card-tag { margin-left: auto; color: #939dbb; font-size: 9px; letter-spacing: .9px; white-space: nowrap; }
.project-card h3 { min-width: 0; font-size: 18px; line-height: 1.35; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.card-summary { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.card-bottom { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 3px; border-top: 1px solid #ffffff0e; }
.card-status { flex: 1; color: #8994af; font-size: 11px; }
.card-bottom>a { color: var(--accent); font-size: 12px; display: flex; align-items: center; gap: 6px; min-height: 40px; }
.card-bottom>a .icon { width: 13px; height: 13px; }
.detail-trigger { display: grid; place-items: center; border: 0; border-radius: 6px; width: 40px; height: 40px; background: transparent; color: #a4acc4; }
.detail-trigger:hover { background: #c7b0ff10; color: var(--accent); }
.detail-trigger .icon { width: 14px; height: 14px; }
.empty-results { color: var(--muted); text-align: center; padding: 35px; border: 1px dashed var(--line); border-radius: 14px; }
.thanks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px 28px; margin: 0; padding: 26px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #171f302e; }
.thanks-item { min-width: 0; overflow-wrap: anywhere; font-size: 14px; color: #a8afc5; }
.footer { border-top: 1px solid var(--line); padding: 30px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); }
.footer>div { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer strong { font-weight: 600; font-size: 20px; color: #c5bfd7; }
.footer p { font-size: 12px; margin: 0; }
.footer>a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; flex-shrink: 0; }
.project-dialog { position: fixed; margin: auto; width: 700px; max-width: calc(100% - 32px); max-height: 88svh; padding: 40px; border: 1px solid #ffffff21; border-radius: 23px; color: var(--foreground); background: #141a2bf5; box-shadow: 0 35px 100px #0008; }
.project-dialog::backdrop { background: #040816b3; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: #a7aec8; background: #ffffff05; }
.detail-meta { display: flex; align-items: center; gap: 14px; margin: 10px 0 25px; color: var(--accent); font-size: 11px; }
.detail-meta>.icon { width: 33px; height: 33px; }
.detail-content h2 { font-size: 32px; font-weight: 750; line-height: 1.4; margin: 0 0 20px; }
.detail-summary { font-size: 18px; line-height: 1.8; color: #b2b8cf; }
.detail-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; margin: 20px 0; }
.detail-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.detail-links a { display: flex; align-items: center; gap: 9px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.detail-links .icon { width: 16px; height: 16px; }
.detail-links .primary-link { background: #bca6ef; color: #171025; font-weight: 600; }
.js .will-reveal { opacity: 0; translate: 0 22px; filter: blur(5px); }
.reveal { transition: opacity .65s, translate .65s, filter .65s; }

@media (min-width: 1800px) { .hero-content { max-width: 1440px; grid-template-columns: minmax(0,1fr) 530px; }.hero h1 { font-size: 80px; } }
@media (max-width: 1100px) { .hero { padding-left: 6vw; padding-right: 6vw; }.hero-content { gap: 35px; grid-template-columns: minmax(0,1fr) clamp(340px, 36vw, 400px); }.hero h1 { font-size: clamp(36px,5.1vw,62px); }.hero-collections { max-width: 420px; }.card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.thanks-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.content-wrap { width: calc(100% - 140px); } }
@media (max-aspect-ratio: 1/1) {
  .floating-nav { left: 50%; right: auto; top: 15px; translate: -50% -15px; flex-direction: row; max-width: calc(100% - 24px); gap: 4px; padding: 7px; }
  .floating-nav.visible { translate: -50% 0; }.floating-nav a { width: 39px; height: 39px; flex-shrink: 0; }.floating-nav a>span,.nav-progress { display: none; }
}
@media (max-width: 780px) {
  .hero { padding: 70px 7vw 75px; }.hero-content { grid-template-columns: 1fr; gap: 35px; max-width: 600px; }.hero h1 { font-size: clamp(36px,7.8vw,58px); letter-spacing: -1px; }.hero-intro { max-width: 580px; }.avatar-shell { width: 80px; height: 80px; margin-bottom: 22px; }.hero-collections { max-width: none; }.scroll-cue { bottom: 20px; }
  .content-wrap { width: calc(100% - 48px); padding-top: 60px; }.section { margin-bottom: 65px; }.section-head { gap: 16px; }.section-line { display: none; }.section-tools { align-items: flex-start; flex-direction: column; }.thanks-grid { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 25px 22px; gap: 14px 25px; }
}
@media (max-width: 540px) {
  .hero { padding-left: 24px; padding-right: 24px; }.hero-background img { object-position: 50% 38%; }.hero h1 { font-size: clamp(32px,8.2vw,45px); }.hero-subtitle { font-size: 16px; margin-bottom: 18px; }.hero-intro { font-size: 14px; }.hero-quote { margin-bottom: 23px; font-size: 13px; }.hero-collections a { font-size: 10px; padding: 6px 10px; min-height: 36px; }.hero-collections small { font-size: 9px; }.portal-heading h2 { font-size: 21px; }.hero-content { gap: 31px; }.portal { padding: 14px; }.contact { min-height: 41px; }.contact span { font-size: 11px; }.contact-grid { gap: 6px; }.portal-grid { gap: 9px; }.card-grid { grid-template-columns: 1fr; gap: 11px; }.content-wrap { width: calc(100% - 40px); padding-top: 48px; }.section h2 { font-size: 24px; }.section-symbol { width: 41px; height: 41px; }.section-head { gap: 13px; margin-bottom: 23px; }.eyebrow { font-size: 8px; }.thanks-grid { padding: 22px 17px; gap: 14px 18px; }.thanks-item { font-size: 13px; }.project-dialog { padding: 33px 24px; }.detail-content h2 { font-size: 28px; }.footer>div { gap: 8px; }.footer p { font-size: 11px; }
}
@media (max-width: 350px) { .hero { padding-left: 18px; padding-right: 18px; }.hero h1 { font-size: 30px; }.contact { flex-direction: column; gap: 4px; }.hero-collections { gap: 6px; }.thanks-grid { grid-template-columns: 1fr; }.portal { gap: 7px; padding: 12px; }.portal strong { font-size: 13px; }.portal-symbol .icon { width: 15px; height: 15px; }.content-wrap { width: calc(100% - 32px); } }
@media (max-height: 600px) and (min-aspect-ratio: 1/1) {
  .hero { padding-top: 35px; padding-bottom: 45px; }.avatar-shell { width: 58px; height: 58px; margin-bottom: 14px; }.hero h1 { font-size: 38px; margin-bottom: 10px; }.hero-subtitle { font-size: 16px; margin-bottom: 12px; }.hero-intro { font-size: 13px; margin-bottom: 10px; }.hero-quote { margin-bottom: 16px; font-size: 12px; }.portal-heading { margin-bottom: 10px; }.portal { min-height: 51px; padding: 10px 12px; }.portal.has-image { min-height: 64px; }.portal-heading h2 { font-size: 20px; }.contact { min-height: 40px; padding: 5px; }.scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }*,*:before,*:after { animation: none !important; transition: none !important; }.hero-element,.hero-background,.project-card { transform: none !important; translate: none !important; filter: none !important; }.js .will-reveal { opacity: 1; translate: none; filter: none; }.portal:hover,.hero-collections a:hover { translate: none; }
}
