:root {
  color-scheme: light;
  --ink: #14213d;
  --ink-soft: #526079;
  --navy: #123c69;
  --blue: #1674d1;
  --blue-dark: #0a5fb2;
  --blue-soft: #eaf5ff;
  --cyan: #55c8e8;
  --orange: #ff8a3d;
  --orange-soft: #fff1e7;
  --cream: #fbfaf6;
  --paper: #ffffff;
  --line: #dfe7ef;
  --line-strong: #c9d7e6;
  --success: #168a63;
  --shadow-sm: 0 8px 24px rgba(20, 50, 82, 0.08);
  --shadow-md: 0 18px 48px rgba(15, 53, 89, 0.13);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --content: 1180px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(205, 220, 233, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: linear-gradient(145deg, #29a4e4, #0c5eb6 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 7px 18px rgba(21, 105, 180, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 4px;
  color: #6d7b8e;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 20px;
}

.desktop-nav a {
  position: relative;
  padding: 26px 2px 22px;
  color: #4d5c70;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-current {
  color: var(--navy);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-current::after {
  width: 22px;
}

.help-button,
.mobile-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c9dbed;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--navy);
  background: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.help-button svg,
.mobile-filter-button svg {
  width: 18px;
  height: 18px;
}

.help-button:hover,
.mobile-filter-button:hover {
  border-color: #8db8df;
  box-shadow: 0 6px 18px rgba(28, 97, 157, 0.1);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 465px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(115deg, rgba(8, 63, 116, 0.98) 0%, rgba(14, 102, 180, 0.96) 58%, rgba(21, 135, 202, 0.92) 100%),
    radial-gradient(circle at 90% 10%, rgba(82, 215, 239, 0.4), transparent 45%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -190px;
  top: -250px;
}

.hero::after {
  width: 380px;
  height: 380px;
  right: -110px;
  top: -180px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.8;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  left: -130px;
  bottom: -140px;
  background: rgba(75, 209, 234, 0.2);
}

.hero-glow-two {
  width: 460px;
  height: 160px;
  left: 48%;
  bottom: -125px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--content));
  min-height: 465px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, 0.84fr);
  align-items: center;
  gap: 62px;
  padding: 62px 0 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #e6f6ff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffad61;
  box-shadow: 0 0 0 5px rgba(255, 173, 97, 0.14);
}

.hero h1 {
  max-width: 650px;
  margin: 22px 0 14px;
  font-family: "STZhongsong", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(238, 248, 255, 0.86);
  font-size: 16px;
  line-height: 1.9;
}

.hero-search {
  width: min(100%, 650px);
  height: 58px;
  margin-top: 28px;
  padding: 6px 6px 6px 18px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 34px rgba(6, 44, 79, 0.24);
}

.hero-search svg {
  width: 22px;
  height: 22px;
  color: #6c8093;
}

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

.hero-search input::placeholder {
  color: #9aa8b5;
}

.hero-search button,
.primary-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 22px;
  color: white;
  background: linear-gradient(135deg, #ff9b51, #ff7830);
  box-shadow: 0 7px 16px rgba(226, 105, 31, 0.25);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.hero-search button:hover,
.primary-button:hover {
  filter: saturate(1.08) brightness(1.03);
  transform: translateY(-1px);
}

.quick-search {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: rgba(234, 247, 255, 0.72);
  font-size: 12px;
}

.quick-search button {
  border: 0;
  padding: 2px 5px;
  color: white;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 3px;
}

.hero-visual {
  position: relative;
  min-height: 330px;
}

.book-stack {
  position: absolute;
  inset: 0 40px 0 auto;
  width: 330px;
}

.book {
  position: absolute;
  width: 220px;
  aspect-ratio: 350 / 374;
  object-fit: cover;
  border: 7px solid white;
  border-radius: 19px;
  box-shadow: 0 28px 55px rgba(6, 42, 76, 0.35);
}

.book-back {
  top: 22px;
  right: 0;
  transform: rotate(8deg);
  opacity: 0.94;
}

.book-front {
  left: 0;
  bottom: 8px;
  z-index: 2;
  transform: rotate(-7deg);
}

.spark {
  position: absolute;
  z-index: 3;
  color: #ffd39e;
  text-shadow: 0 0 16px rgba(255, 198, 119, 0.75);
}

.spark-one {
  top: 28px;
  left: 38px;
  font-size: 30px;
}

.spark-two {
  right: -18px;
  bottom: 38px;
  font-size: 20px;
}

.hero-stat {
  position: absolute;
  z-index: 4;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(3, 44, 80, 0.23);
}

.hero-stat > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hero-stat strong {
  font-size: 15px;
}

.hero-stat small {
  margin-top: 2px;
  color: #758396;
  font-size: 10px;
}

.stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.stat-icon svg {
  width: 17px;
  height: 17px;
}

.stat-icon-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.stat-icon-orange {
  color: #e97628;
  background: var(--orange-soft);
}

.stat-files {
  left: -34px;
  top: 43px;
}

.stat-levels {
  right: -18px;
  bottom: 32px;
}

.trust-bar {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 40px), 1040px);
  min-height: 94px;
  margin: -24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border: 1px solid rgba(212, 226, 238, 0.9);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-md);
}

