﻿:root {
      --gold: #ffffff;
      --gold-bright: #ffffff;
      --red: #2b2b2b;
      --ink: #080808;
      --paper: #eeeeee;
      --muted: #a8a8a8;
      --panel: rgba(10, 10, 10, .92);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      background: #080808;
      color: var(--paper);
      font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
    }

    .page {
      position: relative;
      min-height: 100vh;
      overflow: hidden;
      isolation: isolate;
      background: #080808;
    }

    .bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: grayscale(1) contrast(1.08) brightness(.78);
      opacity: .52;
      z-index: -4;
    }

    .wash {
      position: absolute;
      inset: 0;
      z-index: -3;
      background:
        radial-gradient(circle at 74% 24%, rgba(255, 255, 255, .12), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, .98) 0%, rgba(18, 18, 18, .9) 48%, rgba(0, 0, 0, .62) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, .92), transparent 50%);
    }

    .wrap {
      position: relative;
      z-index: 1;
      width: min(1340px, calc(100vw - 56px));
      min-height: 100vh;
      margin: 0 auto;
      padding: 28px 0;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 14px;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 20px;
      text-shadow: none;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      border: 1px solid rgba(255, 255, 255, .56);
      background: rgba(18, 18, 18, .76);
      color: var(--gold-bright);
      font-size: 15px;
      font-weight: 900;
      letter-spacing: .06em;
    }

    .badge::before {
      content: "";
      width: 8px;
      height: 8px;
      transform: rotate(45deg);
      background: var(--gold);
      box-shadow: 0 0 18px rgba(255,255,255,.45);
    }

    h1 {
      margin: 10px 0 6px;
      color: #ffffff;
      font-family: "STKaiti", "KaiTi", serif;
      font-size: clamp(48px, 4.8vw, 76px);
      line-height: .95;
      letter-spacing: 0;
    }

    .intro {
      max-width: 880px;
      margin: 0;
      color: #e8e8e8;
      font-size: 17px;
      line-height: 1.5;
      font-weight: 820;
    }

    .actions {
      display: flex;
      gap: 14px;
      align-items: center;
      flex-shrink: 0;
    }

    .btn {
      min-width: 142px;
      height: 48px;
      border: 0;
      border-radius: 6px;
      color: #070707;
      font-size: 20px;
      font-weight: 1000;
      letter-spacing: .05em;
      background: linear-gradient(180deg, #ffffff, #d7d7d7 58%, #8d8d8d);
      box-shadow: 0 8px 0 #2a2a2a, 0 16px 26px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.65);
    }

    .btn.secondary {
      color: #f5f5f5;
      border: 1px solid rgba(255,255,255,.5);
      background: linear-gradient(180deg, rgba(50, 50, 50, .98), rgba(12, 12, 12, .98));
      box-shadow: 0 8px 0 #050505, 0 16px 26px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.18);
    }

    .carousel {
      display: grid;
      grid-template-columns: minmax(360px, .88fr) minmax(460px, 1.12fr);
      gap: 22px;
      align-items: stretch;
      min-height: 0;
    }

    .viewer,
    .detail-panel,
    .thumb,
    .legal {
      border: 1px solid rgba(255, 255, 255, .16);
      background:
        linear-gradient(180deg, rgba(20, 20, 20, .96), rgba(4, 4, 4, .94)),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
      background-size: auto, 34px 34px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 36px rgba(0,0,0,.22);
      backdrop-filter: blur(5px);
    }

    .viewer {
      position: relative;
      min-height: 0;
      display: grid;
      grid-template-rows: 1fr auto;
      overflow: hidden;
    }

    .shot-frame {
      position: relative;
      min-height: 0;
      display: grid;
      place-items: center;
      padding: 16px;
    }

    .shot-frame img {
      width: min(420px, 100%);
      height: min(650px, calc(100vh - 252px));
      object-fit: cover;
      border: 3px solid rgba(255, 255, 255, .72);
      border-radius: 8px;
      box-shadow: 0 24px 46px rgba(0,0,0,.16);
      filter: grayscale(.22) contrast(1.03);
    }

    .arrow {
      position: absolute;
      top: 50%;
      width: 46px;
      height: 46px;
      transform: translateY(-50%);
      border: 1px solid rgba(255,255,255,.55);
      border-radius: 4px;
      color: #ffffff;
      background: linear-gradient(180deg, #1b1b1b, #050505);
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
    }

    .arrow:hover,
    .thumb:hover,
    .thumb.is-active {
      border-color: rgba(255, 255, 255, .92);
      box-shadow: 0 0 0 2px rgba(255,255,255,.16), 0 18px 32px rgba(0,0,0,.28);
    }

    .arrow.prev { left: 18px; }
    .arrow.next { right: 18px; }

    .counter {
      padding: 10px 14px;
      border-top: 1px solid rgba(255,255,255,.14);
      color: #f2f2f2;
      font-size: 13px;
      font-weight: 850;
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }

    .detail-panel {
      padding: 20px;
      overflow: hidden;
      display: grid;
      grid-template-rows: auto auto auto 1fr auto;
      gap: 12px;
      text-shadow: none;
    }

    .kicker {
      color: var(--gold);
      font-size: 14px;
      font-weight: 900;
      letter-spacing: .08em;
    }

    .kicker::before {
      content: "案卷 ";
      color: var(--muted);
    }

    .detail-panel h2 {
      margin: 0;
      color: #ffffff;
      font-size: clamp(32px, 3vw, 48px);
      line-height: 1.05;
      font-family: "STKaiti", "KaiTi", serif;
      letter-spacing: 0;
    }

    .summary {
      margin: 0;
      color: #e4e4e4;
      font-size: 14px;
      line-height: 1.72;
      font-weight: 760;
    }

    .meta-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .meta {
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255, 255, 255, .08);
      color: #f2f2f2;
      font-size: 12px;
      line-height: 1.3;
      font-weight: 850;
    }

    .meta span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 2px;
    }

    .detail-list {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 8px;
      align-content: start;
    }

    .detail-list li {
      padding: 9px 11px;
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255, 255, 255, .07);
      color: #dddddd;
      font-size: 12.5px;
      line-height: 1.55;
      font-weight: 740;
    }

    .detail-list strong {
      color: var(--gold);
    }

    .reward {
      padding: 12px 14px;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(255, 255, 255, .1);
      color: #f1f1f1;
      font-size: 13px;
      line-height: 1.5;
      font-weight: 850;
    }

    .thumbs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,.45) rgba(0,0,0,.35);
    }

    .thumb {
      flex: 0 0 104px;
      height: 86px;
      padding: 0;
      cursor: pointer;
      overflow: hidden;
      border-radius: 3px;
      position: relative;
    }

    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .72;
    }

    .thumb.is-active img,
    .thumb:hover img {
      opacity: 1;
    }

    .thumb span {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 4px 5px;
      color: #ffffff;
      background: rgba(0, 0, 0, .78);
      font-size: 11px;
      font-weight: 900;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .legal {
      overflow: hidden;
      color: #dddddd;
      font-size: 11.2px;
      line-height: 1.4;
      font-weight: 800;
    }

    .legal-grid {
      display: grid;
      grid-template-columns: 1.1fr 1.55fr 1.15fr;
    }

    .legal-item {
      padding: 8px 12px;
      border-right: 1px solid rgba(255,255,255,.14);
    }

    .legal-item:last-child { border-right: 0; }

    .legal-label {
      display: block;
      margin-bottom: 4px;
      color: var(--gold);
      font-size: 12px;
      letter-spacing: .08em;
    }

    .legal-notice {
      padding: 8px 12px;
      border-top: 1px solid rgba(255,255,255,.14);
    }

body.modal-open {
  overflow: hidden;
}

body.is-playing .page,
body.is-playing .auth-overlay,
body.is-playing .agreement-overlay {
  display: none !important;
}

.game-runtime {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow: hidden;
  background: #000;
}

.game-runtime.is-active {
  display: block;
}

.game-frame {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.egret-player,
#_game_loading_,
#_loading_bg_,
#_game_progress_ {
  position: absolute;
}

.egret-player {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  z-index: 2;
  display: none;
  background: #000;
}

.egret-player canvas {
  display: block !important;
  background: #000;
}

#_game_loading_ {
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#_loading_bg_ {
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#_game_progress_ {
  z-index: 4;
  bottom: 5%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: none;
}

