* { box-sizing: border-box; }

    :root {
      --paper: #f7fbf6;
      --mist: #e8f7f1;
      --sky: #dff5ff;
      --leaf: #3dbb90;
      --ink: #10231d;
      --muted: #64796f;
      --line: rgba(53, 101, 83, 0.16);
      --panel: rgba(255, 255, 255, 0.74);
      --shadow: 0 24px 70px rgba(41, 86, 70, 0.16);
      --radius: 8px;
    }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(circle at 12% 10%, rgba(177, 229, 193, 0.66), transparent 28%),
        radial-gradient(circle at 84% 8%, rgba(170, 222, 246, 0.74), transparent 30%),
        linear-gradient(145deg, var(--paper) 0%, var(--mist) 44%, var(--sky) 100%);
    }

    button, a { font: inherit; }

    .nav-shell {
      position: sticky;
      top: max(14px, env(safe-area-inset-top));
      z-index: 20;
      width: min(1180px, calc(100% - 28px));
      margin: 14px auto 0;
      padding: 8px;
      display: flex;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: none;
      border: 1px solid rgba(255, 255, 255, 0.86);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.72);
      box-shadow: 0 12px 34px rgba(39, 78, 64, 0.12);
      backdrop-filter: blur(18px);
    }

    .nav-shell::-webkit-scrollbar,
    .sub-tabs::-webkit-scrollbar { display: none; }

    .home-tab,
    .cat-btn {
      flex: 0 0 auto;
      height: 38px;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid transparent;
      border-radius: var(--radius);
      color: var(--muted);
      background: transparent;
      text-decoration: none;
      cursor: pointer;
      white-space: nowrap;
      transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
    }

    .home-tab {
      color: #285847;
      border-color: rgba(61, 187, 144, 0.26);
      background: rgba(232, 247, 241, 0.82);
    }

    .cat-btn:hover,
    .home-tab:hover { transform: translateY(-1px); }

    .cat-btn.active {
      color: #08372b;
      border-color: rgba(61, 187, 144, 0.32);
      background: #fff;
      box-shadow: 0 8px 18px rgba(61, 187, 144, 0.16);
    }

    .page {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      padding: 54px 0 76px;
    }

    .hero {
      min-height: 210px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
      gap: 36px;
      align-items: end;
      margin-bottom: 30px;
    }

    .eyebrow {
      margin: 0 0 10px;
      color: #2f8b72;
      font-size: 14px;
      letter-spacing: 0;
      font-weight: 700;
    }

    h1 {
      margin: 0;
      font-size: clamp(40px, 8vw, 86px);
      line-height: 0.96;
      letter-spacing: 0;
      font-weight: 800;
      color: #10231d;
    }

    .hero p {
      max-width: 620px;
      margin: 18px 0 0;
      color: var(--muted);
      font-size: clamp(15px, 2vw, 18px);
      line-height: 1.7;
    }

    .data-note {
      margin: 0;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.58);
      color: #47665a;
      line-height: 1.65;
      box-shadow: 0 16px 46px rgba(58, 91, 77, 0.1);
    }

    .showcase {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 24px;
      align-items: stretch;
    }

    .stage-wrap {
      position: relative;
      min-width: 0;
      min-height: 680px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: var(--radius);
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.58)),
        linear-gradient(135deg, rgba(206, 239, 221, 0.42), rgba(211, 241, 251, 0.45));
      box-shadow: var(--shadow);
    }

    .stage-vista {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,0.24) 1px, transparent 1px);
      background-size: 72px 72px;
      mask-image: linear-gradient(180deg, rgba(0,0,0,0.42), transparent 82%);
    }

    .stage {
      position: absolute;
      left: 50%;
      top: 50%;
      width: min(74vh, 520px);
      max-width: calc(100% - 54px);
      aspect-ratio: 9 / 16;
      transform: translate(-50%, -50%);
      overflow: hidden;
      border-radius: var(--radius);
      background: #111;
      box-shadow:
        0 34px 80px rgba(16, 35, 29, 0.26),
        0 0 0 1px rgba(255, 255, 255, 0.68);
      isolation: isolate;
      perspective: 1200px;
    }

    .scene,
    .overlay,
    .piece-layer {
      position: absolute;
      inset: 0;
    }

    .scene {
      display: grid;
      place-items: center;
      color: rgba(255, 255, 255, 0.92);
      background: var(--scene-bg);
      background-size: cover;
      background-position: center;
      overflow: hidden;
    }

    .scene::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(160deg, rgba(255,255,255,0.28), transparent 34%),
        linear-gradient(0deg, rgba(4,18,15,0.18), transparent 48%);
    }

    .scene::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0.22;
      background:
        linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.55) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(255,255,255,0.42) 50%, transparent 52%);
      background-size: 74px 74px;
    }

    .scene-label {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 8px;
      place-items: center;
      text-align: center;
      color: rgba(255,255,255,0.95);
      text-shadow: 0 2px 8px rgba(0,0,0,0.28);
    }

    .scene-label b {
      font-size: clamp(44px, 8vh, 76px);
      line-height: 0.9;
      letter-spacing: 0;
    }

    .scene-label span {
      font-size: 13px;
      font-weight: 700;
      padding: 6px 10px;
      border: 1px solid rgba(255,255,255,0.42);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.18);
      backdrop-filter: blur(10px);
    }

    .beat-name {
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 16px;
      z-index: 30;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      pointer-events: none;
      color: rgba(255,255,255,0.94);
      font-size: 13px;
      font-weight: 700;
      text-shadow: 0 2px 10px rgba(0,0,0,0.32);
    }

    .beat-name span {
      padding: 7px 10px;
      border: 1px solid rgba(255,255,255,0.3);
      border-radius: var(--radius);
      background: rgba(0,0,0,0.16);
      backdrop-filter: blur(12px);
    }

    .side {
      min-height: 680px;
      padding: 22px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

    .side h2 {
      margin: 0 0 10px;
      font-size: 24px;
      line-height: 1.2;
    }

    .side p {
      margin: 0;
      color: var(--muted);
      line-height: 1.72;
      font-size: 14px;
    }

    .sub-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 18px 0;
      max-height: 152px;
      overflow: auto;
      scrollbar-width: none;
    }

    .sub-btn {
      height: 34px;
      padding: 0 12px;
      border: 1px solid rgba(61, 187, 144, 0.18);
      border-radius: var(--radius);
      background: rgba(255,255,255,0.48);
      color: #47665a;
      cursor: pointer;
      white-space: nowrap;
      font-size: 13px;
      transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
    }

    .sub-btn:hover { transform: translateY(-1px); }

    .sub-btn.active {
      color: #08372b;
      background: #fff;
      box-shadow: 0 8px 18px rgba(61, 187, 144, 0.14);
    }

    .meta-grid {
      display: grid;
      gap: 10px;
      margin: 16px 0 20px;
    }

    .meta-item {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.48);
    }

    .meta-item b {
      display: block;
      margin-bottom: 4px;
      color: #2f8b72;
      font-size: 12px;
    }

    .meta-item span {
      color: #4f6a60;
      font-size: 13px;
      line-height: 1.55;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .action-btn {
      height: 40px;
      padding: 0 16px;
      border: 1px solid rgba(61, 187, 144, 0.28);
      border-radius: var(--radius);
      color: #fff;
      background: linear-gradient(135deg, #3dbb90, #50b9d8);
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(61, 187, 144, 0.24);
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .action-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 30px rgba(61, 187, 144, 0.3);
    }

    .ghost-btn {
      color: #285847;
      background: rgba(255,255,255,0.62);
      box-shadow: none;
    }

    .overlay { pointer-events: none; }
    .center-marker {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 25;
      width: 86px;
      height: 86px;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      border: 1px solid rgba(255,255,255,0.58);
      background: radial-gradient(circle, rgba(255,255,255,0.26), transparent 68%);
      box-shadow: 0 0 44px rgba(255,255,255,0.32);
      opacity: 0;
    }

    .blind-grid {
      z-index: 8;
      display: flex;
      gap: 2px;
    }

    .blind-strip {
      flex: 1;
      position: relative;
      overflow: hidden;
      transform: scaleX(0);
      transform-origin: 0 50%;
      background: var(--scene-bg);
      background-size: 1200% 100%;
    }

    .diag-piece {
      z-index: 8;
      overflow: hidden;
      background: var(--scene-bg);
      background-size: cover;
      will-change: transform;
    }

    .diag-left {
      clip-path: polygon(0 0, 100% 0, 0 100%);
      transform: translate(0, 0);
    }

    .diag-right {
      clip-path: polygon(100% 0, 100% 100%, 0 100%);
      transform: translate(0, 0);
    }

    .flash-layer {
      z-index: 18;
      background: #fff;
      opacity: 0;
      box-shadow: 0 0 90px rgba(255,255,255,0.75);
    }

    .sweep-light {
      z-index: 18;
      left: -78%;
      top: -22%;
      width: 44%;
      height: 150%;
      background:
        linear-gradient(90deg, transparent, rgba(255,255,255,0.8) 34%, #fff 50%, rgba(255,255,255,0.72) 66%, transparent);
      transform: rotate(-18deg) translateX(0);
      filter: blur(2px);
      box-shadow: 0 0 60px rgba(255,255,255,0.38);
    }

    .sweep-reveal {
      z-index: 7;
      clip-path: polygon(-35% 0, -16% 0, 18% 100%, -1% 100%);
      background: var(--scene-bg);
      background-size: cover;
    }

    .ripple-reveal {
      z-index: 7;
      clip-path: circle(0% at 50% 50%);
      background: var(--scene-bg);
      background-size: cover;
    }

    .ripple-ring {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 18;
      width: var(--size);
      aspect-ratio: 1;
      border-radius: 50%;
      border: 2px solid rgba(255,255,255,0.78);
      transform: translate(-50%, -50%) scale(0.18);
      opacity: 0;
      box-shadow:
        inset 0 0 32px rgba(255,255,255,0.28),
        0 0 30px rgba(255,255,255,0.22);
    }

    .shard {
      position: absolute;
      z-index: 9;
      left: var(--x);
      top: var(--y);
      width: var(--w);
      height: var(--h);
      transform: translate(-50%, -50%) rotate(var(--r0));
      clip-path: var(--shape);
      background: var(--scene-bg);
      background-size: cover;
      background-position: var(--bp);
      box-shadow: inset 0 0 18px rgba(255,255,255,0.14);
      opacity: 1;
    }

    .shatter-flash {
      z-index: 16;
      opacity: 0;
      background:
        linear-gradient(70deg, transparent 48%, rgba(255,255,255,0.9) 49%, transparent 51%),
        linear-gradient(145deg, transparent 45%, rgba(255,255,255,0.72) 46%, transparent 48%),
        linear-gradient(20deg, transparent 54%, rgba(255,255,255,0.62) 55%, transparent 57%);
    }

    .soft-glow {
      z-index: 18;
      opacity: 0;
      background:
        radial-gradient(circle at 45% 45%, rgba(255,255,255,0.5), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.24), transparent 64%);
      backdrop-filter: blur(0);
    }

    .page-corner {
      position: absolute;
      z-index: 10;
      width: 50%;
      height: 50%;
      overflow: hidden;
      background: var(--scene-bg);
      background-size: 200% 200%;
      transform-style: preserve-3d;
      backface-visibility: hidden;
      box-shadow: 0 0 0 rgba(0,0,0,0);
    }

    .page-corner::after {
      content: "";
      position: absolute;
      inset: 0;
      opacity: 0;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.62), rgba(255,255,255,0.08) 42%, rgba(0,0,0,0.2));
      transition: opacity 900ms ease;
    }

    .corner-tl {
      left: 0;
      top: 0;
      transform-origin: 100% 100%;
      background-position: 0 0;
    }

    .corner-tr {
      right: 0;
      top: 0;
      transform-origin: 0 100%;
      background-position: 100% 0;
    }

    .corner-bl {
      left: 0;
      bottom: 0;
      transform-origin: 100% 0;
      background-position: 0 100%;
    }

    .corner-br {
      right: 0;
      bottom: 0;
      transform-origin: 0 0;
      background-position: 100% 100%;
    }

    .page-fold-glow {
      z-index: 17;
      opacity: 0;
      background:
        radial-gradient(circle at 0 0, rgba(255,255,255,0.4), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(255,255,255,0.34), transparent 26%),
        radial-gradient(circle at 0 100%, rgba(255,255,255,0.32), transparent 26%),
        radial-gradient(circle at 100% 100%, rgba(255,255,255,0.38), transparent 26%);
    }

    body {
      overflow: hidden;
    }

    .nav-shell {
      position: fixed;
      left: 50%;
      top: max(10px, env(safe-area-inset-top));
      width: min(1200px, calc(100% - 20px));
      margin: 0;
      transform: translateX(-50%);
    }

    .sub-shell {
      position: fixed;
      left: 50%;
      top: max(62px, calc(env(safe-area-inset-top) + 52px));
      z-index: 19;
      width: min(1200px, calc(100% - 20px));
      padding: 6px;
      transform: translateX(-50%);
      border: 1px solid rgba(255, 255, 255, 0.76);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.58);
      box-shadow: 0 10px 28px rgba(39, 78, 64, 0.1);
      backdrop-filter: blur(16px);
      overflow-x: auto;
      scrollbar-width: none;
    }

    .sub-shell::-webkit-scrollbar { display: none; }

    .page {
      width: 100%;
      height: 100vh;
      margin: 0;
      padding: 0;
    }

    .hero {
      display: none;
    }

    .showcase {
      display: block;
      width: 100%;
      height: 100vh;
    }

    .stage-wrap {
      position: fixed;
      inset: 0;
      min-height: 0;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .stage {
      left: 0;
      top: 0;
      width: 100%;
      max-width: none;
      height: 100%;
      aspect-ratio: auto;
      border-radius: 0;
      transform: none;
      box-shadow: none;
    }

    .scene-label b {
      font-size: clamp(64px, 10vw, 148px);
    }

    .scene-label span,
    .beat-name {
      display: none;
    }

    .tab-item {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      height: 38px;
      border: 1px solid transparent;
      border-radius: var(--radius);
      overflow: hidden;
      color: var(--muted);
      background: transparent;
      transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    }

    .tab-item.active {
      color: #08372b;
      border-color: rgba(61, 187, 144, 0.32);
      background: #fff;
      box-shadow: 0 8px 18px rgba(61, 187, 144, 0.16);
    }

    .tab-item .cat-btn,
    .tab-item .sub-btn {
      height: 36px;
      padding: 0 8px 0 14px;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      background: transparent;
    }

    .tab-item .cat-btn.active,
    .tab-item .sub-btn.active {
      border-color: transparent;
      background: transparent;
      box-shadow: none;
    }

    .tab-info-toggle {
      width: 32px;
      height: 36px;
      padding: 0;
      display: inline-grid;
      place-items: center;
      border: 0;
      border-left: 1px solid rgba(53, 101, 83, 0.12);
      color: currentColor;
      background: transparent;
      cursor: pointer;
    }

    .tab-arrow {
      width: 7px;
      height: 7px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg) translateY(-1px);
      transition: transform 180ms ease;
    }

    .tab-item.info-open .tab-arrow {
      transform: rotate(225deg) translate(-1px, -1px);
    }

    .sub-tabs {
      flex-wrap: nowrap;
      gap: 6px;
      max-height: none;
      margin: 0;
      overflow: visible;
    }

    .side {
      position: fixed;
      right: max(18px, env(safe-area-inset-right));
      top: max(114px, calc(env(safe-area-inset-top) + 104px));
      z-index: 18;
      width: min(380px, calc(100% - 36px));
      min-height: 0;
      max-height: calc(100vh - 140px);
      overflow: auto;
      opacity: 0;
      pointer-events: none;
      transform: translateX(18px);
      transition: opacity 180ms ease, transform 180ms ease;
    }

    .side.info-open {
      opacity: 1;
      pointer-events: auto;
      transform: translateX(0);
    }

    @media (max-width: 940px) {
      .hero,
      .showcase {
        grid-template-columns: 1fr;
      }

      .hero {
        min-height: auto;
        gap: 18px;
      }

      .showcase,
      .stage-wrap,
      .side {
        min-height: auto;
      }

      .stage-wrap {
        height: 100vh;
      }

      .side {
        padding: 18px;
      }
    }

    @media (max-width: 560px) {
      .page {
        width: min(100% - 20px, 1180px);
        padding: 34px 0 48px;
      }

      .nav-shell {
        width: min(100% - 16px, 1180px);
        margin-top: 8px;
      }

      .sub-shell {
        width: min(100% - 16px, 1180px);
        top: max(54px, calc(env(safe-area-inset-top) + 46px));
      }

      .home-tab,
      .cat-btn,
      .sub-btn {
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
      }

      .stage {
        width: 100%;
        max-width: none;
      }

      .beat-name {
        left: 10px;
        right: 10px;
        bottom: 10px;
        font-size: 12px;
      }

      .side {
        left: 8px;
        right: 8px;
        top: auto;
        bottom: max(8px, env(safe-area-inset-bottom));
        width: auto;
        max-height: min(62vh, 520px);
        transform: translateY(18px);
      }

      .side.info-open {
        transform: translateY(0);
      }
    }
