.edr-resource-panel,
.edr-current-vip,
.edr-alert {
  border: 1px solid #eceff3;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  margin: 24px 0;
}

.edr-resource-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.edr-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: #20b66f;
}

.edr-badge--vip {
  background: #ff5f33;
}

.edr-badge--free {
  background: #20b66f;
}

.edr-video-link {
  font-size: 14px;
}

.edr-get-link,
.edr-vip-card__button,
.edr-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: #ff5f33;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.edr-get-link:disabled {
  opacity: .7;
  cursor: wait;
}

.edr-resource-note {
  margin: 10px 0 0;
  color: #667085;
  font-size: 14px;
}

.edr-vip-page {
  background: linear-gradient(135deg, #eff8ff 0%, #f7fbff 58%, #e8f3ff 100%);
  padding: 56px 20px;
}

.edr-vip-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.edr-vip-hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 700;
}

.edr-vip-hero p {
  margin: 0;
  color: #667085;
}

.edr-vip-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.edr-vip-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .12);
}

.edr-vip-card__title {
  background: var(--edr-accent);
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 20px;
}

.edr-vip-card__body {
  padding: 28px 30px 34px;
  text-align: center;
}

.edr-vip-card__price {
  font-size: 38px;
  font-weight: 800;
  color: #1f2937;
}

.edr-vip-card__price small {
  margin-left: 4px;
  font-size: 14px;
}

.edr-vip-card__period {
  display: inline-flex;
  margin: 8px 0 24px;
  border-radius: 999px;
  background: #f5f6f8;
  padding: 4px 14px;
  color: #344054;
  font-size: 13px;
}

.edr-vip-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.edr-vip-card li {
  border-top: 1px solid #edf0f5;
  padding: 11px 0;
  color: #111827;
}

.edr-vip-card__button {
  width: 100%;
  background: var(--edr-accent);
  font-size: 16px;
}

.edr-why {
  max-width: 980px;
  margin: 64px auto 0;
  text-align: center;
}

.edr-why__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.edr-why__items div {
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 18px;
}

.edr-why__items strong,
.edr-why__items span {
  display: block;
}

.edr-why__items span {
  color: #667085;
  font-size: 14px;
  margin-top: 4px;
}

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

.edr-resource-card {
  overflow: hidden;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}

.edr-resource-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
  color: #334155;
  text-decoration: none;
}

.edr-resource-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edr-resource-card__body {
  padding: 14px;
}

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

.edr-resource-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.edr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.edr-modal.is-open {
  display: block;
}

.edr-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .58);
}

.edr-modal__box {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  margin: 12vh auto 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 23, 42, .32);
  padding: 28px;
}

.edr-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.edr-modal__content h3 {
  margin-top: 0;
}

.edr-link-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid #edf0f5;
  padding: 12px 0;
}

.edr-link-row a {
  word-break: break-all;
}

.edr-quota {
  color: #667085;
  font-size: 14px;
}

@media (max-width: 900px) {
  .edr-vip-cards,
  .edr-resource-grid,
  .edr-why__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .edr-vip-cards,
  .edr-resource-grid,
  .edr-why__items {
    grid-template-columns: 1fr;
  }

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

/* 二豆资源主题视觉覆盖：只改前台质感，不触碰权限、额度和支付逻辑。 */
:root {
  --edr-warm: #ff6a35;
  --edr-warm-2: #ff9b42;
  --edr-cream: #fff8f1;
  --edr-ink: #2a241f;
  --edr-muted: #8e7667;
  --edr-line: rgba(255, 137, 74, .18);
  --edr-glass: rgba(255, 255, 255, .78);
  --edr-glass-strong: rgba(255, 255, 255, .94);
  --edr-shadow: 0 24px 70px rgba(181, 91, 39, .13);
  --edr-shadow-hover: 0 32px 86px rgba(181, 91, 39, .24);
  --edr-ease: cubic-bezier(.2, .8, .2, 1);
}

.edr-vip-page {
  position: relative;
  overflow: hidden;
  padding: 124px 20px 82px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 197, 157, .72), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(255, 234, 192, .84), transparent 26%),
    linear-gradient(180deg, #fff7f0 0%, #fffaf7 46%, #f8fafc 100%);
  color: var(--edr-ink);
}

.edr-vip-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .72), transparent 34%),
    radial-gradient(circle at 50% 0, rgba(255, 121, 58, .12), transparent 36%);
}

