/* App shell / board / play / phone chrome */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #08130d;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--yd-ink);
  font-family: var(--yd-font);
  font-size: var(--yd-fs-14);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(216, 255, 79, 0.1), transparent 60%),
    radial-gradient(900px 600px at 88% 8%, rgba(26, 107, 77, 0.28), transparent 62%),
    #08130d;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--yd-lime-strong);
  outline-offset: 2px;
}

.yd-num {
  font-family: var(--yd-font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.yd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- App header ---------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 0 28px;
  color: #f2f6ef;
  background: rgba(8, 19, 13, 0.86);
  border-bottom: 1px solid rgba(216, 255, 79, 0.12);
  backdrop-filter: blur(18px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.app-brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 5px, transparent 5px 10px),
    linear-gradient(145deg, #1a6b4d, #0b3d2e 70%);
  border: 1px solid rgba(216, 255, 79, 0.35);
  box-shadow: inset 0 0 18px rgba(216, 255, 79, 0.12);
}

.app-brand__mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px;
}

.app-brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.48);
}

.app-brand__ball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  z-index: 1;
}

.app-brand__name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.app-brand__sub {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(216, 255, 79, 0.72);
  text-transform: uppercase;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--yd-r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-nav__btn {
  min-width: 92px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--yd-r-pill);
  color: rgba(242, 246, 239, 0.62);
  font-size: 13px;
  font-weight: 600;
  transition: color var(--yd-dur) var(--yd-ease), background var(--yd-dur) var(--yd-ease);
}

.app-nav__btn:hover {
  color: #fff;
}

.app-nav__btn.is-active {
  color: #0b2318;
  background: var(--yd-lime);
}

.app-header__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--yd-r-pill);
  font-size: 11px;
  font-weight: 600;
  color: rgba(242, 246, 239, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.app-badge i {
  color: var(--yd-lime);
  font-size: 10px;
}

.app-header__hint {
  font-size: 11px;
  color: rgba(242, 246, 239, 0.45);
}

/* ---------- Board ---------- */
.board-view {
  flex: 1;
  padding: 0 28px 56px;
}

.board-hero {
  position: relative;
  margin: 26px auto 22px;
  padding: 34px 36px 32px;
  max-width: 1320px;
  border-radius: 28px;
  overflow: hidden;
  color: #f2f6ef;
  background:
    radial-gradient(700px 280px at 88% -20%, rgba(216, 255, 79, 0.24), transparent 60%),
    linear-gradient(135deg, #0f4a36 0%, #0a2a1e 55%, #07150e 100%);
  border: 1px solid rgba(216, 255, 79, 0.18);
  box-shadow: var(--yd-shadow-lg);
}

.board-hero .board-hero__pitch {
  position: absolute;
  right: -70px;
  top: 50%;
  width: 460px;
  height: 300px;
  transform: translateY(-50%) rotate(-9deg);
  opacity: 0.6;
  pointer-events: none;
}

.board-hero__pitch .art-pitch__field {
  border-radius: 10px;
}

.board-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--yd-lime);
  text-transform: uppercase;
}

.board-hero__kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--yd-lime);
}

.board-hero h1 {
  margin-top: 12px;
  max-width: 660px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.board-hero h1 em {
  font-style: normal;
  color: var(--yd-lime);
}

.board-hero p {
  margin-top: 12px;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(242, 246, 239, 0.64);
}

.board-stats {
  display: flex;
  gap: 28px;
  margin-top: 22px;
}

.board-stat b {
  display: block;
  font-family: var(--yd-font-num);
  font-size: 26px;
  line-height: 1;
  color: var(--yd-lime);
}

.board-stat span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: rgba(242, 246, 239, 0.5);
}

.board-toolbar {
  position: sticky;
  top: 68px;
  z-index: 40;
  max-width: 1320px;
  margin: 0 auto 22px;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #08130d 62%, rgba(8, 19, 13, 0));
}

.board-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}

.board-filter {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--yd-r-pill);
  color: rgba(242, 246, 239, 0.62);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transition: all var(--yd-dur) var(--yd-ease);
}

.board-filter:hover {
  color: #fff;
  border-color: rgba(216, 255, 79, 0.35);
}

.board-filter.is-active {
  color: #0b2318;
  background: var(--yd-lime);
  border-color: var(--yd-lime);
}

