/*
Theme Name: 二豆资源主题
Theme URI: https://example.com/
Author: 二豆知识网
Description: 面向会员资源站的暖色柔光 WordPress 主题，配合“二豆会员资源站”插件使用。
Version: 0.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: erdou-resource-theme
*/

:root {
  --ed-orange: #ff6a35;
  --ed-orange-2: #ff9b42;
  --ed-amber: #f7b532;
  --ed-rose: #ffe8da;
  --ed-cream: #fff8f1;
  --ed-ink: #2a241f;
  --ed-muted: #8e7667;
  --ed-line: rgba(255, 137, 74, .18);
  --ed-card: rgba(255, 255, 255, .74);
  --ed-card-strong: rgba(255, 255, 255, .92);
  --ed-shadow: 0 24px 70px rgba(181, 91, 39, .13);
  --ed-shadow-hover: 0 30px 80px rgba(181, 91, 39, .22);
  --ed-radius: 18px;
  --ed-radius-sm: 12px;
  --ed-container: 1200px;
  --ed-ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 214, 188, .52), transparent 28%),
    radial-gradient(circle at 88% 6%, rgba(255, 245, 223, .72), transparent 25%),
    linear-gradient(180deg, #fff8f2 0%, #fffaf6 38%, #f7f9fc 100%);
  color: var(--ed-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.ed-night {
  --ed-cream: #171616;
  --ed-card: rgba(35, 31, 28, .74);
  --ed-card-strong: rgba(42, 37, 33, .94);
  --ed-ink: #fff7ef;
  --ed-muted: #cbb9ad;
  --ed-line: rgba(255, 160, 96, .22);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 111, 53, .2), transparent 30%),
    linear-gradient(180deg, #17181d 0%, #1b1a1f 100%);
}

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

img,
video {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-container {
  width: min(var(--ed-container), calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 80;
  pointer-events: none;
}

body.admin-bar .site-header {
  top: 50px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 28px;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 0 0 30px 30px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 48px rgba(136, 80, 44, .12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.site-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, #ff9a41, #ff5b31);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 10px 24px rgba(255, 96, 43, .28);
}

.site-logo__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-logo__text {
  font-size: 16px;
}

.site-nav,
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #3d332d;
  font-size: 15px;
  font-weight: 700;
  transition: color .24s var(--ed-ease), transform .24s var(--ed-ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ed-orange), transparent);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .24s var(--ed-ease), transform .24s var(--ed-ease);
}

.site-nav a:hover,
.site-nav a.is-current,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-header__actions a:hover {
  color: var(--ed-orange);
  transform: translateY(-2px);
}

.site-nav a:hover::after,
.site-nav a.is-current::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.vip-link {
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc542, #f5a711);
  color: #fff;
  padding: 6px 18px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(245, 162, 16, .25);
}

.register-link {
  border-radius: 999px;
  background: var(--ed-orange);
  color: #fff;
  padding: 8px 16px;
}

.header-search-trigger {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-search-trigger::before,
.header-search-trigger::after {
  content: "";
  position: absolute;
  display: block;
}

.header-search-trigger::before {
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid #3d332d;
  border-radius: 999px;
}

.header-search-trigger::after {
  left: 21px;
  top: 21px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: #3d332d;
  transform: rotate(45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 0 50% 50% / 0 0 8% 8%;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 240, 230, .92), transparent 20%),
    linear-gradient(135deg, #fff0df 0%, #ffe4c9 50%, #fff7ed 100%);
  background-size: cover;
  background-position: center;
}

.hero__video,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  object-fit: cover;
  z-index: -3;
}

.hero::before {
  content: "";
  z-index: -2;
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, .5), transparent 10%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .34), transparent 9%),
    linear-gradient(90deg, rgba(255, 245, 236, .94) 0%, rgba(255, 231, 210, .72) 42%, rgba(255, 228, 204, .12) 100%);
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 72%, rgba(255, 255, 255, .72), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .56));
}

.hero__inner {
  display: grid;
  align-content: center;
  min-height: 620px;
  padding: 130px 0 120px;
}

.hero__copy {
  max-width: 600px;
}

