:root {
  --ps-bg: #f4f6f8;
  --ps-surface: #ffffff;
  --ps-text: #17202a;
  --ps-muted: #667085;
  --ps-border: #dfe3e8;
  --ps-accent: #16705a;
  --ps-accent-hover: #0f5948;
  --ps-danger: #b42318;
  --ps-warning: #9a6700;
}

.ps-page {
  margin: 0;
  min-height: 100vh;
  background: var(--ps-bg);
  color: var(--ps-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.ps-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.ps-page-header {
  border-bottom: 1px solid var(--ps-border);
  background: var(--ps-surface);
}

.ps-header-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ps-brand,
.ps-back-link {
  color: var(--ps-text);
  text-decoration: none;
}

.ps-brand {
  font-size: 18px;
  font-weight: 700;
}

.ps-back-link {
  font-size: 14px;
  color: var(--ps-muted);
}

.ps-page-main {
  padding: 52px 0 72px;
}

.ps-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.ps-intro h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ps-intro p,
.ps-description {
  color: var(--ps-muted);
  line-height: 1.75;
}

.ps-intro p {
  margin: 0;
  font-size: 16px;
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ps-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  background: var(--ps-surface);
}

.ps-cover-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8ecef;
}

.ps-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-gallery {
  display: grid;
  grid-auto-columns: minmax(112px, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 12px 0;
  scroll-snap-type: x proximity;
}

.ps-screenshot {
  appearance: none;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 6px;
  padding: 0;
  aspect-ratio: 16 / 9;
  background: #e8ecef;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.ps-screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.ps-screenshot:hover img {
  transform: scale(1.035);
}

.ps-screenshot:focus-visible,
.ps-video-trigger:focus-visible,
.ps-lightbox button:focus-visible {
  outline: 3px solid #7cc5b2;
  outline-offset: 2px;
}

.ps-card-body {
  padding: 20px;
}

.ps-title-row,
.ps-evidence-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ps-title-row h2,
.ps-evidence-title-row h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.ps-description {
  margin: 12px 0 0;
  font-size: 14px;
}

.ps-status {
  flex: none;
  border-radius: 4px;
  padding: 3px 7px;
  background: #edf1f3;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.ps-status-available {
  background: #e8f5ef;
  color: #126149;
}

.ps-status-testing {
  background: #fff5d6;
  color: var(--ps-warning);
}

.ps-status-paused,
.ps-status-archived {
  background: #f1f2f4;
  color: #5f6b7a;
}

.ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.ps-tags span {
  border: 1px solid var(--ps-border);
  border-radius: 4px;
  padding: 3px 7px;
  color: #475467;
  font-size: 12px;
}

.ps-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 16px 0 0;
  font-size: 13px;
}

.ps-facts div {
  display: flex;
  gap: 6px;
}

.ps-facts dt {
  color: var(--ps-muted);
}

.ps-facts dd {
  margin: 0;
}

.ps-reachable {
  color: var(--ps-accent);
}

.ps-unreachable {
  color: var(--ps-danger);
}

.ps-access-note {
  margin: 16px 0 0;
  border-left: 3px solid var(--ps-accent);
  padding: 8px 10px;
  background: #f2f8f6;
  color: #355b50;
  font-size: 13px;
  line-height: 1.6;
}

.ps-limitations {
  margin-top: 14px;
  color: var(--ps-muted);
  font-size: 13px;
}

.ps-limitations summary {
  cursor: pointer;
}

.ps-limitations ul {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.65;
}

.ps-video {
  margin-top: 16px;
}

.ps-video-trigger {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #cad1d8;
  border-radius: 6px;
  padding: 8px 12px;
  background: #202328;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.ps-video-trigger:hover {
  background: #0f1114;
}

.ps-video-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fb7299;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

.ps-video-frame {
  overflow: hidden;
  border: 1px solid var(--ps-border);
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  background: #101114;
}

.ps-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.ps-card-actions,
.ps-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-card-actions {
  margin-top: 20px;
}

.ps-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ps-border);
  border-radius: 6px;
  padding: 6px 11px;
  background: var(--ps-surface);
  color: var(--ps-text) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none !important;
}

.ps-link:hover {
  border-color: #b5bdc7;
  background: #f6f7f8;
}

.ps-primary-link {
  border-color: var(--ps-accent);
  background: var(--ps-accent);
  color: #ffffff !important;
}

.ps-primary-link:hover {
  border-color: var(--ps-accent-hover);
  background: var(--ps-accent-hover);
}

.ps-empty {
  border: 1px dashed #c9cfd6;
  border-radius: 8px;
  padding: 64px 20px;
  background: var(--ps-surface);
  text-align: center;
}

.ps-empty h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.ps-lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  height: min(820px, calc(100% - 32px));
  max-height: none;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
}

.ps-lightbox::backdrop {
  background: rgba(12, 15, 18, 0.88);
}

.ps-lightbox-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.ps-lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
}

.ps-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ps-lightbox figcaption {
  min-height: 42px;
  padding: 12px 64px 0;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
}

.ps-lightbox button {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  padding: 0;
  background: rgba(20, 23, 27, 0.72);
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 34px;
  line-height: 1;
}

.ps-lightbox button:hover {
  background: rgba(20, 23, 27, 0.94);
}

.ps-lightbox-close {
  top: 8px;
  right: 8px;
}

.ps-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.ps-lightbox-prev {
  left: 8px;
}

.ps-lightbox-next {
  right: 8px;
}

.ps-article-section {
  margin: 32px 0 12px;
}

.ps-article-heading {
  margin-bottom: 10px;
  color: var(--ps-text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
}

.ps-evidence-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin: 12px 0;
  border: 1px solid var(--ps-border);
  border-radius: 8px;
  padding: 18px;
  background: var(--ps-surface);
}

.ps-evidence-main p {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 14px;
  line-height: 1.65;
}

.ps-evidence-main .ps-meta {
  font-size: 12px;
}

.ps-evidence-actions {
  align-content: flex-start;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .ps-container {
    width: min(100% - 24px, 1120px);
  }

  .ps-page-main {
    padding: 36px 0 52px;
  }

  .ps-intro h1 {
    font-size: 28px;
  }

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

  .ps-evidence-card {
    grid-template-columns: 1fr;
  }

  .ps-evidence-actions {
    justify-content: flex-start;
  }

  .ps-lightbox {
    width: calc(100% - 16px);
    height: calc(100% - 24px);
  }

  .ps-lightbox button {
    width: 40px;
    height: 40px;
  }

  .ps-lightbox figcaption {
    padding-right: 48px;
    padding-left: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-screenshot img {
    transition: none;
  }
}