.board-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--yd-r-pill);
  font-size: 12px;
  font-weight: 600;
  color: rgba(242, 246, 239, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.board-toggle i {
  color: var(--yd-lime);
}

.board-toggle.is-active {
  color: #0b2318;
  background: var(--yd-lime);
  border-color: var(--yd-lime);
}

.board-toggle.is-active i {
  color: #0b2318;
}

.board-section {
  max-width: 1320px;
  margin: 0 auto 6px;
  padding-top: 18px;
}

.board-section__head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.board-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2f6ef;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.board-section__title::before {
  content: "";
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: var(--yd-lime);
}

.board-section__desc {
  font-size: 11px;
  color: rgba(242, 246, 239, 0.38);
}

.board-section__count {
  margin-left: auto;
  font-family: var(--yd-font-num);
  font-size: 12px;
  color: rgba(216, 255, 79, 0.55);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.board-card {
  position: relative;
  padding: 12px 12px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  transition: transform var(--yd-dur) var(--yd-ease), border-color var(--yd-dur) var(--yd-ease),
    background var(--yd-dur) var(--yd-ease);
  cursor: pointer;
}

.board-card .phone {
  zoom: 0.72;
}

.board-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(216, 255, 79, 0.32);
}

.board-card__frame {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
  overflow: hidden;
}

.board-card__frame::after {
  content: "点击进入交互";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%) translateY(8px);
  padding: 5px 12px;
  border-radius: var(--yd-r-pill);
  background: rgba(6, 16, 11, 0.82);
  color: var(--yd-lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: all var(--yd-dur) var(--yd-ease);
  pointer-events: none;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.board-card:hover .board-card__frame::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.board-card__meta {
  padding: 10px 4px 2px;
}

.board-card__name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #eef3ea;
  font-size: 13px;
  font-weight: 700;
}

.board-card__id {
  font-family: var(--yd-font-num);
  font-size: 10px;
  color: rgba(216, 255, 79, 0.5);
  letter-spacing: 0.08em;
}

.board-card__desc {
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(242, 246, 239, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-pri {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.board-pri--p0 {
  color: #0b2318;
  background: var(--yd-lime);
}

.board-pri--p1 {
  color: var(--yd-lime);
  background: rgba(216, 255, 79, 0.12);
  border: 1px solid rgba(216, 255, 79, 0.28);
}

.board-empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(242, 246, 239, 0.4);
  font-size: 13px;
}

/* ---------- Play ---------- */
/* 移动端专属：固定操作条、页面面板与遮罩 */
.play-mobilebar,
.play-pages-backdrop,
.play-pages-foot {
  display: none;
}

.play-view {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 68px);
}

.play-sidebar {
  width: 232px;
  flex: 0 0 232px;
  padding: 18px 12px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 16, 11, 0.42);
  overflow-y: auto;
  max-height: calc(100vh - 68px);
  position: sticky;
  top: 68px;
}

.play-sidebar__search {
  position: relative;
  margin: 0 4px 14px;
}

.play-sidebar__search i {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(242, 246, 239, 0.35);
}

.play-sidebar__search input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: #eef3ea;
  font-size: 12px;
  outline: none;
}

.play-sidebar__search input::placeholder {
  color: rgba(242, 246, 239, 0.3);
}

.play-group {
  margin-bottom: 14px;
}

.play-group__label {
  padding: 0 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(216, 255, 79, 0.45);
  text-transform: uppercase;
}

.play-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  color: rgba(242, 246, 239, 0.56);
  font-size: 12px;
  text-align: left;
  transition: all var(--yd-dur) var(--yd-ease);
}

.play-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.play-link.is-active {
  color: #0b2318;
  background: var(--yd-lime);
  font-weight: 700;
}

.play-link__id {
  margin-left: auto;
  font-family: var(--yd-font-num);
  font-size: 9px;
  opacity: 0.5;
}

