:root {
  color-scheme: light;
  --res-bg: #f4f6fb;
  --res-surface: #ffffff;
  --res-surface-soft: #f7f9fc;
  --res-ink: #151b27;
  --res-muted: #657083;
  --res-faint: #8b94a5;
  --res-line: #e0e6ef;
  --res-line-strong: #cbd4e0;
  --res-accent: #2563eb;
  --res-accent-ink: #ffffff;
  --res-soft-blue: #e9efff;
  --res-green: #16834b;
  --res-green-soft: #e8f7ef;
  --res-amber: #b35f00;
  --res-amber-soft: #fff3df;
  --res-red: #c43131;
  --res-red-soft: #fff0f0;
  --res-violet: #7551d7;
  --res-violet-soft: #f0ebff;
  --res-shadow: 0 20px 60px rgb(28 44 74 / 10%);
  --res-shadow-soft: 0 8px 24px rgb(28 44 74 / 7%);
  --res-font: "Geist", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --res-bg: #0f1117;
  --res-surface: #171a22;
  --res-surface-soft: #1c202a;
  --res-ink: #f1f4f9;
  --res-muted: #a7afbd;
  --res-faint: #7f8999;
  --res-line: #2a303c;
  --res-line-strong: #3a4352;
  --res-accent: #6e9cff;
  --res-accent-ink: #071023;
  --res-soft-blue: #1b2947;
  --res-green: #71d9a1;
  --res-green-soft: #163426;
  --res-amber: #f3bd6a;
  --res-amber-soft: #3c2b16;
  --res-red: #ff8b8b;
  --res-red-soft: #3e2022;
  --res-violet: #b69aff;
  --res-violet-soft: #2f2548;
  --res-shadow: 0 20px 60px rgb(0 0 0 / 25%);
  --res-shadow-soft: 0 8px 24px rgb(0 0 0 / 18%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--res-ink);
  background:
    radial-gradient(circle at 12% -8%, rgb(78 128 255 / 15%), transparent 34rem),
    radial-gradient(circle at 88% 2%, rgb(117 81 215 / 10%), transparent 28rem),
    var(--res-bg);
  font-family: var(--res-font);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #111827;
  transform: translateY(-150%);
}

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

.resource-ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.resource-ambient-one {
  top: 8rem;
  left: -15rem;
  background: #5b8cff;
}

.resource-ambient-two {
  right: -16rem;
  bottom: 12rem;
  background: #a47bff;
}

.resource-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  width: min(1280px, calc(100% - 40px));
  min-height: 72px;
  margin: 14px auto 0;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--res-line) 82%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--res-surface) 88%, transparent);
  box-shadow: var(--res-shadow-soft);
  backdrop-filter: blur(20px) saturate(1.25);
}

.resource-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.resource-brand img {
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--res-line);
  border-radius: 50%;
  object-fit: cover;
}

.resource-brand > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.resource-brand strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-brand small {
  color: var(--res-faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.resource-header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.resource-nav-link,
.resource-theme,
.resource-primary-button,
.resource-secondary-button,
.resource-danger-button,
.resource-empty button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.resource-nav-link {
  padding: 0 12px;
  color: var(--res-muted);
  font-size: 12px;
  font-weight: 600;
}

.resource-nav-link:hover {
  color: var(--res-ink);
  background: var(--res-surface-soft);
}

.resource-theme {
  width: 40px;
  padding: 0;
  border-color: var(--res-line);
  color: var(--res-muted);
  background: var(--res-surface);
}

.resource-theme svg {
  width: 17px;
  height: 17px;
}

.resource-theme .theme-moon,
html[data-theme="dark"] .resource-theme .theme-sun {
  display: none;
}

html[data-theme="dark"] .resource-theme .theme-moon {
  display: block;
}

.resource-primary-button {
  padding: 0 16px;
  border-color: transparent;
  color: var(--res-accent-ink);
  background: var(--res-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--res-accent) 24%, transparent);
  font-size: 13px;
  font-weight: 680;
}

.resource-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--res-accent) 34%, transparent);
}

