:root { --bg: #000; --green: #a8ef00; --home-width: 2688; --home-height: 8191; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body { margin: 0; min-width: 320px; color: #fff; background: #000; font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
button { font: inherit; }
.modal-open { overflow: hidden; }
.flat-site { width: 100%; background: #000; }
.flat-canvas { position: relative; width: 100%; margin: 0 auto; line-height: 0; background: #000; }
.homepage-canvas { max-width: 2688px; --design-width: 2688; --design-height: 8191; }
.course-canvas { max-width: 2369px; --design-width: 1572; --design-height: 8192; }
.flat-image { display: block; width: 100%; height: auto; user-select: none; }

.hero-preserve { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: calc(1535 / var(--design-height) * 100%); overflow: hidden; pointer-events: none; }
.hero-preserve > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.hero-keycap-video { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; pointer-events: none; }
.hotspot, .case-hotspot, .print-hotspot, .pdf-hotspot, .home-hotspot, .course-scroll-hotspot, .anchor {
  position: absolute;
  left: calc(var(--x, 0) / var(--design-width) * 100%);
  top: calc(var(--y, 0) / var(--design-height) * 100%);
  width: calc(var(--w, 1) / var(--design-width) * 100%);
  height: calc(var(--h, 1) / var(--design-height) * 100%);
}
.hotspot, .case-hotspot, .print-hotspot, .pdf-hotspot, .home-hotspot, .course-scroll-hotspot {
  z-index: 5; display: block; border: 0; padding: 0; border-radius: 8px; color: transparent; background: transparent; font-size: 0; line-height: 0; cursor: pointer;
}
.pdf-hotspot { box-sizing: border-box; border-radius: 999px; transform: none; transition: background-color .22s ease; }
.pdf-hotspot::after { content: "一分钟看完作品"; position: absolute; inset: 0; display: grid; place-items: center; color: #050704; font-size: clamp(8px, calc(21 / 2688 * 100vw), 21px); font-weight: 700; line-height: 1; opacity: 0; transition: opacity .22s ease; }
.pdf-hotspot:hover, .pdf-hotspot:focus-visible { background: var(--green); transform: none; }
.pdf-hotspot:hover::after, .pdf-hotspot:focus-visible::after { opacity: 1; }
.case-hotspot, .print-hotspot { appearance: none; overflow: hidden; }
.motion-booting .case-hotspot { visibility: hidden; }
.case-hotspot:hover { box-shadow: inset 0 0 0 2px var(--green); background: rgba(168,239,0,.08); }
.print-hotspot:hover { box-shadow: none; background: transparent; }
.case-hotspot::after { content: ""; position: absolute; left: 50%; top: 50%; width: clamp(24px, 3vw, 70px); height: clamp(24px, 3vw, 70px); border-radius: 50%; background: rgba(168,239,0,.94); opacity: 0; transform: translate(-50%,-50%) scale(.9); transition: .18s ease; }
.case-hotspot::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; margin: -8px 0 0 -4px; border: 8px solid transparent; border-left: 12px solid #070806; opacity: 0; transition: .18s ease; }
.case-hotspot:hover::after, .case-hotspot:hover::before { opacity: 1; }
.print-hotspot:focus-visible { outline-color: rgba(255,255,255,.8); }
.hotspot:focus-visible, .case-hotspot:focus-visible, .print-hotspot:focus-visible, .pdf-hotspot:focus-visible, .home-hotspot:focus-visible, .course-scroll-hotspot:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.anchor { width: 1px; height: 1px; pointer-events: none; }
.section-reveal { position: absolute; z-index: 3; left: 0; width: 100%; background: #000; pointer-events: none; will-change: opacity; }
.hero-reveal { z-index: 9; top: 0; height: calc(1650 / var(--design-height) * 100%); }
.motion-layer { position: absolute; z-index: 4; display: block; overflow: hidden; background-repeat: no-repeat; background-size: 100% auto; pointer-events: none; user-select: none; will-change: transform, opacity; }
.section-reveal:not(.hero-reveal), .motion-layer {
  left: calc(var(--x, 0) / var(--design-width) * 100%);
  top: calc(var(--y, 0) / var(--design-height) * 100%);
  width: calc(var(--w, 1) / var(--design-width) * 100%);
  height: calc(var(--h, 1) / var(--design-height) * 100%);
}
.shared-course-header { position: absolute; left: 0; top: 0; z-index: 10; width: 100%; aspect-ratio: 2369 / 180; overflow: hidden; background: #000; }
.homepage-canvas .shared-course-header { background: transparent; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0,0,0,.78) 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0,0,0,.78) 80%, transparent 100%); }
.course-canvas .shared-course-header { background: transparent; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0,0,0,.75) 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0,0,0,.75) 80%, transparent 100%); }
.shared-course-header > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.shared-nav-link { position: absolute; left: calc(var(--x) / 2369 * 100%); top: calc(88 / 180 * 100%); width: calc(var(--w) / 2369 * 100%); height: calc(55 / 180 * 100%); z-index: 2; display: block; color: transparent; font-size: 0; text-decoration: none; }
.shared-logo-link { position: absolute; left: calc(462 / 2369 * 100%); top: calc(78 / 180 * 100%); width: calc(78 / 2369 * 100%); height: calc(65 / 180 * 100%); z-index: 2; }
.shared-nav-link:focus-visible, .shared-logo-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.media-modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 28px; line-height: 1.4; }
.media-modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.88); backdrop-filter: blur(14px); cursor: pointer; }
.modal-panel { position: relative; z-index: 1; width: min(1480px, 96vw); max-height: 94vh; padding: 26px; overflow: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #070806; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.modal-panel h2 { margin: 0 60px 20px 0; font-size: 24px; line-height: 1.3; }
.modal-close { position: absolute; right: 18px; top: 16px; z-index: 5; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: #151713; font-size: 28px; line-height: 1; cursor: pointer; }
.modal-panel video { display: none; width: 100%; max-height: 76vh; background: #000; }
.modal-panel video.is-visible { display: block; }
.gallery-stage { position: relative; display: none; min-height: 300px; align-items: center; justify-content: center; overflow: hidden; background: #020202; }
.gallery-stage.is-visible { display: flex; }
.gallery-stage img { display: block; max-width: 100%; max-height: 76vh; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 64px; border: 1px solid rgba(255,255,255,.2); color: #fff; background: rgba(0,0,0,.58); font-size: 42px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.gallery-arrow.prev { left: 14px; }.gallery-arrow.next { right: 14px; }
.gallery-stage.is-single .gallery-arrow { display: none; }
.gallery-count { margin: 14px 0 0; color: #a8aba2; text-align: center; font-size: 13px; line-height: 1.4; }
.media-error { display: none; color: #ff8c78; text-align: center; font-size: 14px; line-height: 1.4; }.media-error.is-visible { display: block; }

@media (max-width: 720px) {
  .media-modal { padding: 8px; }
  .modal-panel { width: 100%; padding: 16px; }
  .modal-panel h2 { margin-right: 50px; font-size: 18px; }
  .gallery-arrow { width: 38px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
