@font-face { font-family: 'Xinlei Hand CN'; src: url('assets/handwritten-cn.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Xinlei Hand EN'; src: url('assets/handwritten-en.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* A personal welcome with a frosted scene-switch capsule. */
.personality-hero .hero-layout { grid-template-columns: 1.05fr 1fr; min-height: 820px; padding-block: 140px 100px; gap: 24px; }
.personality-hero h1, html[lang=zh-CN] .personality-hero h1 { font-size: clamp(46px, 4.9vw, 70px); line-height: 1.18; letter-spacing: -.045em; margin: 0 0 30px; }
.personality-hero .hero-intro { max-width: 480px; font-size: 18px; line-height: 1.85; margin-bottom: 34px; }
html[lang=zh-CN] .personality-hero .hero-intro { max-width: 450px; line-height: 1.95; }
.personality-hero .pill { gap: 25px; }
.personality-hero .avatar-panel { height: 450px; }
.personality-hero .avatar-stage { bottom: 80px; width: clamp(200px,18vw,250px); max-width: 250px; }
/* Remove the synthetic oval shadow: it did not follow the feet, chair or desk. */
.personality-hero .avatar-stage::before { content: none; }
.avatar-greeting { --greeting-fill: #29436645; --greeting-edge: #e7f2ff70; --greeting-name: #a9c8ff; --greeting-sheen: linear-gradient(145deg,#f4f8ff1c,#b9d3fc08); --greeting-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 74' preserveAspectRatio='none'%3E%3Cpath d='M23 1H217Q239 1 239 23V39Q239 61 217 61H52L33 72Q31 73 32 70L35 61H23Q1 61 1 39V23Q1 1 23 1Z' fill='white'/%3E%3C/svg%3E"); --greeting-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 74' preserveAspectRatio='none'%3E%3Cpath d='M23 1H217Q239 1 239 23V39Q239 61 217 61H52L33 72Q31 73 32 70L35 61H23Q1 61 1 39V23Q1 1 23 1Z' fill='none' stroke='white' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); position: absolute; z-index: 3; isolation: isolate; left: 54%; bottom: calc(100% - 24px); width: max-content; max-width: 240px; margin: 0; padding: 16px 20px; color: #f5f8ff; font-size: 14px; line-height: 1.6; font-weight: 550; text-align: left; }
/* One continuous glass surface and outline, including the tail: no overlapping fills or seam. */
.avatar-greeting::before, .avatar-greeting::after { content: ''; position: absolute; z-index: -1; inset: 0 0 -11px; pointer-events: none; mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; }
.avatar-greeting::before { background: var(--greeting-sheen),var(--greeting-fill); mask-image: var(--greeting-shape); -webkit-mask-image: var(--greeting-shape); backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15); }
.avatar-greeting::after { background: var(--greeting-edge); mask-image: var(--greeting-outline); -webkit-mask-image: var(--greeting-outline); }
.avatar-greeting .greeting-name { color: var(--greeting-name); font-weight: 600; }
.other-side-link { --side-text: #fff; position: absolute; z-index: 4; left: 50%; bottom: 5px; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: max-content; max-width: 100%; min-height: 48px; padding: 11px 17px; margin: 0; border: 1px solid #e7f2ff6b; border-radius: 999px; background: linear-gradient(145deg,#f4f8ff22,#b9d3fc0b); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: inset 0 1px #ffffff30,0 5px 18px #0000000d; color: #eff5ff; font-family: -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; font-size: 16px; line-height: 1.45; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .35s,transform .35s,border-color .35s; -webkit-tap-highlight-color: transparent; }
.other-side-label { display: inline-block; white-space: nowrap; letter-spacing: .025em; color: transparent; -webkit-text-fill-color: transparent; background-image: linear-gradient(90deg,var(--side-text) calc(var(--side-light-x,-24px) - .6em),#8dbfff calc(var(--side-light-x,-24px) - .27em),#4799ff var(--side-light-x,-24px),#8dbfff calc(var(--side-light-x,-24px) + .27em),var(--side-text) calc(var(--side-light-x,-24px) + .6em)); background-clip: text; -webkit-background-clip: text; }
.other-side-symbol { flex: 0 0 20px; width: 20px; height: 20px; }
.other-side-arrow { flex: 0 0 16px; width: 16px; height: 16px; transition: transform .35s; }
.other-side-link:hover { transform: translateX(-50%) translateY(-2px); border-color: #f0f7ffa3; background-color: #ffffff0d; }
.other-side-link:hover .other-side-arrow { transform: translateX(2px); }
.other-side-link:active { transform: translateX(-50%) scale(.985); }
.other-side-link:focus-visible { outline: 2px solid #8dbfff; outline-offset: 5px; }
body[data-home-mode=life] .other-side-link { --side-text: #243653; color: #243653; border-color: #54749a38; background: transparent; box-shadow: inset 0 1px #ffffff60,0 4px 14px #24456608; }
body[data-home-mode=life] .avatar-greeting { --greeting-fill: #edf5ff40; --greeting-edge: #ffffffa6; --greeting-name: #376ad0; --greeting-sheen: linear-gradient(145deg,#ffffff40,#dbeaff14); color: #243653; }
.about-notes { grid-template-columns: 1fr; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .avatar-greeting { --greeting-fill:#243b5ce8; } body[data-home-mode=life] .avatar-greeting { --greeting-fill:#edf5ffed; } }
@media (min-width:1600px) { .personality-hero .hero-layout { min-height: 860px; } }
@media (max-width:1100px) and (min-width:701px) {
  .personality-hero .hero-layout { min-height: 780px; grid-template-columns: 1.1fr 1fr; }
  .personality-hero h1, html[lang=zh-CN] .personality-hero h1 { font-size: clamp(42px,5vw,55px); }
  .personality-hero .hero-intro { font-size: 16px; }
  .personality-hero .avatar-panel { height: 440px; }
  .avatar-greeting { left: 20%; max-width: 210px; }
  .other-side-link { font-size: 16px; gap: 12px; padding: 11px 17px; }
}
@media (max-width:700px) {
  .personality-hero .hero-layout { display: flex; min-height: 0; padding-block: 112px 42px; gap: 27px; }
  .personality-hero .hero-content { align-items: flex-start; text-align: left; }
  .personality-hero h1, html[lang=zh-CN] .personality-hero h1 { font-size: clamp(40px,10.6vw,62px); line-height: 1.2; margin-bottom: 24px; }
  .personality-hero .hero-intro, html[lang=zh-CN] .personality-hero .hero-intro { max-width: 100%; font-size: 16px; line-height: 1.9; margin-bottom: 25px; }
  .personality-hero .pill { font-size: 13px; padding: 14px 20px; gap: 19px; }
  .personality-hero .avatar-panel { height: 345px; }
  .personality-hero .avatar-stage { width: 184px; bottom: 68px; }
  .avatar-greeting { left: 50%; bottom: calc(100% - 10px); transform: translateX(-50%); padding: 12px 17px; max-width: 260px; font-size: 14px; --greeting-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 74' preserveAspectRatio='none'%3E%3Cpath d='M23 1H217Q239 1 239 23V39Q239 61 217 61H158L139 72Q137 73 138 70L141 61H23Q1 61 1 39V23Q1 1 23 1Z' fill='white'/%3E%3C/svg%3E"); --greeting-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 74' preserveAspectRatio='none'%3E%3Cpath d='M23 1H217Q239 1 239 23V39Q239 61 217 61H158L139 72Q137 73 138 70L141 61H23Q1 61 1 39V23Q1 1 23 1Z' fill='none' stroke='white' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
  .other-side-link { font-size: 16px; gap: 12px; bottom: 0; min-height: 48px; padding: 11px 17px; }
  .scene-environment { height: 415px; }
}
@media (max-width:380px) { html[lang=en] .other-side-link { font-size: 15px; gap: 10px; padding-inline: 16px; } }
@media (prefers-reduced-motion:reduce) { .other-side-link, .other-side-link:hover { transform: translateX(-50%); transition: none; } .other-side-arrow { transition: none; } }
@media print { .other-side-link, .avatar-greeting { display:none; } }