.resource-primary-button svg {
  width: 17px;
  height: 17px;
}

.resource-secondary-button {
  padding: 0 15px;
  border-color: var(--res-line);
  color: var(--res-ink);
  background: var(--res-surface);
  font-size: 13px;
  font-weight: 650;
}

.resource-secondary-button:hover {
  border-color: var(--res-line-strong);
  background: var(--res-surface-soft);
}

.resource-danger-button {
  padding: 0 15px;
  border-color: color-mix(in srgb, var(--res-red) 30%, var(--res-line));
  color: var(--res-red);
  background: var(--res-red-soft);
  font-size: 13px;
  font-weight: 650;
}

.resource-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 48px;
}

.resource-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  align-items: stretch;
  gap: 28px;
}

.resource-entrypoints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.resource-entry {
  display: grid;
  min-width: 0;
  padding: 22px 24px;
  gap: 8px;
  border: 1px solid var(--res-line);
  border-radius: 20px;
  background: var(--res-surface);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.resource-entry-transfer {
  background: var(--res-soft-blue);
}

.resource-entry:hover {
  border-color: var(--res-accent);
}

.resource-entry:focus-visible {
  outline: 3px solid var(--res-accent);
  outline-offset: 4px;
}

.resource-entry-label {
  color: var(--res-muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.resource-entry > strong {
  color: var(--res-ink);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.resource-entry-description {
  color: var(--res-muted);
  font-size: 13px;
  line-height: 1.6;
}

.resource-entry-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--res-accent);
  font-size: 12px;
  font-weight: 650;
}

.resource-entry-new-tab {
  color: var(--res-muted);
  font-size: 10px;
  font-weight: 450;
}

#resource-browser {
  scroll-margin-top: 110px;
}

.resource-software {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--res-line);
  border-radius: 20px;
  background: var(--res-surface);
}

.resource-software h2 {
  margin: 7px 0 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.software-intro,
.software-footnote {
  color: var(--res-muted);
  font-size: 12px;
  line-height: 1.7;
}

.software-intro {
  margin: 14px 0 18px;
}

.software-footnote {
  margin: 16px 0 0;
  font-size: 11px;
}

.software-platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.software-platform {
  display: flex;
  min-width: 0;
  padding: 18px;
  flex-direction: column;
  border: 1px solid var(--res-line);
  border-radius: 16px;
  background: var(--res-surface-soft);
}

.software-version {
  color: var(--res-muted);
  font-size: 11px;
}

.software-platform h3 {
  margin: 8px 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.software-platform > p {
  margin: 0 0 18px;
  color: var(--res-muted);
  font-size: 12px;
  line-height: 1.7;
}

.software-platform-actions {
  display: grid;
  margin-top: auto;
  gap: 8px;
}

.software-platform-actions a {
  display: flex;
  min-height: 40px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--res-line);
  border-radius: 10px;
  color: var(--res-accent);
  background: var(--res-surface);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.software-platform-actions a:hover {
  border-color: var(--res-accent);
  background: var(--res-soft-blue);
}

.software-platform-actions a:focus-visible {
  outline: 3px solid var(--res-accent);
  outline-offset: 3px;
}

.software-source-link {
  font-size: 12px;
}

.source-command {
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--res-line);
  border-radius: 10px;
  background: var(--res-surface-soft);
}

.resource-hero-copy {
  display: flex;
  min-height: 360px;
  padding: clamp(28px, 5vw, 60px);
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--res-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--res-surface) 96%, transparent), color-mix(in srgb, var(--res-soft-blue) 60%, var(--res-surface))),
    var(--res-surface);
  box-shadow: var(--res-shadow);
}

