/* Original visual adaptation: references and licensing notes in ../GitHub设计调研.md. */
:root {
  color-scheme: dark;
  --pink: #d7dfb7;
  --pink-2: #dce5bf;
  --pink-3: #273139;
  --lav: #9db6be;
  --ink: #f5f5ee;
  --ink-soft: #c7ced2;
  --muted: #a8b4bd;
  --bg: #111c27;
  --bg-2: #182631;
  --card: rgba(20, 33, 43, .86);
  --line: rgba(227, 236, 234, .14);
  --radius: 18px;
  --shadow: 0 20px 60px -30px #0009;
  --shadow-sm: 0 8px 30px -18px #000a;
}
body { background: var(--bg); }
::selection { color: #15212a; background: #d7dfb7; }
::-webkit-scrollbar-track { background: #111c27; }
::-webkit-scrollbar-thumb { background: #56656b; border-color: #111c27; }
:focus-visible { outline: 2px solid #e1e9bc; outline-offset: 5px; }
.container { width: min(1280px, calc(100% - 104px)); }
.aurora, .page-glow, .section-tint::before { display: none; }
#petals { opacity: .32; }
.scene-backdrop { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(100deg, #111c27f2, #111c27dc), url('../assets/img/wp1.jpg') center/cover; }
.nav { border-bottom: 1px solid #ffffff14; background: linear-gradient(#08121b6b, transparent); }
.nav.scrolled, body:not([data-page="home"]) .nav { background: #111c27e8; border-color: var(--line); box-shadow: none; backdrop-filter: blur(18px); }
.nav-inner { height: 92px; gap: 24px; }
.brand-mark { width: 28px; height: 28px; font-size: 26px; border-radius: 0; color: #dce5bf; background: none; box-shadow: none; }
.brand-text { color: #fff; font-family: var(--font-body); font-size: 17px; font-weight: 500; letter-spacing: .05em; }
.brand-text em { color: inherit; }
.nav-links { gap: 12px; }
.nav-links a { color: #e9eceaf0; font-size: 12px; padding: 10px 13px; border-radius: 3px; }
.nav-links a:hover, .nav-links a.is-active { background: #ffffff0d; color: #e1e9bc; box-shadow: none; }
.nav-links a.is-active::after { content: ''; position: absolute; width: 14px; height: 2px; background: #dce5bf; left: calc(50% - 7px); bottom: 1px; }
.lang-btn { background: none; color: #fff; border-color: #ffffff4d; border-radius: 50%; padding: 0; width: 36px; height: 36px; letter-spacing: 0; font-size: 10px; }
.lang-btn:hover { color: #e1e9bc; box-shadow: none; }
.menu-btn { background: #ffffff0d; border-color: #ffffff2b; }
.menu-btn span { background: #fff; }
.scene { height: 100svh; min-height: 700px; padding: 125px 0 155px; align-items: stretch; justify-content: center; background: #111c27; }
.hero-bg { background: #111c27 url('../assets/img/wp1.jpg') center/cover; }
.wallpaper { object-position: 64% center; transform: scale(1.025); filter: none; transition: opacity 1.6s ease, transform 16s linear; }
.wallpaper.on { opacity: 1; transform: scale(1.065); }
.hero-bg::after { background: linear-gradient(90deg, #07131fef 0%, #081724a3 30%, #07172526 62%, #0612201c 100%), linear-gradient(0deg, #07121ec9 0%, transparent 28%, transparent 70%, #08121c40); }
.scene-grain { position: absolute; inset: 0; z-index: 1; opacity: .035; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.scene-content { position: relative; z-index: 2; }
.scene-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.scene-profile .hero-avatar { display: block; width: 54px; height: 54px; margin: 0; }
.scene-profile .avatar-inner { padding: 3px; background: #ffffff18; border: 1px solid #ffffff57; animation: none; }
.scene-profile .avatar-flower { width: 24px; height: 34px; top: -19px; margin-left: -12px; }
.scene-kicker { display: block; font-size: 9px; letter-spacing: .24em; color: #d7dfb7; margin-bottom: 9px; }
.scene-intro { display: block; font-size: 12px; letter-spacing: .1em; color: #edf1ef; }
.hero .scene-title { font-family: 'LXGW WenKai', 'Noto Serif SC', 'Songti SC', serif; font-size: clamp(66px, 10.6vh, 98px); line-height: 1.16; font-weight: 400; letter-spacing: .05em; color: #fffef7; margin: 0 0 18px; text-shadow: 0 3px 35px #0003; }
.scene-title > span { display: block; width: max-content; max-width: 100%; }
.scene-star { display: inline-block; font-family: Georgia, serif; font-size: .4em; color: #dbe3b8; margin-left: .5em; vertical-align: 25%; }
html[lang="en"] .hero .scene-title { font-family: Georgia, serif; font-size: clamp(48px, 5.4vw, 82px); letter-spacing: -.045em; }
.scene-caption { margin: 0; color: #e9eeed; font-size: 14px; font-weight: 400; letter-spacing: .13em; }
.type-line { margin: 13px 0 0; min-height: 22px; color: #c3ced0; font-size: 11px; font-weight: 400; letter-spacing: .07em; }
.caret { background: #d7dfb7; width: 1px; }
.hero-cta { justify-content: flex-start; align-items: center; gap: 30px; margin-top: 24px; }
.btn { border-radius: 5px; font-size: 12px; padding: 15px 22px; font-weight: 500; }
.btn-primary { background: #dce4bf; color: #18262d; box-shadow: none; }
.btn-primary:hover { background: #edf3d8; box-shadow: 0 9px 30px #0002; transform: translateY(-2px); }
.btn-ghost { background: #ffffff09; border-color: #ffffff30; color: #edf0ed; box-shadow: none; }
.scene-text-link { text-decoration: none; font-size: 12px; letter-spacing: .05em; color: #e3e9e7; padding: 10px 0; border-bottom: 1px solid #ffffff42; }
.scene-text-link:hover { color: #d7dfb7; }
.scene-interests { display: flex; align-items: center; gap: 12px; color: #b8c6cc; font-size: 9px; letter-spacing: .15em; margin-top: 24px; }
.scene-interests i { width: 2px; height: 2px; background: #bac7c7; border-radius: 50%; }
.scene-interests a { color: #c3cfcf; margin-left: 17px; text-decoration: none; border-left: 1px solid #ffffff32; padding-left: 24px; }
.scene-side { position: absolute; right: 38px; top: 33%; display: flex; gap: 24px; align-items: center; z-index: 2; writing-mode: vertical-rl; color: #f0f3eecc; font-size: 9px; letter-spacing: .18em; }
.scene-side i { height: 74px; width: 1px; background: #ffffff4d; }
.scene-toolbar { position: absolute; bottom: 29px; left: 0; right: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 21px; border-top: 1px solid #ffffff32; }
.scene-selection { display: flex; align-items: center; gap: 24px; }
.scene-selected { display: grid; gap: 7px; }
.scene-counter { font-family: Georgia, serif; font-size: 28px; font-variant-numeric: tabular-nums; color: #fff; line-height: 1; }
.scene-counter small { font-family: var(--font-body); font-size: 10px; color: #bdc9ce; padding-left: 3px; }
.scene-credit { font-size: 8px; letter-spacing: .1em; color: #c6d0d0; min-width: 180px; }
.scene-thumbs { display: flex; gap: 7px; }
.scene-thumb { padding: 0; width: 58px; height: 40px; border: 1px solid #ffffff47; border-radius: 3px; background: #111c27; opacity: .55; transition: opacity .3s, transform .3s, border-color .3s; overflow: hidden; }
.scene-thumb img { width: 100%; height: 100%; object-fit: cover; }
.scene-thumb.is-active { border-color: #e7efc6; opacity: 1; box-shadow: 0 0 0 2px #dce4bf30; }
.scene-thumb:hover { opacity: 1; transform: translateY(-3px); }
.scene-actions { display: flex; align-items: center; gap: 18px; padding-bottom: 5px; }
.scene-control { border: 0; background: none; color: #e2e8e5; padding: 9px 0; font-size: 10px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.scene-control > span:first-child { font-size: 17px; min-width: 20px; }
.scene-control:hover { color: #e5efbb; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.scene-quiet .nav, .scene-quiet .scene-content, .scene-quiet .scene-side, .scene-quiet .mp, .scene-quiet .mp-restore, .scene-quiet .pet, .scene-quiet .pet-restore, .scene-quiet .footer, .scene-quiet #petals { visibility: hidden; }
.scene-quiet .hero-bg::after { background: linear-gradient(0deg, #06121c8c, transparent 20%, transparent 90%, #06121c22); }
.scene-quiet .scene-toolbar { border-color: #ffffff1c; }
.mp { width: 282px; padding: 14px 14px 12px; right: 35px; bottom: 119px; border-radius: 12px; background: #10202c9c; border-color: #ffffff2b; box-shadow: none; }
.mp-disc-wrap, .mp-disc { width: 64px; height: 64px; }
.mp-disc-wrap { flex-basis: 64px; margin-top: 11px; }
.mp-arm { height: 38px; width: 4px; right: -3px; }
.mp-title { font-size: 12px; }
.mp-kicker { font-size: 7px; color: #dce4bf; letter-spacing: .12em; }
.mp-artist { font-size: 9px; color: #ccd5d6; }
.mp-bar { margin-top: 9px; }
.mp-fill { background: #dbe4b9; }
.mp-play { background: #dbe4b9; color: #182b34; width: 29px; height: 29px; box-shadow: none; }
.mp-time { font-size: 8px; }
.mp-restore { bottom: 119px; right: 35px; background: #14232dbd; color: #dce4bf; }
.mp.blocked .mp-play { animation: none; }
.pet { width: 170px; height: 96px; left: auto; right: 30px; bottom: 285px; }
.pet-bubble { color: #23313b; }
.sec-head h1, .sec-head h2 { font-size: clamp(35px, 4.5vw, 57px); font-weight: 400; }
.eyebrow { color: #d7dfb7; }
.eyebrow::before { background: #d7dfb7; }
.section.page-top { padding-top: 157px; padding-bottom: 100px; }
.now-card, .product-card, .work-card, .contact-card, .res-row, .game-card, .game-main, .stat, .profile-row, .cqr-card { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.res-row:hover, .product-card:hover, .work-card:hover { border-color: #d8e1bd72; box-shadow: 0 14px 36px #0002; }
.res-act { background: #dce4bf12; color: #dce4bf; border-color: #dce4bf33; }
.product-foot, .game-info > div { border-color: var(--line); }
.profile-row dt, .link-arrow, .product-sub, .product-badge, .game-back, .contact-link, .cqr-label { color: #d7dfb7; }
.profile-row dd, .about-text p, .product-desc, .res-text p, .game-main p, .game-features, .game-info dd, .game-req, .game-sub, .contact-sub { color: #c7d0d2; }
.about-quote { color: #e0e6cb !important; background: #dce4bf0b; border-color: #dce4bf; }
.game-tags li, .chips li, .skills li, .filter-btn, .now-tag { color: #cbd6d8; background: #ffffff08; border-color: var(--line); }
.filter-btn.active, .filter-btn.is-active { background: #dce4bf; color: #13232e; }
.game-download { background: #1b2c37eb; border-color: #dce4bf45; box-shadow: none; border-radius: 18px; }
.game-download p, .game-dl-note { color: #cbd5d5; }
.game-dl-note, .game-source { color: #a7b9c0; }
.contact-link { background: #dce4bf0b; border-color: #dce4bf22; }
.cqr-card img { background: #fff; border-radius: 9px; }
.footer { background: #101b25; border-top: 1px solid var(--line); color: #acbbc0; }
.footer-credit { color: #8b9ea6; }
.footer a { color: #c9d5cd; }
.to-top { background: #dce4bf; color: #172a35; border-color: #dce4bf; box-shadow: none; }
.toast { background: #e2e9d4; color: #172832; box-shadow: 0 10px 35px #0004; }

@media (min-width: 1600px) {
  .scene { padding-block: 160px 165px; }
  .hero .scene-title { font-size: 108px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .nav-links { gap: 1px; }
  .nav-links a { padding-inline: 10px; }
  .scene-side { right: 22px; }
  .scene-credit { min-width: 152px; font-size: 7px; }
  .scene-selection { gap: 18px; }
  .scene-thumb { width: 47px; height: 34px; }
  .mp { right: 30px; }
}
@media (max-width: 860px) {
  .nav-inner { height: 78px; }
  .nav-links { background: #152531f7; border-color: #ffffff26; box-shadow: 0 15px 40px #0004; }
  .nav-links a { padding: 13px 16px; }
  .nav-links a.is-active::after { left: auto; right: 16px; bottom: calc(50% - 1px); }
  .scene { padding-top: 140px; }
  .scene-side { display: none; }
  .scene-selection { gap: 15px; }
  .scene-selected { gap: 7px; }
  .scene-credit { min-width: 0; max-width: 145px; font-size: 7px; }
  .scene-actions { gap: 14px; }
  .scene-control { font-size: 9px; }
  .scene-control > span:first-child { font-size: 15px; }
  .scene-thumb { width: 39px; height: 30px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 40px); }
  .brand-text { font-size: 14px; }
  .brand-mark { font-size: 23px; width: 25px; }
  .nav-inner { gap: 12px; }
  .scene { min-height: max(790px, 100svh); padding: 150px 0 275px; justify-content: flex-start; }
  .wallpaper { object-position: 62% center; }
  .hero-bg::after { background: linear-gradient(90deg, #081522d1, #07142250), linear-gradient(0deg, #081523e8, transparent 45%, #08152332); }
  .scene-profile { margin-bottom: 29px; gap: 13px; }
  .scene-profile .hero-avatar { width: 46px; height: 46px; }
  .scene-kicker { font-size: 7px; letter-spacing: .18em; }
  .scene-intro { font-size: 10px; }
  .hero .scene-title { font-size: 65px; margin: 0 0 23px; }
  html[lang="en"] .hero .scene-title { font-size: clamp(34px, 8.5vw, 57px); }
  .scene-caption { font-size: 12px; letter-spacing: .07em; }
  .type-line { font-size: 10px; margin-top: 11px; }
  .hero-cta { gap: 19px; margin-top: 25px; }
  .btn { padding: 13px 17px; font-size: 11px; }
  .scene-text-link { font-size: 10px; }
  .scene-interests { margin-top: 24px; font-size: 8px; }
  .scene-toolbar { bottom: 19px; align-items: center; padding-top: 15px; }
  .scene-selection { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scene-selected { display: flex; align-items: center; gap: 13px; }
  .scene-counter { font-size: 21px; }
  .scene-credit { max-width: 190px; font-size: 6px; letter-spacing: .02em; }
  .scene-thumbs { gap: 5px; }
  .scene-thumb { width: 39px; height: 28px; }
  .scene-actions { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 0; }
  .scene-control { font-size: 9px; padding-block: 8px; }
  .mp { left: auto; right: 20px; bottom: 127px; width: 253px; padding: 12px; gap: 12px; }
  .mp-restore { right: 20px; bottom: 127px; }
  .mp-disc-wrap, .mp-disc { width: 52px; height: 52px; }
  .mp-disc-wrap { flex-basis: 52px; margin-top: 14px; }
  .mp-body { padding-right: 8px; }
  .mp-title { font-size: 11px; }
  .mp-arm { height: 30px; }
  .mp-link { font-size: 8px; }
  .section.page-top { padding-top: 122px; padding-bottom: 100px; }
  .game-download { padding: 25px; }
  .game-download .btn { max-width: 100%; }
  body:not([data-page="home"]) .mp { bottom: 22px; }
  body:not([data-page="home"]) .mp-restore { bottom: 22px; }
}
@media (max-width: 370px) {
  .hero .scene-title { font-size: 57px; }
  .scene-thumb { width: 33px; height: 26px; }
  .scene-credit { max-width: 150px; }
  .scene-control { font-size: 8px; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .wallpaper.on { transform: none; }
  .scene-grain { display: none; }
}
