:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-soft: #eef6ff;
  --ink: #14233a;
  --muted: #6f7f95;
  --line: rgba(73, 103, 137, 0.16);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --accent: #18b6a6;
  --accent-strong: #0a8e84;
  --blue: #4f7cff;
  --cyan: #28c7f2;
  --violet: #8f79ff;
  --lime: #86c957;
  --gold: #f2ad45;
  --red: #e05f6c;
  --shadow-soft: 0 18px 45px rgba(48, 72, 104, 0.14);
  --shadow-float: 0 26px 70px rgba(63, 92, 128, 0.18);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 182, 166, 0.68) rgba(24, 182, 166, 0.1);
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-track {
  background: rgba(24, 182, 166, 0.1);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #23c7b5, #5d8cff);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-strong);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(79, 124, 255, 0.16), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(40, 199, 242, 0.16), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(134, 201, 87, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fc 48%, #eef5ff 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button.stat {
  font: inherit;
  text-align: left;
}

.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  isolation: isolate;
}

.tech-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1200px;
}

.scene-grid {
  position: absolute;
  left: -16%;
  right: -16%;
  bottom: -28%;
  height: 72%;
  background-image:
    linear-gradient(rgba(73, 103, 137, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 103, 137, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(62deg) translate3d(0, 0, -80px);
  transform-origin: center bottom;
  opacity: 0.52;
  mask-image: linear-gradient(transparent 0%, #000 25%, #000 74%, transparent 100%);
  will-change: transform;
}

.scene-orbit {
  position: absolute;
  border: 1px solid rgba(79, 124, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 22px 50px rgba(57, 82, 112, 0.08);
  transform: rotateX(58deg) rotateZ(-24deg);
  will-change: transform;
}

.scene-orbit-one {
  width: 340px;
  height: 220px;
  right: 7%;
  top: 118px;
}

.scene-orbit-two {
  width: 270px;
  height: 180px;
  left: 5%;
  top: 400px;
  border-color: rgba(24, 182, 166, 0.16);
}

.scene-bot {
  position: absolute;
  right: 10%;
  top: 188px;
  width: 180px;
  height: 210px;
  opacity: 0.2;
  background:
    radial-gradient(circle at 38% 38%, #4f7cff 0 8px, transparent 9px),
    radial-gradient(circle at 62% 38%, #18b6a6 0 8px, transparent 9px),
    linear-gradient(135deg, rgba(79, 124, 255, 0.72), rgba(40, 199, 242, 0.3));
  clip-path: polygon(24% 8%, 76% 8%, 92% 42%, 76% 86%, 24% 86%, 8% 42%);
  filter: blur(0.1px);
  transform: rotateZ(-8deg);
  will-change: transform;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(73, 103, 137, 0.12);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
}

.topbar-inner,
.main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.65fr);
  gap: 26px;
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(79, 124, 255, 0.16);
}

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

.brand-kicker {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 3px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.source {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(138px, 176px));
  gap: 10px;
}

.search,
.select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(73, 103, 137, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.search {
  padding: 0 14px;
}

.search::placeholder {
  color: rgba(20, 35, 58, 0.38);
}

.select {
  padding: 0 10px;
}

.select.placeholder-select {
  color: rgba(20, 35, 58, 0.38);
}

.select option {
  color: var(--ink);
  background: #fff;
}

.search:focus,
.select:focus {
  border-color: rgba(24, 182, 166, 0.62);
  box-shadow: 0 0 0 3px rgba(24, 182, 166, 0.12);
}

.main {
  flex: 1 0 auto;
  padding: 30px 0 56px;
  perspective: 1200px;
}

.site-footer {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(73, 103, 137, 0.14);
  background:
    linear-gradient(180deg, rgba(244, 249, 253, 0.28), rgba(232, 241, 249, 0.78)),
    rgba(238, 244, 250, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -18%;
  right: -18%;
  bottom: -145px;
  height: 260px;
  background-image:
    linear-gradient(rgba(73, 103, 137, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 103, 137, 0.16) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.58;
  transform: rotateX(64deg);
  transform-origin: center bottom;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px 0 0;
  background:
    radial-gradient(circle at 22% 100%, rgba(79, 124, 255, 0.13), transparent 34%),
    radial-gradient(circle at 76% 92%, rgba(24, 182, 166, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(238, 245, 255, 0.22));
  pointer-events: none;
}

.site-footer-inner {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 15px 0 17px;
  color: rgba(20, 35, 58, 0.46);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.site-footer p + p {
  margin-top: 1px;
}

.site-footer-title {
  color: rgba(20, 35, 58, 0.62);
  font-size: 14px;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
  transform-style: preserve-3d;
}

.stat {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  contain: layout paint;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.95), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.82));
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transform: scale(1) translate3d(0, 0, 0);
  transform-style: preserve-3d;
  transition: transform 160ms ease;
  will-change: transform;
}

.stat:nth-child(1) {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(145deg, #ffffff, #eaf9ff 72%);
}

.stat:nth-child(2) {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(145deg, #ffffff, #eef4ff 72%);
}

.stat:nth-child(3) {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(145deg, #ffffff, #eefbe8 72%);
}

.stat:nth-child(4) {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(145deg, #ffffff, #fff4df 72%);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(73, 103, 137, 0.1);
  border-radius: 8px;
  pointer-events: none;
  transform: translateZ(22px);
}

.stat::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -9px;
  height: 18px;
  border-radius: 50%;
  background: rgba(44, 69, 96, 0.13);
  filter: blur(10px);
  transform: translateZ(-10px);
  pointer-events: none;
}

.stat:hover {
  transform: scale(1.025) translate3d(0, 0, 0);
}

.custom-need-entry {
  width: 100%;
  cursor: pointer;
}

.custom-need-entry:focus-visible {
  outline: 3px solid rgba(24, 182, 166, 0.28);
  outline-offset: 3px;
}

.custom-need-title {
  display: block;
  color: #14233a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.18;
}

.custom-need-desc {
  display: block;
  max-width: 188px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.custom-need-astro {
  position: absolute;
  right: 52px;
  bottom: -14px;
  z-index: 1;
  width: clamp(76px, 7vw, 104px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(38, 64, 95, 0.18));
  pointer-events: none;
  transform: translateZ(58px) rotate(-4deg);
}

.custom-need-action {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border: 1px solid rgba(24, 182, 166, 0.34);
  border-radius: 8px;
  background: rgba(238, 251, 248, 0.92);
  color: var(--accent-strong);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(48px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.custom-need-entry:hover .custom-need-action,
.custom-need-entry:focus-visible .custom-need-action {
  opacity: 1;
  transform: translateZ(48px) translateY(-2px);
}

.stat-copy,
.stat-art {
  position: relative;
  z-index: 1;
}

.stat-copy {
  transform: translateZ(32px);
}

.stat-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: #14233a;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.stat-art {
  width: 96px;
  height: 86px;
  object-fit: contain;
  transform: translateZ(52px);
}

.validation-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.66)),
    radial-gradient(circle at 88% 50%, rgba(24, 182, 166, 0.16), transparent 34%);
  box-shadow: 0 18px 45px rgba(48, 72, 104, 0.1);
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.validation-entry:hover {
  border-color: rgba(24, 182, 166, 0.34);
  transform: translate3d(0, -2px, 0);
}

.validation-entry p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.validation-entry-action,
.validation-nav {
  flex: 0 0 auto;
  border: 1px solid rgba(24, 182, 166, 0.34);
  border-radius: 8px;
  background: #eefbf8;
  color: var(--accent-strong);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.validation-topbar {
  grid-template-columns: minmax(360px, 1fr) auto;
}

.validation-workbench {
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(48, 72, 104, 0.12);
  overflow: hidden;
}

.workbench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(73, 103, 137, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 247, 255, 0.54)),
    radial-gradient(circle at 84% 50%, rgba(24, 182, 166, 0.16), transparent 32%);
}

.workbench-kicker {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-title {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.workbench-status {
  flex: 0 0 auto;
  border: 1px solid rgba(24, 182, 166, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  background: #eefbf8;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.workbench-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(220px, 0.82fr) minmax(280px, 1fr);
  gap: 14px;
  padding: 14px;
}

.trial-mask {
  position: absolute;
  inset: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px) saturate(1.25);
}

.trial-card {
  width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(48, 72, 104, 0.18);
  padding: 24px;
  text-align: center;
}

.trial-kicker {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trial-card h3 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.trial-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.trial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.trial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(24, 182, 166, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.trial-link-secondary {
  background: #eefbf8;
  color: var(--accent-strong);
}

.validation-page-workbench {
  margin-top: 0;
}

.upload-panel,
.config-panel,
.result-panel {
  border: 1px solid rgba(73, 103, 137, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.upload-panel {
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr);
  gap: 12px;
  padding: 12px;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-dropzone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px dashed rgba(24, 182, 166, 0.42);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f4fbff;
  cursor: pointer;
}

.upload-dropzone.dragging {
  border-color: var(--accent);
  background: #e9fbf8;
}

.upload-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.upload-title {
  color: var(--ink);
  font-weight: 800;
}

.upload-meta {
  color: var(--muted);
  font-size: 12px;
}

.preview-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 124, 255, 0.08), transparent 52%),
    linear-gradient(315deg, rgba(24, 182, 166, 0.12), transparent 52%),
    #edf4fb;
}

.validation-preview {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: none;
  object-fit: contain;
}

.preview-stage.has-image .validation-preview {
  display: block;
}

.preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(20, 35, 58, 0.38);
  font-weight: 800;
}

.preview-stage.has-image .preview-empty {
  display: none;
}

.detection-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.detection-box {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 24px rgba(24, 182, 166, 0.16);
}

.detection-tag {
  position: absolute;
  left: -2px;
  top: -30px;
  max-width: 180px;
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(20, 35, 58, 0.9);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.config-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.validation-select {
  background: #fff;
}

.validation-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 4px;
}

.run-validation,
.reset-validation {
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

.run-validation {
  border: 1px solid rgba(24, 182, 166, 0.42);
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-weight: 800;
}

.run-validation:disabled {
  opacity: 0.55;
  cursor: default;
}

.reset-validation {
  border: 1px solid rgba(73, 103, 137, 0.14);
  background: #fff;
  color: var(--muted);
}

.runtime-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.runtime-strip > div {
  border: 1px solid rgba(73, 103, 137, 0.12);
  border-radius: 8px;
  background: #f7fbff;
  padding: 12px;
}

.runtime-value {
  display: block;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.runtime-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.result-panel {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 14px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.result-head h3 {
  margin: 0;
  font-size: 17px;
}

.result-count {
  border-radius: 999px;
  padding: 4px 9px;
  background: #eefbf8;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.result-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 3px;
}

.result-empty {
  display: grid;
  place-items: center;
  min-height: 116px;
  color: rgba(20, 35, 58, 0.38);
  font-weight: 800;
}

.result-item {
  border: 1px solid rgba(73, 103, 137, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.result-item-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.result-item-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.json-result {
  margin-top: auto;
  border: 1px solid rgba(73, 103, 137, 0.12);
  border-radius: 8px;
  background: #f7fbff;
}

.json-result summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.json-result pre {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  border-top: 1px solid rgba(73, 103, 137, 0.1);
  padding: 12px;
  color: #31445f;
  font-size: 12px;
  line-height: 1.5;
}

.category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 20px;
}

.category-button {
  flex: 0 0 auto;
  min-width: 72px;
  height: 38px;
  border: 1px solid rgba(73, 103, 137, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(20, 35, 58, 0.72);
  cursor: pointer;
}

.category-button.active {
  border-color: rgba(24, 182, 166, 0.38);
  background: #e9fbf8;
  color: var(--accent-strong);
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(54, 80, 110, 0.1);
  transform: translate3d(0, 0, 0);
  transition: transform 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.card:hover {
  border-color: rgba(24, 182, 166, 0.34);
  transform: translate3d(0, -3px, 0);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dfe9f8;
}

.video-frame video,
.video-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: rgba(20, 35, 58, 0.54);
  background:
    linear-gradient(135deg, rgba(79, 124, 255, 0.12), transparent 48%),
    linear-gradient(315deg, rgba(24, 182, 166, 0.14), transparent 52%),
    #eef5ff;
  font-weight: 800;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 25, 42, 0.05), rgba(15, 25, 42, 0.86));
  opacity: 0;
  transition: opacity 140ms ease;
}

.card:hover .overlay,
.card:focus-within .overlay {
  opacity: 1;
}

.overlay-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.overlay-text {
  margin: 0;
  max-height: 96px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

.card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.category {
  color: var(--muted);
  font-size: 12px;
}

.desc {
  margin: 0;
  min-height: 44px;
  color: rgba(20, 35, 58, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(73, 103, 137, 0.12);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(20, 35, 58, 0.74);
  font-size: 12px;
}

.badge.high {
  border-color: rgba(134, 201, 87, 0.28);
  color: #4e8a2a;
}

.badge.mid {
  border-color: rgba(242, 173, 69, 0.32);
  color: #a46a1e;
}

.badge.low,
.badge.heavy {
  border-color: rgba(224, 95, 108, 0.26);
  color: #b04452;
}

.open-video {
  height: 36px;
  border: 1px solid rgba(24, 182, 166, 0.34);
  border-radius: 8px;
  background: #eefbf8;
  color: var(--accent-strong);
  cursor: pointer;
}

.open-video:disabled {
  border-color: rgba(73, 103, 137, 0.12);
  background: #f4f7fb;
  color: rgba(20, 35, 58, 0.34);
  cursor: default;
}

.empty {
  display: none;
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 35, 58, 0.42);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-float);
}

.modal-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(73, 103, 137, 0.12);
}

.modal-title {
  margin: 0;
  font-size: 18px;
}

.close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(73, 103, 137, 0.14);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.modal video {
  width: 100%;
  max-height: calc(100vh - 180px);
  display: block;
  background: #000;
}

.custom-need-panel {
  width: min(420px, 100%);
}

.custom-need-content {
  padding: 22px 22px 26px;
  text-align: center;
}

.custom-need-qr {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border: 1px solid rgba(73, 103, 137, 0.12);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.custom-need-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.notice-button,
.top-button {
  position: fixed;
  right: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(54, 80, 110, 0.16);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.notice-button {
  bottom: 20px;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
}

.notice-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.notice-button:hover,
.notice-button:focus-visible,
.top-button:hover,
.top-button:focus-visible {
  background: #fff;
}

.top-button {
  bottom: 78px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.notice-panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.notice-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 28px;
  color: rgba(20, 35, 58, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

.notice-content blockquote {
  margin: 0 0 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #eefbf8;
  padding: 12px 14px;
}

.notice-content p {
  margin: 0 0 14px;
}

.notice-content h3 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
}

.notice-content ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.notice-content li {
  margin: 8px 0;
}

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

  .stat,
  .card {
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .topbar-inner {
    grid-template-columns: 1fr;
  }

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

  .search {
    grid-column: 1 / -1;
  }

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

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

  .validation-topbar {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  .main,
  .site-footer-inner {
    width: min(100% - 24px, 1440px);
  }

  .brand {
    align-items: flex-start;
  }

  .brand-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  h1 {
    font-size: 23px;
  }

  .controls {
    display: none;
  }

  .stats,
  .grid {
    grid-template-columns: 1fr;
  }

  .workbench-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .validation-entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-dropzone {
    grid-template-columns: auto 1fr;
  }

  .upload-meta {
    grid-column: 2;
  }

  .stat {
    min-height: 116px;
  }

  .custom-need-desc {
    max-width: min(220px, calc(100% - 116px));
  }

  .custom-need-astro {
    right: 58px;
    width: 82px;
  }

  .card {
    min-height: 322px;
  }

  .notice-button {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 0 12px;
  }

  .top-button {
    right: 12px;
    bottom: 66px;
    width: 40px;
    height: 40px;
  }

  .site-footer-inner {
    padding: 14px 0 64px;
  }

  .notice-content {
    padding: 16px;
  }
}
