:root {
  --ink: #101319;
  --blue: #2457f5;
  --blue-dark: #163cc0;
  --coral: #ff5a5f;
  --lime: #c8f45b;
  --mist: #eef1f7;
  --white: #ffffff;
  --muted: #5c6370;
  --line: #cbd1dc;
  --wrap: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

body.locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin-inline: auto;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.head-row {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 4px;
  list-style: none;
}

.nav-list a:not(.download-button) {
  display: block;
  padding: 10px 13px;
  border: 2px solid transparent;
  font-weight: 750;
  line-height: 1.2;
}

.nav-list a:not(.download-button):hover,
.nav-list a[aria-current="page"]:not(.download-button) {
  border-color: var(--ink);
  background: var(--lime);
}

.download-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
  line-height: 1.2;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.download-button::before {
  content: "\2193";
  margin-right: 8px;
  font-size: 20px;
}

.download-button:hover {
  background: var(--blue-dark);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.download-button.lime {
  color: var(--ink);
  background: var(--lime);
}

.download-button.lime:hover {
  background: var(--white);
}

.android-download { gap: 8px; }
.android-download::before { content: none; }
.android-icon { width: 20px; height: 20px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--lime);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  min-height: min(700px, calc(100vh - 72px));
  align-items: center;
  gap: 58px;
  padding-block: 58px;
}

.label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 5px 11px;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 14px;
  font-weight: 900;
}

.label::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--coral);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 900;
}

.hero h1 { font-size: 40px; white-space: nowrap; }

h2 {
  margin-bottom: 30px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 900;
}

.hero-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: #353a44;
  font-size: 18px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.line-link {
  border-bottom: 3px solid var(--coral);
  font-weight: 900;
}

.quick-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.quick-meta li {
  padding: 4px 10px;
  border: 1px solid var(--ink);
  background: var(--mist);
  font-size: 14px;
  font-weight: 750;
}

.app-stage {
  position: relative;
  min-height: 550px;
}

.stage-block {
  position: absolute;
  inset: 35px 0 20px 55px;
  border: 2px solid var(--ink);
  background: var(--blue);
}

.stage-block::after {
  content: "追番放映中";
  position: absolute;
  right: -2px;
  bottom: -42px;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
}

.device {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: var(--ink);
}

.device img {
  width: 100%;
  max-width: 400px;
}

.device.primary {
  top: 0;
  left: 18%;
  width: 250px;
  box-shadow: 12px 12px 0 var(--coral);
}

.device.side {
  right: 0;
  bottom: 10px;
  width: 210px;
  box-shadow: 9px 9px 0 var(--lime);
}

.stage-ticket {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 0;
  width: 125px;
  padding: 18px 12px;
  border: 2px solid var(--ink);
  background: var(--coral);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  transform: rotate(-8deg);
}

.rail {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
}

.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
}

.rail-item {
  min-height: 124px;
  padding: 24px;
  border-right: 1px solid #4e535e;
}

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

.rail-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lime);
  font-size: 25px;
}

.rail-item span {
  color: #d5d8e1;
  font-size: 14px;
}

.section {
  padding-block: 88px;
}

.section.mist {
  border-block: 2px solid var(--ink);
  background: var(--mist);
}

.section.blue {
  color: var(--white);
  background: var(--blue);
}

.section.coral {
  border-block: 2px solid var(--ink);
  background: var(--coral);
}

.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 24px;
}

.section-top h2 {
  margin-bottom: 0;
}

.section-tag {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.blue .section-tag {
  color: var(--lime);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
}

.tool {
  min-height: 290px;
  padding: 28px;
  border-right: 2px solid var(--ink);
  background: var(--white);
}

.tool:last-child {
  border-right: 0;
}

.tool:nth-child(2) {
  background: #e8edff;
}

.tool:nth-child(3) {
  background: #fff0f0;
}

.tool:nth-child(4) {
  background: #f3ffd4;
}

.tool-code {
  display: inline-block;
  margin-bottom: 38px;
  padding: 3px 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.tool p {
  margin: 0;
  color: var(--muted);
}

.viewer-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 70px;
}

.viewer-phone {
  width: min(100%, 360px);
  margin-inline: auto;
  padding: 8px;
  border: 4px solid var(--white);
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--lime);
}

.viewer-phone img {
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
}