.resource-kicker {
  margin: 0;
  color: var(--res-accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.resource-hero h1 {
  max-width: 780px;
  margin: 15px 0 0;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 610;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.resource-hero h1 span {
  color: color-mix(in srgb, var(--res-accent) 82%, var(--res-ink));
}

.resource-hero-copy > p:not(.resource-kicker) {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--res-muted);
  font-size: 15px;
  line-height: 1.75;
}

.resource-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.resource-promises span {
  padding: 7px 10px;
  border: 1px solid var(--res-line);
  border-radius: 999px;
  color: var(--res-muted);
  background: color-mix(in srgb, var(--res-surface) 76%, transparent);
  font-size: 11px;
  font-weight: 600;
}

.resource-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.resource-stats article {
  display: flex;
  min-height: 104px;
  padding: 20px 22px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--res-line);
  border-radius: 22px;
  background: var(--res-surface);
  box-shadow: var(--res-shadow-soft);
}

.resource-stats article span {
  color: var(--res-faint);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.resource-stats article strong {
  margin-top: 5px;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 620;
  letter-spacing: -0.05em;
}

.resource-stats article small {
  margin-top: 2px;
  color: var(--res-muted);
  font-size: 10px;
}

.resource-browser {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--res-line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--res-surface) 94%, transparent);
  box-shadow: var(--res-shadow-soft);
}

.resource-browser-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.resource-browser-head h2,
.resource-guide h2 {
  margin: 5px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 610;
  letter-spacing: -0.05em;
}

.resource-search {
  display: flex;
  width: min(380px, 42vw);
  min-height: 44px;
  padding: 0 13px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--res-line);
  border-radius: 12px;
  background: var(--res-surface-soft);
}

.resource-search:focus-within {
  border-color: color-mix(in srgb, var(--res-accent) 52%, var(--res-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--res-accent) 12%, transparent);
}

.resource-search svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--res-faint);
}

.resource-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--res-ink);
  background: transparent;
  font-size: 14px;
}

.resource-search input::placeholder {
  color: var(--res-faint);
}

.resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--res-line);
}

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

.resource-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--res-line);
  border-radius: 999px;
  color: var(--res-muted);
  background: var(--res-surface);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.resource-filters button:hover,
.resource-filters button.is-active {
  border-color: color-mix(in srgb, var(--res-accent) 42%, var(--res-line));
  color: var(--res-accent);
  background: var(--res-soft-blue);
}

.resource-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--res-faint);
  font-size: 11px;
}

.resource-sort select {
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--res-line);
  border-radius: 9px;
  outline: 0;
  color: var(--res-ink);
  background: var(--res-surface);
}

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

.resource-card {
  display: flex;
  min-width: 0;
  min-height: 240px;
  padding: 16px;
  flex-direction: column;
  border: 1px solid var(--res-line);
  border-radius: 18px;
  background: var(--res-surface);
  box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.resource-card:hover {
  border-color: color-mix(in srgb, var(--res-accent) 38%, var(--res-line));
  box-shadow: var(--res-shadow-soft);
  transform: translateY(-3px);
}

.resource-card-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--res-line);
  border-radius: 13px;
  background:
    linear-gradient(145deg, var(--res-surface-soft), color-mix(in srgb, var(--res-soft-blue) 58%, var(--res-surface-soft)));
  cursor: pointer;
}

.resource-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-kind {
  display: grid;
  min-width: 62px;
  height: 62px;
  padding: 0 12px;
  place-items: center;
  border-radius: 15px;
  color: var(--res-accent);
  background: color-mix(in srgb, var(--res-accent) 10%, var(--res-surface));
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.resource-kind[data-kind="software"] {
  color: var(--res-violet);
  background: var(--res-violet-soft);
}

.resource-kind[data-kind="archive"] {
  color: var(--res-amber);
  background: var(--res-amber-soft);
}

.resource-kind[data-kind="document"] {
  color: var(--res-green);
  background: var(--res-green-soft);
}

.resource-kind[data-kind="media"],
.resource-kind[data-kind="video"],
.resource-kind[data-kind="audio"] {
  color: var(--res-red);
  background: var(--res-red-soft);
}

.resource-kind[data-kind="pdf"] {
  color: var(--res-red);
  background: color-mix(in srgb, var(--res-red) 12%, var(--res-surface));
}

.resource-kind[data-kind="text"] {
  color: var(--res-green);
  background: var(--res-green-soft);
}

.resource-kind[data-kind="file"] {
  color: var(--res-muted);
  background: var(--res-surface-soft);
}

.resource-card-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  padding-top: 13px;
  flex-direction: column;
}