#_loading_pro_bg_ {
  position: absolute;
  top: 38%;
  width: 90%;
  height: 31%;
  margin-left: 5.3%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#_loading_pro_text_ {
  width: 100%;
  color: #d8d8d8;
  text-align: center;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

    .auth-overlay,
    .agreement-overlay {
      position: fixed;
      inset: 0;
      z-index: 20;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background: rgba(0, 0, 0, .78);
      backdrop-filter: blur(6px);
    }

    .auth-overlay.is-open,
    .agreement-overlay.is-open {
      display: flex;
    }

    .auth-panel,
    .agreement-panel {
      width: min(520px, 100%);
      max-height: calc(100vh - 44px);
      border: 1px solid rgba(255, 255, 255, .18);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(22, 22, 22, .98), rgba(5, 5, 5, .98)),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
      background-size: auto, 30px 30px;
      box-shadow: 0 26px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.14);
      color: #eeeeee;
      overflow: hidden;
    }

    .auth-panel {
      display: flex;
      flex-direction: column;
    }

    .auth-head,
    .agreement-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 18px;
      padding: 20px 22px 16px;
      border-bottom: 1px solid rgba(255,255,255,.14);
      background: rgba(255, 255, 255, .06);
    }

    .auth-kicker {
      color: var(--gold);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .12em;
    }

    .auth-title,
    .agreement-head h3 {
      margin: 4px 0 0;
      color: #ffffff;
      font-family: "STKaiti", "KaiTi", serif;
      font-size: 30px;
      letter-spacing: 0;
    }

    .auth-close,
    .agreement-close {
      width: 38px;
      height: 38px;
      border: 1px solid rgba(255,255,255,.22);
      border-radius: 4px;
      color: #ffffff;
      background: rgba(255, 255, 255, .08);
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
    }

    .auth-body {
      padding: 20px 22px 22px;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    .auth-field {
      display: grid;
      gap: 8px;
      margin-bottom: 14px;
      color: #dddddd;
      font-size: 13px;
      font-weight: 850;
    }

    .auth-field input {
      width: 100%;
      height: 44px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 5px;
      outline: 0;
      padding: 0 12px;
      color: #ffffff;
      background: rgba(255, 255, 255, .08);
      font: inherit;
    }

    .auth-field input:focus {
      border-color: rgba(255,255,255,.55);
      box-shadow: 0 0 0 3px rgba(255,255,255,.1);
    }

    .auth-register-fields {
      display: none;
      grid-template-columns: 1fr;
      gap: 0;
    }

    .auth-panel.is-register .auth-register-fields {
      display: grid;
    }

    .auth-tip {
      display: none;
      margin: 0 0 12px;
      padding: 10px 12px;
      border: 1px solid rgba(255, 255, 255, .16);
      border-radius: 5px;
      color: #eeeeee;
      background: rgba(255, 255, 255, .08);
      font-size: 13px;
      line-height: 1.5;
    }

    .auth-submit {
      width: 100%;
      height: 48px;
      border: 0;
      border-radius: 6px;
      color: #111111;
      font-size: 19px;
      font-weight: 1000;
      background: linear-gradient(180deg, #ffffff, #dcdcdc);
      box-shadow: 0 7px 0 rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.8);
      cursor: pointer;
    }

    .auth-submit:disabled {
      cursor: wait;
      filter: grayscale(.25);
      opacity: .72;
    }

    .auth-agree {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 16px 0 0;
      color: #dddddd;
      font-size: 13px;
      line-height: 1.55;
    }

    .auth-agree input {
      margin-top: 3px;
      accent-color: #ffffff;
    }

    .auth-agree a,
    .agreement-content a {
      color: #ffffff;
      font-weight: 900;
      text-decoration: none;
    }

    .auth-switch {
      display: block;
      margin: 14px auto 0;
      border: 0;
      color: #ffffff;
      background: transparent;
      font-size: 14px;
      font-weight: 900;
      cursor: pointer;
    }

    .agreement-panel {
      width: min(760px, 100%);
    }

    .agreement-content {
      max-height: min(620px, calc(100vh - 150px));
      overflow: auto;
      padding: 20px 24px 24px;
      color: #dddddd;
      font-size: 14px;
      line-height: 1.72;
    }

    .agreement-content h4 {
      margin: 18px 0 8px;
      color: #ffffff;
      font-size: 17px;
    }

    .agreement-content h4:first-child {
      margin-top: 0;
    }

    .agreement-content p {
      margin: 0 0 8px;
    }

    @media (max-width: 900px) {
      .wrap {
        width: calc(100vw - 28px);
        padding: 20px 0;
      }

      .topbar {
        display: block;
      }

      .actions {
        margin-top: 12px;
      }

      .carousel {
        grid-template-columns: 1fr;
      }

      .shot-frame img {
        width: min(290px, 78vw);
        height: 430px;
      }

      .detail-panel {
        padding: 16px;
      }

      .summary,
      .detail-list li,
      .reward {
        font-size: 12px;
      }

      .thumb {
        flex-basis: 92px;
        height: 74px;
      }

      .meta-row {
        grid-template-columns: 1fr;
      }

      .legal-grid {
        grid-template-columns: 1fr;
      }

      .legal-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.16);
      }

      .auth-register-fields {
        grid-template-columns: 1fr;
      }

      .auth-register-fields .auth-field:nth-child(2) {
        grid-column: auto;
      }

      .auth-overlay {
        align-items: flex-start;
        padding: 14px;
      }

      .auth-panel {
        max-height: calc(100vh - 28px);
      }

      .auth-head {
        flex: 0 0 auto;
        padding: 16px 20px 12px;
      }

      .auth-title {
        font-size: 27px;
      }

      .auth-body {
        padding: 16px 20px 18px;
      }

      .auth-field {
        gap: 6px;
        margin-bottom: 11px;
      }

      .auth-field input {
        height: 42px;
      }

      .auth-submit {
        height: 46px;
      }

      .auth-agree {
        margin-top: 12px;
      }
    }