.trust-bar > div {
  min-height: 54px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust-bar > div + div {
  border-left: 1px solid var(--line);
}

.trust-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-bar div > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.trust-bar strong {
  font-size: 14px;
}

.trust-bar small {
  margin-top: 4px;
  color: #7a8798;
  font-size: 11px;
}

.resources-section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 92px 0 96px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section-heading h2,
.guide-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family: "STZhongsong", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.section-heading p,
.guide-copy p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid #f1d1b9;
  border-radius: 999px;
  color: #a95720;
  background: #fff8f1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.prototype-badge b {
  font: inherit;
}

.prototype-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.13);
}

.prototype-badge.is-live {
  border-color: #b9e0cf;
  color: #187153;
  background: #f1fbf7;
}

.prototype-badge.is-live span {
  background: #23a676;
  box-shadow: 0 0 0 4px rgba(35, 166, 118, 0.13);
}

.prototype-badge.is-error {
  border-color: #efc8c8;
  color: #a63d3d;
  background: #fff5f5;
}

.prototype-badge.is-error span {
  background: #d95050;
  box-shadow: 0 0 0 4px rgba(217, 80, 80, 0.13);
}

.resource-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 98px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.filter-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-panel-heading h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 15px;
}

.filter-panel-heading svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.filter-panel-heading button {
  border: 0;
  padding: 3px;
  color: #78869a;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.filter-panel-heading button:hover {
  color: var(--blue);
}

.filter-group {
  margin: 0;
  padding: 18px 0 0;
  border: 0;
}

.filter-group + .filter-group {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.filter-group legend {
  width: 100%;
  margin-bottom: 10px;
  color: #8a96a6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.filter-group label {
  min-height: 35px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #4c5b70;
  font-size: 13px;
  cursor: pointer;
}

.filter-group input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.filter-group input:checked + span {
  color: var(--navy);
  font-weight: 700;
}

.filter-group b {
  padding: 1px 7px;
  border-radius: 999px;
  color: #8491a2;
  background: #f3f6f8;
  font-size: 10px;
  font-weight: 600;
}

.results-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.results-toolbar p {
  margin: 0;
  color: #657388;
  font-size: 13px;
}

.results-toolbar p strong {
  color: var(--navy);
  font-size: 18px;
}

.results-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a8798;
  font-size: 12px;
}

.results-toolbar select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 32px 0 11px;
  color: #44556b;
  background: white;
  outline: none;
  cursor: pointer;
}

.results-toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 116, 209, 0.11);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 16px;
}

.active-filters:empty {
  display: none;
}

.catalog-state {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  border: 1px dashed #cbd9e6;
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.catalog-state[hidden] {
  display: none;
}

.catalog-state > div {
  display: grid;
  gap: 3px;
}

.catalog-state strong {
  color: var(--ink);
  font-size: 15px;
}

.catalog-state small {
  font-size: 12px;
}

.catalog-spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 3px solid #d6e8f7;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: catalog-spin 0.8s linear infinite;
}

.catalog-state button {
  min-height: 36px;
  margin-left: 8px;
  border: 0;
  border-radius: 9px;
  padding: 0 15px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.catalog-state.is-error {
  border-color: #edc8c8;
  background: #fffafa;
}

@keyframes catalog-spin {
  to {
    transform: rotate(360deg);
  }
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cbe1f4;
  border-radius: 999px;
  padding: 5px 9px 5px 11px;
  color: var(--blue-dark);
  background: #f2f8fe;
  font-size: 11px;
}

.active-chip button {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blue-dark);
  background: #dceefa;
  cursor: pointer;
}

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