.hero h1 {
  margin: 0 0 16px;
  color: #c24d22;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 7px 22px rgba(255, 122, 68, .16);
}

.hero p {
  margin: 0 0 34px;
  color: #b46e4d;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
}

.hero-search {
  display: flex;
  width: min(650px, 100%);
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 24px 60px rgba(180, 91, 44, .14);
  backdrop-filter: blur(18px);
  transition: transform .32s var(--ed-ease), box-shadow .32s var(--ed-ease), width .32s var(--ed-ease);
}

.hero-search:focus-within {
  width: min(700px, 100%);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(255, 105, 52, .24), 0 0 0 5px rgba(255, 106, 53, .08);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 28px;
  color: var(--ed-ink);
  font-size: 16px;
}

.hero-search button {
  position: relative;
  min-width: 76px;
  border: 0;
  border-radius: 999px;
  margin: 7px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffaf3e, #ff6535);
  color: #fff;
  cursor: pointer;
  transition: transform .24s var(--ed-ease), box-shadow .24s var(--ed-ease);
}

.hero-search button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -80%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .58), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ed-ease);
}

.hero-search button:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 26px rgba(255, 103, 53, .28);
}

.hero-search button:hover::after {
  left: 130%;
}

.hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #a87661;
  font-size: 14px;
}

.hotwords a {
  transition: color .2s var(--ed-ease), transform .2s var(--ed-ease);
}

.hotwords a:hover {
  color: var(--ed-orange);
  transform: translateY(-1px);
}

.quick-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -84px;
}

.quick-card,
.section-shell,
.entry-card,
.empty-state,
.archive-hero {
  border: 1px solid rgba(255, 255, 255, .76);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .68)),
    radial-gradient(circle at 12% 8%, rgba(255, 220, 198, .34), transparent 30%);
  box-shadow: var(--ed-shadow);
  backdrop-filter: blur(18px);
}

.quick-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  overflow: hidden;
  transition: transform .32s var(--ed-ease), box-shadow .32s var(--ed-ease), background .32s var(--ed-ease);
}

.quick-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .4), transparent 46%);
  pointer-events: none;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ed-shadow-hover);
}

.quick-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.quick-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.quick-card__head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ed-orange);
  font-size: 0;
  transition: transform .24s var(--ed-ease), background .24s var(--ed-ease);
}

.quick-card__head a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.quick-card:hover .quick-card__head a {
  transform: translateX(4px);
  background: #fff;
}

.quick-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-icons a,
.quick-tags a,
.course-lines a {
  transition: transform .24s var(--ed-ease), background .24s var(--ed-ease), color .24s var(--ed-ease), box-shadow .24s var(--ed-ease);
}

.quick-icons a {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #5e5048;
}

.quick-icons span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fff0e6);
  color: var(--ed-orange);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 10px 24px rgba(200, 94, 42, .12);
}

.quick-icons a:hover {
  transform: translateY(-4px);
  color: var(--ed-orange);
}

.quick-icons--soft span {
  background: rgba(255, 245, 235, .82);
}

.quick-icons b {
  font-size: 13px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-tags a {
  border-radius: 10px;
  background: rgba(255, 237, 224, .82);
  color: #986048;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}

.quick-tags a:hover {
  background: #fff;
  color: var(--ed-orange);
  transform: translateY(-2px);
}

.course-lines {
  display: grid;
  gap: 12px;
}

.course-lines a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  padding: 13px 15px;
}

.course-lines a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(181, 91, 39, .12);
}

.course-lines span {
  font-weight: 800;
}

.course-lines b {
  color: var(--ed-orange);
  font-size: 12px;
}

.resource-section {
  padding: 34px 0 0;
}

.resource-section:last-of-type {
  padding-bottom: 62px;
}

.section-shell {
  border-radius: 28px;
  padding: 30px;
}

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

.section-head__eyebrow {
  display: inline-block;
  width: 28px;
  height: 22px;
  margin-right: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffc34a, var(--ed-orange));
  vertical-align: middle;
  box-shadow: 0 9px 20px rgba(255, 106, 53, .2);
}