.edr-vip-page > * {
  position: relative;
  z-index: 1;
}

.edr-vip-hero {
  max-width: 860px;
  margin: 0 auto 38px;
  text-align: center;
  animation: edr-rise .54s var(--edr-ease) both;
}

.edr-vip-hero h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 0 0 14px;
  font-size: clamp(42px, 8vw, 82px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .95;
  color: transparent;
  background: linear-gradient(100deg, #ff5c2e 0%, #ff9b42 48%, #ffd36b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 18px 40px rgba(255, 108, 53, .18);
}

.edr-vip-hero p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--edr-muted);
  font-size: 16px;
  line-height: 1.8;
}

.edr-alert,
.edr-current-vip,
.edr-resource-panel {
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 18px;
  background: var(--edr-glass);
  box-shadow: var(--edr-shadow);
  backdrop-filter: blur(18px);
}

.edr-alert,
.edr-current-vip {
  max-width: 980px;
  margin: 0 auto 22px;
  padding: 18px 22px;
  color: #6d3d27;
}

.edr-vip-cards {
  max-width: 1080px;
  gap: 22px;
}

.edr-vip-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--edr-shadow);
  backdrop-filter: blur(18px);
  transform: translateY(0);
  transition: transform .34s var(--edr-ease), box-shadow .34s var(--edr-ease), border-color .34s var(--edr-ease);
  animation: edr-rise .62s var(--edr-ease) both;
}

.edr-vip-card:nth-child(2) {
  animation-delay: .08s;
}

.edr-vip-card:nth-child(3) {
  animation-delay: .16s;
}

.edr-vip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .82), transparent 38%),
    radial-gradient(circle at 22% 12%, rgba(255, 132, 64, .16), transparent 32%);
}

.edr-vip-card:hover {
  border-color: rgba(255, 128, 64, .3);
  box-shadow: var(--edr-shadow-hover);
  transform: translateY(-8px);
}

.edr-vip-card__title {
  position: relative;
  padding: 22px 20px 18px;
  background: transparent;
  color: var(--edr-ink);
  font-size: 22px;
  font-weight: 900;
}

.edr-vip-card__title::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--edr-accent), var(--edr-warm-2));
}

.edr-vip-card__body {
  position: relative;
  padding: 20px 28px 30px;
}

.edr-vip-card__price {
  color: var(--edr-ink);
  font-size: 48px;
  line-height: 1;
}

.edr-vip-card__price small {
  color: var(--edr-muted);
  font-size: 14px;
  font-weight: 700;
}

.edr-vip-card__period {
  margin: 14px 0 22px;
  background: rgba(255, 125, 62, .1);
  color: #9d4a27;
  font-weight: 800;
}

.edr-vip-card li {
  border-top: 1px solid rgba(255, 137, 74, .14);
  color: #5f4638;
  font-size: 14px;
}

.edr-get-link,
.edr-vip-card__button,
.edr-modal__button {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--edr-warm), var(--edr-warm-2));
  box-shadow: 0 14px 30px rgba(255, 105, 53, .28);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  transform: translateY(0) scale(1);
  transition: transform .24s var(--edr-ease), box-shadow .24s var(--edr-ease), filter .24s var(--edr-ease);
}

.edr-get-link::after,
.edr-vip-card__button::after,
.edr-modal__button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 46%;
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, .42);
  transition: left .42s var(--edr-ease);
}

.edr-get-link:hover,
.edr-vip-card__button:hover,
.edr-modal__button:hover {
  box-shadow: 0 18px 38px rgba(255, 105, 53, .36);
  filter: saturate(1.05);
  transform: translateY(-2px) scale(1.02);
}

.edr-get-link:hover::after,
.edr-vip-card__button:hover::after,
.edr-modal__button:hover::after {
  left: 112%;
}

.edr-get-link:disabled {
  transform: none;
}

.edr-why {
  max-width: 1080px;
  margin-top: 58px;
}

.edr-why h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.edr-why__items {
  gap: 16px;
}

.edr-why__items div,
.edr-resource-card {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 18px 50px rgba(181, 91, 39, .1);
  backdrop-filter: blur(14px);
}

.edr-why__items div {
  padding: 20px;
  transition: transform .28s var(--edr-ease), box-shadow .28s var(--edr-ease);
}

.edr-why__items div:hover {
  box-shadow: var(--edr-shadow);
  transform: translateY(-5px);
}

