:root {
  --bg: #fff;
  --panel: #f8f9fa;
  --panel-2: #f1f3f4;
  --ink: #1a1a1a;
  --muted: #6a6a6a;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --shadow: 0 12px 36px rgba(0,0,0,.08);
  --mono: Consolas, "Courier New", monospace;
  --sans: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--bg); font-family: var(--sans); line-height: 1.6; letter-spacing: 0; }
body.no-scroll { overflow: hidden; }
button, a { color: inherit; font: inherit; }
a { text-decoration: none; }
button { border: 0; }
img { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--line-strong); }

.cursor, .cursor-follower { position: fixed; z-index: 9999; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.cursor { width: 20px; height: 20px; border: 2px solid var(--blue); }
.cursor-follower { z-index: 9998; width: 8px; height: 8px; background: var(--blue); }
.cursor.is-hovering { transform: scale(1.5); }

.nav-dots { position: fixed; z-index: 100; right: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 20px; }
.dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); }
.dot::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 0; height: 0; transform: translate(-50%,-50%); border-radius: 50%; background: var(--blue); transition: width .25s ease, height .25s ease; }
.dot:hover::after, .dot.active::after { width: 8px; height: 8px; }

section { position: relative; min-height: 100vh; overflow: hidden; scroll-margin-top: 0; }
.section-content { position: relative; z-index: 2; width: min(100% - 100px, 1400px); min-height: 100vh; margin: 0 auto; padding: 100px 0; }
.ambient-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .62; }
.grid-lines { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 60px 60px; animation: grid-move 25s linear infinite; }
.geo { position: absolute; border: 1px solid rgba(37,99,235,.18); animation: float 8s ease-in-out infinite; }
.geo-one { width: 100px; height: 100px; left: 20%; top: 16%; border-radius: 20px; }
.geo-two { width: 72px; height: 72px; left: 43%; bottom: 23%; transform: rotate(45deg); }
.geo-three { width: 90px; height: 90px; right: 6%; top: 28%; border-radius: 50%; }
.geo-four { width: 84px; height: 84px; left: 40%; top: 38%; border-radius: 24px; }
.geo-five { width: 74px; height: 74px; right: 38%; top: 45%; border-radius: 50%; }
.flow-line { position: absolute; height: 2px; opacity: .45; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: flow 12s linear infinite; }
.flow-one { top: 38%; width: 300px; }
.flow-two { top: 72%; width: 220px; animation-delay: 5s; }
.star { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: twinkle 3s ease-in-out infinite; }
.star-one { left: 20%; top: 10%; }.star-two { left: 80%; top: 20%; }.star-three { left: 10%; top: 60%; }
.star-four { left: 45%; top: 75%; }.star-five { left: 10%; top: 62%; }.star-six { right: 18%; top: 24%; }.star-seven { left: 48%; top: 50%; }