.section-head h2 {
  display: inline-block;
  margin: 0;
  font-size: 27px;
  font-weight: 900;
}

.section-head p {
  margin: 8px 0 0 42px;
  color: var(--ed-muted);
}

.section-head__more {
  min-width: max-content;
  border: 1px solid rgba(255, 124, 64, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #9a6a56;
  padding: 9px 16px;
  font-size: 13px;
  transition: transform .24s var(--ed-ease), color .24s var(--ed-ease), box-shadow .24s var(--ed-ease);
}

.section-head__more:hover {
  color: var(--ed-orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(181, 91, 39, .12);
}

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

.resource-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 36px rgba(164, 89, 45, .1);
  transition: transform .34s var(--ed-ease), box-shadow .34s var(--ed-ease), border-color .34s var(--ed-ease);
}

.resource-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 126, 63, .26);
  box-shadow: var(--ed-shadow-hover);
}

.resource-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe1cb, #fff8ef);
}

.resource-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .46s var(--ed-ease), filter .46s var(--ed-ease);
}

.resource-card:hover .resource-card__thumb img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.04);
}

.resource-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: #c9744d;
  font-size: 28px;
  font-weight: 900;
}

.resource-card__corner {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb13f, #ff6535);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 100, 53, .24);
  transition: transform .32s var(--ed-ease);
}

.resource-card:hover .resource-card__corner {
  transform: translateY(-2px) rotate(4deg) scale(1.04);
}

.resource-card__body {
  padding: 17px 18px 18px;
}

.resource-card__kicker,
.resource-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-muted);
  font-size: 12px;
}

.resource-dot {
  width: 7px;
  height: 7px;
  border: 2px solid var(--ed-orange);
  border-radius: 999px;
}

.resource-card__badge {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(32, 182, 111, .1);
  color: #179a5c;
  padding: 3px 8px;
  font-weight: 800;
}

.resource-card__badge.is-vip {
  background: rgba(255, 106, 53, .11);
  color: var(--ed-orange);
}

.resource-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.resource-card h3 a {
  transition: color .24s var(--ed-ease);
}

.resource-card:hover h3 a {
  color: var(--ed-orange);
}

.resource-card p {
  min-height: 44px;
  margin: 0 0 14px;
  color: #6f635e;
  font-size: 14px;
  line-height: 1.6;
}

.resource-card__meta {
  justify-content: space-between;
}

.left-rail,
.right-tools,
.vip-float {
  position: fixed;
  z-index: 60;
}

.left-rail {
  left: 24px;
  top: 45%;
  display: grid;
  gap: 8px;
  width: 76px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--ed-shadow);
  padding: 14px 10px;
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.left-rail a {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 14px;
  color: #79665c;
  font-size: 12px;
  font-weight: 800;
  transition: transform .24s var(--ed-ease), background .24s var(--ed-ease), color .24s var(--ed-ease);
}

.left-rail a:hover,
.left-rail a.is-active {
  background: rgba(255, 106, 53, .1);
  color: var(--ed-orange);
  transform: translateY(-2px);
}

.right-tools {
  right: 24px;
  bottom: 40px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--ed-shadow);
  padding: 10px;
  backdrop-filter: blur(18px);
}

.right-tools button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
  cursor: pointer;
  transition: transform .24s var(--ed-ease), background .24s var(--ed-ease);
}

.right-tools button:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.04);
}

.right-tools button::before,
.right-tools button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

[data-scroll-top]::before {
  width: 12px;
  height: 12px;
  border-left: 3px solid var(--ed-orange);
  border-top: 3px solid var(--ed-orange);
  transform: translate(-50%, -30%) rotate(45deg) !important;
}

[data-fullscreen]::before {
  width: 17px;
  height: 17px;
  border: 2px solid #7f6254;
  border-radius: 4px;
}

[data-theme-toggle]::before {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #7f6254;
  box-shadow: 7px -3px 0 #fff;
}

.vip-float {
  top: 136px;
  right: 46px;
  width: 138px;
  animation: edFloat 4.6s ease-in-out infinite;
}

.vip-float.is-hidden {
  display: none;
}