.shot-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.shot-tab {
  min-height: 118px;
  padding: 18px;
  border: 2px solid var(--white);
  border-radius: 4px;
  color: var(--white);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.shot-tab:hover,
.shot-tab[aria-selected="true"] {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--lime);
}

.shot-tab strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.shot-tab span {
  display: block;
  font-size: 14px;
}

.shot-caption {
  margin-top: 22px;
  font-weight: 750;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.route {
  min-height: 320px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.route-num {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.route p {
  margin: 0;
  color: var(--muted);
}

.deep-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.deep-link {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 235px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.deep-side {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-size: 42px;
  font-weight: 900;
  writing-mode: vertical-rl;
}

.deep-link:nth-child(2) .deep-side {
  color: var(--ink);
  background: var(--lime);
}

.deep-body {
  padding: 28px;
}

.deep-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.deep-body a {
  border-bottom: 3px solid var(--coral);
  font-weight: 900;
}

.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.voice {
  margin: 0;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.voice p {
  margin: 0 0 18px;
}

.voice cite {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.voice-stars { margin-bottom: 12px; color: #b65022; font-size: 18px; letter-spacing: 0; }
.voice time { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-unit {
  border-bottom: 2px solid var(--ink);
}

.faq-button {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-button::after {
  content: "+";
  width: 36px;
  flex: 0 0 36px;
  margin-left: 18px;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}

.faq-button[aria-expanded="true"]::after {
  content: "\2212";
}

.faq-panel {
  display: none;
  max-width: 900px;
  padding: 0 56px 24px 2px;
  color: #353a44;
}

.faq-panel p {
  margin: 0;
}

.faq-panel.open {
  display: block;
}

.final-call {
  border-top: 2px solid var(--ink);
  background: var(--lime);
}

.final-row {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.final-row h2 {
  margin-bottom: 10px;
}

.final-row > div:first-child { flex: 1 1 560px; min-width: 0; }
.download-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; margin-top: 18px; padding: 18px 8px; border: 1px solid #dfe4f0; border-radius: 8px; background: #f8f9fc; box-shadow: 0 10px 20px rgba(0,0,0,.1); }
.download-info div { min-width: 0; padding: 0 14px; border-right: 1px solid #d9dfeb; }
.download-info div:last-child { border-right: 0; }
.download-info span { display: block; margin-bottom: 8px; color: #61708b; font-size: 12px; }
.download-info strong { display: block; color: #173caa; font-size: 17px; white-space: nowrap; }

.final-copy {
  max-width: 700px;
  font-weight: 700;
}

.site-foot {
  padding: 46px 0 28px;
  color: #d8dbe3;
  background: var(--ink);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-bottom: 28px;
  gap: 50px;
  border-bottom: 1px solid #4d525d;
}

.foot-brand {
  color: var(--white);
}

.foot-brand p {
  max-width: 650px;
  margin: 14px 0 0;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot-nav a {
  color: var(--white);
}

.foot-nav a:hover {
  color: var(--lime);
}

.disclaimer,
.copyright {
  margin: 20px 0 0;
  font-size: 13px;
}

.copyright {
  color: #9ea3ae;
}

.sub-hero {
  border-bottom: 2px solid var(--ink);
  background: var(--mist);
}

.sub-hero.coral-bg {
  background: var(--coral);
}

.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: 460px;
  align-items: center;
  gap: 60px;
  padding-block: 54px;
}

.sub-grid h1 {
  max-width: 780px;
  font-size: clamp(40px, 6vw, 68px);
}

.sub-grid p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}

.sub-grid img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: 12px 12px 0 var(--blue);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 0;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 62px;
}

.doc h2 {
  margin: 64px 0 24px;
  font-size: 34px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin-top: 34px;
}

.doc p {
  margin: 0 0 18px;
}

.doc a:not(.download-button) {
  color: var(--blue-dark);
  border-bottom: 2px solid currentColor;
  font-weight: 800;
}

.doc-menu {
  position: sticky;
  top: 98px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.doc-menu strong {
  display: block;
  padding: 15px 18px;
  color: var(--white);
  background: var(--blue);
}

.doc-menu ol {
  margin: 0;
  padding: 18px 18px 18px 40px;
}

.doc-menu a:hover {
  color: var(--blue);
}

.check-board {
  margin: 26px 0 34px;
  border: 2px solid var(--ink);
}

.check-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-bottom: 2px solid var(--ink);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-id {
  display: grid;
  place-items: center;
  border-right: 2px solid var(--ink);
  background: var(--lime);
  font-size: 21px;
  font-weight: 900;
}

.check-copy {
  padding: 22px;
}

.check-copy h3 {
  margin-top: 0;
}

.check-copy p:last-child {
  margin-bottom: 0;
}

.notice {
  margin: 28px 0;
  padding: 22px 24px;
  border: 2px solid var(--ink);
  border-left: 12px solid var(--coral);
  background: #fff1f1;
}

.notice.blue-note {
  border-left-color: var(--blue);
  background: #ebefff;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.plain-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 30px;
}

.plain-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.doc-figure {
  margin: 34px 0;
}

.doc-figure img {
  width: min(100%, 396px);
  max-width: 400px;
  margin-inline: auto;
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--coral);
}

.doc-figure figcaption {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 46px;
  gap: 18px;
}

.related a {
  padding: 20px;
  border: 2px solid var(--ink) !important;
  color: var(--ink) !important;
  background: var(--mist);
}

.faq-page .faq-unit {
  padding-inline: 18px;
  background: var(--white);
}

.faq-page .faq-button {
  font-size: 18px;
}

.zoom-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(16, 19, 25, 0.94);
}

.zoom-layer.visible {
  display: grid;
}

.zoom-layer img {
  width: auto;
  max-width: min(400px, 90vw);
  max-height: 86vh;
  border: 4px solid var(--white);
  border-radius: 18px;
}

.zoom-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.viewer-phone {
  cursor: zoom-in;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    margin: 0;
    border-bottom: 2px solid var(--ink);
    background: var(--white);
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    display: grid;
    width: min(calc(100% - 40px), var(--wrap));
    margin-inline: auto;
    padding-block: 18px;
  }

  .nav-list a:not(.download-button) {
    padding: 13px 4px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 32px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tool:nth-child(2) {
    border-right: 0;
  }

  .tool:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-menu {
    position: static;
    order: -1;
  }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 32px; }
  .wrap {
    width: min(calc(100% - 24px), var(--wrap));
  }

  .site-head,
  .head-row {
    min-height: 64px;
  }

  .main-nav {
    top: 64px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero-inner,
  .sub-grid,
  .viewer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-block: 44px 60px;
  }

  .hero-lead,
  .sub-grid p {
    font-size: 16px;
  }

  .app-stage {
    min-height: 510px;
  }

  .device.primary {
    left: 12%;
    width: 225px;
  }

  .device.side {
    width: 170px;
  }

  .stage-ticket {
    width: 105px;
    font-size: 14px;
  }

  .rail-grid,
  .route-grid,
  .deep-links,
  .voices,
  .related {
    grid-template-columns: 1fr;
  }

  .rail-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #4e535e;
  }

  .rail-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding-block: 64px;
  }

  .section-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .viewer-grid {
    gap: 48px;
  }

  .shot-tabs {
    grid-template-columns: 1fr;
  }

  .deep-link {
    grid-template-columns: 78px 1fr;
  }

  .final-row {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 50px;
  }

  .final-row > div:first-child { width: 100%; flex-basis: auto; }

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

  .sub-grid {
    min-height: auto;
    padding-block: 44px 58px;
  }

  .sub-grid img {
    max-width: 250px;
  }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 24px; }
  .download-info { padding: 15px 4px; }
  .download-info div { padding: 0 6px; }
  .download-info strong { font-size: 12px; }
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .download-button {
    width: 100%;
  }

  .app-stage {
    min-height: 460px;
  }

  .stage-block {
    left: 35px;
  }

  .device.primary {
    left: 15%;
    width: 195px;
  }

  .device.side {
    right: 0;
    width: 145px;
  }

  .stage-ticket {
    top: 42px;
    width: 86px;
    padding: 12px 8px;
  }

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

  .tool {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .tool:last-child {
    border-bottom: 0;
  }

  .deep-link {
    grid-template-columns: 1fr;
  }

  .deep-side {
    min-height: 70px;
    writing-mode: horizontal-tb;
  }

  .check-row {
    grid-template-columns: 50px 1fr;
  }

  .faq-page .faq-button {
    font-size: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
