* { box-sizing: border-box; }

    :root {
      --paper: #f7fbf6;
      --mist: #e8f7f1;
      --sky: #dff5ff;
      --leaf: #3dbb90;
      --moss: #496f5b;
      --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(1120px, 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 { display: none; }

    .home-tab,
    .tab-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);
    }

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

    .tab-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 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 {
      position: relative;
      min-height: 670px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      gap: 24px;
      align-items: stretch;
    }

    .stage-wrap {
      position: relative;
      min-width: 0;
      min-height: 670px;
      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;
    }

    .scene,
    .layer,
    .mask-layer,
    .overlay,
    .particle-field {
      position: absolute;
      inset: 0;
    }

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

    .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-label {
      position: relative;
      z-index: 2;
      font-weight: 800;
      font-size: clamp(22px, 4vw, 44px);
      text-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    }

    .mask-layer {
      z-index: 5;
      pointer-events: none;
    }

    .beat-name {
      position: absolute;
      left: 18px;
      bottom: 16px;
      z-index: 8;
      color: rgba(255,255,255,0.82);
      font-size: 13px;
      font-weight: 700;
      text-shadow: 0 2px 12px rgba(0,0,0,0.32);
    }

    .side {
      min-width: 0;
      min-height: 670px;
      padding: 22px;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: 0 18px 56px rgba(45, 91, 74, 0.12);
      backdrop-filter: blur(16px);
    }

    .side h2 {
      margin: 0 0 12px;
      font-size: 24px;
      line-height: 1.18;
      letter-spacing: 0;
    }

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

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

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

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

    .meta-item span {
      color: #405f54;
      font-size: 13px;
      line-height: 1.45;
    }

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

    .action-btn {
      height: 40px;
      padding: 0 16px;
      border: 1px solid rgba(23, 133, 105, 0.2);
      border-radius: var(--radius);
      color: #fff;
      background: linear-gradient(135deg, #22a77d, #34b8d5);
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(34, 167, 125, 0.22);
    }

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

    .data-panel {
      margin-top: 18px;
      padding: 14px;
      overflow: auto;
      max-height: 180px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(16, 35, 29, 0.88);
      color: #e8fff6;
      font-size: 12px;
      line-height: 1.55;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .strip { display: flex; gap: 5px; }
    .strip.vertical { width: 100%; height: 100%; }
    .strip.vertical .piece { flex: 1; height: 100%; transform: scaleY(0); transform-origin: 50% 0; }
    .strip.horizontal { flex-direction: column; width: 100%; height: 100%; }
    .strip.horizontal .piece { flex: 1; width: 100%; transform: scaleX(0); transform-origin: 0 50%; }
    .piece { overflow: hidden; background: var(--mask-color); }
    .piece-fill { width: 100%; height: 100%; background: var(--fill); background-size: cover; }

    .iris {
      clip-path: circle(0% at 50% 50%);
    }

    .diagonal {
      clip-path: polygon(-20% 100%, -20% 100%, -20% 100%, -20% 100%);
    }

    .ripple-ring {
      position: absolute;
      left: var(--x);
      top: var(--y);
      width: var(--s);
      aspect-ratio: 1;
      border-radius: 50%;
      transform: translate(-50%, -50%) scale(0);
      background: var(--fill);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.34);
    }

    .ripple-wipe {
      position: absolute;
      inset: 0;
      z-index: 1;
      clip-path: circle(0% at 50% 48%);
    }

    .ripple-wave {
      position: absolute;
      left: var(--x);
      top: var(--y);
      width: var(--s);
      aspect-ratio: 1;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.72);
      box-shadow:
        0 0 24px rgba(255, 255, 255, 0.22),
        inset 0 0 28px rgba(255, 255, 255, 0.16);
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.18);
      mix-blend-mode: soft-light;
    }

    .ripple-glow {
      position: absolute;
      inset: 0;
      z-index: 2;
      opacity: 0;
      background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,0.42), transparent 20%),
        radial-gradient(circle at 24% 32%, rgba(255,255,255,0.22), transparent 16%),
        radial-gradient(circle at 76% 70%, rgba(255,255,255,0.18), transparent 18%);
      pointer-events: none;
    }

    .water-band {
      position: absolute;
      left: -4%;
      width: 108%;
      height: var(--h);
      top: var(--y);
      z-index: 1;
      overflow: hidden;
      border-radius: 999px;
      clip-path: inset(0 50% 0 50% round 999px);
      transform: translateX(var(--drift)) scaleY(0.72);
      filter: saturate(1.08);
    }

    .water-band-fill {
      position: absolute;
      inset: -80vh -8vw;
      background: var(--fill);
      background-size: cover;
      background-position: center;
    }

    .water-band::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(255,255,255,0.26), transparent 48%, rgba(255,255,255,0.12));
      mix-blend-mode: soft-light;
    }

    .water-ellipse {
      position: absolute;
      left: 50%;
      top: 50%;
      width: var(--w);
      height: var(--h);
      z-index: 3;
      border: 1px solid rgba(255,255,255,0.7);
      border-radius: 50%;
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.24);
      box-shadow: 0 0 30px rgba(255,255,255,0.18);
      mix-blend-mode: soft-light;
      pointer-events: none;
    }

    .water-glint {
      position: absolute;
      inset: 0;
      z-index: 4;
      opacity: 0;
      background:
        linear-gradient(100deg, transparent 18%, rgba(255,255,255,0.22) 34%, transparent 48%),
        linear-gradient(78deg, transparent 52%, rgba(255,255,255,0.18) 64%, transparent 78%);
      transform: translateX(-18%);
      pointer-events: none;
      mix-blend-mode: screen;
    }

    .fan-piece {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 150%;
      height: 12%;
      transform-origin: 100% 100%;
      overflow: hidden;
    }

    .fan-piece .piece-fill {
      transform: scaleX(0);
      transform-origin: 100% 50%;
    }

    .fan-piece.full {
      height: 16%;
    }

    .quarter-fan-fill,
    .quarter-fan-lines {
      position: absolute;
      inset: 0;
      clip-path: circle(0% at 100% 100%);
      transform: translateZ(0);
    }

    .quarter-fan-fill {
      background: var(--fill);
      background-size: cover;
      background-position: center;
    }

    .quarter-fan-lines {
      mix-blend-mode: soft-light;
      background:
        repeating-conic-gradient(
          from 180deg at 100% 100%,
          rgba(255, 255, 255, 0.44) 0deg,
          rgba(255, 255, 255, 0.44) 1.5deg,
          transparent 1.5deg,
          transparent 10deg
        );
    }

    .curtain-left,
    .curtain-right {
      position: absolute;
      top: 0;
      width: 50.5%;
      height: 100%;
      background: var(--fill);
      background-size: cover;
    }

    .curtain-left { left: 0; transform-origin: 0 50%; }
    .curtain-right { right: 0; transform-origin: 100% 50%; }

    .tile-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      grid-template-rows: repeat(8, 1fr);
      gap: 5px;
      width: 100%;
      height: 100%;
      background: rgba(7, 22, 19, 0.92);
    }

    .tile {
      background: var(--fill);
      transform: scale(0);
      opacity: 0;
    }

    .wind-band {
      position: absolute;
      left: -18%;
      width: 136%;
      height: 17%;
      border-radius: 999px;
      transform: translateX(-110%) rotate(-10deg);
      background: var(--fill);
      box-shadow: 0 12px 30px rgba(255,255,255,0.14);
    }

    .footer-space {
      min-height: 34vh;
    }

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

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

      .stage-wrap {
        height: min(78vh, 720px);
      }

      .side {
        padding: 18px;
      }
    }

    @media (max-width: 560px) {
      .nav-shell {
        width: calc(100% - 16px);
        top: max(8px, env(safe-area-inset-top));
      }

      .page {
        width: calc(100% - 20px);
        padding-top: 34px;
      }

      .hero {
        gap: 18px;
      }

      .stage-wrap {
        height: 640px;
      }

      .stage {
        width: calc(100% - 28px);
      }
    }

    /* Fullscreen mode */
    body {
      overflow: hidden;
      background: #10231d;
    }

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

    .page,
    .showcase,
    .stage-wrap,
    .stage {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      max-width: none;
      min-height: 0;
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      transform: none;
    }

    .page {
      display: block;
    }

    .hero,
    .stage-vista,
    .footer-space,
    .scene-label,
    .beat-name {
      display: none;
    }

    .showcase {
      display: block;
    }

    .stage-wrap {
      overflow: hidden;
      background: #10231d;
      box-shadow: none;
    }

    .stage {
      left: 0;
      top: 0;
      aspect-ratio: auto;
      box-shadow: 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 .tab-btn {
      height: 36px;
      padding: 0 8px 0 14px;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      background: transparent;
    }

    .tab-item .tab-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);
    }

    .side {
      position: fixed;
      right: max(18px, env(safe-area-inset-right));
      top: 78px;
      z-index: 18;
      width: min(360px, calc(100% - 36px));
      max-height: calc(100vh - 104px);
      min-height: 0;
      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: 700px) {
      .nav-shell {
        width: calc(100% - 16px);
        top: max(8px, env(safe-area-inset-top));
      }

      .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);
      }
    }
