/* Fusion Pixel SC：简体中文专用像素字体，全站统一。 */
    @font-face {
      font-family: 'FusionPixelSC';
      font-style: normal;
      font-weight: 400;
      font-display: swap;
      src:
        url('https://cdn.jsdelivr.net/gh/ADAning/dsh-pixel-skin@main/assets/fonts/fusion-pixel-12px-proportional-sc.woff2') format('woff2'),
        url('https://raw.githubusercontent.com/ADAning/dsh-pixel-skin/main/assets/fonts/fusion-pixel-12px-proportional-sc.woff2') format('woff2');
    }
    :root {
      --bg: #050505;
      --panel: #090909;
      --text: #f4f4f4;
      --muted: #818181;
      --dim: #464646;
      --line: #242424;
      --pixel: 4px;
      --content: 1080px;
    }

    * {
      box-sizing: border-box;
      font-family: 'FusionPixelSC', monospace !important;
    }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      background-color: var(--bg);
      background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
      background-size: 28px 28px;
      font-size: 18px;
      line-height: 1.65;
      overflow-x: hidden;
    }

    ::selection { background: #fff; color: #000; }
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #050505; }
    ::-webkit-scrollbar-thumb { background: #4a4a4a; }

    button, a { color: inherit; }
    a { text-decoration: none; }
    button { border: 0; }

    /* ---------- TOP NAV ---------- */
    .top-shell {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 80;
      width: min(calc(var(--content) + 70px), calc(100vw - 28px));
      padding: 0;
      background: transparent;
      pointer-events: none;
    }

    .topbar {
      width: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      pointer-events: auto;
    }

    .tab-slot {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      min-width: 520px;
      background: #000;
      box-shadow:
        -3px 0 0 #fff,
        3px 0 0 #fff,
        0 -3px 0 #fff,
        0 3px 0 #fff,
        0 18px 28px rgba(0,0,0,.8);
    }

    .tab-button {
      position: relative;
      appearance: none;
      background: #000;
      color: #aaa;
      padding: 12px 20px;
      cursor: pointer;
      font-size: 15px;
      letter-spacing: .08em;
      transition: background .08s steps(1), color .08s steps(1);
    }

    .tab-button + .tab-button { border-left: 1px solid #3b3b3b; }
    .tab-button:hover { color: #fff; }
    .tab-button.active { background: #fff; color: #000; }
    .tab-button.active::before { content: '> '; }

    .system-status {
      position: absolute;
      top: 32px;
      right: max(24px, calc((100vw - var(--content)) / 2));
      z-index: 20;
      color: #555;
      font-size: 12px;
      letter-spacing: .1em;
      white-space: nowrap;
      pointer-events: none;
    }

    /* ---------- GLOBAL ---------- */
    main {
      width: min(var(--content), calc(100vw - 48px));
      margin: 0 auto;
      padding: 144px 0 120px;
    }

    .pixel-box {
      background: #000;
      box-shadow:
        -4px 0 0 #fff,
        4px 0 0 #fff,
        0 -4px 0 #fff,
        0 4px 0 #fff;
    }

    .section-page { display: none; animation: bootIn .35s steps(7,end); }
    .section-page.active { display: block; }

    @keyframes bootIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .eyebrow {
      color: #6b6b6b;
      font-size: 13px;
      letter-spacing: .16em;
      margin-bottom: 14px;
    }

    .hero-name {
      margin: 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      font-family: 'Press Start 2P', monospace !important;
      font-size: clamp(58px, 7.2vw, 98px);
      line-height: 1.02;
      letter-spacing: -0.035em;
      text-transform: uppercase;
      color: #fff;
      font-weight: 400;
    }

    .hero-name .name-line {
      display: block;
      white-space: nowrap;
      font-family: 'Press Start 2P', monospace !important;
    }

    .hero-cn-name {
      display: block;
      margin-top: 20px;
      color: #8a8a8a;
      font-size: clamp(20px, 2.25vw, 30px);
      letter-spacing: .08em;
      line-height: 1.2;
    }

    .hero-role-row {
      margin-top: 10px;
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
    }

    .cursor::after {
      content: '█';
      display: inline-block;
      margin-left: 10px;
      animation: blink 1s step-end infinite;
    }

    @keyframes blink { 50% { opacity: 0; } }

    .identity {
      display: grid;
      grid-template-columns: 1.3fr .7fr;
      gap: 48px;
      align-items: end;
      padding-bottom: 34px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 88px;
    }

    .role {
      margin: 0;
      font-size: clamp(17px, 1.85vw, 24px);
      letter-spacing: .08em;
      font-weight: 400;
      text-shadow: none;
    }

    .terminal-info {
      font-size: 14px;
      color: #888;
      line-height: 1.85;
    }

    .terminal-info a:hover { color: #fff; }
    .terminal-info p { margin: 0; }

    .section-head {
      display: flex;
      justify-content: space-between;
      gap: 32px;
      align-items: end;
      margin-bottom: 28px;
    }

    .section-head h2 {
      margin: 0;
      font-size: clamp(28px, 4vw, 48px);
      letter-spacing: .03em;
      font-weight: 400;
      text-shadow: none;
    }

    .section-counter {
      color: #5f5f5f;
      font-size: 13px;
      letter-spacing: .12em;
    }

    /* ---------- CRT MEDIA ---------- */
    .project-stream { display: grid; gap: 112px; }

    .project-meta-top {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      margin: 0 8px 16px;
    }

    .project-title {
      margin: 0;
      font-size: clamp(25px, 3.8vw, 46px);
      line-height: 1.15;
      overflow-wrap: anywhere;
      font-weight: 400;
      text-shadow: none;
    }

    .project-code { color: #5c5c5c; font-size: 13px; }

    .retro-tv-container {
      position: relative;
      border-radius: 28px;
      padding: 9px;
      background: #101010;
      box-shadow:
        0 24px 65px rgba(0,0,0,.95),
        inset 0 0 22px rgba(0,0,0,.85);
      transition: transform .28s steps(5,end), box-shadow .28s steps(5,end);
    }

    .retro-tv-container:hover {
      transform: translateY(-3px) scale(1.006);
      box-shadow: 0 30px 75px #000, 0 0 35px rgba(255,255,255,.07);
    }

    .retro-tv-screen {
      position: relative;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      border-radius: 23px;
      border: 2px solid rgba(255,255,255,.08);
      background: #020202;
    }

    .retro-tv-screen::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 5;
      pointer-events: none;
      background:
        linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,.28) 50%),
        linear-gradient(90deg, rgba(255,0,0,.05), rgba(0,255,0,.018), rgba(0,0,255,.05));
      background-size: 100% 3px, 3px 100%;
    }

    .retro-tv-screen::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 6;
      pointer-events: none;
      background: radial-gradient(circle at 50% 42%, transparent 48%, rgba(0,0,0,.48) 84%, rgba(0,0,0,.88) 100%);
      box-shadow: inset 0 0 38px rgba(0,0,0,.85);
    }

    .media-placeholder,
    .photo-placeholder,
    .render-placeholder {
      position: absolute;
      inset: 0;
      overflow: hidden;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(1) contrast(.92) brightness(.68);
      transition: filter .35s steps(5,end), transform .35s steps(5,end);
    }

    .retro-tv-container:hover .media-placeholder,
    .photo-card:hover .photo-placeholder,
    .render-card:hover .render-placeholder {
      filter: grayscale(0) contrast(1.05) brightness(.9);
      transform: scale(1.015);
    }

    .film-link-screen {
      position: absolute;
      inset: 0;
      display: block;
      overflow: hidden;
      background: #000;
    }

    .film-link-screen .media-placeholder {
      filter: grayscale(1) contrast(.95) brightness(.68);
      transition: filter .35s steps(5,end), transform .35s steps(5,end);
    }

    .film-link-screen:hover .media-placeholder {
      filter: grayscale(0) contrast(1.05) brightness(.88);
      transform: scale(1.018);
    }

    .film-play-button {
      position: absolute;
      z-index: 8;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 76px;
      height: 76px;
      display: grid;
      place-items: center;
      background: rgba(0,0,0,.78);
      box-shadow: -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff;
      transition: background .1s steps(1), transform .15s ease;
    }

    .pixel-triangle {
      position: relative;
      display: block;
      width: 8px;
      height: 8px;
      background: #fff;
      box-shadow:
        0 -8px 0 #fff,
        0 8px 0 #fff,
        0 -16px 0 #fff,
        0 16px 0 #fff,
        0 -24px 0 #fff,
        0 24px 0 #fff,
        8px 0 0 #fff,
        8px -8px 0 #fff,
        8px 8px 0 #fff,
        8px -16px 0 #fff,
        8px 16px 0 #fff,
        16px 0 0 #fff,
        16px -8px 0 #fff,
        16px 8px 0 #fff,
        24px 0 0 #fff;
      transform: translateX(-12px);
    }

    .film-link-screen:hover .film-play-button {
      background: #fff;
      transform: translate(-50%, -50%) scale(1.03);
    }

    .film-link-screen:hover .pixel-triangle {
      background: #000;
      box-shadow:
        0 -8px 0 #000,
        0 8px 0 #000,
        0 -16px 0 #000,
        0 16px 0 #000,
        0 -24px 0 #000,
        0 24px 0 #000,
        8px 0 0 #000,
        8px -8px 0 #000,
        8px 8px 0 #000,
        8px -16px 0 #000,
        8px 16px 0 #000,
        16px 0 0 #000,
        16px -8px 0 #000,
        16px 8px 0 #000,
        24px 0 0 #000;
    }

    .external-film-link {
      position: absolute;
      z-index: 9;
      right: 18px;
      bottom: 16px;
      padding: 7px 10px;
      background: rgba(0,0,0,.82);
      color: #d8d8d8;
      font-size: 11px;
      letter-spacing: .08em;
      box-shadow: -2px 0 0 #777, 2px 0 0 #777, 0 -2px 0 #777, 0 2px 0 #777;
    }

    .external-film-link:hover { background:#fff; color:#000; }

    .media-placeholder.scene-a {
      background:
        linear-gradient(115deg, transparent 0 56%, rgba(255,255,255,.12) 56% 57%, transparent 57%),
        radial-gradient(circle at 70% 34%, rgba(255,255,255,.7) 0 1.2%, transparent 1.4%),
        linear-gradient(180deg, #1e2631 0 54%, #080a0d 54% 100%);
    }

    .media-placeholder.scene-a::before {
      content: '';
      position: absolute;
      left: 7%; right: 7%; bottom: 18%; height: 2px;
      background: rgba(255,255,255,.45);
      box-shadow: 0 12px 0 rgba(255,255,255,.13), 0 -46px 0 rgba(255,255,255,.09);
    }

    .media-placeholder.scene-b {
      background:
        radial-gradient(circle at 28% 42%, rgba(232,224,210,.6) 0 7%, transparent 7.5%),
        linear-gradient(118deg, transparent 44%, rgba(255,255,255,.18) 44.5% 45%, transparent 45.5%),
        linear-gradient(150deg, #2e241f 0 34%, #100d0b 34% 100%);
    }

    .media-placeholder.scene-c {
      background:
        linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.12) 18% 19%, transparent 19% 80%, rgba(255,255,255,.12) 80% 81%, transparent 81%),
        linear-gradient(180deg, #263039 0 62%, #090b0d 62% 100%);
    }

    .placeholder-label {
      position: absolute;
      z-index: 8;
      left: 22px;
      bottom: 18px;
      padding: 6px 9px;
      background: rgba(0,0,0,.7);
      color: rgba(255,255,255,.72);
      font-size: 12px;
      letter-spacing: .1em;
    }

    .project-bottom {
      margin: 24px 8px 0;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 24px;
    }

    .project-desc {
      color: #878787;
      max-width: 680px;
      margin: 0;
      font-size: 16px;
    }

    .tag {
      display: inline-block;
      white-space: nowrap;
      padding: 5px 9px;
      color: #bdbdbd;
      background: #070707;
      box-shadow: -2px 0 0 #777, 2px 0 0 #777, 0 -2px 0 #777, 0 2px 0 #777;
      font-size: 12px;
      letter-spacing: .08em;
    }

    /* ---------- PHOTOGRAPHY ---------- */
    .photo-masonry {
      columns: 2;
      column-gap: 22px;
    }

    .photo-card {
      position: relative;
      display: block;
      width: 100%;
      margin: 0 0 22px;
      break-inside: avoid;
      overflow: hidden;
      background: #090909;
      border: 0;
      cursor: zoom-in;
    }

    .photo-card.hero {
      column-span: all;
      margin-bottom: 28px;
    }

    .photo-card img {
      display: block;
      width: 100%;
      height: auto;
      filter: saturate(.96) contrast(1.01) brightness(.96);
      transition: transform .38s steps(7,end), filter .38s steps(7,end);
    }

    .photo-card::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 2;
      background: repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 3px);
      opacity: .55;
    }

    .photo-card:hover img {
      transform: scale(1.012);
      filter: saturate(1.03) contrast(1.025) brightness(1);
    }

    /* ---------- 3D ---------- */
    .render-grid {
      display: grid;
      gap: 118px;
    }

    .three-project {
      padding-top: 2px;
    }

    .three-project-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
      gap: 54px;
      align-items: end;
      margin-bottom: 28px;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--line);
    }

    .three-project-title-wrap .eyebrow {
      margin-bottom: 12px;
    }

    .three-project h3 {
      margin: 0;
      font-size: clamp(27px, 4vw, 46px);
      line-height: 1.18;
      font-weight: 400;
      letter-spacing: .025em;
    }

    .three-project-copy {
      margin: 0;
      color: #8b8b8b;
      font-size: 14px;
      line-height: 1.85;
    }

    .three-specs {
      margin-top: 15px;
      color: #555;
      font-size: 11px;
      line-height: 1.9;
      letter-spacing: .05em;
    }

    .three-gallery {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 18px;
    }

    .three-shot {
      position: relative;
      display: block;
      margin: 0;
      overflow: hidden;
      background: #0a0a0a;
      border: 1px solid #1f1f1f;
      cursor: zoom-in;
    }

    .three-shot img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .35s steps(6,end), filter .35s steps(6,end);
    }

    .three-shot::after {
      content: '';
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px);
      opacity: .45;
    }

    .three-shot:hover img {
      transform: scale(1.012);
      filter: brightness(1.03);
    }

    .three-shot.hero {
      grid-column: 1 / -1;
      aspect-ratio: 16 / 7.8;
    }

    .three-shot.third {
      grid-column: span 4;
      aspect-ratio: 1.5 / 1;
    }

    .three-shot.ue-process {
      grid-column: span 5;
      aspect-ratio: 1.72 / 1;
    }

    .three-shot.ue-final {
      grid-column: span 7;
      aspect-ratio: 1.72 / 1;
    }

    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 250;
      display: grid;
      place-items: center;
      padding: 32px;
      background: rgba(0,0,0,.96);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .2s ease, visibility .2s ease;
      cursor: zoom-out;
    }

    .lightbox.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .lightbox img {
      max-width: 94vw;
      max-height: 90vh;
      width: auto;
      height: auto;
      object-fit: contain;
      box-shadow: 0 28px 90px rgba(0,0,0,.85);
      cursor: default;
    }

    .lightbox-close {
      position: fixed;
      top: 22px;
      right: 24px;
      z-index: 251;
      width: 44px;
      height: 44px;
      background: #000;
      color: #fff;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      box-shadow: -2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff;
    }

    .lightbox-close:hover {
      background: #fff;
      color: #000;
    }

    .lightbox-nav {
      position: fixed;
      top: 50%;
      z-index: 251;
      width: 50px;
      height: 58px;
      display: grid;
      place-items: center;
      transform: translateY(-50%);
      background: rgba(0,0,0,.72);
      color: #fff;
      cursor: pointer;
      font-size: 28px;
      line-height: 1;
      box-shadow: -2px 0 0 #fff, 2px 0 0 #fff, 0 -2px 0 #fff, 0 2px 0 #fff;
      transition: background .08s steps(1), color .08s steps(1), transform .12s ease;
    }

    .lightbox-nav:hover {
      background: #fff;
      color: #000;
      transform: translateY(-50%) scale(1.04);
    }

    .lightbox-prev { left: 24px; }
    .lightbox-next { right: 24px; }

    .lightbox-counter {
      position: fixed;
      left: 50%;
      bottom: 20px;
      z-index: 251;
      transform: translateX(-50%);
      color: #777;
      font-size: 11px;
      letter-spacing: .14em;
      pointer-events: none;
    }

    /* ---------- FOOTER + BACK TO TOP ---------- */
    footer {
      margin-top: 118px;
      padding-top: 44px;
      border-top: 1px solid var(--line);
      text-align: center;
    }

    .footer-prompt {
      color: #fff;
      font-size: clamp(13px, 1.45vw, 17px);
      letter-spacing: .12em;
      font-weight: 900;
      text-shadow: 1px 0 0 currentColor, 0 1px 0 currentColor;
      animation: gameBlink 1s steps(1,end) infinite;
    }
    .footer-mail {
      display: inline-block;
      margin: 18px 0 26px;
      font-size: clamp(22px, 3vw, 38px);
      border-bottom: 2px dashed #555;
      padding-bottom: 5px;
    }
    .footer-mail:hover { border-bottom-style: solid; border-color: #fff; }

    .bilibili-link {
      width: 68px;
      height: 68px;
      margin: 0 auto 26px;
      display: grid;
      place-items: center;
      transition: transform .16s ease, filter .16s ease;
    }

    .bilibili-link img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .bilibili-link:hover {
      transform: translateY(-3px) scale(1.06);
      filter: brightness(1.12);
    }

    .footer-small { color: #3c3c3c; font-size: 11px; letter-spacing: .1em; }

    .back-top {
      position: fixed;
      left: 22px;
      bottom: 24px;
      z-index: 90;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      background: #000;
      color: #fff;
      cursor: pointer;
      box-shadow: -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff;
      font-size: 27px;
      line-height: 1;
      opacity: 0;
      transform: translateY(12px);
      pointer-events: none;
      transition: opacity .35s ease, transform .35s ease, background .1s steps(1), color .1s steps(1);
    }

    .back-top.visible {
      opacity: .68;
      transform: translateY(0);
      pointer-events: auto;
    }

    .back-top:hover { opacity: 1; background: #fff; color: #000; }
    .back-top .arrow { transform: translateY(-1px); }

    @keyframes gameBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .18; } }

    @media (max-width: 820px) {
      body { font-size: 16px; }
      .top-shell { top: 12px; width: calc(100vw - 22px); }
      .topbar { width: 100%; padding: 0; }
      .system-status { top: 76px; right: 15px; font-size: 10px; }
      .tab-slot { min-width: 0; width: 100%; }
      .tab-button { padding: 10px 5px; font-size: 13px; letter-spacing: .03em; }
      main { width: min(100%, calc(100vw - 32px)); padding-top: 122px; }
      .identity { grid-template-columns: 1fr; gap: 26px; margin-bottom: 64px; }
      .hero-name { font-size: clamp(52px, 16vw, 82px); letter-spacing: -0.035em; }
      .hero-cn-name { margin-top: 16px; font-size: clamp(19px, 6vw, 25px); }
      .section-head { align-items: start; flex-direction: column; gap: 8px; }
      .project-stream { gap: 78px; }
      .project-bottom { flex-direction: column; }
      .photo-masonry { columns: 1; }
      .photo-series-list { gap: 76px; }
      .photo-series-head { align-items: start; flex-direction: column; gap: 8px; }
      .photo-series:nth-child(even) .photo-series-head { text-align: left; }
      .photo-card.hero { column-span: none; }
      .render-card { grid-template-columns: 1fr; }
      .render-stage { border-right: 0; border-bottom: 1px solid #202020; min-height: 330px; }
      .back-top { left: 16px; bottom: 18px; width: 44px; height: 44px; }
      .three-project-head { grid-template-columns: 1fr; gap: 18px; }
      .three-gallery { grid-template-columns: 1fr; gap: 14px; }
      .three-shot.hero, .three-shot.third, .three-shot.ue-process, .three-shot.ue-final { grid-column: 1; aspect-ratio: auto; }
      .three-shot img { height: auto; }
      .lightbox { padding: 18px; }
      .lightbox-nav { width: 40px; height: 48px; font-size: 22px; }
      .lightbox-prev { left: 12px; }
      .lightbox-next { right: 12px; }
      .lightbox img { max-width: 88vw; max-height: 86vh; }
    }