.resource-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 8px 22px rgba(21, 56, 88, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.resource-card:hover {
  border-color: #bdd4e8;
  box-shadow: 0 16px 38px rgba(21, 56, 88, 0.12);
  transform: translateY(-4px);
}

.card-cover {
  position: relative;
  flex-shrink: 0;
  height: 160px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #dff2ff, #c5e4fa);
}

.card-cover::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -60px;
  bottom: -75px;
  border: 1px solid rgba(31, 120, 194, 0.16);
  border-radius: 50%;
}

.card-cover img {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 118px;
  object-fit: cover;
  border: 4px solid white;
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(23, 81, 130, 0.21);
  transform: rotate(-3deg);
  transition: transform 0.22s ease;
}

.resource-card:hover .card-cover img {
  transform: rotate(0) scale(1.025);
}

.series-badge,
.status-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.series-badge {
  left: 12px;
  padding: 4px 9px;
  color: white;
  background: rgba(18, 60, 105, 0.88);
  backdrop-filter: blur(5px);
}

.status-badge {
  right: 12px;
  padding: 4px 8px;
  color: #9a511f;
  background: rgba(255, 246, 235, 0.93);
}

.status-badge.is-ready {
  color: #187153;
  background: rgba(239, 251, 246, 0.95);
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px 17px 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #718096;
  font-size: 10px;
}

.card-meta span:first-child {
  color: var(--blue-dark);
  font-weight: 800;
}

.resource-card h3 {
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.45;
}

.resource-card p {
  min-height: 42px;
  margin: 0;
  color: #738095;
  font-size: 11px;
  line-height: 1.7;
}

.card-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 13px;
}

.card-file {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed #d9e2ea;
  color: #8491a2;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.file-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.file-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
}

.card-actions {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
}

