/* Native CSS. No framework or runtime dependencies. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: #17242a; background: #fff; font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #299477; outline-offset: 5px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; padding: 8px 14px; border-radius: 8px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 50; height: 48px; border-bottom: 1px solid #e5eae7; background: #ffffffdc; backdrop-filter: blur(20px); }
.header-inner { max-width: 1024px; padding: 0 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { padding: 8px 0; font-size: 14px; color: #596b63; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #243b30; }
.site-nav a[aria-current="page"] { font-weight: 750; }
.menu-toggle { display: none; width: 38px; height: 38px; padding: 8px; border: 1px solid #e5eae7; border-radius: 10px; background: #fff; color: #243b30; }
.site-footer { padding: 32px 24px; text-align: center; font-size: 13px; color: #697775; }
.site-footer a:hover { color: #299477; }
@font-face { font-family: lemiao; src: url('/assets/fonts/lemiao-home.woff2') format('woff2'); font-display: swap; }
.home-hero { min-height: calc(100svh - 48px); display: grid; align-items: center; padding: 64px 32px; background-image: radial-gradient(circle at 25% 25%, #00000014 1.2px, transparent 1px), radial-gradient(circle at 75% 75%, #00000025 1.4px, transparent 1px); background-size: 50px 50px; }
.hero-inner { width: 100%; max-width: 960px; margin: auto; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
.info-card { min-width: 0; border-radius: 12px; background: #2b2b2b; color: white; box-shadow: 0 18px 44px #243b3014; overflow: hidden; }
.info-toolbar { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #3e4042; }
.window-dot { width: 11px; height: 11px; border-radius: 50%; background: #fb4646; }
.window-dot:nth-child(2) { background: #fcaf24; }
.window-dot:nth-child(3) { background: #28c131; }
.info-filename { margin: auto; font: 12px ui-monospace, monospace; color: #c5c7c9; }
.info-more { color: #c5c7c9; letter-spacing: 2px; }
.info-code { margin: 0; padding: 24px 18px 24px 48px; font: 13px/2.15 ui-monospace, Menlo, monospace; counter-reset: line; }
.code-line { position: relative; display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-line::before { counter-increment: line; content: counter(line); position: absolute; left: -28px; color: #777d82; }
.code-keyword { color: #ce92c3; }
.code-variable { color: #d3aa8a; }
.code-key { color: #c994bc; }
.code-string { color: #e7e16c; }
.welcome { min-width: 0; color: #24362e; font-family: lemiao, "Kaiti SC", KaiTi, cursive; font-synthesis: none; }
.welcome h1, .welcome p { margin: 0; font-size: clamp(28px, 3.3vw, 36px); line-height: 1.7; font-weight: 400; }
.resume-page { max-width: 960px; padding: 64px 32px; margin: auto; }
.page-eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .18em; font-weight: 700; color: #59716a; }
.resume-page h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; letter-spacing: -.04em; margin: 0 0 48px; }
.resume-content { max-width: 850px; font-size: 16px; line-height: 1.9; color: #37463e; }
.resume-content h2 { margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 1px solid #e5eae7; font-size: 25px; color: #17242a; }
.resume-content h2:first-child { margin-top: 0; }
.resume-content h3 { font-size: 19px; margin: 32px 0 16px; color: #243b30; }
.resume-content p { margin: 12px 0; }
.resume-content ul { padding-left: 24px; }
.resume-content li { margin: 7px 0; }
.resume-content li::marker { color: #94a99c; }
.resume-content strong { font-weight: 650; }
.error-page { max-width: 960px; margin: auto; padding: 100px 32px; min-height: 70svh; }
.error-page h1 { font-size: 38px; }
.error-page a { color: #27775e; text-decoration: underline; }
@media (max-width: 1000px) { .hero-inner { grid-template-columns: 1fr; max-width: 560px; gap: 48px; } .welcome { text-align: center; } .home-hero { min-height: calc(100svh - 48px); } }
@media (max-width: 580px) {
 .header-inner { padding: 0 24px; }
 html.js .menu-toggle { display: grid; place-items: center; }
 html.js .site-nav { display: none; position: absolute; top: 48px; left: 0; right: 0; padding: 20px 24px; background: #fff; border-bottom: 1px solid #e5eae7; }
 html.js .site-nav.is-open { display: flex; }
 .site-nav { gap: 24px; }
 .home-hero { padding: 48px 24px; }
 .hero-inner { gap: 40px; }
 .info-code { padding: 20px 10px 20px 35px; font-size: clamp(9px, 2.6vw, 13px); }
 .code-line::before { left: -21px; }
 .welcome h1, .welcome p { font-size: 28px; }
 .resume-page { padding: 48px 24px; }
 .resume-content { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.skills-section {
  padding: 96px 32px;
  color: #17242a;
  background: #fff;
  scroll-margin-top: 64px;
}

.skills-container { max-width: 960px; margin: 0 auto; }
.skills-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.skills-eyebrow { margin: 0 0 12px; color: #59716a; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.skills-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.skills-heading h2 > span { margin-left: 4px; color: #299477; }
.skills-intro { margin: 16px 0 0; color: #697775; font-size: 15px; line-height: 1.8; }
.skills-note { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; color: #697775; font-size: 12px; white-space: nowrap; }
.skills-note > span { color: #299477; font-size: 20px; }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-card {
  --skill-color: #7453b2;
  --skill-tint: #f1ecf9;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid #e5eae7;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--skill-tint), #fff 48%);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.skill-vscode { --skill-color: #316fb4; --skill-tint: #eaf2fc; }
.skill-android { --skill-color: #2a8464; --skill-tint: #eaf6ef; }
.skill-ios { --skill-color: #526274; --skill-tint: #edf0f4; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--skill-color); box-shadow: 0 16px 32px #253c3010; }
.skill-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.skill-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #ffffffb3; border-radius: 16px; background: #ffffffb3; color: var(--skill-color); box-shadow: 0 4px 12px #243b3006; }
.skill-number { color: var(--skill-color); opacity: .4; font-family: ui-monospace, monospace; font-size: 12px; }
.skill-english { margin: 0 0 7px; color: var(--skill-color); font-size: 9px; font-weight: 650; letter-spacing: .09em; }
.skill-card h3 { margin: 0; color: #24362e; font-size: 21px; line-height: 1.5; font-weight: 700; letter-spacing: -.03em; }
.skill-description { margin: 10px 0 20px; color: #73807c; font-size: 12px; line-height: 1.8; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 28px; list-style: none; }
.skill-tags li { padding: 4px 7px; border-radius: 6px; background: #f4f6f5; color: #61716a; font-size: 10px; line-height: 1.5; }
.skill-level { margin-top: auto; padding-top: 18px; border-top: 1px solid #edf0ee; }
.skill-level-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #77867e; font-size: 10px; }
.skill-level-label > span:last-child { color: var(--skill-color); font-family: ui-monospace, monospace; font-size: 11px; }
.skill-level-total { color: #96a29c; }
.skill-level-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.skill-level-bars > span { height: 4px; border-radius: 4px; background: #edf1ef; }
.skill-level-bars > .is-filled { background: var(--skill-color); }

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .skill-card { padding: 24px; }
}

@media (max-width: 580px) {
  .skills-section { padding: 64px 24px; }
  .skills-heading { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .skills-grid { gap: 12px; }
  .skill-card { padding: 20px 14px; border-radius: 18px; }
  .skill-card-top { margin-bottom: 22px; }
  .skill-icon { width: 46px; height: 46px; border-radius: 13px; }
  .skill-card h3 { font-size: 18px; }
  .skill-english { font-size: 8px; letter-spacing: .02em; }
  .skill-description { font-size: 11px; }
  .skill-tags { margin-bottom: 20px; }
  .skill-tags li { font-size: 9px; padding: 4px 6px; }
}

@media (max-width: 359px) {
  .skills-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .skill-card { transition: none; }
  .skill-card:hover { transform: none; }
}

.personal-projects {
  padding: 96px 32px 104px;
  color: #17242a;
  background: #f6f8f7;
  scroll-margin-top: 64px;
}

.projects-container { max-width: 960px; margin: 0 auto; }
.projects-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.projects-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #59716a; }
.projects-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.projects-heading h2 span { color: #299477; margin-left: 4px; }
.projects-intro { margin: 16px 0 0; color: #697775; font-size: 15px; line-height: 1.8; }
.projects-note { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding-bottom: 5px; font-size: 12px; color: #697775; }
.projects-note > span { width: 6px; height: 6px; border-radius: 50%; background: #319e7b; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { --project-accent: #285fbc; --project-tint: #eaf1ff; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e4eae7; border-radius: 24px; background: #fff; box-shadow: 0 4px 16px #20382c04; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project-card:hover, .project-card:focus-within { transform: translateY(-6px); border-color: #bacbc2; box-shadow: 0 18px 38px #20382c10; }
.project-encyclopedia { --project-accent: #966023; --project-tint: #fff4df; }
.project-clock-in { --project-accent: #27775e; --project-tint: #e8f5ee; }
.project-album { --project-accent: #5762a5; --project-tint: #eeeffb; }
.project-artwork { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 224px; overflow: hidden; background: var(--project-tint); }
.project-category { position: absolute; top: 18px; left: 20px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--project-accent); }
.project-orbit { position: absolute; z-index: -1; top: 32px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid #ffffffa6; box-shadow: 0 0 0 32px #ffffff30, 0 0 0 64px #ffffff20; }
.project-icon { width: 88px; height: 88px; margin-top: 18px; border-radius: 21px; box-shadow: 0 12px 24px #233c4b20; }
.project-motif { display: flex; gap: 8px; margin-top: 22px; }
.project-motif span { padding: 4px 10px; border: 1px solid #ffffffa8; border-radius: 20px; background: #ffffff70; color: var(--project-accent); font-size: 10px; }
.project-content { padding: 25px 23px 23px; display: flex; flex-direction: column; flex: 1; }
.project-content h3 { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.04em; font-weight: 700; overflow-wrap: anywhere; }
.project-tagline { margin: 8px 0 0; font-size: 12px; font-weight: 550; color: var(--project-accent); }
.project-description { margin: 16px 0 20px; font-size: 13px; line-height: 1.9; color: #73807c; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: auto 0 24px; }
.project-tags li { padding: 4px 8px; border-radius: 6px; background: #f4f6f5; font-size: 10px; color: #61716a; }
.project-store-link { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 13px; border: 1px solid #e4eae7; border-radius: 12px; color: #243b30; font-size: 12px; font-weight: 650; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
.project-link-arrow { margin-left: auto; font-size: 18px; }
.project-store-link:hover { color: #fff; background: #243b30; border-color: #243b30; }
.project-store-link:focus-visible { outline: 3px solid var(--project-accent); outline-offset: 4px; }

@media (max-width: 850px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .personal-projects { padding: 64px 24px; }
  .projects-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-artwork { min-height: 220px; }
  .project-content { padding: 24px; }
  .project-content h3 { font-size: 21px; }
  .project-description { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .project-store-link { transition: none; }
  .project-card:hover, .project-card:focus-within { transform: none; }
}

.skill-description, .project-description { color: #5e6f66; }
.skill-level-label { color: #607367; }
