:root { color-scheme: dark; --background: #050a18; --text: #e5ebf6; --muted: #97a5be; --line: rgba(136,166,216,.15); --accent: #a3c3f6; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; transition: color .22s ease; }
a:hover { color: #c9dcff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
::selection { background: #264b80; color: white; }
.container { width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .22; pointer-events: none; }
.nav-wrap { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav-wrap.scrolled { background: rgba(5,10,24,.92); backdrop-filter: blur(16px); border-color: var(--line); }
.nav { height: 80px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.brand img { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 13px; color: var(--muted); }
.lang-switch { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: #8190aa; font-size: 11px; cursor: pointer; }
.lang-active { color: var(--text); }
.switch-line { width: 1px; height: 12px; background: var(--line); }
main { flex: 1; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 70px 0 64px; }
.page-label { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; }
.portrait { flex-shrink: 0; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; padding: 4px; border: 1px solid rgba(136,166,216,.26); }
.work { padding: 0 0 72px; }
.section-heading { display: flex; gap: 12px; align-items: baseline; margin-bottom: 20px; }
h2 { margin: 0; font-size: 17px; font-weight: 500; }
.section-heading > span { font-size: 11px; color: #657590; font-variant-numeric: tabular-nums; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card { padding: 23px 24px 21px; background: rgba(13,25,48,.48); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.project-card:hover { background: rgba(19,36,64,.6); border-color: rgba(136,166,216,.3); transform: translateY(-2px); }
.project-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.project-type { margin-left: auto; font-size: 10px; color: #8796af; }
.project-card p { margin: 12px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: auto; font-size: 11px; color: var(--accent); }
.footer { border-top: 1px solid var(--line); background: rgba(7,15,31,.7); padding: 28px 0 24px; }
.footer-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.social-links { display: flex; gap: 24px; font-size: 12px; color: #aebbd0; }
.social-links .bilibili { color: #d9b3c4; }
.email { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; font-size: 10px; color: #7f8ca3; }
.footer-bottom p { margin: 0; }
.easter-egg { display: inline-flex; align-items: center; gap: 6px; }
.easter-egg:hover { color: #e6a4ac; }
.about { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.about-heading { margin-bottom: 32px; }
.about-marker { display: block; margin-bottom: 14px; font: 10px/1.5 var(--font-mono, monospace); letter-spacing: .14em; color: #7995bd; }
.about-heading h2 { font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.about-content { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 72px; }
.about-copy p { margin: 0 0 18px; font-size: 14px; line-height: 2; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .about-intro { font-size: 20px; line-height: 1.7; color: var(--text); margin-bottom: 22px; }
.about-notes { align-self: start; padding-left: 28px; border-left: 1px solid var(--line); }
.notes-label { font-size: 11px; color: #8798b4; }
.interest-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.interest-list li { display: flex; align-items: center; gap: 13px; font-size: 12px; color: #bdcbe0; }
.interest-symbol { width: 24px; font: 14px/1.5 monospace; color: #7199d5; text-align: center; }
@media (max-width: 760px) {
  .about-content { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .about-notes { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .interest-list { display: flex; flex-wrap: wrap; gap: 18px 24px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .nav { height: 68px; gap: 16px; }
  .brand { gap: 9px; font-size: 12px; }
  .brand img { width: 30px; height: 30px; }
  .nav-links { gap: 16px; font-size: 12px; }
  .hero { padding: 48px 0 42px; gap: 18px; }
  h1 { font-size: clamp(30px, 7.5vw, 44px); }
  .portrait { width: 88px; height: 88px; padding: 3px; }
  .page-label { font-size: 11px; margin-bottom: 10px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-card { padding: 20px; }
  .work { padding-bottom: 44px; }
  .footer-contact { align-items: flex-start; flex-direction: column; gap: 20px; }
  .footer-bottom { flex-wrap: wrap; row-gap: 14px; }
  .about { padding: 35px 0 40px; }
  .about-heading { margin-bottom: 24px; }
  .about-heading h2 { font-size: 24px; }
  .about-copy .about-intro { font-size: 18px; }
  .about-copy p { font-size: 13px; }
  .nav-links { gap: 12px; }
  .nav { gap: 12px; }
  .brand > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