.resource-card-copy h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-card-copy p {
  display: -webkit-box;
  min-height: 36px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--res-muted);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--res-faint);
  font-size: 10px;
}

.resource-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin-top: 12px;
}

.resource-card-actions a,
.resource-card-actions button {
  display: inline-flex;
  min-height: 36px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--res-line);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
}

.resource-card-actions a {
  border-color: transparent;
  color: var(--res-accent-ink);
  background: var(--res-accent);
}

.resource-card-actions button {
  color: var(--res-muted);
  background: var(--res-surface-soft);
}

.resource-card-actions a:hover,
.resource-card-actions button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.resource-empty {
  display: grid;
  min-height: 290px;
  padding: 38px 20px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.resource-empty-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--res-line);
  border-radius: 18px;
  color: var(--res-accent);
  background: var(--res-soft-blue);
  font-size: 28px;
}

.resource-empty h3 {
  margin: 17px 0 0;
  font-size: 20px;
}

.resource-empty p {
  max-width: 430px;
  margin: 7px 0 0;
  color: var(--res-muted);
  font-size: 12px;
  line-height: 1.65;
}

.resource-empty button {
  margin-top: 18px;
  padding: 0 16px;
  border-color: transparent;
  color: var(--res-accent-ink);
  background: var(--res-accent);
  font-size: 12px;
  font-weight: 680;
}

.resource-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.45fr);
  gap: 30px;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--res-line);
  border-radius: 26px;
  background: var(--res-surface);
  box-shadow: var(--res-shadow-soft);
}

.resource-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-guide li {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--res-line);
  border-radius: 15px;
  background: var(--res-surface-soft);
}

.resource-guide li span {
  color: var(--res-accent);
  font-size: 9px;
  font-weight: 760;
}

.resource-guide li strong {
  display: block;
  margin-top: 9px;
  font-size: 13px;
}

.resource-guide li p {
  margin: 5px 0 0;
  color: var(--res-muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.resource-footer {
  display: flex;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--res-faint);
  font-size: 10px;
}

.resource-footer span:first-child {
  color: var(--res-muted);
  font-weight: 700;
}

.resource-footer a {
  text-decoration: none;
}

.resource-footer a:hover {
  color: var(--res-accent);
}

.resource-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: var(--res-ink);
  background: transparent;
}

.resource-dialog::backdrop {
  background: rgb(13 18 29 / 54%);
  backdrop-filter: blur(5px);
}

.resource-dialog-card {
  position: relative;
  display: grid;
  gap: 15px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--res-line);
  border-radius: 24px;
  background: var(--res-surface);
  box-shadow: var(--res-shadow);
}

.resource-dialog-card h2 {
  margin: -3px 0 0;
  padding-right: 34px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 610;
  letter-spacing: -0.05em;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--res-line);
  border-radius: 50%;
  color: var(--res-muted);
  background: var(--res-surface);
  cursor: pointer;
  font-size: 20px;
}

.dialog-close:hover {
  color: var(--res-ink);
  background: var(--res-surface-soft);
}

.dialog-intro {
  margin: -5px 0 0;
  color: var(--res-muted);
  font-size: 12px;
  line-height: 1.65;
}

.dialog-intro small {
  display: block;
  margin-top: 5px;
  color: var(--res-faint);
  font-size: 10px;
  line-height: 1.55;
}

.resource-field {
  display: grid;
  gap: 6px;
  color: var(--res-muted);
  font-size: 11px;
  font-weight: 650;
}

.resource-field small {
  color: var(--res-faint);
  font-size: 9px;
  font-weight: 500;
}

