@charset "UTF-8";

:root {
  color-scheme: light;
  --blue: #316bfa;
  --blue-dark: #2254cf;
  --ink: #192d4b;
  --muted: #61728b;
  --line: #e3eaf5;
  --surface: #f5f8ff;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
::selection { color: #1647b5; background: #dce9ff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(button, a, input):focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; color: #fff; background: var(--blue); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.blue-text { color: var(--blue); }

/* A quiet, always-accessible navigation. */
.site-header { height: 84px; position: sticky; top: 0; z-index: 10; background: #fffffff2; border-bottom: 1px solid #e3eaf580; }
@supports (backdrop-filter: blur(16px)) {
  .site-header { background: #ffffffdb; backdrop-filter: blur(16px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font-size: 26px; font-weight: 750; letter-spacing: -1px; }
.brand-period { color: var(--blue); }
.brand-symbol { position: relative; display: grid; place-items: center; width: 33px; height: 36px; border-radius: 11px; background: var(--blue); color: #fff; font-family: Georgia, serif; font-size: 29px; font-weight: 700; line-height: 1; font-style: italic; padding-right: 3px; box-shadow: 0 4px 12px #316bfa20; }
.brand-symbol > span { position: absolute; width: 7px; height: 7px; right: -2px; bottom: -2px; border: 2px solid #fff; border-radius: 50%; background: #a6c6ff; }
.navigation { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; }
.nav-link { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; color: #61718a; border-radius: 9px; transition: color .2s, background .2s; }
.nav-link svg { width: 15px; height: 15px; }
.nav-link:hover { color: var(--blue); background: #f5f8ff; }
.nav-link.is-active { color: var(--blue-dark); background: #edf3ff; }

/* Hero: generous typography with a contained, local SVG illustration. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 650px; position: relative; padding-block: 44px 88px; gap: 24px; }
.hero-copy { position: relative; z-index: 1; padding-top: 8px; }
.eyebrow { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 9px 13px; border: 1px solid #e5edfc; border-radius: 100px; background: #f8faff; color: #58749b; font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.status-dot { flex-shrink: 0; width: 6px; height: 6px; background: var(--blue); box-shadow: 0 0 0 4px #e5edff; border-radius: 50%; margin-inline: 3px; }
.eyebrow-line { width: 20px; height: 1px; background: #bfcfea; }
.hero-index { margin: 29px 0 -12px; font-family: Consolas, monospace; font-size: 10px; letter-spacing: 1.8px; color: #627a9b; }
.hero-index span { color: #77869c; margin-left: 8px; }
h1 { font-size: clamp(62px, 5.7vw, 78px); line-height: 1.23; font-weight: 750; letter-spacing: -3.5px; margin: 24px 0; }
.name { color: var(--blue); font-size: 1.12em; font-weight: 700; letter-spacing: -4.7px; }
.title-period { color: #8db2fa; }
.hero-description { color: var(--muted); font-size: 15px; line-height: 2; letter-spacing: .5px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 49px; padding: 0 22px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 550; letter-spacing: .2px; transition: background .2s, box-shadow .2s, transform .2s; }
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 5px 16px #316bfa22; }
.button-secondary { gap: 10px; background: #fff; border-color: #dce5f2; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: #687d99; font-size: 9px; font-weight: 500; letter-spacing: 1.2px; }
.hero-note > span { font-size: 20px; color: #7397cd; line-height: 1; }
.hero-visual { position: relative; width: 100%; aspect-ratio: 1.02; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 6% -2% 3%; z-index: -1; background: radial-gradient(ellipse, #edf4ff 0%, #f6f9ff80 48%, transparent 70%); }
.visual-topline { display: flex; justify-content: space-between; margin: 7px 20px 0; color: #6d81a0; font-family: Consolas, monospace; font-size: 9px; letter-spacing: 1.3px; }
.visual-topline > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.visual-topline i { display: block; width: 5px; height: 5px; background: #8caee9; border-radius: 50%; }
.hero-art { position: absolute; width: 108%; max-width: none; height: auto; top: 5px; left: -4%; animation: float-art 8s ease-in-out infinite; }
.floating-label { position: absolute; bottom: 25px; left: 2px; display: flex; align-items: center; gap: 13px; padding: 17px 20px; border-radius: 13px; border: 1px solid #fff; background: #ffffffeb; box-shadow: 0 12px 40px #163f8312; transform: rotate(-5deg); }
.label-star { color: var(--blue); font-size: 36px; line-height: 1; }
.floating-label div { display: flex; flex-direction: column; gap: 6px; }
.floating-label div > span { color: #687e9d; font-size: 9px; letter-spacing: 1.8px; font-weight: 500; }
.floating-label strong { color: #405b80; font-size: 12px; letter-spacing: 1px; font-weight: 550; }
.label-spark { align-self: flex-start; color: #7a9acb; font-size: 18px; margin-left: 8px; }
.visual-coordinate { position: absolute; right: 20px; bottom: 0; font-family: Consolas, monospace; color: #7186a2; font-size: 11px; letter-spacing: .5px; }
.scroll-cue { position: absolute; bottom: 23px; left: 0; display: inline-flex; gap: 10px; min-height: 44px; align-items: center; color: #6d7f99; font-size: 11px; letter-spacing: 1px; }
.scroll-cue > svg { width: 14px; height: 14px; margin-left: 10px; transition: transform .2s; }
.scroll-cue:hover > svg { transform: translateY(3px); }
.scroll-icon { display: block; width: 14px; height: 21px; border: 1px solid #8ca0bd; border-radius: 7px; position: relative; }
.scroll-icon::after { content: ""; position: absolute; left: 5px; top: 4px; height: 5px; width: 2px; border-radius: 1px; background: #8ca0bd; }

/* About: a soft change of pace, with a personal signature. */
.about-section { background: var(--surface); border-block: 1px solid #e8effb; }
.about-inner { position: relative; display: grid; grid-template-columns: 1fr 1.12fr; gap: 80px; padding-block: 62px; overflow: hidden; }
.section-heading { position: relative; z-index: 1; }
.section-kicker { display: flex; align-items: center; gap: 13px; font-size: 10px; font-weight: 600; letter-spacing: 1.7px; color: #627b9b; margin: 0 0 21px; line-height: 1.6; }
.section-kicker > span { color: var(--blue-dark); font-family: Consolas, monospace; font-size: 11px; letter-spacing: .5px; padding-right: 13px; border-right: 1px solid #cddbf0; }
h2 { margin: 0; font-size: 34px; font-weight: 650; line-height: 1.5; letter-spacing: .5px; text-wrap: balance; }
.profile-signature { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.profile-signature img { width: 42px; height: 42px; object-fit: cover; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px #213d7010; }
.profile-signature > span { display: flex; flex-direction: column; gap: 4px; }
.profile-signature strong { font-size: 13px; font-weight: 650; }
.profile-signature > span > span { font-size: 11px; color: #617899; }
.profile-signature > svg { width: 25px; height: 25px; margin-left: 10px; color: #82a7e2; }
.about-content { padding-top: 30px; position: relative; z-index: 1; }
.about-content p { color: #566d8c; line-height: 2.1; letter-spacing: .4px; font-size: 14px; margin: 0; }
.about-content p strong { font-weight: 650; color: var(--ink); }
.about-content .about-secondary { color: #667c98; margin-top: 16px; font-size: 13px; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.interest-tags > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; font-size: 11px; border: 1px solid #dce6f5; border-radius: 6px; background: #ffffffb3; color: #50709f; }
.interest-tags svg { width: 14px; height: 14px; }
.about-decoration { position: absolute; left: 29%; bottom: -94px; font-family: Georgia, serif; font-size: 300px; line-height: 1; color: #e8effd; transform: rotate(13deg); user-select: none; }

/* A featured project, with practical context rather than live counters. */
.projects-section { padding-top: 68px; }
.project-card { display: grid; grid-template-columns: .9fr 1.2fr; margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.project-identity { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; background: #f2f6ff; border-right: 1px solid var(--line); }
.project-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #d9e5ff; border-radius: 14px; color: var(--blue); background: #fff; }
.project-mark svg { width: 28px; height: 28px; }
.project-repository { margin-top: 25px; font-family: Consolas, monospace; font-size: 11px; color: #59739a; overflow-wrap: anywhere; }
.project-identity h3 { margin: 9px 0 12px; font-size: clamp(32px, 3vw, 42px); line-height: 1.2; letter-spacing: -1.3px; }
.project-tagline { margin: 0; font-size: 13px; line-height: 1.9; color: #5c7393; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 0; margin: auto 0 0; list-style: none; }
.project-tags li { padding: 6px 9px; border: 1px solid #dce6f7; border-radius: 5px; font-size: 11px; color: #4d6c98; background: #ffffffb3; }
.project-details { min-width: 0; padding: 36px; }
.project-description { margin: 0; color: #435d7f; font-size: 14px; line-height: 2; }
.project-facts { display: grid; gap: 13px; margin: 23px 0; font-size: 12px; line-height: 1.8; }
.project-facts > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.project-facts dt { color: #71839c; }
.project-facts dd { margin: 0; color: #425f86; }
.project-caution { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 13px; border: 1px solid #e5ebf6; border-radius: 8px; background: #f8faff; color: #60748f; font-size: 11px; line-height: 1.9; }
.project-caution svg { width: 15px; height: 15px; margin-top: 3px; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 23px; }
.project-readme { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #466b9f; }
.project-readme svg { width: 15px; height: 15px; }
.project-readme:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }

/* Social destinations share one visual system and one clear action. */
.connect-section { padding-top: 68px; }
.connect-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.connect-heading .section-kicker { margin-bottom: 15px; }
.connect-heading h2 { font-size: 29px; letter-spacing: .3px; }
.connect-heading > p { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #6d809b; margin: 0 0 7px; }
.connect-heading > p > span { color: #789ed8; font-size: 25px; line-height: 1; }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.social-card { position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; width: 100%; padding: 25px 25px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 10px #18376103; transition: border-color .25s, transform .25s, box-shadow .25s, background .25s; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.social-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #f0f5ff; color: var(--blue); }
.social-icon > svg { width: 25px; height: 25px; }
.github-icon { color: #2e4770; background: #f0f4fa; }
.bilibili-icon { color: #316be0; background: #edf3ff; }
.qq-icon { background: #edf7ff; color: #3678b5; }
.card-arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #e6edf7; border-radius: 50%; color: #7089ac; transition: color .2s, transform .2s; }
.card-arrow svg { width: 15px; height: 15px; }
.social-card h3, .card-title { display: block; font-size: 21px; font-weight: 650; margin: 24px 0 9px; letter-spacing: -.3px; line-height: 1.4; }
.card-title-note { font-size: 11px; letter-spacing: 0; color: #6e819e; font-weight: 400; margin-left: 9px; }
.social-card p, .card-description { display: block; color: #62758f; font-size: 13px; margin: 0 0 25px; line-height: 1.8; }
.card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 17px 0; border-top: 1px solid #edf1f7; color: #627b9b; font-size: 11px; margin-top: auto; }
.card-bottom > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: #466b9f; font-size: 11px; }
.card-bottom svg { width: 13px; height: 13px; }
.qq-number { font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.qq-card.is-copied { border-color: var(--blue); background: #f5f8ff; }
.qq-card[aria-busy="true"] { cursor: progress; }
.closing-note { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 47px 0; }
.closing-note p { margin: 0; color: #6d819e; font-size: 12px; letter-spacing: 1px; text-align: center; line-height: 1.8; }
.closing-note p span { color: #4f6e98; }
.closing-line { flex-shrink: 0; width: 32px; height: 1px; background: #d8e3f3; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 22px; letter-spacing: -.8px; }
.footer-brand > span { color: var(--blue); }
.footer-inner > p { font-size: 11px; letter-spacing: .3px; color: #6d809a; line-height: 1.8; }
.footer-dot { margin: 0 9px; }
.back-to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #607b9e; font-size: 11px; }
.back-to-top svg { width: 14px; height: 14px; }
.back-to-top:hover { color: var(--blue); }

.toast { position: fixed; z-index: 50; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); max-width: calc(100% - 36px); width: max-content; padding: 14px 22px; border: 1px solid #ffffff30; border-radius: 10px; color: #fff; background: #244c87; box-shadow: 0 6px 25px #203d7424; font-size: 13px; line-height: 1.7; pointer-events: none; opacity: 0; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.copy-dialog { width: min(380px, calc(100% - 40px)); max-height: calc(100% - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 28px; color: var(--ink); box-shadow: 0 20px 90px #163f8330; }
.copy-dialog::backdrop { background: #17294455; backdrop-filter: blur(4px); }
.copy-dialog h2 { font-size: 24px; }
.copy-dialog p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.copy-dialog input { width: 100%; padding: 13px; margin: 5px 0 20px; border: 1px solid #ccdcf5; border-radius: 7px; background: var(--surface); color: var(--blue-dark); font-size: 20px; user-select: all; }
.copy-dialog .button { width: 100%; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
@keyframes float-art { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (hover: hover) {
  .button-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 7px 18px #316bfa29; }
  .button-secondary:hover { background: var(--surface); border-color: #bacff7; transform: translateY(-2px); }
  .social-card:hover { border-color: #b4ceff; transform: translateY(-5px); box-shadow: 0 13px 28px #254e8510; background: #fcfdff; }
  .social-card:hover .card-arrow { color: var(--blue); transform: translate(2px, -2px); }
}
@media (min-width: 1500px) {
  .container { width: min(1200px, calc(100% - 140px)); }
  .hero { min-height: 710px; }
  h1 { font-size: 86px; }
}
@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .hero { min-height: 610px; gap: 12px; }
  h1 { font-size: 64px; }
  .hero-description { font-size: 14px; }
  .hero-note { font-size: 8px; letter-spacing: .7px; }
  .visual-topline { font-size: 8px; margin-inline: 12px; }
  .floating-label { bottom: 8px; padding: 13px; gap: 9px; }
  .visual-coordinate { bottom: -20px; font-size: 10px; }
  .about-inner { gap: 40px; }
  .social-grid { gap: 14px; }
  .social-card { padding: 22px 19px 0; }
  .connect-heading > p { font-size: 11px; gap: 8px; }
  .card-bottom { font-size: 10px; }
  .card-bottom > span:last-child { font-size: 10px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 92px; }
  .container { width: calc(100% - 40px); max-width: 540px; }
  .site-header { height: 72px; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-symbol { width: 28px; height: 31px; font-size: 25px; border-radius: 9px; }
  .navigation { gap: 2px; font-size: 12px; }
  .nav-link { padding-inline: 12px; }
  .nav-link svg { width: 13px; height: 13px; }
  .hero { grid-template-columns: 1fr; gap: 0; padding: 38px 0 68px; min-height: auto; }
  .hero-copy { padding-top: 0; }
  .eyebrow { font-size: 11px; }
  .hero-index { margin-top: 25px; font-size: 9px; letter-spacing: 1.3px; }
  h1 { font-size: clamp(58px, 11vw, 76px); line-height: 1.2; letter-spacing: -2px; margin: 24px 0 22px; }
  .name { letter-spacing: -4px; }
  .hero-description { font-size: 14px; line-height: 2; }
  .hero-actions { margin-top: 25px; gap: 10px; }
  .button { min-height: 48px; padding: 0 19px; font-size: 12px; gap: 12px; }
  .button-secondary { gap: 8px; }
  .hero-note { margin-top: 24px; font-size: 8px; letter-spacing: .8px; }
  .hero-visual { width: min(100%, 400px); justify-self: center; margin-top: 26px; aspect-ratio: 1.13; }
  .hero-art { width: 102%; left: -1%; top: -4px; }
  .visual-topline { margin: 5px 10px 0; font-size: 8px; letter-spacing: .7px; }
  .floating-label { left: 3px; bottom: 5px; padding: 12px 15px; }
  .floating-label strong { font-size: 11px; }
  .visual-coordinate { bottom: -14px; right: 7px; font-size: 9px; }
  .scroll-cue { bottom: 13px; font-size: 10px; }
  .about-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 42px; }
  .section-kicker { font-size: 9px; margin-bottom: 15px; letter-spacing: 1.4px; }
  h2 { font-size: 30px; line-height: 1.5; }
  .section-heading h2 br { display: none; }
  .profile-signature { margin-top: 20px; }
  .about-content { padding-top: 0; }
  .about-content p { font-size: 14px; line-height: 2.1; }
  .about-content .about-secondary { font-size: 13px; }
  .about-decoration { left: auto; right: -10px; bottom: -50px; font-size: 230px; opacity: .7; }
  .interest-tags { margin-top: 20px; }
  .projects-section { padding-top: 43px; }
  .project-card { grid-template-columns: 1fr; margin-top: 25px; }
  .project-identity { padding: 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-details { padding: 25px; }
  .project-repository { margin-top: 20px; }
  .project-facts > div { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .navigation { gap: 0; }
  .nav-link { padding-inline: 10px; }
  .nav-link svg { display: none; }
  .connect-section { padding-top: 43px; }
  .connect-heading { display: block; }
  .connect-heading h2 { font-size: 26px; }
  .connect-heading > p { margin: 12px 0 0; font-size: 12px; }
  .connect-heading > p > span { display: none; }
  .social-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 25px; }
  .social-card { padding: 23px 24px 0; }
  .social-card h3, .card-title { margin-top: 19px; font-size: 21px; }
  .social-card p, .card-description { font-size: 13px; margin-bottom: 20px; }
  .card-bottom { padding-block: 16px; font-size: 12px; }
  .card-bottom > span:last-child { font-size: 11px; gap: 7px; }
  .closing-note { gap: 12px; padding: 34px 0; }
  .closing-note p { font-size: 11px; letter-spacing: .5px; }
  .closing-line { width: 18px; }
  .footer-inner { flex-wrap: wrap; gap: 8px; padding-block: 16px 22px; }
  .footer-inner > p { order: 3; width: 100%; text-align: center; font-size: 11px; margin: 0; }
  .footer-dot { margin-inline: 5px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .navigation { font-size: 11px; }
  .nav-link { padding-inline: 9px; }
  .brand { font-size: 21px; }
  .hero { padding-top: 30px; }
  h1 { font-size: 56px; }
  .eyebrow { font-size: 10px; }
  .button { padding-inline: 15px; gap: 8px; }
  .hero-note { font-size: 7px; letter-spacing: .5px; }
  .hero-index { font-size: 8px; }
  .connect-heading h2 { font-size: 23px; }
  .desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