.vip-float a {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 169, 86, .55);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 225, 190, .78));
  box-shadow: 0 18px 46px rgba(255, 126, 51, .2);
  padding: 18px 12px 16px;
  text-align: center;
}

.vip-float img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.vip-float span {
  color: #ef7b43;
  font-size: 12px;
  font-weight: 800;
}

.vip-float strong {
  color: #e65a25;
  font-size: 26px;
  line-height: 1;
}

.vip-float em {
  color: #8d5c3c;
  font-style: normal;
  font-weight: 800;
}

.vip-float b {
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd36a, #ff9b42);
  color: #8a4c12;
  padding: 7px 14px;
  font-size: 12px;
}

.vip-float__close {
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(164, 89, 45, .16);
  cursor: pointer;
  transition: transform .24s var(--ed-ease);
}

.vip-float__close::before,
.vip-float__close::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 14px;
  height: 2px;
  background: var(--ed-orange);
}

.vip-float__close::before {
  transform: rotate(45deg);
}

.vip-float__close::after {
  transform: rotate(-45deg);
}

.vip-float__close:hover {
  transform: rotate(90deg);
}

.content-layout {
  padding: 120px 0 70px;
}

.page-shell {
  min-height: 55vh;
}

.archive-hero {
  border-radius: 28px;
  margin-bottom: 26px;
  padding: 36px;
  text-align: center;
}

.archive-hero span {
  color: var(--ed-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.archive-hero h1 {
  margin: 10px 0;
  font-size: clamp(30px, 5vw, 48px);
}

.archive-hero p {
  margin: 0;
  color: var(--ed-muted);
}

.entry-card {
  border-radius: 28px;
  padding: min(44px, 6vw);
}

.entry-card h1,
.entry-card h2 {
  margin-top: 0;
}

.entry-card__meta {
  display: flex;
  gap: 10px;
  color: var(--ed-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.entry-thumb {
  overflow: hidden;
  border-radius: 22px;
  margin: 24px 0;
}

.entry-thumb img {
  display: block;
  width: 100%;
}

.entry-content {
  color: #4d4038;
  line-height: 1.9;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 32px 0;
}

.pagination .page-numbers {
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  padding: 9px 14px;
}

.empty-state {
  border-radius: 22px;
  padding: 28px 30px;
  color: #6b5a52;
}

.site-footer {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 106, 53, .18), transparent 28%),
    #111821;
  color: rgba(255, 255, 255, .74);
  padding: 52px 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 14px;
}

.site-footer p {
  margin: 0;
  line-height: 1.75;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, .76);
  margin: 8px 0;
  transition: color .2s var(--ed-ease), transform .2s var(--ed-ease);
}

.site-footer a:hover {
  color: #ffc58f;
  transform: translateX(3px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  animation: edReveal .72s var(--ed-ease) forwards;
}

.reveal-item:nth-child(2) {
  animation-delay: .08s;
}

.reveal-item:nth-child(3) {
  animation-delay: .16s;
}

.reveal-item:nth-child(4) {
  animation-delay: .24s;
}

@keyframes edReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes edFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

body.admin-bar .left-rail {
  top: calc(45% + 16px);
}

@media (max-width: 1280px) {
  .left-rail,
  .vip-float {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    padding: 10px 0;
    background: rgba(255, 248, 241, .82);
    backdrop-filter: blur(14px);
  }

  body.admin-bar .site-header {
    top: 32px;
  }

  .site-header__inner {
    width: min(100% - 24px, 760px);
    min-height: auto;
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 12px 16px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .hero,
  .hero__inner {
    min-height: 560px;
  }

  .hero__inner {
    padding-top: 80px;
  }

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

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 24px, var(--ed-container));
  }

  .site-logo__text {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header__actions {
    gap: 8px;
    font-size: 13px;
  }

  .hero,
  .hero__inner {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-search {
    min-height: 56px;
  }

  .quick-panel,
  .resource-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: -52px;
  }

  .section-shell {
    padding: 22px;
  }

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

  .right-tools {
    right: 14px;
    bottom: 18px;
  }
}

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