.hero { display: flex; align-items: center; background: #fff; }
.hero-content { position: relative; z-index: 2; width: min(100% - 120px, 1400px); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-text { padding: 56px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-header { margin-bottom: 58px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero-avatar { position: relative; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.avatar-frame { position: relative; width: 140px; height: 140px; display: grid; place-items: center; border: 4px solid var(--panel-2); border-radius: 50%; background: var(--panel); box-shadow: 0 12px 40px rgba(0,0,0,.1); animation: avatar-float 6s ease-in-out infinite; }
.avatar-frame::before { content: ""; position: absolute; inset: -6px; z-index: -1; border: 1px solid rgba(37,99,235,.25); border-radius: 50%; }
.avatar-image { width: 116px; height: 116px; display: block; border-radius: 50%; object-fit: cover; object-position: center; }
.status-dot { position: absolute; right: 10px; bottom: 10px; width: 20px; height: 20px; border: 4px solid #fff; border-radius: 50%; background: #22c55e; box-shadow: 0 4px 12px rgba(34,197,94,.4); }
.hero-info h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.15; font-weight: 800; color: #163d87; }
.hero-info p { margin: 0 0 22px; color: #4a4a4a; }
.role-tag { display: inline-flex; padding: 8px 20px; border: 2px solid var(--blue); border-radius: 24px; background: #fff; font-weight: 600; }
.hero-slogan { margin: 0 0 40px; color: #4a4a4a; text-align: center; font-size: 23px; }
.hero-stats { margin: 0 0 42px; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-stats div { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { color: var(--blue); font: 700 40px/1 var(--mono); }
.hero-stats span { margin-top: 12px; color: var(--muted); font: 12px/1.2 var(--mono); }
.hero-actions { display: flex; justify-content: center; gap: 24px; }
.cta { min-width: 160px; height: 60px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--panel); font-weight: 700; transition: transform .25s ease, box-shadow .25s ease; }
.cta.primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 10px 24px rgba(37,99,235,.2); }
.cta:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.social-links { margin-top: 38px; display: flex; justify-content: center; gap: 18px; }
.social-links a { width: 58px; min-width: 58px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; color: #4a4a4a; background: var(--panel); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.social-links a:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-3px); }
.social-icon > span { position: relative; display: grid; place-items: center; width: 25px; height: 25px; font-size: 21px; line-height: 1; }
.social-wechat > span i { position: absolute; width: 17px; height: 13px; border: 2px solid currentColor; border-radius: 50%; }
.social-wechat > span i::before, .social-wechat > span i::after { content: ""; position: absolute; top: 3px; width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.social-wechat > span i::before { left: 4px; }
.social-wechat > span i::after { right: 4px; }
.social-wechat > span i:first-child { left: 1px; top: 2px; }
.social-wechat > span i:first-child::after { content: ""; top: auto; right: 0; bottom: -4px; width: 5px; height: 5px; border-radius: 0; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.social-wechat > span i:last-child { right: 0; bottom: 1px; width: 14px; height: 11px; background: var(--panel); }
.social-links .social-wechat:hover > span i:last-child { background: var(--blue); }

.terminal-stack { display: flex; flex-direction: column; gap: 40px; }
.terminal-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(248,249,250,.9); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.terminal-card header { height: 56px; padding: 0 28px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-strong); }
.terminal-card header b { color: #4a4a4a; font: 13px/1 var(--mono); font-weight: 500; }
.window-dots { display: flex; gap: 8px; }
.window-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-dots i:nth-child(2) { background: #ffbd2e; }.window-dots i:nth-child(3) { background: #28ca42; }
.terminal-body { min-height: 176px; padding: 30px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.terminal-body p { margin: 0 0 14px; font: 14px/1.4 var(--mono); }
.terminal-body em { color: var(--blue); font-style: normal; }
.terminal-body strong { margin-bottom: 5px; font-size: 14px; }
.terminal-body small { color: var(--muted); font-size: 11px; }
.terminal-body a { margin-top: 16px; color: var(--blue); font: 12px/1.3 var(--mono); }
.terminal-badges { margin-top: 15px; display: flex; gap: 8px; }
.terminal-badges span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: 10px/1 var(--mono); }
.goal-loop-body { justify-content: center; }
.goal-loop { width: 100%; }
.goal-loop > strong { margin: 0; display: flex; align-items: baseline; gap: 9px; color: var(--blue); font: 700 16px/1.2 var(--mono); }
.goal-loop > strong span { color: var(--ink); font: 700 14px/1.2 var(--sans); }
.goal-loop ol { margin: 12px 0 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.goal-loop li { display: grid; grid-template-columns: 17px 72px auto; align-items: baseline; color: #4a4a4a; font: 13px/1.25 var(--mono); }
.goal-loop li i { color: var(--blue); font-style: normal; }
.goal-loop li b { font-weight: 600; }
.goal-loop li span { color: var(--muted); font: 12px/1.25 var(--sans); }
.community-title { display: flex; align-items: center; gap: 9px; }
.community-title strong { margin: 0; }
.community-icon { position: relative; width: 15px; height: 12px; border: 1.5px solid #4a4a4a; border-radius: 4px; }
.community-icon::before { content: ""; position: absolute; left: 3px; top: 4px; width: 2px; height: 2px; border-radius: 50%; background: #4a4a4a; box-shadow: 5px 0 #4a4a4a; }
.community-icon::after { content: ""; position: absolute; left: 2px; bottom: -4px; width: 5px; height: 5px; border-left: 1.5px solid #4a4a4a; transform: skewY(-35deg); background: var(--panel); }
.community-body > small { margin-top: 5px; }
.community-actions { margin-top: 15px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.community-number { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 12px/1 var(--mono); }
.community-number b { font-size: 14px; }
.terminal-body .community-join { margin-top: 0; padding: 8px 13px; border-radius: 6px; color: #fff; background: var(--blue); font: 700 11px/1 var(--sans); transition: background .2s ease, transform .2s ease; }
.terminal-body .community-join:hover { background: #1d4ed8; transform: translateY(-2px); }
.terminal-body .community-join:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: 2px; }
.terminal-status small { display: block; margin-top: 9px; font: 12px/1.3 var(--mono); }
.terminal-status mark { color: #22a06b; background: transparent; }
.terminal-status small:last-child mark { color: #d59c17; }
.typing-cursor { color: var(--blue); animation: blink 1s step-end infinite; }

.reveal { opacity: 0; animation: fade-up .8s ease forwards; }
.reveal-one { animation-delay: .1s; }.reveal-two { animation-delay: .3s; }.reveal-three { animation-delay: .5s; }.reveal-four { animation-delay: .7s; }

.about, .contact { background: var(--panel); }
.about-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 100px; align-items: start; }
.section-label { margin-bottom: 32px; color: var(--muted); font: 13px/1.2 var(--mono); }
.section-label i { display: block; width: 50px; height: 1px; margin-top: 12px; background: var(--line-strong); }
.about-main h2, .contact-main h2 { max-width: 860px; margin: 0 0 34px; font-size: 46px; line-height: 1.2; }
.about-main h2 span, .contact-main h2 span { color: var(--blue-2); }
.contact-main h2 span { color: #ef4444; white-space: nowrap; }
.invite-hand { margin-left: 8px; display: inline-block; color: initial; font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif; font-size: .72em; line-height: 1; font-style: normal; vertical-align: .08em; transform-origin: left center; animation: invite-reach 1.8s ease-in-out infinite; }
.about-main > p, .contact-main > p { max-width: 850px; margin: 0; color: #4a4a4a; font-size: 17px; line-height: 1.9; }
.skill-list { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.skill-list span { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; font-size: 13px; }
.about-facts { display: flex; flex-direction: column; gap: 20px; }
.about-facts article { min-height: 92px; padding: 16px 20px; display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.about-facts article > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #28ca42; font-size: 22px; }
.about-facts small, .about-facts strong { display: block; }
.about-facts small { color: var(--muted); font-size: 11px; }.about-facts strong { margin-top: 2px; font-size: 16px; }

.work { background: #fff; }
.work-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.work-card { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 205px minmax(220px,1fr); border: 1px solid #dfe3ea; border-radius: 14px; background: var(--panel); transform-origin: center bottom; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.work-card:hover, .work-card:focus-within { border-color: var(--blue); transform: translateY(-5px) rotate(-.35deg); box-shadow: 0 18px 44px rgba(37,99,235,.14); }
.work-preview { width: 100%; min-width: 0; height: 100%; padding: 0; display: block; background: transparent; cursor: pointer; }
.work-media { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: #dce5f3; }
.work-orbit { position: absolute; width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.52); opacity: .42; transition: opacity .35s ease, transform .55s ease; }
.work-orbit::before { content: ""; position: absolute; inset: 11px; border: 2px solid rgba(37,99,235,.22); border-right-color: transparent; border-radius: 50%; }
.work-orbit::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 17px; height: 17px; border: 2px solid var(--blue); border-radius: 50%; }
.work-orbit i { position: absolute; left: 12px; bottom: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.work-chinese, .work-english { position: absolute; z-index: 1; inset: 0; padding: 0 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.work-chinese { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .12s ease, transform .2s ease, visibility 0s linear .12s; }
.work-english { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .18s ease .12s, transform .22s ease .12s, visibility 0s linear .12s; }
.work-chinese b, .work-english b { color: #414955; font: 700 17px/1.25 var(--mono); }
.work-chinese small, .work-english small { color: #697180; font: 11px/1.3 var(--mono); }
.work-card:hover .work-orbit, .work-card:focus-within .work-orbit { opacity: .78; transform: rotate(72deg) scale(1.06); }
.work-card:hover .work-chinese, .work-card:focus-within .work-chinese { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .18s ease .12s, transform .22s ease .12s, visibility 0s linear .12s; }
.work-card:hover .work-english, .work-card:focus-within .work-english { opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .12s ease, transform .2s ease, visibility 0s linear .12s; }
.work-copy { min-height: 220px; padding: 26px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; background: var(--panel); }
.work-copy small { color: var(--muted); font: 12px/1 var(--mono); }
.work-title-swap { position: relative; width: 100%; min-height: 56px; margin-top: 17px; }
.work-title-swap strong { position: absolute; inset: 0; margin: 0; font-size: 20px; line-height: 1.35; }
.work-title-swap .work-en { font-size: 18px; }
.work-summary-swap { position: relative; width: 100%; min-height: 44px; margin-top: 10px; color: #565b64; font-size: 14px; line-height: 1.55; }
.work-summary-swap > span { position: absolute; inset: 0; }
.work-title-swap .work-cn, .work-summary-swap .work-cn { opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .12s ease, transform .2s ease, visibility 0s linear .12s; }
.work-title-swap .work-en, .work-summary-swap .work-en { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .18s ease .12s, transform .22s ease .12s, visibility 0s linear .12s; }
.work-card:hover .work-title-swap .work-cn, .work-card:hover .work-summary-swap .work-cn, .work-card:focus-within .work-title-swap .work-cn, .work-card:focus-within .work-summary-swap .work-cn { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .18s ease .12s, transform .22s ease .12s, visibility 0s linear .12s; }
.work-card:hover .work-title-swap .work-en, .work-card:hover .work-summary-swap .work-en, .work-card:focus-within .work-title-swap .work-en, .work-card:focus-within .work-summary-swap .work-en { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .12s ease, transform .2s ease, visibility 0s linear .12s; }
.work-actions { margin-top: auto; padding-top: 18px; display: flex; gap: 10px; }
.work-actions button, .work-actions a { min-width: 74px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 7px; color: #353940; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.work-actions button:hover, .work-actions a:hover { color: var(--blue); border-color: var(--blue); background: #fff; }
.work-actions i { font-style: normal; }
.experience-gateway { position: relative; margin-top: 64px; display: flex; align-items: center; justify-content: center; }
.experience-gateway::before, .experience-gateway::after { content: ""; width: min(16vw, 180px); height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.experience-gateway::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.experience-button { position: relative; min-width: 190px; height: 58px; margin: 0 24px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 10px; color: #fff; background-color: #ef4444; background-image: linear-gradient(110deg, #ef4444 0%, #ef4444 18%, #22c55e 36%, #22c55e 52%, #2563eb 70%, #2563eb 86%, #ef4444 100%); background-size: 300% 100%; box-shadow: 0 14px 34px rgba(37,99,235,.2); font-weight: 700; animation: experience-gradient 4.5s linear infinite; transition: transform .25s ease, box-shadow .25s ease; }
.experience-button::before { content: ""; position: absolute; inset: 0; opacity: .32; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.9), transparent 70%); transform: translateX(-110%); transition: transform .55s ease; }
.experience-button span, .experience-button i { position: relative; z-index: 1; }
.experience-button i { color: #fff; font-style: normal; }
.experience-button:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(239,68,68,.2), 0 10px 26px rgba(34,197,94,.18), 0 6px 18px rgba(37,99,235,.22); }
.experience-button:hover::before { transform: translateX(110%); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.contact-methods { margin-top: 45px; display: flex; flex-direction: column; gap: 20px; }
.contact-methods div { min-height: 92px; padding: 18px 22px; display: grid; grid-template-columns: 50px 80px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.contact-methods div > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--blue); font-size: 21px; }
.contact-methods small { margin-left: 20px; color: var(--muted); }.contact-methods strong { font-size: 16px; }
.contact-bubble { position: relative; justify-self: center; width: 108px; height: 116px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.contact-bubble::after { content: ""; position: absolute; bottom: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.contact-bubble i { display: inline-block; width: 8px; height: 8px; margin: 0 3px 12px; border-radius: 50%; background: var(--blue-2); }
.contact-bubble i:nth-child(2) { opacity: .75; }.contact-bubble i:nth-child(3) { opacity: .45; }
.contact-bubble strong { font-size: 18px; }
.contact footer { position: absolute; z-index: 3; left: 50px; right: 50px; bottom: 28px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font: 11px/1.3 var(--mono); }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 54px; border: 0; color: #fff; background: rgba(8,12,20,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8,12,20,.96); }
.lightbox figure { width: min(1100px, 100%); height: min(78vh, 800px); margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 16px; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }.lightbox figcaption { text-align: center; font-size: 13px; }
.lightbox-close { position: fixed; right: 24px; top: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: transparent; font-size: 28px; cursor: pointer; }

@keyframes grid-move { to { transform: translate(60px,60px); } }
@keyframes flow { from { left: -320px; } to { left: 100%; } }
@keyframes float { 50% { transform: translateY(-22px) rotate(90deg); opacity: .8; } }
@keyframes avatar-float { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 50% { opacity: 1; transform: scale(2); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes invite-reach { 0%,100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(7px) rotate(-7deg); } }
@keyframes experience-gradient { to { background-position: 300% 0; } }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 900px) {
  .cursor, .cursor-follower, .nav-dots { display: none; }
  section { min-height: auto; }
  .hero-content { width: min(100% - 40px, 680px); min-height: auto; padding: 60px 0 80px; grid-template-columns: 1fr; gap: 60px; }
  .hero-text { padding: 0; }
  .hero-header { margin-bottom: 46px; }
  .hero-slogan { font-size: 20px; }
  .terminal-stack { gap: 24px; }
  .section-content { width: min(100% - 40px, 680px); min-height: auto; padding: 80px 0 110px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .about-main h2, .contact-main h2 { font-size: 36px; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; }
  .experience-gateway { margin-top: 48px; }
  .work-card { grid-template-rows: 260px minmax(220px,auto); }
  .contact-bubble { display: none; }
  .contact footer { position: static; margin: 0 20px; padding: 24px 0; flex-direction: column; gap: 8px; }
}

@media (max-width: 520px) {
  .hero-content, .section-content { width: min(100% - 32px, 680px); }
  .avatar-frame { width: 128px; height: 128px; }
  .avatar-image { width: 106px; height: 106px; }
  .hero-info h1 { font-size: 30px; }
  .hero-slogan { margin-bottom: 34px; font-size: 19px; }
  .hero-stats strong { font-size: 31px; }
  .hero-stats span { font-size: 9px; }
  .hero-actions { gap: 10px; }
  .cta { min-width: 0; flex: 1; height: 54px; padding: 0 12px; }
  .social-links { gap: 8px; }
  .social-links a { width: 58px; min-width: 58px; flex: 0 0 58px; padding: 0; }
  .terminal-card { border-radius: 14px; }
  .terminal-card header { padding: 0 18px; }
  .terminal-body { padding: 24px 20px; }
  .about-main h2, .contact-main h2 { font-size: 31px; }
  .about-main > p, .contact-main > p { font-size: 15px; }
  .skill-list { gap: 8px; }
  .skill-list span { padding: 9px 11px; font-size: 11px; }
  .about-facts article { min-height: 82px; }
  .work-grid { margin-top: 40px; }
  .work-card { grid-template-rows: 220px minmax(220px,auto); }
  .experience-gateway::before, .experience-gateway::after { width: 28px; }
  .experience-button { min-width: 176px; margin: 0 14px; }
  .contact-methods div { grid-template-columns: 46px 60px 1fr; padding: 15px; }
  .contact-methods div > span { width: 46px; height: 46px; }
  .contact-methods small { margin-left: 12px; }
  .lightbox { padding: 64px 12px 28px; }
}

@media (hover: none) {
  .work-orbit { opacity: .72; }
  .work-card .work-chinese, .work-card .work-title-swap .work-cn, .work-card .work-summary-swap .work-cn { opacity: 0 !important; visibility: hidden !important; transform: translateY(8px) !important; }
  .work-card .work-english, .work-card .work-title-swap .work-en, .work-card .work-summary-swap .work-en { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