.resource-field input,
.resource-field select,
.resource-field textarea {
  width: 100%;
  border: 1px solid var(--res-line);
  border-radius: 11px;
  outline: 0;
  color: var(--res-ink);
  background: var(--res-surface-soft);
  font-size: 13px;
  font-weight: 450;
}

.resource-field input,
.resource-field select {
  height: 43px;
  padding: 0 12px;
}

.resource-field textarea {
  padding: 11px 12px;
  resize: vertical;
}

.resource-field input:focus,
.resource-field select:focus,
.resource-field textarea:focus {
  border-color: color-mix(in srgb, var(--res-accent) 52%, var(--res-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--res-accent) 10%, transparent);
}

.resource-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(145px, 0.65fr);
  gap: 11px;
}

.resource-dropzone {
  display: grid;
  min-height: 148px;
  padding: 22px;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1.5px dashed var(--res-line-strong);
  border-radius: 16px;
  color: var(--res-muted);
  background: var(--res-surface-soft);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.resource-dropzone.is-dragging,
.resource-dropzone:hover {
  border-color: var(--res-accent);
  background: var(--res-soft-blue);
}

.resource-dropzone svg {
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  color: var(--res-accent);
}

.resource-dropzone strong {
  color: var(--res-ink);
  font-size: 13px;
}

.resource-dropzone span {
  max-width: 360px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--res-faint);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-submit {
  width: 100%;
  margin-top: 2px;
}

.dialog-status {
  min-height: 17px;
  margin: 0;
  color: var(--res-faint);
  font-size: 10.5px;
  line-height: 1.5;
}

.dialog-status[data-tone="error"] {
  color: var(--res-red);
}

.dialog-status[data-tone="ok"] {
  color: var(--res-green);
}

.upload-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--res-line);
  border-radius: 12px;
  background: var(--res-surface-soft);
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.upload-progress-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--res-line);
}

.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--res-accent), #8a72ff);
  transition: width 180ms ease;
}

.upload-progress p {
  margin: 0;
  color: var(--res-faint);
  font-size: 9.5px;
}

.detail-dialog {
  width: min(1040px, calc(100vw - 28px));
}

.detail-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 26px;
  align-items: start;
}

.detail-preview {
  display: grid;
  min-height: 320px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--res-line);
  border-radius: 18px;
  background: var(--res-surface-soft);
}

.detail-preview img,
.detail-preview video {
  width: 100%;
  max-height: 66vh;
  object-fit: contain;
}

.detail-preview audio {
  width: min(92%, 520px);
}

.detail-file-hero {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 13px;
  color: var(--res-muted);
  text-align: center;
}

.detail-file-open {
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.detail-file-open:hover {
  color: var(--res-accent);
  transform: translateY(-2px);
}

.detail-file-hero .resource-kind {
  min-width: 88px;
  height: 88px;
  font-size: 18px;
}

.detail-file-hero span:last-child {
  font-size: 11px;
}

.detail-text-preview {
  display: grid;
  min-height: 280px;
  gap: 8px;
  align-content: start;
}

.detail-text-preview pre {
  max-height: 360px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--res-line);
  border-radius: 13px;
  color: var(--res-ink);
  background: var(--res-surface-soft);
  font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-text-preview > span {
  color: var(--res-faint);
  font-size: 10px;
}

.detail-copy {
  display: grid;
  gap: 13px;
  padding: 8px 0;
}

.detail-copy h2 {
  padding-right: 28px;
}

.detail-copy > p:not(.resource-kicker) {
  margin: -4px 0 0;
  color: var(--res-muted);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}

.detail-copy dl div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--res-line);
  border-radius: 10px;
  background: var(--res-surface-soft);
}

.detail-copy dt {
  color: var(--res-faint);
  font-size: 9px;
}