.card-actions button {
  min-height: 37px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.details-button {
  border: 1px solid #c9d8e6;
  color: #53657a;
  background: white;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, #1d82dc, #0f64b6);
  box-shadow: 0 6px 14px rgba(18, 105, 180, 0.19);
}

.download-button svg {
  width: 14px;
  height: 14px;
}

.details-button:hover,
.download-button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.empty-state {
  min-height: 370px;
  padding: 60px 20px;
  place-items: center;
  text-align: center;
  border: 1px dashed #cbd9e6;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
}

.empty-state svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  margin: 14px 0 3px;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.empty-state button {
  margin-top: 13px;
  border: 0;
  padding: 7px;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.mobile-filter-row {
  display: none;
}

.guide-section {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto 96px;
  padding: 48px 54px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 54px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 100% 0, rgba(93, 207, 232, 0.26), transparent 35%),
    linear-gradient(130deg, #123d6a, #0a67ae);
  box-shadow: 0 22px 55px rgba(15, 65, 110, 0.17);
}

.guide-copy .section-kicker {
  color: #90def0;
}

.guide-copy h2 {
  color: white;
}

.guide-copy p {
  color: rgba(235, 246, 255, 0.75);
}

.guide-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.guide-steps li {
  min-height: 112px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.guide-steps li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.guide-steps > li > span {
  color: #7ed4ea;
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
}

.guide-steps div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.guide-steps strong {
  font-size: 14px;
}

.guide-steps small {
  margin-top: 5px;
  color: rgba(232, 245, 255, 0.68);
  font-size: 10px;
}

footer {
  border-top: 1px solid #dfe7ed;
  background: white;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 135px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-small {
  width: 36px;
  height: 36px;
  padding: 2px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: var(--navy);
  font-size: 14px;
}

.footer-brand small,
.footer-inner > p {
  color: #8793a2;
  font-size: 10px;
}

.footer-inner > p {
  margin: 0;
  text-align: right;
}

.resource-dialog,
.help-dialog {
  width: min(calc(100% - 32px), 600px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 80px rgba(12, 43, 75, 0.28);
}

.resource-dialog::backdrop,
.help-dialog::backdrop {
  background: rgba(8, 28, 50, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e4ed;
  border-radius: 50%;
  color: #64758a;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.dialog-close svg {
  width: 18px;
  height: 18px;
}

.dialog-cover {
  min-height: 205px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  gap: 26px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.32), transparent 36%),
    linear-gradient(135deg, #dff2ff, #aad5f3);
}

.dialog-cover img {
  width: 130px;
  height: 140px;
  object-fit: cover;
  border: 5px solid white;
  border-radius: 15px;
  box-shadow: 0 15px 34px rgba(20, 78, 127, 0.21);
  transform: rotate(-3deg);
}

.dialog-cover span {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  font-size: 10px;
  font-weight: 800;
}

.dialog-cover h2 {
  margin: 9px 0 3px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.35;
}

.dialog-cover p {
  margin: 0;
  color: #547088;
  font-size: 12px;
}

.dialog-body {
  padding: 25px 32px 30px;
}

.dialog-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.dialog-facts div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8fa;
}

.dialog-facts dt {
  color: #8895a4;
  font-size: 10px;
}

.dialog-facts dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.dialog-note {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #f0d8c4;
  border-radius: 12px;
  color: #93552b;
  background: #fff8f2;
  font-size: 11px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions .details-button,
.dialog-actions .download-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.help-dialog {
  max-width: 450px;
  padding: 40px 38px 34px;
  text-align: center;
}

.help-dialog-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, #2a9bde, #0f65b8);
  box-shadow: 0 12px 24px rgba(20, 109, 183, 0.21);
  font-family: Georgia, serif;
  font-size: 30px;
}

.help-dialog h2 {
  margin: 0;
  color: var(--navy);
}

.help-dialog > p {
  margin: 11px 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.help-list {
  margin: 18px 0;
  padding-left: 21px;
  color: #53657a;
  font-size: 12px;
  line-height: 1.8;
}

.help-list li + li {
  margin-top: 7px;
}

.help-list strong {
  color: var(--navy);
}

.footer-inner a {
  color: inherit;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--blue-dark);
}

.help-callout {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #945728;
  background: var(--orange-soft);
  font-size: 11px;
}

.primary-button {
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: calc(100% - 48px);
  padding: 13px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #c7eadc;
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 45px rgba(17, 54, 85, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--success);
  font-weight: 800;
}

.toast p {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.toast strong {
  color: var(--navy);
  font-size: 12px;
}

.toast small {
  margin-top: 2px;
  color: #7f8c9c;
  font-size: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(8, 28, 50, 0.55);
}

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
    gap: 32px;
  }

  .book-stack {
    right: 10px;
    transform: scale(0.88);
  }

  .hero-stat {
    transform: scale(0.9);
  }

  .stat-files {
    left: -18px;
  }

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

  .guide-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 210px;
  }

  .hero-visual {
    position: absolute;
    right: -10px;
    bottom: -40px;
    width: 330px;
    min-height: 240px;
    opacity: 0.58;
    transform: scale(0.7);
    transform-origin: bottom right;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .trust-bar > div {
    padding: 11px 24px;
  }

  .trust-bar > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

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

  .filter-panel {
    position: fixed;
    z-index: 50;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 82vh;
    overflow: auto;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(7, 38, 67, 0.22);
    transform: translateY(110%);
    transition: transform 0.28s ease;
  }

  .filter-panel.is-mobile-open {
    transform: translateY(0);
  }

  .filter-panel.is-mobile-open .filter-panel-heading::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: #d5dee6;
    transform: translateX(-50%);
  }

  .mobile-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
  }

  .mobile-filter-row > span {
    overflow: hidden;
    color: #77869a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .guide-steps li {
    min-height: 82px;
    padding: 0;
  }

  .guide-steps li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.17);
    border-left: 0;
  }
}

@media (max-width: 580px) {
  .header-inner,
  .hero-inner,
  .resources-section,
  .guide-section,
  .footer-inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 12px 12px 12px 4px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .help-button {
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 0;
  }

  .hero {
    min-height: 545px;
  }

  .hero-inner {
    padding: 45px 0 184px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: 38px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-search {
    height: auto;
    min-height: 56px;
    grid-template-columns: 22px minmax(0, 1fr);
    padding: 9px 11px 9px 15px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    min-height: 42px;
  }

  .quick-search {
    display: none;
  }

  .hero-visual {
    right: -55px;
    bottom: -58px;
    opacity: 0.55;
    transform: scale(0.64);
  }

  .trust-bar {
    width: calc(100% - 28px);
  }

  .resources-section {
    padding: 72px 0 74px;
  }

  .section-heading {
    margin-bottom: 25px;
  }

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

  .card-cover {
    height: 180px;
  }

  .results-toolbar label span {
    display: none;
  }

  .guide-section {
    margin-bottom: 72px;
    padding: 36px 28px;
  }

  .footer-inner {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner > p {
    text-align: left;
  }

  .dialog-cover {
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-cover img {
    width: 100px;
    height: 107px;
  }

  .dialog-body {
    padding: 22px;
  }

  .dialog-facts {
    grid-template-columns: 1fr;
  }

  .help-dialog {
    padding: 36px 24px 28px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}

@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;
  }
}
