.home-page { --home-ink:#26292c; --home-muted:#70767a; --home-line:#e6e8e8; --home-paper:#fff; --home-soft:#f6f7f7; --home-accent:#b7484e; --home-cream:#f6f1e6; --home-blue:#edf3f5; --home-tape:#e6dec8b3; color:var(--home-ink); font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif; }
.home-page.dark-theme { --home-ink:#ebeded; --home-muted:#a3abad; --home-line:#454a4d; --home-paper:#292a2d; --home-soft:#32363a; --home-accent:#e58e94; --home-cream:#3d3930; --home-blue:#303e44; --home-tape:#75674699; color:var(--home-ink); }
.home-page *, .home-page *::before, .home-page *::after { box-sizing:border-box; }
.home-page a { color:var(--home-ink); }
.home-page a:hover { color:var(--home-accent); }
.home-page a:focus-visible,.home-page button:focus-visible { outline:2px solid var(--home-accent); outline-offset:5px; }
.home-page .main { padding-top:0; }
.home-shell { width:100%; max-width:1144px; margin:0 auto; padding:0 32px; }
.home-hero { position:relative; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); align-items:start; gap:70px; min-height:0; padding:28px 0 110px; }
.hero-identity { display:flex; align-items:center; gap:12px; width:fit-content; max-width:100%; margin-bottom:33px; }
.hero-greeting { flex-shrink:0; margin:0; white-space:nowrap; font:italic 19px/1.3 Georgia,serif; letter-spacing:-.5px; }
.hero-greeting > span:first-child { display:inline-block; padding:5px 11px; border:1px solid var(--home-line); border-radius:50% 45% 48% 35%; background:var(--home-cream); transform:rotate(-6deg); }
.hero-name-line { display:flex; align-items:center; gap:10px; }
.wave { display:inline-block; flex-shrink:0; font-size:30px; transform:rotate(-12deg); }
.hero-copy h1 { display:flex; align-items:baseline; flex-wrap:nowrap; white-space:nowrap; gap:0 9px; margin:0; font-size:clamp(48px,5.5vw,76px); line-height:1.12; font-weight:400; }
.name-first { font-size:.53em; font-weight:600; letter-spacing:-2.5px; }
.name-last { position:relative; display:inline-block; max-width:100%; font-family:Georgia,"Times New Roman",serif; font-style:italic; letter-spacing:-5px; overflow-wrap:anywhere; }
.name-underline { position:absolute; left:-2%; bottom:-7px; width:104%; height:16px; color:var(--home-accent); transform:rotate(-2deg); }
.name-spark { align-self:flex-start; margin-top:10px; color:var(--home-accent); font:35px/1 Georgia,serif; transform:rotate(12deg); }
.intro-scrapbook { max-width:490px; }
.intro-notice { display:inline-flex; align-items:center; gap:8px; max-width:100%; margin:0 0 16px; padding:5px 10px; border:1px dashed #cbbdaa; background:var(--home-cream); border-radius:5px; font-size:11px; line-height:1.6; transform:rotate(-1deg); color:var(--home-muted); }
.intro-notice > span { font-weight:700; color:var(--home-accent); flex-shrink:0; }
.welcome-bubble { position:relative; padding:19px 23px 18px; background:var(--home-paper); border:1px solid #bfc3bf; border-radius:3px 23px 23px 23px; box-shadow:4px 4px 0 var(--home-soft); }
.welcome-bubble:after { content:''; position:absolute; width:13px; height:13px; bottom:-7px; left:32px; background:var(--home-paper); border-right:1px solid #bfc3bf; border-bottom:1px solid #bfc3bf; transform:rotate(45deg); }
.bubble-star { position:absolute; right:15px; top:-18px; font-size:35px; line-height:1; color:var(--home-accent); transform:rotate(12deg); background:var(--home-paper); padding:0 4px; }
.welcome-title { margin:0; font-size:18px; font-weight:600; line-height:1.7; }
.welcome-english { margin:0 0 11px; color:var(--home-accent); font:italic 16px/1.5 Georgia,serif; }
.welcome-description { margin:0; font-size:12px; line-height:1.9; }
.welcome-detail { margin:3px 0 0; font-size:11px; line-height:1.7; color:var(--home-muted); }
.motto-note { position:relative; width:fit-content; max-width:calc(100% - 20px); margin:22px 0 0 17px; padding:12px 18px; background:var(--home-cream); transform:rotate(-1.5deg); border-radius:1px 2px 9px 2px; }
.motto-note p { margin:0; font-size:12px; line-height:1.7; }
.motto-note p[lang] { margin-top:2px; font:italic 11px/1.6 Georgia,serif; color:var(--home-muted); }
.note-tape { position:absolute; width:37px; height:13px; left:calc(50% - 18px); top:-7px; background:var(--home-tape); transform:rotate(8deg); }
.hero-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; max-width:490px; margin-top:29px; }
.home-icon { display:block; width:24px; height:24px; flex-shrink:0; }
.hero-links .social-ticket { position:relative; display:flex; align-items:center; gap:10px; min-height:66px; padding:13px 12px; border:1px solid var(--home-line); border-radius:12px; background:var(--home-paper); box-shadow:0 3px 0 var(--home-line); transition:transform .2s,box-shadow .2s; }
.hero-links .social-about { transform:rotate(-2deg); background:var(--home-cream); }
.hero-links .social-code { transform:rotate(1deg); color:var(--home-paper); background:var(--home-ink); border-color:var(--home-ink); }
.hero-links .social-mail { transform:rotate(-1deg); background:var(--home-blue); }
.social-icon { display:grid; place-items:center; flex-shrink:0; }
.social-icon .home-icon { width:22px; height:22px; }
.social-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.social-copy small { font-size:6px; line-height:1.6; letter-spacing:.65px; opacity:.7; }
.social-copy strong { font-size:12px; line-height:1.5; font-weight:600; }
.social-arrow { position:absolute; top:5px; right:7px; font-size:10px; opacity:.55; line-height:1; }
.hero-links .social-ticket:hover { transform:rotate(0) translateY(-4px); box-shadow:0 7px 0 var(--home-line); }
.hero-links .social-code:hover { color:var(--home-paper); }
.hero-personal { width:100%; max-width:340px; justify-self:center; padding-top:8px; }
.portrait-composition { position:relative; padding:0 18px 0 28px; }
.portrait-frame { margin:0; padding:9px 9px 28px; background:var(--home-paper); border:1px solid var(--home-line); transform:rotate(4deg); box-shadow:0 12px 40px #00000008; }
.portrait-frame img { display:block; width:100%; height:auto; aspect-ratio:1/1.08; object-fit:cover; object-position:center 35%; filter:saturate(.75); }
.portrait-orbit { position:absolute; top:20px; left:-10px; width:calc(100% + 10px); height:calc(100% - 10px); border:1px solid var(--home-line); border-radius:50%; transform:rotate(-20deg); }
.spider-sticker { position:absolute; right:-9px; top:-27px; width:64px; height:74px; transform:rotate(13deg); transition:transform .25s; }
.spider-sticker:hover { transform:rotate(-5deg) translateY(-3px); }
.portrait-caption { display:block; position:relative; margin-top:16px; text-align:right; font-size:11px; line-height:1.6; letter-spacing:.6px; color:var(--home-muted); }
.music-note { position:relative; margin:30px 0 0 19px; display:flex; align-items:center; gap:13px; transform:rotate(-3deg); }
.music-note > img:first-child { width:64px; height:64px; border-radius:3px; flex-shrink:0; object-fit:cover; box-shadow:0 3px 9px rgba(0,0,0,.12); }
.music-note > div { min-width:0; }
.music-label { display:block; font-size:8px; line-height:1.8; letter-spacing:1.3px; color:var(--home-muted); }
.music-title { display:block; font-size:16px; font-weight:600; line-height:1.6; }
.music-artist { display:block; font-size:11px; color:var(--home-muted); line-height:1.8; }
.music-note .guitar-doodle { position:absolute; right:2px; top:-32px; width:22px; height:31px; opacity:.8; transform:rotate(12deg); }
.music-toggle { display:grid; place-items:center; flex-shrink:0; width:42px; height:42px; margin-left:auto; padding:0; border:1px solid var(--home-line); border-radius:50%; background:var(--home-paper); color:var(--home-accent); cursor:pointer; box-shadow:2px 3px 0 var(--home-soft); transition:transform .2s; }
.music-toggle:hover:not(:disabled) { transform:rotate(3deg) scale(1.07); }
.music-toggle:disabled { opacity:.45; cursor:default; }
.music-toggle svg { width:21px; height:21px; }
.music-icon-pause, .music-toggle[aria-pressed="true"] .music-icon-play { display:none; }
.music-toggle[aria-pressed="true"] .music-icon-pause { display:block; }
.music-status { min-height:17px; margin:10px 0 0 19px; color:var(--home-muted); font-size:10px; line-height:1.7; }
.hero-chapters { position:absolute; bottom:28px; left:0; right:0; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.chapters-label { display:flex; align-items:center; gap:13px; margin-right:9px; color:var(--home-muted); font-size:12px; }
.chapters-label > span { font-size:25px; color:var(--home-accent); }
.hero-chapters > a { display:flex; align-items:center; gap:12px; min-height:44px; padding:8px 16px; border:1px dashed var(--home-line); border-radius:8px; background:var(--home-paper); font-size:12px; transition:background .2s,transform .2s; }
.hero-chapters > a > span:first-child { font:10px/1 monospace; color:var(--home-muted); }
.hero-chapters > a > span:last-child { color:var(--home-accent); font-size:16px; }
.hero-chapters > a:hover { background:var(--home-cream); transform:translateY(2px); }
.scroll-cue { position:fixed; bottom:22px; left:50%; z-index:30; display:flex; align-items:center; gap:12px; width:max-content; max-width:calc(100% - 32px); padding:10px 18px 10px 11px; border:1px solid var(--home-line); border-radius:40px; background:var(--home-paper); box-shadow:0 5px 25px #00000012; transform:translateX(-50%); font-size:12px; line-height:1.6; }
.scroll-cue[hidden] { display:none; }
.scroll-cue small { display:block; color:var(--home-muted); font-size:10px; letter-spacing:.5px; }
.scroll-cue-arrow { display:grid; place-items:center; width:33px; height:33px; flex-shrink:0; border-radius:50%; background:var(--home-cream); color:var(--home-accent); font-size:21px; }
.home-section { padding:64px 0 73px; border-top:1px solid var(--home-line); scroll-margin-top:30px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:42px; }
.section-title-group { display:flex; align-items:center; gap:22px; min-width:0; }
.section-index { display:block; font:9px/1.6 monospace; letter-spacing:2px; color:var(--home-muted); }
.section-heading h2 { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin:2px 0 0; font-weight:400; }
.section-title-en { position:relative; font:italic 48px/1.15 Georgia,"Times New Roman",serif; letter-spacing:-2px; }
.section-title-en:after { content:''; position:absolute; left:0; right:-7px; bottom:-7px; height:8px; border-top:1.5px solid var(--home-accent); border-radius:50%; transform:rotate(-2deg); opacity:.7; }
.section-title-zh { padding:5px 10px; font-size:12px; font-weight:500; letter-spacing:1px; line-height:1.4; background:var(--home-cream); transform:rotate(-5deg); }
.research-section .section-title-zh { background:var(--home-blue); transform:rotate(4deg); }
.section-doodle { display:grid; place-items:center; flex-shrink:0; width:51px; height:57px; color:var(--home-accent); border:1px solid var(--home-line); border-radius:9px 7px 14px 4px; transform:rotate(-9deg); background:var(--home-paper); box-shadow:3px 3px 0 var(--home-soft); }
.section-doodle .home-icon { width:28px; height:28px; }
.research-doodle { border-radius:50%; width:57px; color:#718895; transform:rotate(10deg); }
.section-link { display:flex; align-items:center; gap:14px; font-size:11px; padding:7px 0; white-space:nowrap; }
.section-link span { display:grid; place-items:center; width:33px; height:33px; border:1px solid var(--home-line); border-radius:50%; font-size:17px; transition:transform .2s,background .2s; }
.section-link:hover span { transform:rotate(45deg); background:var(--home-cream); }
.writing-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:36px; }
.writing-card { display:flex; flex-direction:column; min-width:0; background:var(--home-paper); }
.writing-cover { display:block; overflow:hidden; border-radius:5px; background:var(--home-soft); }
.writing-cover img { display:block; width:100%; height:auto; aspect-ratio:1.75; object-fit:cover; transition:transform .45s; }
.writing-cover:hover img { transform:scale(1.035); }
.writing-body { padding:22px 0 0; display:flex; flex-direction:column; flex:1; }
.writing-meta { display:flex; gap:10px; flex-wrap:wrap; font-size:10px; line-height:1.7; color:var(--home-muted); letter-spacing:.4px; }
.writing-body h3 { margin:10px 0 11px; font-size:21px; line-height:1.6; font-weight:600; }
.writing-body h3 a:hover { text-decoration:underline; text-underline-offset:5px; }
.writing-summary { margin:0 0 19px; font-size:13px; line-height:1.9; color:var(--home-muted); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.read-link { font-size:11px; margin-top:auto; align-self:flex-start; padding:5px 0; }
.read-link span { margin-left:15px; }
.section-aside { font:9px/1.6 monospace; letter-spacing:1px; color:var(--home-muted); }
.publication { padding:0 0 28px; margin-bottom:28px; border-bottom:1px solid var(--home-line); background:var(--home-paper); }
.publication:last-child { margin-bottom:0; }
.publication-with-cover { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr); align-items:start; gap:32px; }
.publication-cover { min-width:0; margin:0; }
.publication-image-link { display:block; padding:10px; border:1px solid var(--home-line); border-radius:5px; background:#fff; }
.publication-image-link img { display:block; width:100%; height:auto; }
.publication-image-link:hover { border-color:var(--home-accent); }
.publication-cover figcaption { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:9px; font-size:10px; line-height:1.8; color:var(--home-muted); }
.publication-cover figcaption a { text-decoration:underline; text-underline-offset:3px; }
.publication-body { min-width:0; }
.publication-meta { margin:0; font-size:12px; font-style:italic; line-height:1.8; color:var(--home-muted); overflow-wrap:anywhere; }
.publication h3 { margin:0 0 10px; font-size:21px; font-weight:600; line-height:1.55; overflow-wrap:anywhere; }
.publication-authors { margin:0 0 9px; font-size:13px; line-height:1.9; overflow-wrap:anywhere; }
.author-me { font-weight:700; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.publication-links { display:flex; gap:22px; flex-wrap:wrap; margin-top:17px; font-size:11px; }
.publication-links:empty { display:none; }
.publication-links a { border-bottom:1px solid var(--home-line); padding:2px 0; }
.home-empty { color:var(--home-muted); font-size:14px; }
.home-page .footer { max-width:1144px; width:100%; margin:0 auto; padding:0 32px 30px; height:auto; line-height:1.7; }
.footer-endnote { display:flex; align-items:center; gap:28px; padding:7px 0 15px; }
.footer-signature { display:flex; align-items:center; gap:9px; flex-shrink:0; font:italic 28px/1.5 Georgia,serif; transform:rotate(-4deg); }
.footer-signature > span { font-size:18px; color:var(--home-accent); }
.footer-rule { flex:1; border-top:1px dashed var(--home-line); }
.footer-backtop { display:flex; align-items:center; gap:10px; flex-shrink:0; min-height:44px; padding:8px 16px; border:1px solid var(--home-line); border-radius:8px; background:var(--home-cream); font-size:11px; transform:rotate(2deg); transition:transform .25s; }
.footer-backtop > span { font-size:20px; }
.footer-backtop:hover { transform:rotate(0) translateY(-2px); }
.home-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; padding-top:24px; font-size:10px; color:var(--home-muted); }
.footer-colophon { display:flex; align-items:center; gap:9px; font:italic 12px/1.5 Georgia,serif; }
.footer-colophon > span { color:var(--home-accent); font-style:normal; font-size:16px; }
.home-footer a { color:var(--home-muted); }
@media (min-width:769px) {
  .home-page .site-header .navbar { height:96px; }
}
@media (min-width:769px) and (max-width:1023px) {
  .home-hero { gap:35px; }
  .hero-copy h1 { gap:0 9px; }
  .hero-personal { max-width:290px; }
  .portrait-orbit { left:0; width:100%; transform:rotate(-8deg); }
  .hero-links { gap:8px; }
  .hero-links .social-ticket { flex-direction:column; align-items:flex-start; gap:7px; padding:10px; }
  .section-title-en { font-size:42px; }
  .section-title-group { gap:15px; }
  .section-heading h2 { gap:13px; }
}
@media (max-width:768px) {
  .home-page .main { padding-top:0; }
  .home-shell { padding:0 24px; }
  .home-hero { grid-template-columns:1fr; gap:44px; min-height:0; padding:32px 0 90px; }
  .hero-identity { gap:8px; }
  .hero-greeting { font-size:14px; }
  .hero-greeting > span:first-child { padding:5px 8px; }
  .hero-copy h1 { font-size:clamp(34px,11vw,70px); gap:0 6px; margin:0; }
  .hero-name-line { gap:7px; }
  .wave { font-size:22px; }
  .name-last { letter-spacing:-3px; }
  .name-first { letter-spacing:-1.5px; }
  .name-spark { font-size:26px; margin-top:8px; }
  .intro-scrapbook,.hero-links { max-width:none; }
  .welcome-bubble { padding:17px 19px; }
  .welcome-title { font-size:17px; }
  .intro-notice { font-size:10px; }
  .motto-note { margin-left:10px; }
  .hero-links { gap:10px; margin-top:25px; }
  .hero-personal { max-width:265px; padding-top:0; }
  .portrait-frame img { aspect-ratio:1.16; }
  .spider-sticker { width:53px; height:61px; right:-1px; top:-22px; }
  .music-note { margin-top:22px; }
  .hero-chapters { position:static; gap:9px; margin-top:0; }
  .chapters-label { width:100%; margin:0; }
  .hero-chapters > a { padding:8px 11px; gap:9px; font-size:11px; }
  .home-hero { padding-bottom:32px; gap:38px; }
  .scroll-cue { bottom:16px; }
  .home-section { padding:41px 0 47px; }
  .section-heading { gap:20px; margin-bottom:30px; flex-wrap:wrap; }
  .section-title-group { gap:13px; }
  .section-heading h2 { gap:10px; }
  .section-title-en { font-size:38px; letter-spacing:-1.5px; }
  .section-title-zh { font-size:11px; padding:4px 7px; }
  .section-index { font-size:8px; }
  .section-doodle { width:40px; height:45px; }
  .section-doodle .home-icon { width:24px; height:24px; }
  .section-link { font-size:10px; gap:9px; margin-left:auto; }
  .section-link span { width:28px; height:28px; }
  .writing-grid { grid-template-columns:1fr; gap:34px; }
  .writing-body { padding-top:17px; }
  .writing-body h3 { font-size:19px; }
  .writing-summary { font-size:12px; }
  .section-aside { display:none; }
  .publication-with-cover { grid-template-columns:1fr; gap:20px; }
  .publication h3 { font-size:19px; }
  .home-page .footer { padding:0 24px 24px; }
  .footer-endnote { gap:14px; }
  .footer-signature { font-size:24px; }
  .home-footer { font-size:9px; }
}
@media (max-width:480px) {
  .name-spark { display:none; }
  .hero-links .social-ticket { flex-direction:column; align-items:flex-start; gap:8px; min-height:77px; padding:12px; }
  .social-copy small { display:none; }
  .social-copy strong { font-size:12px; }
  .section-title-en { font-size:34px; }
  .section-heading h2 { gap:8px; }
  .section-title-group { gap:10px; }
  .section-title-zh { font-size:10px; }
  .section-doodle { width:33px; height:38px; }
  .section-doodle .home-icon { width:21px; height:21px; }
  .footer-signature { font-size:22px; gap:6px; }
  .footer-backtop { padding:7px 11px; font-size:10px; gap:7px; }
  .footer-colophon { order:3; width:100%; font-size:11px; }
}
@media (max-width:360px) { .name-spark { display:none; } }
@media (prefers-reduced-motion:reduce) { .home-page *, .home-page *::before, .home-page *::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@keyframes scroll-cue-nudge { 0%,65%,100% { transform:translateY(0); } 35% { transform:translateY(4px); } }
@media (prefers-reduced-motion:no-preference) { html:has(.home-page) { scroll-behavior:smooth; } .scroll-cue-arrow { animation:scroll-cue-nudge 1.8s ease-in-out 3; } }