.edr-why__items strong {
  color: var(--edr-ink);
  font-size: 16px;
}

.edr-why__items span {
  color: var(--edr-muted);
  line-height: 1.65;
}

.edr-grid-wrap {
  margin: 36px 0;
}

.edr-grid-wrap > h2 {
  margin: 0 0 18px;
  color: var(--edr-ink);
  font-size: 26px;
  font-weight: 900;
}

.edr-resource-grid {
  gap: 18px;
}

.edr-resource-card {
  overflow: hidden;
  transform: translateY(0);
  transition: transform .32s var(--edr-ease), box-shadow .32s var(--edr-ease), border-color .32s var(--edr-ease);
}

.edr-resource-card:hover {
  border-color: rgba(255, 128, 64, .28);
  box-shadow: var(--edr-shadow-hover);
  transform: translateY(-7px);
}

.edr-resource-card__thumb {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 190, 128, .44), transparent 36%),
    linear-gradient(135deg, #fff1e5, #ffe0ca);
  color: #9a4a28;
}

.edr-resource-card__thumb img {
  transform: scale(1);
  transition: transform .38s var(--edr-ease), filter .38s var(--edr-ease);
}

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

.edr-resource-card__thumb span {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 18px;
  font-weight: 900;
  text-align: center;
}

.edr-resource-card__body {
  padding: 15px 16px 17px;
}

.edr-badge {
  background: linear-gradient(135deg, #2ec775, #18a85d);
  box-shadow: 0 8px 18px rgba(33, 180, 105, .2);
  font-weight: 900;
}

.edr-badge--vip {
  background: linear-gradient(135deg, #ff6a35, #ffb347);
  box-shadow: 0 8px 18px rgba(255, 106, 53, .22);
}

.edr-resource-card h3 {
  margin: 11px 0 8px;
  color: var(--edr-ink);
  font-size: 16px;
  line-height: 1.45;
}

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

.edr-resource-card:hover h3 a {
  color: var(--edr-warm);
}

.edr-resource-card p,
.edr-resource-note,
.edr-quota {
  color: var(--edr-muted);
  line-height: 1.7;
}

.edr-resource-panel {
  position: relative;
  padding: 22px;
}

.edr-resource-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .72), transparent 40%);
}

.edr-resource-panel > * {
  position: relative;
  z-index: 1;
}

.edr-resource-panel__head {
  margin-bottom: 18px;
}

.edr-video-link {
  color: #a14a26;
  font-weight: 800;
}

.edr-modal {
  backdrop-filter: blur(0);
}

.edr-modal.is-open {
  animation: edr-fade .22s ease both;
}

.edr-modal__mask {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 143, 84, .26), transparent 32%),
    rgba(28, 20, 15, .48);
  backdrop-filter: blur(8px);
}

.edr-modal__box {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 92px rgba(68, 36, 20, .28);
  color: var(--edr-ink);
  backdrop-filter: blur(20px);
  animation: edr-modal-rise .32s var(--edr-ease) both;
}

.edr-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #a44d29;
  font-size: 24px;
  transition: transform .24s var(--edr-ease), background .24s var(--edr-ease);
}

.edr-modal__close:hover {
  background: rgba(255, 111, 53, .1);
  transform: rotate(90deg);
}

.edr-modal__content h3 {
  margin: 0 36px 16px 0;
  font-size: 22px;
  font-weight: 900;
}

.edr-link-row {
  grid-template-columns: 88px minmax(0, 1fr);
  border-top: 1px solid rgba(255, 137, 74, .14);
  color: var(--edr-muted);
}

.edr-link-row a,
.edr-link-row strong {
  color: var(--edr-ink);
}

.edr-link-row a {
  font-weight: 800;
}

.edr-empty {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--edr-shadow);
  padding: 28px;
  color: var(--edr-muted);
}

@keyframes edr-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes edr-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes edr-modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .edr-vip-page {
    padding-top: 104px;
  }

  .edr-vip-card:hover,
  .edr-resource-card:hover,
  .edr-why__items div:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edr-vip-hero,
  .edr-vip-card,
  .edr-modal.is-open,
  .edr-modal__box {
    animation: none !important;
  }

  .edr-vip-card,
  .edr-resource-card,
  .edr-get-link,
  .edr-vip-card__button,
  .edr-modal__button {
    transition: none !important;
  }
}