.detail-copy dd {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-admin {
  display: grid;
  gap: 11px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px dashed var(--res-line);
}

.detail-admin .dialog-actions {
  justify-content: space-between;
}

.resource-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 28px);
  padding: 11px 15px;
  border: 1px solid var(--res-line);
  border-radius: 12px;
  color: var(--res-ink);
  background: var(--res-surface);
  box-shadow: var(--res-shadow);
  font-size: 11px;
  transform: translateX(-50%);
}

@media (max-width: 980px) {
  .software-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-hero {
    grid-template-columns: 1fr;
  }

  .resource-hero-copy {
    min-height: 320px;
  }

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

  .resource-guide {
    grid-template-columns: 1fr;
  }

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

  .detail-preview {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .resource-header {
    width: calc(100% - 20px);
    min-height: 62px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 15px;
  }

  .resource-brand img {
    width: 36px;
    height: 36px;
  }

  .resource-brand strong {
    font-size: 14px;
  }

  .resource-brand small,
  .resource-nav-link {
    display: none;
  }

  .resource-primary-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .resource-shell {
    width: calc(100% - 20px);
    padding-top: 28px;
  }

  .resource-entrypoints {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .resource-entry {
    padding: 18px 20px;
    gap: 6px;
    border-radius: 18px;
  }

  .resource-entry > strong {
    font-size: 20px;
  }

  .resource-software {
    padding: 18px 13px;
  }

  .resource-software .software-source-link {
    display: inline-flex;
    min-height: 32px;
    padding: 0;
    justify-content: flex-start;
  }

  .software-platforms {
    gap: 8px;
  }

  .software-platform {
    padding: 13px 10px;
  }

  .software-platform h3 {
    font-size: 18px;
  }

  .software-platform-actions a {
    font-size: 11px;
  }

  .resource-hero-copy {
    min-height: 0;
    padding: 26px 21px;
    border-radius: 20px;
  }

  .resource-hero h1 {
    font-size: clamp(32px, 9.2vw, 44px);
  }

  .resource-hero-copy > p:not(.resource-kicker) {
    margin-top: 18px;
    font-size: 13px;
  }

  .resource-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .resource-stats article {
    min-height: 88px;
    padding: 13px 11px;
    border-radius: 15px;
  }

  .resource-stats article span {
    font-size: 9px;
  }

  .resource-stats article strong {
    font-size: 21px;
  }

  .resource-browser {
    padding: 19px 13px;
    border-radius: 20px;
  }

  .resource-browser-head {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-search {
    width: 100%;
  }

  .resource-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-filters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .resource-filters button {
    padding: 0 7px;
  }

  .resource-sort {
    width: 100%;
    justify-content: flex-end;
  }

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

  .resource-card {
    min-height: 0;
  }

  .resource-card-preview {
    max-height: 230px;
  }

  .resource-guide {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .resource-guide ol {
    grid-template-columns: 1fr;
  }

  .resource-footer {
    width: calc(100% - 20px);
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .resource-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 19px;
  }

  .resource-dialog-card {
    padding: 22px 17px;
    border-radius: 19px;
  }

  .resource-form-grid,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .detail-preview {
    min-height: 0;
  }

  .detail-copy dl {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* 2026-10-27 glasssquircle4：与首页统一的 iPhone 风格大圆角。
   Chrome 的 corner-shape superellipse 在小控件上会显得偏方，
   因此不使用该实验属性，统一采用稳定、跨浏览器的标准圆角。 */

.resource-header,
.resource-hero,
.resource-browser {
  border-radius: 40px;
}

.resource-stats article,
.resource-card {
  border-radius: 28px;
}

.resource-card-preview,
.resource-dropzone {
  border-radius: 24px;
}

.resource-dialog,
.resource-dialog-card {
  border-radius: 40px;
}

@media (max-width: 720px) {
  .resource-header,
  .resource-hero,
  .resource-browser {
    border-radius: 30px;
  }

  .resource-stats article,
  .resource-card {
    border-radius: 24px;
  }

  .resource-dialog,
  .resource-dialog-card {
    border-radius: 34px;
  }
}
