/* ============================================================
   RedAlert2.online - 下载中心 V2.5「战备补给站」组件样式
   app_download_v3.css · 仅新增 .ra2-* 组件，不覆盖旧体系
   视觉比例：内容 70% / 氛围 20% / 装饰 10%（克制，服务效率）
   ============================================================ */

/* ---------- Hero：WAR SUPPLY CENTER ---------- */
.ra2-download-hero {
  position: relative;
  border-bottom: 1px solid var(--ra-border, #263545);
  background: var(--ra-bg, #090D12);
}

.ra2-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ra2-hero-img {
  position: absolute;
  inset: 0;
  background: #090D12 url('/assets/v2/bg-10.webp') no-repeat center right;
  background-size: cover;
  transform: scale(1.01);
}

.ra2-hero-overlay {
  position: absolute;
  inset: 0;
  /* 左侧暗部 45–60%，保证文字可读 */
  background: linear-gradient(90deg,
      rgba(9, 13, 18, 0.96) 0%,
      rgba(9, 13, 18, 0.88) 38%,
      rgba(9, 13, 18, 0.55) 72%,
      rgba(9, 13, 18, 0.42) 100%);
}

.ra2-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 24px 92px;
  box-sizing: border-box;
}

.ra2-hero-eyebrow {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--ra-gold, #FFB703);
  margin: 14px 0 6px;
}

.ra2-hero-title {
  font-family: var(--ra-font-title, 'PingFang SC', sans-serif);
  font-size: 46px;
  line-height: 1.15;
  color: var(--ra-text-main, #fff);
  letter-spacing: 2px;
  margin: 0 0 12px;
}

.ra2-hero-title em {
  font-style: normal;
  color: var(--ra-red, #E63946);
}

.ra2-hero-desc {
  color: var(--ra-text-secondary, #C8D1DC);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 16px;
}

.ra2-hero-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-hero-tags span {
  border: 1px solid var(--ra-border, #263545);
  background: rgba(18, 24, 32, 0.72);
  padding: 3px 9px;
}

.ra2-hero-tags i {
  color: var(--ra-red, #E63946);
  font-style: normal;
}

/* ---------- 主搜索：压在 Hero 下沿 ---------- */
.ra2-search-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.ra2-resource-search {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
  height: 56px;
  padding: 0 6px 0 18px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(31, 44, 58, 0.98), rgba(18, 24, 32, 0.98));
  border: 1px solid var(--ra-border, #263545);
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(230, 57, 70, 0.08);
}

.ra2-resource-search:focus-within {
  border-color: rgba(230, 57, 70, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(230, 57, 70, 0.35);
}

.ra2-search-ico {
  flex: none;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-resource-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ra-text-main, #fff);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.ra2-resource-search input::placeholder {
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-resource-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.ra2-search-btn {
  flex: none;
  height: 42px;
  padding: 0 30px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  background: linear-gradient(180deg, var(--ra-red, #E63946), #a51d28);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.ra2-search-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(229, 43, 50, 0.24);
}

/* ---------- 类型快捷入口（首页快速行动缩小版） ---------- */
.ra2-resource-types {
  position: relative;
  z-index: 4;
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 24px 6px;
  box-sizing: border-box;
}

.ra2-types-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.ra2-type-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 10px 14px;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(180deg, var(--ra-bg-card, #18222E), var(--ra-bg-surface, #121820));
  border: 1px solid var(--ra-border, #263545);
  border-radius: 3px;
  color: var(--ra-text-secondary, #C8D1DC);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ra2-type-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--ra-red, #E63946), rgba(230, 57, 70, 0));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ra2-type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 57, 70, 0.45);
}

.ra2-type-card.on {
  border-color: rgba(230, 57, 70, 0.65);
  box-shadow: 0 0 18px rgba(230, 57, 70, 0.12), inset 0 0 22px rgba(230, 57, 70, 0.05);
}

.ra2-type-card.on::before {
  opacity: 1;
}

.ra2-type-card .ico {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ra-border, #263545);
  background: rgba(9, 13, 18, 0.55);
  color: var(--ra-gold, #FFB703);
}

.ra2-type-card .ico svg {
  width: 19px;
  height: 19px;
}

.ra2-type-card.on .ico {
  color: var(--ra-red, #E63946);
  border-color: rgba(230, 57, 70, 0.5);
}

.ra2-type-card .tx {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ra2-type-card .tx b {
  font-size: 14px;
  font-weight: 700;
  color: var(--ra-text-main, #fff);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ra2-type-card .tx i {
  font-style: normal;
  font-family: var(--ra-font-hud, monospace);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ra-text-muted, #8A99AD);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 主内容布局：左筛选 260px + 右列表 ---------- */
.ra2-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 24px 10px;
  box-sizing: border-box;
}

.ra2-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ra2-backdrop {
  display: none;
}

/* ---------- 左侧战备筛选 ---------- */
.ra2-filter-panel {
  position: sticky;
  top: 84px;
  background: var(--ra-bg-surface, #121820);
  border: 1px solid var(--ra-border, #263545);
  border-radius: 3px;
  padding: 16px 16px 14px;
}

.ra2-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ra-gold, #FFB703);
  border-bottom: 1px solid var(--ra-border, #263545);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.ra2-filter-close {
  display: none;
  background: transparent;
  border: 0;
  color: var(--ra-text-muted, #8A99AD);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px;
}

.ra2-fgroup {
  margin-bottom: 18px;
}

.ra2-fgroup:last-of-type {
  margin-bottom: 8px;
}

.ra2-fgroup h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ra-text-secondary, #C8D1DC);
}

.ra2-fgroup .ra2-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ra2-fgroup .chip {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ra-text-muted, #8A99AD);
  background: transparent;
  border: 1px solid var(--ra-border, #263545);
  padding: 6px 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ra2-fgroup .chip:hover {
  color: var(--ra-text-main, #fff);
  border-color: var(--ra-text-muted, #8A99AD);
}

.ra2-fgroup .chip.on {
  background: var(--ra-red, #E63946);
  border-color: var(--ra-red, #E63946);
  color: #fff;
}

.ra2-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ra-text-secondary, #C8D1DC);
  border: 1px solid var(--ra-border, #263545);
  padding: 6px 11px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ra2-check:hover {
  border-color: rgba(230, 57, 70, 0.45);
}

.ra2-check:has(input:checked) {
  border-color: rgba(230, 57, 70, 0.65);
  color: var(--ra-text-main, #fff);
  background: rgba(230, 57, 70, 0.07);
}

.ra2-check input {
  accent-color: var(--ra-red, #E63946);
  margin: 0;
}

.ra2-drawer-foot {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--ra-border, #263545);
  padding-top: 14px;
}

.ra2-ghost-btn,
.ra2-primary-btn,
.ra2-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.ra2-ghost-btn {
  flex: 1;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--ra-border, #263545);
  color: var(--ra-text-secondary, #C8D1DC);
}

.ra2-ghost-btn:hover {
  border-color: var(--ra-text-muted, #8A99AD);
  color: var(--ra-text-main, #fff);
}

.ra2-primary-btn {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid var(--ra-red, #E63946);
  background: linear-gradient(180deg, var(--ra-red, #E63946), #a51d28);
  color: #fff;
  font-weight: 700;
}

.ra2-primary-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(229, 43, 50, 0.24);
}

/* ---------- 工具栏（结果状态栏） ---------- */
.ra2-resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--ra-border, #263545);
  background: var(--ra-bg-surface, #121820);
  padding: 13px 18px;
  margin-bottom: 18px;
}

.ra2-toolbar-l {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.ra2-toolbar-l h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--ra-text-main, #fff);
}

.ra2-count {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-count[data-state='ok'] {
  color: var(--ra-green, #A6C94A);
}

.ra2-count[data-state='error'] {
  color: var(--ra-red, #E63946);
}

.ra2-toolbar-r {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ra2-mini-btn {
  display: none;
  padding: 7px 13px;
  background: transparent;
  border: 1px solid var(--ra-border, #263545);
  color: var(--ra-text-secondary, #C8D1DC);
}

.ra2-mini-btn:hover {
  border-color: rgba(230, 57, 70, 0.5);
}

.ra2-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ra-font-hud, monospace);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-sort select {
  background: var(--ra-bg-card, #18222E);
  border: 1px solid var(--ra-border, #263545);
  color: var(--ra-text-main, #fff);
  font-size: 12.5px;
  padding: 7px 10px;
  cursor: pointer;
  outline: none;
}

/* ---------- 资源网格与卡片 ---------- */
.ra2-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ra2-resource-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.ra2-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #16202B 0%, #0D1319 100%);
  border-bottom: 1px solid var(--ra-border, #263545);
  overflow: hidden;
}

.ra2-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

.ra2-card-cover .ra2-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ra-font-hud, monospace);
  font-size: 26px;
  letter-spacing: 0.3em;
  color: rgba(138, 153, 173, 0.28);
  background:
    radial-gradient(circle at 78% 18%, rgba(230, 57, 70, 0.10), transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(255, 183, 3, 0.06), transparent 50%);
}

.ra2-card-cover .res-type {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.ra2-verified {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ra-font-hud, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #10130B;
  background: var(--ra-green, #A6C94A);
  border: 1px solid rgba(166, 201, 74, 0.7);
  padding: 2px 7px;
}

.ra2-pts {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--ra-font-hud, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ra-gold, #FFB703);
  background: rgba(9, 13, 18, 0.78);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 2px 7px;
}

.ra2-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px 16px 14px;
  flex: 1;
}

.ra2-card-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ra-text-main, #fff);
}

.ra2-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.ra2-card-body h3 a:hover {
  color: var(--ra-gold, #FFB703);
}

.ra2-card-sub {
  margin: 0;
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-card-body .desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ra-text-muted, #8A99AD);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 41px;
}

.ra2-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px dashed var(--ra-border, #263545);
  padding-top: 11px;
}

.ra2-card-foot .dl {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  color: var(--ra-text-secondary, #C8D1DC);
}

.ra2-card-foot .dl b {
  color: var(--ra-green, #A6C94A);
  font-weight: 600;
}

.ra2-card-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ra-red, #E63946);
  text-decoration: none;
  border: 1px solid rgba(230, 57, 70, 0.45);
  padding: 6px 13px;
  transition: all 0.15s ease;
}

.ra2-card-btn:hover {
  background: var(--ra-red, #E63946);
  color: #fff;
  box-shadow: 0 0 14px rgba(229, 43, 50, 0.28);
}

/* ---------- 四态（Loading / Error / Empty / Success） ---------- */
.ra2-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  border: 1px dashed var(--ra-border, #263545);
  background: rgba(18, 24, 32, 0.5);
  text-align: center;
  padding: 30px 20px;
}

.ra2-state .ra2-state-ico {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-state p {
  margin: 0;
  font-size: 14px;
  color: var(--ra-text-secondary, #C8D1DC);
}

.ra2-state small {
  font-size: 12px;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-state.ra2-state--error {
  border-color: rgba(230, 57, 70, 0.4);
}

.ra2-state.ra2-state--error .ra2-state-ico {
  color: var(--ra-red, #E63946);
}

.ra2-state .ra2-primary-btn,
.ra2-state .ra2-ghost-btn {
  flex: none;
  min-width: 128px;
}

/* ---------- 最近补给 ---------- */
.ra2-recent {
  border: 1px solid var(--ra-border, #263545);
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.05), rgba(18, 24, 32, 0.6));
  padding: 14px 18px 15px;
  margin-bottom: 18px;
}

.ra2-recent-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
}

.ra2-recent-head b {
  font-family: var(--ra-font-hud, monospace);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ra-red, #E63946);
}

.ra2-recent-head span {
  font-size: 12px;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-recent-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ra2-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ra-border, #263545);
  background: var(--ra-bg-card, #18222E);
  padding: 9px 12px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.ra2-recent-item:hover {
  border-color: rgba(230, 57, 70, 0.5);
}

.ra2-recent-item .res-type {
  flex: none;
}

.ra2-recent-item .t {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ra2-recent-item .t b {
  font-size: 13px;
  color: var(--ra-text-main, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ra2-recent-item .t i {
  font-style: normal;
  font-family: var(--ra-font-hud, monospace);
  font-size: 10.5px;
  color: var(--ra-text-muted, #8A99AD);
}

.ra2-recent-item .arr {
  margin-left: auto;
  color: var(--ra-text-muted, #8A99AD);
  flex: none;
}

/* ---------- RESOURCE SAFETY ---------- */
.ra2-safety {
  margin-top: 26px;
  border: 1px solid var(--ra-border, #263545);
  background: var(--ra-bg-surface, #121820);
}

.ra2-safety-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
}

.ra2-safety-text b {
  display: block;
  font-family: var(--ra-font-hud, monospace);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--ra-gold, #FFB703);
  margin-bottom: 6px;
}

.ra2-safety-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ra-text-muted, #8A99AD);
  max-width: 640px;
}

.ra2-safety-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ra2-safety-btns .ra2-ghost-btn,
.ra2-safety-btns .ra2-primary-btn {
  flex: none;
}

/* ---------- SUPPLY THE FRONT CTA ---------- */
.ra2-supply-cta {
  border-top: 1px solid var(--ra-border, #263545);
  background:
    radial-gradient(60% 120% at 50% 115%, rgba(230, 57, 70, 0.16), transparent 60%),
    linear-gradient(180deg, #0B0F14, #090D12);
}

.ra2-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 58px 24px 62px;
}

.ra2-cta-eyebrow {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--ra-red, #E63946);
  margin: 0 0 12px;
}

.ra2-cta-inner h3 {
  font-family: var(--ra-font-title, 'PingFang SC', sans-serif);
  font-size: 25px;
  letter-spacing: 1px;
  color: var(--ra-text-main, #fff);
  margin: 0 0 10px;
}

.ra2-cta-inner p:not(.ra2-cta-eyebrow) {
  color: var(--ra-text-muted, #8A99AD);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.ra2-cta-btn {
  display: inline-block;
  padding: 13px 42px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, var(--ra-red, #E63946), #a51d28);
  border: 1px solid rgba(230, 57, 70, 0.6);
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ra2-cta-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(229, 43, 50, 0.3);
  transform: translateY(-1px);
}

/* ---------- 响应式 ---------- */
@media (min-width: 1680px) {
  .ra2-resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1080px) {
  .ra2-layout {
    grid-template-columns: 1fr;
  }

  /* 筛选面板 → Drawer */
  .ra2-filter-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 90;
    width: min(320px, 86vw);
    border-radius: 0;
    border-right: 0;
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.24s ease;
  }

  .ra2-filter-panel.open {
    transform: translateX(0);
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.55);
  }

  .ra2-filter-close {
    display: block;
  }

  .ra2-drawer-foot {
    position: sticky;
    bottom: 0;
    background: var(--ra-bg-surface, #121820);
    margin: 10px -16px -14px;
    padding: 12px 16px;
  }

  .ra2-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 6, 9, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .ra2-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  .ra2-mini-btn {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .ra2-types-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .ra2-hero-title {
    font-size: 36px;
  }
}

@media (max-width: 680px) {
  .ra2-hero-inner {
    padding: 34px 18px 88px;
  }

  .ra2-hero-title {
    font-size: 31px;
  }

  .ra2-hero-desc br {
    display: none;
  }

  .ra2-search-dock {
    padding: 0 14px;
  }

  .ra2-resource-search {
    height: 52px;
    padding-left: 13px;
  }

  .ra2-search-btn {
    padding: 0 16px;
    letter-spacing: 0.08em;
  }

  .ra2-resource-types {
    padding: 48px 14px 4px;
  }

  .ra2-types-inner {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .ra2-types-inner::-webkit-scrollbar {
    display: none;
  }

  .ra2-type-card {
    flex: none;
    width: 150px;
  }

  .ra2-main {
    padding: 22px 14px 6px;
  }

  /* 手机资源卡：横向布局（图左文右） */
  .ra2-resource-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ra2-resource-card {
    flex-direction: row;
  }

  .ra2-card-cover {
    width: 128px;
    flex: none;
    aspect-ratio: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--ra-border, #263545);
  }

  .ra2-card-cover .res-type {
    top: 8px;
    left: 8px;
    transform: scale(0.92);
    transform-origin: top left;
  }

  .ra2-card-cover .ra2-cover-fallback {
    font-size: 18px;
  }

  .ra2-card-body {
    padding: 12px 13px 11px;
    gap: 7px;
  }

  .ra2-card-body .desc {
    display: none;
  }

  .ra2-card-foot {
    margin-top: auto;
  }

  .ra2-recent-list {
    grid-template-columns: 1fr;
  }

  .ra2-safety-inner {
    padding: 16px;
  }

  .ra2-safety-btns {
    width: 100%;
  }

  .ra2-safety-btns>* {
    flex: 1;
  }
}
