@charset "UTF-8";
:root {
  --paper: #fdfdff;
  --ink: #2f3542;
  --soft-ink: #42495b;
  --muted: #7b8494;
  --line: #dfe1e9;
  --lavender: #b8a7ff;
  --lavender-deep: #8170c9;
  --lavender-pale: #eeeaff;
  --pink: #ff9ec7;
  --pink-pale: #ffe7f0;
  --mint: #7fd4c1;
  --mint-pale: #ddf4ec;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 820px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 73% 40%, rgba(220,210,255,.22), transparent 42%), radial-gradient(ellipse at 13% 82%, rgba(255,222,235,.22), transparent 37%); }
::selection { color: var(--ink); background: var(--pink); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--lavender-deep); outline-offset: 5px; }
.shell { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-150%); background: var(--ink); color: white; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }

/* A quiet, editorial header instead of a floating glass capsule. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253,253,255,.84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .25s, background .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(253,253,255,.95); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-symbol { width: 37px; height: 37px; display: grid; place-items: center; background: var(--lavender); color: #fff; font-family: Georgia, serif; font-size: 27px; font-style: italic; font-weight: 700; line-height: 1; letter-spacing: -.15em; transform: rotate(-8deg); padding-right: 5px; }
.brand-dot { color: var(--ink); }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 700; letter-spacing: -.065em; }
.brand-period, .footer-brand span { color: var(--pink); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3.1vw, 46px); margin-left: auto; margin-right: clamp(12px, 2vw, 36px); }
.site-nav a { position: relative; padding: 9px 0; color: var(--soft-ink); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; transition: color .2s; }
.site-nav a span { margin-right: 6px; color: var(--lavender-deep); font-family: Georgia, serif; font-size: 12px; font-weight: 400; }
.site-nav a::after { content: ""; position: absolute; bottom: 3px; left: 0; width: 0; height: 1px; background: var(--ink); transition: width .28s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--lavender-deep); }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.header-blog { display: inline-flex; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .2s, border-color .2s; }
.header-blog:hover { color: var(--lavender-deep); border-color: var(--lavender-deep); }
.header-blog span { font-size: 18px; font-weight: 400; }

/* Intro */
.hero { min-height: 730px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: 1fr auto; align-items: center; column-gap: 18px; padding-top: 18px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 28px; }
.eyebrow, .section-index, .panel-no, .note-overline, .visual-caption, .hero-foot { font-family: "Segoe UI", Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.hero-eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 35px; color: var(--lavender-deep); }
.eyebrow-mark { width: 21px; height: 2px; background: var(--pink); }
.eyebrow-separator { color: #bdc1cc; }
.hero h1 { margin: 0; font-size: clamp(76px, 8.4vw, 136px); letter-spacing: -.095em; line-height: 1.13; font-weight: 800; white-space: nowrap; }
.hero h1 em { position: relative; display: inline-block; color: var(--lavender-deep); font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; width: 89%; height: 18px; bottom: 8px; left: 4%; background: var(--pink-pale); transform: rotate(-2.2deg); }
.title-period { color: var(--pink); }
.hero-intro { margin: 32px 0 0; color: var(--soft-ink); font-size: clamp(15px, 1.35vw, 18px); line-height: 2; letter-spacing: .015em; }
.hero-intro strong { color: var(--ink); }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 36px; }
.primary-link { display: inline-flex; align-items: center; gap: 23px; padding: 8px 8px 8px 25px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; transition: transform .3s var(--ease), background .3s; }
.primary-link:hover { transform: translateY(-3px); background: #535178; }
.arrow-circle { width: 37px; height: 37px; display: grid; place-items: center; background: var(--lavender); color: var(--ink); font-size: 19px; font-weight: 400; }
.text-link { color: var(--soft-ink); text-decoration: none; border-bottom: 1px solid #8a90a0; padding-bottom: 4px; font-size: 13px; font-weight: 600; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--lavender-deep); border-color: var(--lavender-deep); }
.text-link span { margin-left: 8px; font-size: 17px; }
.hero-aside { display: flex; align-items: center; gap: 9px; margin-top: 67px; color: #a3a8b4; font-family: Georgia, serif; font-size: 13px; font-style: italic; letter-spacing: .035em; }
.small-sparkle { color: var(--pink); font-family: Arial, sans-serif; font-size: 22px; font-style: normal; }
.hero-visual { position: relative; align-self: center; min-width: 0; }
.portrait-stage { position: relative; width: min(100%, 530px); height: 545px; margin-left: auto; transition: transform .45s var(--ease); }
.portrait-halo { position: absolute; width: 430px; height: 430px; max-width: 92%; top: 36px; left: 6%; border-radius: 50%; background: #f2edff; }
.portrait-backdrop { position: absolute; z-index: 1; width: 75%; height: 78%; left: 17%; top: 8%; border-radius: 48% 52% 49% 51% / 43% 47% 53% 57%; background: var(--lavender); transform: rotate(-9deg); box-shadow: 20px 23px 0 rgba(255,158,199,.34); }
.portrait-photo { position: absolute; z-index: 2; width: 63%; height: 70%; top: 12%; left: 22%; object-fit: cover; object-position: 49% 48%; border: 8px solid rgba(255,255,255,.95); border-radius: 49% 51% 47% 53% / 45% 48% 52% 55%; transform: rotate(4deg); box-shadow: 0 22px 55px rgba(101,96,155,.22); }
.portrait-loop { position: absolute; z-index: 3; width: 95%; height: 80%; top: 7%; left: 2%; border: 1px solid rgba(117,104,168,.46); border-radius: 50%; transform: rotate(15deg); pointer-events: none; }
.portrait-mint { position: absolute; z-index: 4; width: 77px; height: 77px; left: 2%; top: 53%; background: var(--mint); border-radius: 50%; box-shadow: inset -10px -10px 0 rgba(255,255,255,.25); }
.portrait-pink { position: absolute; z-index: 3; width: 26px; height: 26px; right: 2%; top: 19%; background: var(--pink); border-radius: 50%; }
.portrait-star { position: absolute; z-index: 4; top: 0; left: 12%; color: var(--pink); font-size: 45px; line-height: 1; }
.portrait-tag { position: absolute; z-index: 5; top: 10%; right: -5%; display: flex; align-items: center; gap: 10px; transform: rotate(8deg); color: var(--soft-ink); font-family: Georgia, serif; font-size: 14px; font-style: italic; white-space: nowrap; }
.tag-arrow { font-family: Arial, sans-serif; color: var(--lavender-deep); font-size: 27px; font-style: normal; }
.portrait-note { position: absolute; z-index: 5; left: 0; bottom: 9%; padding: 18px 26px 20px; background: #fff; border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--pink-pale); transform: rotate(-8deg); color: var(--ink); font-family: Georgia, serif; font-size: 23px; font-weight: 700; font-style: italic; line-height: 1.03; letter-spacing: -.06em; }
.note-dot { color: var(--pink); }
.visual-caption { margin: -16px 27px 0 0; text-align: right; color: #9ca1ad; font-size: 10px; letter-spacing: .13em; }
.visual-caption span { color: var(--pink); margin-inline: 5px; }
.hero-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 21px 0 25px; color: #979eab; font-size: 10px; letter-spacing: .12em; }
.hero-foot-line { flex: 1; height: 1px; background: var(--line); }
.down-arrow { margin-left: 6px; color: var(--lavender-deep); font-size: 17px; }
.word-ribbon { overflow: hidden; background: var(--lavender-pale); border-top: 1px solid #ddd5fa; border-bottom: 1px solid #ddd5fa; }
.ribbon-track { display: flex; width: max-content; padding: 16px 0 14px; animation: ribbon 31s linear infinite; }
.ribbon-track span { flex: none; margin-right: 38px; color: #7466a9; font-family: Georgia, serif; font-size: 14px; font-style: italic; font-weight: 700; letter-spacing: .15em; white-space: nowrap; }
.ribbon-track b { margin: 0 31px; color: var(--pink); font-family: Arial, sans-serif; font-style: normal; font-size: 14px; }
@keyframes ribbon { to { transform: translateX(-33.333%); } }

/* About */
.section-space { padding-top: clamp(100px, 11vw, 160px); padding-bottom: clamp(100px, 11vw, 160px); }
.section-index { display: flex; align-items: center; gap: 11px; margin: 0 0 28px; color: var(--lavender-deep); font-size: 11px; letter-spacing: .16em; }
.index-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.section-heading { display: grid; grid-template-columns: 21% 1fr 24%; align-items: end; gap: 18px; margin-bottom: 70px; }
.section-heading .section-index { align-self: start; margin-top: 9px; }
h2 { margin: 0; font-size: clamp(44px, 5.1vw, 76px); line-height: 1.25; letter-spacing: -.075em; font-weight: 800; }
.section-heading h2 span, .interests-heading h2 span { color: var(--lavender-deep); }
.section-lead { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-content { display: grid; grid-template-columns: minmax(280px, .84fr) minmax(0, 1.16fr); gap: clamp(60px, 10vw, 148px); align-items: start; }
.about-note { position: relative; min-height: 404px; display: flex; flex-direction: column; padding: 36px 38px 30px; background: var(--pink-pale); border: 1px solid #f6cbdc; transform: rotate(-2deg); }
.about-note::before { content: ""; position: absolute; width: 33%; height: 16px; top: -8px; left: 33%; background: rgba(184,167,255,.62); transform: rotate(3deg); }
.note-pin { position: absolute; top: 28px; right: 34px; color: var(--pink); font-size: 46px; line-height: 1; }
.note-overline { margin: 0; color: #9e7590; font-size: 11px; }
.note-quote { margin: auto 0; padding: 42px 0 20px; font-size: clamp(37px, 3.1vw, 54px); font-weight: 700; line-height: 1.45; letter-spacing: -.08em; }
.note-bottom { display: flex; align-items: flex-end; justify-content: space-between; border-top: 1px solid #e5bccc; padding-top: 18px; color: #a17d8e; font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.note-doodle { color: var(--lavender-deep); font-family: Arial, sans-serif; font-size: 31px; font-style: normal; transform: rotate(-18deg); }
.about-story { padding-top: 3px; }
.about-opening { margin: 0 0 22px; font-size: clamp(22px, 2.1vw, 29px); line-height: 1.65; letter-spacing: -.035em; }
.about-opening strong { font-weight: 700; }
.about-explain { max-width: 600px; margin: 0 0 41px; color: var(--muted); font-size: 15px; line-height: 2; }
.about-explain strong { color: var(--lavender-deep); letter-spacing: .08em; }
.mist-list { border-top: 1px solid var(--line); }
.mist-row { display: grid; grid-template-columns: 53px 1fr 25px; align-items: center; gap: 17px; min-height: 93px; padding: 16px 1px; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease), background .3s; }
.mist-row:hover { padding-left: 9px; background: rgba(238,234,255,.35); }
.mist-letter { display: grid; place-items: center; width: 43px; height: 43px; font-family: Georgia, serif; font-size: 27px; font-weight: 700; line-height: 1; }
.letter-m { background: var(--lavender-pale); color: #7967bc; }
.letter-i { background: var(--pink-pale); color: #cd739a; }
.letter-s { background: var(--mint-pale); color: #4caa93; }
.letter-t { background: #e4f1ff; color: #6f9dc8; }
.mist-row h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 20px; letter-spacing: -.025em; }
.mist-row h3 span { margin-left: 8px; color: var(--muted); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.mist-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.row-mark { align-self: center; color: #b9b6cd; font-size: 19px; }

/* Interests: three custom little illustrations, no icon-card template. */
.interests { background: #f5f5fc; border-block: 1px solid #e9e8f1; }
.interests-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 57px; }
.interests-heading h2 span { color: var(--ink); }
.interests-heading > p { margin: 0 4% 9px 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.interest-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.interest-panel { position: relative; overflow: hidden; min-height: 450px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px 28px 27px; border: 1px solid rgba(47,53,66,.09); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.interest-panel:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(89,86,134,.12); }
.linux-panel { grid-column: span 6; background: #e7e0ff; }
.web-panel { grid-column: span 3; background: #d9f3e9; }
.music-panel { grid-column: span 3; background: #ffe3ec; }
.panel-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; color: #5f6070; }
.panel-no { font-size: 10px; letter-spacing: .12em; }
.panel-symbol { font-size: 24px; line-height: 1; }
.panel-copy { position: relative; z-index: 2; display: flex; align-items: start; gap: 13px; }
.panel-asterisk { color: var(--lavender-deep); font-size: 24px; line-height: 1.1; }
.web-panel .panel-asterisk { color: #4da489; }
.music-panel .panel-asterisk { color: #d17c9f; }
.panel-copy h3 { margin: -4px 0 9px; font-family: Georgia, serif; font-size: clamp(29px, 2.5vw, 38px); letter-spacing: -.05em; }
.panel-copy p { max-width: 300px; margin: 0; color: #626a79; font-size: 12px; line-height: 1.8; }
.terminal-art { align-self: center; width: min(86%, 375px); height: 208px; margin: 17px 0 19px; background: #303344; border: 1px solid #222533; box-shadow: 12px 13px 0 rgba(127,105,195,.2); transform: rotate(-4deg); transition: transform .4s var(--ease); }
.linux-panel:hover .terminal-art { transform: rotate(-1deg) translateY(-4px); }
.terminal-bar { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 12px; border-bottom: 1px solid #4b4f61; }
.terminal-bar span { width: 7px; height: 7px; background: #ff9ec7; border-radius: 50%; }
.terminal-bar span:nth-child(2) { background: #edce81; }
.terminal-bar span:nth-child(3) { background: var(--mint); }
.terminal-bar small { margin: auto; padding-right: 25px; color: #a6a8ba; font-family: Consolas, monospace; font-size: 9px; }
.terminal-body { padding: 28px 22px; color: #eff0f7; font-family: Consolas, "Courier New", monospace; font-size: clamp(12px, 1.15vw, 16px); white-space: nowrap; }
.terminal-body p { margin: 0 0 13px; }
.terminal-body i { color: var(--pink); font-style: normal; }
.terminal-body b { color: var(--mint); font-weight: 400; }
.terminal-cursor { color: var(--pink); animation: blink 1s steps(1) infinite; }
.terminal-response { color: #b8a7ff; }
@keyframes blink { 50% { opacity: 0; } }
.browser-art { align-self: center; width: min(100%, 220px); height: 190px; margin: 21px 0 30px; background: #fff; border: 2px solid #394d50; box-shadow: 8px 9px 0 rgba(57,77,80,.11); transform: rotate(5deg); transition: transform .4s var(--ease); }
.web-panel:hover .browser-art { transform: rotate(1deg) translateY(-4px); }
.browser-bar { height: 28px; display: flex; align-items: center; gap: 15px; padding: 0 9px; border-bottom: 2px solid #394d50; }
.browser-dots { color: #e8a1bd; font-size: 7px; letter-spacing: 1px; }
.browser-url { overflow: hidden; color: #79928b; font-family: Consolas, monospace; font-size: 8px; white-space: nowrap; }
.browser-canvas { position: relative; height: calc(100% - 28px); overflow: hidden; background: #e2f2e7; }
.browser-sun { position: absolute; top: 22px; right: 24px; width: 53px; height: 53px; border-radius: 50%; background: #f7c2d7; }
.browser-hill { position: absolute; bottom: -78px; left: -12%; width: 128%; height: 180px; border-radius: 50% 50% 0 0; background: #a5d8c1; transform: rotate(-14deg); }
.browser-code { position: absolute; bottom: 27px; left: 15px; color: #46665c; font-family: Consolas, monospace; font-size: 13px; font-weight: 700; }
.record-art { position: relative; width: 225px; height: 210px; align-self: center; margin: 9px 0 25px; transform: rotate(-8deg); }
.record-disc { position: absolute; top: 10px; left: 17px; display: grid; place-items: center; width: 190px; height: 190px; border-radius: 50%; background: repeating-radial-gradient(circle, #353345 0 2px, #2d2c3c 3px 5px, #424052 6px 7px); box-shadow: 10px 12px 0 rgba(195,113,147,.15); animation: record-spin 16s linear infinite; }
.record-label { display: grid; place-items: center; width: 69px; height: 69px; border: 2px solid #e89fbb; border-radius: 50%; background: var(--pink); }
.record-label span { width: 9px; height: 9px; background: #fdfdff; border-radius: 50%; }
.record-arm { position: absolute; z-index: 2; top: 12px; right: -2px; width: 8px; height: 105px; background: #8d7b8c; transform-origin: top center; transform: rotate(-24deg); border-radius: 6px; }
.record-arm::after { content: ""; position: absolute; bottom: 0; left: -4px; width: 16px; height: 21px; background: #fff8fb; border: 2px solid #8d7b8c; }
.record-spark { position: absolute; top: -7px; left: -6px; color: #c2648d; font-family: Georgia, serif; font-size: 40px; }
@keyframes record-spin { to { transform: rotate(360deg); } }

/* Closing thought */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(55px, 9vw, 130px); min-height: 590px; }
.notes-left h2 { font-size: clamp(40px, 4.2vw, 62px); }
.notes-left h2 em { color: var(--lavender-deep); font-style: normal; }
.notes-right { position: relative; padding-top: 54px; }
.quote-mark { position: absolute; top: -19px; left: -13px; color: var(--pink); font-family: Georgia, serif; font-size: 124px; line-height: 1; }
.thought { position: relative; min-height: 86px; margin: 0 0 23px; font-size: clamp(26px, 3vw, 41px); font-weight: 700; line-height: 1.55; letter-spacing: -.06em; transition: opacity .18s, transform .18s; }
.thought.is-changing { opacity: 0; transform: translateY(7px); }
.thought-switch { padding: 0 0 5px; background: none; border: 0; border-bottom: 1px solid var(--lavender-deep); color: var(--lavender-deep); font-size: 12px; font-weight: 700; cursor: pointer; transition: color .2s; }
.thought-switch:hover { color: var(--ink); }
.thought-switch span { display: inline-block; margin-left: 8px; font-size: 18px; font-weight: 400; vertical-align: -2px; transition: transform .45s; }
.thought-switch:hover span { transform: rotate(100deg); }
.notes-rule { height: 1px; background: var(--line); margin: 54px 0 26px; }
.notes-outro { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.95; }
.notes-blog { display: inline-flex; align-items: center; gap: 35px; padding: 11px 0; border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; transition: color .2s, border-color .2s; }
.notes-blog:hover { color: var(--lavender-deep); border-color: var(--lavender-deep); }
.notes-blog span { font-size: 22px; font-weight: 400; }
.site-footer { background: #f2f1f8; border-top: 1px solid #e9e7f1; }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 112px; }
.footer-brand { color: var(--ink); font-family: Georgia, serif; font-size: 29px; font-weight: 700; letter-spacing: -.06em; text-decoration: none; }
.footer-inner p, .footer-inner > span { color: var(--muted); font-size: 12px; }
.footer-inner > span { margin-left: auto; }
.back-top { margin-left: 32px; color: var(--soft-ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.back-top:hover { color: var(--lavender-deep); }

/* ===== 缓入动画 =====
   只有脚本跑起来（html.js）时才隐藏初始状态，脚本没加载或加载失败时内容始终可见。 */

/* 一、进站动画：首屏各元素依次浮现，头像拼贴像被一片片摆上去 */
@keyframes rise-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes halo-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; transform: rotate(-26deg) scale(.84); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }
@keyframes photo-in { from { opacity: 0; transform: rotate(15deg) scale(.9); } to { opacity: 1; transform: rotate(4deg) scale(1); } }
@keyframes dot-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes star-in { from { opacity: 0; transform: scale(0) rotate(-130deg); } to { opacity: 1; transform: none; } }
@keyframes note-in { from { opacity: 0; transform: rotate(-17deg) translateY(20px) scale(.9); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes tag-in { from { opacity: 0; transform: rotate(8deg) translateX(18px); } to { opacity: 1; transform: rotate(8deg); } }

.js .hero-eyebrow,
.js .hero h1,
.js .hero-intro,
.js .hero-actions,
.js .hero-aside,
.js .hero-visual,
.js .visual-caption,
.js .hero-foot,
.js .word-ribbon,
.js .portrait-halo,
.js .portrait-backdrop,
.js .portrait-photo,
.js .portrait-loop,
.js .portrait-mint,
.js .portrait-pink,
.js .portrait-star,
.js .portrait-tag,
.js .portrait-note { opacity: 0; }

.js.is-loaded .hero-eyebrow { animation: fade-in .7s var(--ease) .05s both; }
.js.is-loaded .hero h1 { animation: rise-in .95s var(--ease) .12s both; }
.js.is-loaded .hero-intro { animation: rise-in .9s var(--ease) .3s both; }
.js.is-loaded .hero-actions { animation: rise-in .9s var(--ease) .42s both; }
.js.is-loaded .hero-aside { animation: fade-in .9s var(--ease) .58s both; }
.js.is-loaded .hero-visual { animation: rise-in 1s var(--ease) .16s both; }
.js.is-loaded .visual-caption { animation: fade-in .8s var(--ease) .64s both; }
.js.is-loaded .hero-foot { animation: fade-in .9s var(--ease) .72s both; }
.js.is-loaded .word-ribbon { animation: fade-in .9s var(--ease) .8s both; }

.js.is-loaded .portrait-halo { animation: halo-in .9s var(--ease) .22s both; }
.js.is-loaded .portrait-backdrop { animation: backdrop-in .95s var(--ease) .3s both; }
.js.is-loaded .portrait-photo { animation: photo-in 1s var(--ease) .42s both; }
.js.is-loaded .portrait-loop { animation: fade-in 1.1s var(--ease) .54s both; }
.js.is-loaded .portrait-mint { animation: dot-in .7s var(--ease) .74s both; }
.js.is-loaded .portrait-pink { animation: dot-in .7s var(--ease) .82s both; }
.js.is-loaded .portrait-star { animation: star-in .8s var(--ease) .7s both; }
.js.is-loaded .portrait-tag { animation: tag-in .8s var(--ease) .88s both; }
.js.is-loaded .portrait-note { animation: note-in .85s var(--ease) .8s both; }

/* 二、滚动动画：进入视口时上浮淡入 */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .about-note { transform: rotate(-2deg) translateY(30px); }
.js .about-note.is-visible { transform: rotate(-2deg); }
.js .interest-panel.is-visible:hover { transform: translateY(-8px); }

/* 同一组元素依次入场，避免整块同时出现 */
.js .about-story.reveal { transition-delay: .12s; }
.js .notes-right.reveal { transition-delay: .14s; }
.js .interest-grid .reveal:nth-child(2) { transition-delay: .1s; }
.js .interest-grid .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 1100px) {
  .shell { width: min(100% - 64px, 1280px); }
  .hero { min-height: 680px; }
  .hero h1 { font-size: clamp(69px, 8.3vw, 94px); }
  .portrait-stage { height: 480px; }
  .portrait-halo { width: 360px; height: 360px; }
  .portrait-tag { right: 0; }
  .section-heading { grid-template-columns: 19% 1fr; }
  .section-lead { grid-column: 2; }
  .about-content { gap: 55px; }
  .linux-panel { grid-column: span 6; }
  .web-panel, .music-panel { grid-column: span 3; }
  .interest-panel { padding-inline: 20px; }
  .record-art { transform: rotate(-8deg) scale(.78); margin-left: -17px; margin-right: -17px; }
}
@media (max-width: 860px) {
  .header-blog { display: none; }
  .site-nav { margin-right: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr 1fr; padding-top: 85px; }
  .hero h1 { font-size: clamp(62px, 8vw, 80px); }
  .hero-intro { font-size: 14px; }
  .portrait-stage { height: 420px; }
  .portrait-note { padding: 13px 18px; font-size: 18px; }
  .portrait-tag { top: 5%; font-size: 11px; }
  .portrait-mint { width: 54px; height: 54px; }
  .hero-aside { margin-top: 48px; }
  .hero-foot { margin-top: 28px; }
  .section-heading { grid-template-columns: 1fr 1fr; }
  .section-heading .section-index { grid-column: 1 / -1; margin-bottom: 0; }
  .section-lead { grid-column: 2; }
  .about-content { grid-template-columns: 1fr; gap: 58px; }
  .about-note { min-height: 290px; width: min(100%, 500px); }
  .note-quote { margin-block: 0; padding: 35px 0; }
  .mist-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .mist-row { border-top: 0; }
  .linux-panel { grid-column: span 6; }
  .web-panel, .music-panel { grid-column: span 6; }
  .linux-panel { grid-row: span 2; }
  .interest-panel { min-height: 360px; }
  .linux-panel { min-height: 736px; }
  .web-panel .browser-art, .music-panel .record-art { margin-top: 10px; margin-bottom: 12px; }
  .interests-heading > p { margin-right: 0; }
  .notes { min-height: auto; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; gap: 15px; }
  .brand-symbol { width: 31px; height: 31px; font-size: 22px; }
  .brand-name { font-size: 24px; }
  .site-nav { gap: 15px; }
  .site-nav a { font-size: 12px; }
  .site-nav a span { display: none; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 70px; }
  .hero-copy { padding-bottom: 0; }
  .hero-eyebrow { margin-bottom: 25px; font-size: 10px; }
  .hero h1 { font-size: clamp(66px, 14.7vw, 98px); line-height: 1.16; }
  .hero h1 em::after { height: 13px; bottom: 4px; }
  .hero-intro { margin-top: 24px; font-size: 14px; line-height: 1.9; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 28px; gap: 22px; }
  .primary-link { padding-left: 17px; gap: 10px; font-size: 12px; }
  .arrow-circle { width: 32px; height: 32px; }
  .text-link { font-size: 12px; }
  .hero-aside { margin-top: 30px; font-size: 11px; }
  .hero-visual { width: 100%; margin-top: 5px; }
  .portrait-stage { width: min(100%, 470px); height: clamp(340px, 100vw, 480px); margin-inline: auto; }
  .portrait-halo { width: 75%; height: 75%; top: 8%; left: 11%; }
  .portrait-backdrop { height: 77%; }
  .portrait-photo { height: 68%; top: 13%; }
  .portrait-loop { width: 85%; height: 73%; top: 11%; left: 7%; }
  .portrait-tag { right: 2%; top: 5%; }
  .portrait-note { left: 4%; bottom: 6%; font-size: 17px; }
  .visual-caption { margin-top: -8px; margin-right: 3%; font-size: 9px; }
  .hero-foot { width: 100%; padding: 24px 0 22px; margin-top: 25px; gap: 12px; font-size: 9px; }
  .hero-foot span:first-child { display: none; }
  .ribbon-track { padding-block: 13px 12px; }
  .ribbon-track span { font-size: 12px; }
  .section-space { padding-top: 92px; padding-bottom: 96px; }
  .section-heading { display: block; margin-bottom: 45px; }
  .section-heading .section-index { margin-bottom: 23px; }
  h2 { font-size: clamp(39px, 10vw, 58px); }
  .section-lead { margin-top: 16px; font-size: 13px; }
  .about-note { min-height: 310px; padding: 31px; }
  .note-quote { font-size: 40px; }
  .about-content { gap: 64px; }
  .about-opening { font-size: 23px; }
  .about-explain { margin-bottom: 24px; font-size: 14px; }
  .mist-list { display: block; }
  .mist-row { grid-template-columns: 44px 1fr 20px; gap: 12px; min-height: 85px; }
  .mist-letter { width: 38px; height: 38px; font-size: 23px; }
  .mist-row h3 { font-size: 18px; }
  .interests-heading { display: block; margin-bottom: 35px; }
  .interests-heading > p { margin-top: 20px; font-size: 13px; }
  .interest-grid { display: block; }
  .interest-panel, .linux-panel { min-height: 405px; margin-bottom: 13px; padding: 23px; }
  .interest-panel:last-child { margin-bottom: 0; }
  .terminal-art { width: min(88%, 340px); height: 190px; margin-block: 16px; }
  .browser-art { width: 215px; height: 176px; }
  .record-art { transform: rotate(-8deg) scale(.88); margin: 6px auto 14px; }
  .notes { display: block; min-height: auto; }
  .notes-left h2 { font-size: clamp(37px, 9vw, 56px); }
  .notes-right { padding-top: 75px; }
  .quote-mark { top: 12px; left: -8px; font-size: 95px; }
  .thought { font-size: clamp(27px, 7vw, 38px); min-height: 55px; }
  .notes-rule { margin-top: 43px; }
  .footer-inner { flex-wrap: wrap; gap: 9px 16px; padding-block: 26px; min-height: 0; }
  .footer-brand { flex-basis: 100%; }
  .footer-inner p { flex-basis: 100%; margin: 0; }
  .footer-inner > span { margin: 10px 0 0; }
  .back-top { margin: 10px 0 0 auto; }
}
@media (max-width: 380px) {
  .site-nav { gap: 11px; }
  .hero h1 { font-size: 63px; }
  .hero-actions { gap: 14px; }
  .portrait-tag { font-size: 9px; }
  .tag-arrow { font-size: 20px; }
  .portrait-mint { width: 43px; height: 43px; }
  .mist-row p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  /* 关闭动画的同时必须把初始的透明状态收回来，否则内容会一直不显示 */
  .js .hero-eyebrow,
  .js .hero h1,
  .js .hero-intro,
  .js .hero-actions,
  .js .hero-aside,
  .js .hero-visual,
  .js .visual-caption,
  .js .hero-foot,
  .js .word-ribbon,
  .js .portrait-halo,
  .js .portrait-backdrop,
  .js .portrait-photo,
  .js .portrait-loop,
  .js .portrait-mint,
  .js .portrait-pink,
  .js .portrait-star,
  .js .portrait-tag,
  .js .portrait-note,
  .js .reveal { opacity: 1 !important; animation: none !important; }
  .js .reveal { transform: none !important; }
  .js .about-note { transform: rotate(-2deg) !important; }
}