.play-stage {
  flex: 1;
  min-width: 0;
  padding: 26px 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.play-toolbar {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.play-toolbar__title {
  color: #f2f6ef;
  font-size: 14px;
  font-weight: 700;
}

.play-toolbar__ref {
  font-size: 10px;
  color: rgba(242, 246, 239, 0.35);
}

.play-toolbar__spacer {
  flex: 1;
}

.play-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  color: rgba(242, 246, 239, 0.66);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.play-tool:hover {
  color: #fff;
  border-color: rgba(216, 255, 79, 0.35);
}

.play-tool.is-active {
  color: #0b2318;
  background: var(--yd-lime);
}

.play-stage__device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.play-arrow {
  width: 38px;
  height: 38px;
  margin-top: 330px;
  border-radius: 50%;
  color: rgba(242, 246, 239, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--yd-dur) var(--yd-ease);
}

.play-arrow:hover {
  color: #0b2318;
  background: var(--yd-lime);
  border-color: var(--yd-lime);
}

.play-caption {
  margin-top: 16px;
  text-align: center;
  color: rgba(242, 246, 239, 0.42);
  font-size: 11px;
}

.play-caption b {
  color: rgba(242, 246, 239, 0.7);
  font-weight: 600;
}

/* ---------- Phone chrome ---------- */
.phone {
  position: relative;
  width: var(--yd-phone-w);
  height: var(--yd-phone-h);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 42px;
  background: var(--yd-paper);
  border: 7px solid #111814;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 116px;
  height: 4px;
  margin-left: -58px;
  border-radius: 3px;
  background: rgba(12, 21, 17, 0.82);
  z-index: 60;
  pointer-events: none;
}

.phone__status {
  position: relative;
  z-index: 30;
  height: var(--yd-status-h);
  flex: 0 0 var(--yd-status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  color: var(--yd-ink);
  font-size: 12px;
  font-weight: 700;
}

.phone__status-time {
  font-family: var(--yd-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.phone__status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.9;
}

/* Mini-program navigation row: left action, centered title, fixed system capsule */
.shell-nav {
  position: relative;
  z-index: 34;
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--yd-ink);
  background: var(--yd-paper);
  border-bottom: 1px solid rgba(12, 21, 17, 0.05);
}

.shell-nav--dark {
  color: #f4f9f1;
  background: var(--yd-pitch-900);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.shell-nav__left {
  width: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
}

.shell-nav__btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  font-size: 16px;
}

.shell-nav__btn:hover {
  background: rgba(12, 21, 17, 0.06);
}

.shell-nav--dark .shell-nav__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.shell-nav__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 190px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-nav__capsule {
  margin-left: auto;
  width: 86px;
  height: 29px;
  display: flex;
  align-items: stretch;
  flex: 0 0 86px;
  border-radius: var(--yd-r-pill);
  border: 1px solid rgba(12, 21, 17, 0.12);
  background: rgba(255, 255, 255, 0.6);
  color: var(--yd-ink);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.shell-nav--dark .shell-nav__capsule {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(6, 16, 11, 0.34);
  color: #fff;
}

.shell-nav__dots {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 100%;
}

.shell-nav__dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.72;
}

.shell-nav__divider {
  width: 1px;
  height: 14px;
  align-self: center;
  background: currentColor;
  opacity: 0.16;
}

.shell-nav__exit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.shell-nav__exit span {
  width: 13px;
  height: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.8;
}

.shell-nav__exit span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.phone--status-light .phone__status {
  color: #f7fff0;
}

.phone--status-dark .phone__status {
  color: var(--yd-ink);
}

.phone__status-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.phone__capsule {
  position: absolute;
  top: 11px;
  right: 12px;
  z-index: 50;
  width: 84px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-radius: var(--yd-r-pill);
  border: 1px solid rgba(12, 21, 17, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--yd-ink);
  backdrop-filter: blur(10px);
}

.phone--status-light .phone__capsule {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(6, 16, 11, 0.34);
  color: #fff;
}

.phone__capsule-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.phone__capsule-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.phone__capsule-target {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.phone__capsule-target::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.phone__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.phone__scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.phone__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.phone__overlay {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.phone__overlay:empty {
  display: none;
}

.phone__overlay .sheet-backdrop,
.phone__overlay .sheet {
  pointer-events: auto;
}

.phone--board .phone__scroll {
  overflow: hidden;
}

.phone--board .phone__overlay {
  display: none;
}

.phone--long {
  height: auto;
  min-height: var(--yd-phone-h);
}

.phone--long .phone__viewport {
  flex: none;
}

.phone--long .phone__scroll {
  overflow: visible;
}

.phone--long::after {
  display: none;
}

.phone__tabbar {
  position: relative;
  z-index: 25;
  flex: 0 0 var(--yd-tabbar-h);
  display: flex;
  align-items: stretch;
  padding: 0 6px 4px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(12, 21, 17, 0.07);
  backdrop-filter: blur(16px);
}

.tabbar__item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8b978f;
  font-size: 9.5px;
  font-weight: 600;
  transition: color var(--yd-dur) var(--yd-ease);
}

.tabbar__item i {
  font-size: 17px;
  line-height: 1;
  transition: transform var(--yd-dur) var(--yd-ease);
}

.tabbar__item.is-active {
  color: var(--yd-pitch-900);
}

.tabbar__item.is-active i {
  transform: translateY(-1px);
}

.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 5px;
  width: 28px;
  height: 22px;
  border-radius: 8px;
  background: var(--yd-lime);
  z-index: -1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  .board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board-card .phone {
    zoom: 0.68;
  }
}

@media (max-width: 1023px) {
  .app-header {
    padding: 0 18px;
  }

  .app-brand {
    min-width: 0;
  }

  .app-brand__sub,
  .app-header__hint {
    display: none;
  }

  .board-view {
    padding: 0 18px 44px;
  }

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

  .board-hero {
    padding: 28px 24px;
  }

  .board-hero__pitch {
    opacity: 0.3;
  }

  .play-sidebar {
    width: 190px;
    flex-basis: 190px;
  }
}

@media (max-width: 760px) {
  .app-header {
    gap: 8px;
    min-height: 48px;
    padding: 0 10px;
  }

  .app-brand {
    min-width: 0;
    gap: 6px;
  }

  .app-brand__mark,
  .app-brand__sub,
  .app-header__meta {
    display: none;
  }

  .app-brand__name {
    font-size: 12px;
    white-space: nowrap;
  }

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

  .app-nav__btn {
    min-width: auto;
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .board-view {
    padding: 0 12px 36px;
  }

  .board-hero {
    margin-top: 14px;
    padding: 22px 18px;
  }

  .board-hero p {
    font-size: 12px;
  }

  .board-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .board-stat b {
    font-size: 22px;
  }

  .board-toolbar {
    top: 48px;
    flex-direction: column;
    align-items: stretch;
  }

  .board-filters {
    width: 100%;
  }

  .board-toggle {
    align-self: flex-end;
  }

  .board-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 交互模式：预览铺满全屏，顶部一条固定操作条 */
  body[data-view="play"] .app-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-view="play"] .app-header {
    display: none;
  }

  body[data-view="play"] .play-view {
    flex: 1;
    height: 100%;
    min-height: 0;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-view="play"] .play-sidebar,
  body[data-view="play"] .play-toolbar,
  body[data-view="play"] .play-caption,
  body[data-view="play"] .play-arrow {
    display: none;
  }

  body[data-view="play"] .play-stage {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  body[data-view="play"] .play-stage__device {
    flex: 1;
    height: 100%;
    min-height: 0;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    gap: 0;
  }

  body[data-view="play"] .phone {
    flex: 1 1 auto;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: none;
    margin: 0 auto;
    zoom: 1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-view="play"] .phone::after {
    display: none;
  }

  /* 固定操作条：高度与手机状态栏一致，正好替代状态栏 */
  body[data-view="play"] .play-mobilebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 44px;
    padding: 0 10px;
    background: #08130d;
    border-bottom: 1px solid rgba(216, 255, 79, 0.12);
  }

  .pmb-pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border-radius: var(--yd-r-pill);
    background: rgba(255, 255, 255, 0.07);
    color: #f2f6ef;
    font-size: 11px;
    font-weight: 700;
  }

  .pmb-pages span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pmb-pages i {
    flex: 0 0 auto;
    font-size: 9px;
    color: rgba(242, 246, 239, 0.5);
  }

  .pmb-pages i:first-child {
    color: var(--yd-lime);
    font-size: 10px;
  }

  .pmb-modes {
    flex: 0 0 auto;
    display: flex;
    gap: 2px;
    padding: 2px;
    border-radius: var(--yd-r-pill);
    background: rgba(255, 255, 255, 0.07);
  }

  .pmb-modes button {
    height: 26px;
    padding: 0 10px;
    border-radius: var(--yd-r-pill);
    color: rgba(242, 246, 239, 0.62);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
  }

  .pmb-modes button.is-active {
    background: var(--yd-lime);
    color: #0b2318;
  }

  /* 页面下拉面板 */
  body[data-view="play"] .play-view.is-pages-open .play-pages-backdrop {
    display: block;
    position: fixed;
    inset: 44px 0 0;
    z-index: 94;
    background: rgba(4, 10, 7, 0.5);
    backdrop-filter: blur(2px);
  }

  body[data-view="play"] .play-view.is-pages-open .play-sidebar {
    display: flex;
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 96;
    width: 100%;
    max-width: none;
    max-height: min(72vh, 620px);
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    padding: 10px 12px 14px;
    overflow-y: auto;
    background: #08130d;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 255, 79, 0.16);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  body[data-view="play"] .play-view.is-pages-open .play-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 9px;
    font-size: 12px;
  }

  body[data-view="play"] .play-view.is-pages-open .play-link__id {
    display: inline;
    font-family: var(--yd-font-num);
    font-size: 8px;
    color: rgba(242, 246, 239, 0.35);
  }

  body[data-view="play"] .play-pages-foot {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  body[data-view="play"] .play-pages-foot .play-tool {
    flex: 1;
    justify-content: center;
    min-height: 32px;
    font-size: 10px;
  }

  .board-card .phone {
    zoom: 0.86;
  }
}

@media (max-width: 400px) {
  .app-brand__mark {
    display: none;
  }

  .phone {
    zoom: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
