/* ============================================================
   攻略页 ST-ARCHIVE「战术档案库」· 组件样式
   设计稿：红警社区战略攻略页设计板
   原则：内容 70% / 战术氛围 20% / 装饰 10%
   数据：全部来自 /api/articles 真实字段，无假数据
   ============================================================ */

/* ---------- Hero：TACTICAL ARCHIVE ---------- */
.st-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ra-border, #263545);
  background: #070B10;
}
.st-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.st-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  opacity: .92;
}
.st-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, .95) 0%, rgba(7, 11, 16, .86) 26%, rgba(7, 11, 16, .52) 52%, rgba(7, 11, 16, .12) 78%, rgba(7, 11, 16, .04) 100%),
    linear-gradient(180deg, rgba(7, 11, 16, .45) 0%, rgba(7, 11, 16, 0) 38%, rgba(7, 11, 16, .55) 82%, rgba(7, 11, 16, .92) 100%);
}
.st-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 84px 24px 68px;
}
.st-crumb {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ra-muted, #7B8B9E);
  margin-bottom: 18px;
}
.st-crumb a { color: inherit; text-decoration: none; }
.st-crumb a:hover { color: var(--ra-red, #E63946); }
.st-crumb span { margin: 0 6px; opacity: .5; }

.st-eyebrow {
  font-family: var(--ra-font-hud, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .34em;
  color: var(--ra-gold, #FFB703);
  margin: 0 0 10px;
}
.st-title {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 16px;
  color: #F2F6FA;
  letter-spacing: .01em;
}
.st-title em {
  font-style: normal;
  color: var(--ra-red, #E63946);
  text-shadow: 0 0 28px rgba(230, 57, 70, .45);
}
.st-desc {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.85;
  color: #A9B7C6;
  margin: 0 0 20px;
}
.st-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--ra-font-hud, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  color: #7B8B9E;
}
.st-tags span {
  padding: 3px 9px;
  border: 1px solid rgba(123, 139, 158, .3);
  border-radius: 2px;
}
.st-tags i { font-style: normal; opacity: .4; align-self: center; }

/* 搜索：压在 Hero 下沿 */
.st-search-dock {
  position: relative;
  max-width: 1280px;
  margin: -34px auto 0;
  padding: 0 24px;
  z-index: 3;
}
.st-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  padding: 6px 6px 6px 16px;
  background: rgba(13, 19, 25, .96);
  border: 1px solid var(--ra-border, #263545);
  border-left: 3px solid var(--ra-red, #E63946);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
.st-search-ico { color: #6B7A8C; flex: none; }
.st-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #E8EEF4;
  font-size: 14px;
  padding: 10px 0;
  font-family: inherit;
}
.st-search input::placeholder { color: #5A6878; }
.st-search button {
  flex: none;
  padding: 11px 26px;
  background: var(--ra-red, #E63946);
  color: #fff;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .18s ease;
}
.st-search button:hover { background: #FF4B58; }

/* ---------- 分类入口 ---------- */
.st-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.st-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 40px 0 8px;
}
.st-cat {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0D1319;
  border: 1px solid var(--ra-border, #263545);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.st-cat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--ra-red, #E63946);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.st-cat:hover { transform: translateY(-3px); border-color: rgba(230, 57, 70, .5); }
.st-cat:hover::before,
.st-cat.on::before { transform: scaleX(1); }
.st-cat.on { border-color: rgba(230, 57, 70, .65); background: #111922; }
.st-cat-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0A0F14;
}
.st-cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .62;
  transition: transform .3s ease, opacity .3s ease;
}
.st-cat:hover .st-cat-img img { transform: scale(1.05); opacity: .8; }
.st-cat-ico {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 16, .84);
  border: 1px solid rgba(230, 57, 70, .45);
  color: var(--ra-gold, #FFB703);
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  font-weight: 700;
}
.st-cat-bd { padding: 10px 12px 12px; }
.st-cat-bd b {
  display: block;
  font-size: 14px;
  color: #E8EEF4;
  margin-bottom: 3px;
  font-weight: 700;
}
.st-cat-bd i {
  font-style: normal;
  display: block;
  font-size: 11px;
  color: #6B7A8C;
  line-height: 1.5;
}
.st-cat-n {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(38, 53, 69, .7);
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  color: #6B7A8C;
}
.st-cat-n b { font-size: 15px; color: var(--ra-gold, #FFB703); }

/* ---------- 区块标题 ---------- */
.st-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 46px 0 18px;
}
.st-sec-head-l { min-width: 0; }
.st-sec-tag {
  display: inline-block;
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--ra-red, #E63946);
  margin-bottom: 8px;
}
.st-sec-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: #F2F6FA;
}
.st-sec-head h2 em { font-style: normal; color: var(--ra-red, #E63946); }
.st-sec-head p {
  margin: 7px 0 0;
  font-size: 13px;
  color: #7B8B9E;
  line-height: 1.7;
}
.st-more {
  flex: none;
  font-size: 13px;
  color: var(--ra-red, #E63946);
  text-decoration: none;
  font-weight: 600;
}
.st-more:hover { color: #FF6B76; }

/* ---------- 精选攻略（横卡） ---------- */
.st-pick {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: #0D1319;
  border: 1px solid var(--ra-border, #263545);
  border-left: 3px solid var(--ra-red, #E63946);
  text-decoration: none;
  overflow: hidden;
  transition: border-color .2s ease;
}
.st-pick:hover { border-color: rgba(230, 57, 70, .55); border-left-color: var(--ra-red, #E63946); }
.st-pick-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0A0F14;
}
.st-pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-pick-badge {
  position: absolute;
  left: 0;
  top: 12px;
  background: var(--ra-red, #E63946);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: .08em;
}
.st-pick-bd { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.st-pick-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  margin-bottom: 12px;
  background: rgba(230, 57, 70, .12);
  border: 1px solid rgba(230, 57, 70, .4);
  color: #FF7A84;
}
.st-pick-bd h3 {
  font-size: 21px;
  line-height: 1.42;
  margin: 0 0 10px;
  color: #F2F6FA;
  font-weight: 700;
}
.st-pick-bd p {
  font-size: 13px;
  line-height: 1.8;
  color: #93A3B4;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-pick-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 12px;
  color: #6B7A8C;
  font-family: var(--ra-font-hud, monospace);
}
.st-pick-meta b { color: #C6D3DF; font-weight: 600; }
.st-pick-cta {
  margin-top: 16px;
  align-self: flex-start;
  padding: 9px 20px;
  background: var(--ra-red, #E63946);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease;
}
.st-pick:hover .st-pick-cta { background: #FF4B58; }

/* ---------- 工具条：Tab + 排序 ---------- */
.st-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--ra-border, #263545);
}
.st-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tab {
  padding: 7px 15px;
  background: transparent;
  border: 1px solid var(--ra-border, #263545);
  color: #8B9AAB;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s ease;
}
.st-tab:hover { color: #DCE5EE; border-color: #3A4B5E; }
.st-tab.on {
  background: var(--ra-red, #E63946);
  border-color: var(--ra-red, #E63946);
  color: #fff;
  font-weight: 700;
}
.st-tab b { font-family: var(--ra-font-hud, monospace); opacity: .7; margin-left: 4px; font-weight: 400; }
.st-tools { display: flex; align-items: center; gap: 10px; }
.st-count {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  color: #7B8B9E;
}
.st-count b { color: var(--ra-gold, #FFB703); font-size: 14px; }
.st-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7A8C;
}
.st-sort select {
  background: #0D1319;
  border: 1px solid var(--ra-border, #263545);
  color: #C6D3DF;
  font-size: 12px;
  padding: 6px 9px;
  font-family: inherit;
  cursor: pointer;
  outline: 0;
}
.st-sort select:focus { border-color: var(--ra-red, #E63946); }

/* ---------- 攻略列表 ---------- */
.st-list { display: flex; flex-direction: column; }
.st-item {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(38, 53, 69, .6);
  text-decoration: none;
  transition: background .18s ease;
}
.st-item:hover { background: rgba(230, 57, 70, .035); }
.st-item-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0A0F14;
  border: 1px solid rgba(38, 53, 69, .8);
}
.st-item-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.st-item:hover .st-item-cover img { transform: scale(1.04); }
.st-item-cat {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(7, 11, 16, .9);
  border-right: 1px solid rgba(230, 57, 70, .5);
  border-bottom: 1px solid rgba(230, 57, 70, .5);
  color: var(--ra-gold, #FFB703);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  letter-spacing: .06em;
}
.st-item-bd { min-width: 0; }
.st-item-bd h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 7px;
  color: #E8EEF4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-item:hover .st-item-bd h3 { color: #fff; }
.st-item-bd p {
  font-size: 13px;
  line-height: 1.75;
  color: #7B8B9E;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 11px;
  color: #6B7A8C;
  font-family: var(--ra-font-hud, monospace);
}
.st-item-meta em {
  font-style: normal;
  color: #93A3B4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.st-diff {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ra-gold, #FFB703);
  letter-spacing: -.5px;
}
.st-item-cta {
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--ra-red, #E63946);
  color: var(--ra-red, #E63946);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .18s ease;
}
.st-item:hover .st-item-cta { background: var(--ra-red, #E63946); color: #fff; }

/* ---------- 四态 ---------- */
.st-state {
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed rgba(38, 53, 69, .9);
  background: rgba(13, 19, 25, .5);
  margin: 24px 0;
}
.st-state-ico {
  display: inline-block;
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--ra-gold, #FFB703);
  border: 1px solid rgba(255, 183, 3, .4);
  padding: 5px 12px;
  margin-bottom: 14px;
}
.st-state p { font-size: 14px; color: #93A3B4; margin: 0 0 6px; }
.st-state small { display: block; font-size: 12px; color: #5A6878; margin-bottom: 16px; }
.st-state--error .st-state-ico { color: #FF6B76; border-color: rgba(230, 57, 70, .5); }
.st-btn {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--ra-red, #E63946);
  background: transparent;
  color: var(--ra-red, #E63946);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
}
.st-btn:hover { background: var(--ra-red, #E63946); color: #fff; }
.st-btn--ghost { border-color: var(--ra-border, #263545); color: #8B9AAB; }
.st-btn--ghost:hover { background: #16202B; color: #DCE5EE; border-color: #3A4B5E; }

/* ---------- 底部 CTA ---------- */
.st-cta {
  position: relative;
  overflow: hidden;
  margin: 56px 0 0;
  border-top: 1px solid var(--ra-border, #263545);
  background: #070B10;
}
.st-cta-bg { position: absolute; inset: 0; }
.st-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.st-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 16, .96) 30%, rgba(7, 11, 16, .55) 100%);
}
.st-cta-in {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.st-cta-eyebrow {
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--ra-gold, #FFB703);
  margin: 0 0 8px;
}
.st-cta-in h3 { font-size: 24px; font-weight: 800; color: #F2F6FA; margin: 0 0 8px; }
.st-cta-in p { font-size: 13px; color: #93A3B4; margin: 0; line-height: 1.75; max-width: 640px; }
.st-cta-btns { display: flex; gap: 10px; flex: none; }
.st-cta-btn {
  padding: 12px 26px;
  background: var(--ra-red, #E63946);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ra-red, #E63946);
  white-space: nowrap;
  transition: background .18s ease;
}
.st-cta-btn:hover { background: #FF4B58; }
.st-cta-btn--ghost { background: transparent; color: #C6D3DF; border-color: #3A4B5E; }
.st-cta-btn--ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .st-cats { grid-template-columns: repeat(3, 1fr); }
  .st-title { font-size: 44px; }
}
@media (max-width: 900px) {
  .st-pick { grid-template-columns: 1fr; }
  .st-pick-bd { padding: 18px; }
  .st-item { grid-template-columns: 168px 1fr; }
  .st-item-cta { display: none; }
}
@media (max-width: 680px) {
  .st-hero-inner { padding: 56px 16px 52px; }
  .st-hero-bg img { object-position: 62% 50%; opacity: .85; }
  .st-hero-bg::after {
    background:
      linear-gradient(90deg, rgba(7, 11, 16, .93) 0%, rgba(7, 11, 16, .74) 60%, rgba(7, 11, 16, .5) 100%),
      linear-gradient(180deg, rgba(7, 11, 16, .4) 0%, rgba(7, 11, 16, .1) 40%, rgba(7, 11, 16, .88) 100%);
  }
  .st-title { font-size: 33px; }
  .st-desc { font-size: 13px; }
  .st-search-dock { padding: 0 16px; margin-top: -26px; }
  .st-search { padding-left: 12px; }
  .st-search button { padding: 10px 18px; font-size: 13px; }
  .st-wrap { padding: 0 16px; }
  .st-cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 30px 0 4px;
  }
  .st-sec-head { padding: 32px 0 14px; flex-direction: column; align-items: flex-start; }
  .st-sec-head h2 { font-size: 21px; }
  /* 列表转横向卡 */
  .st-item {
    grid-template-columns: 128px 1fr;
    gap: 12px;
    padding: 14px 0;
  }
  .st-item-bd h3 { font-size: 14px; -webkit-line-clamp: 2; }
  .st-item-bd p { display: none; }
  .st-bar { padding: 18px 0 12px; }
  .st-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .st-tab { flex: none; }
  .st-tools { width: 100%; justify-content: space-between; }
  .st-cta-in { flex-direction: column; align-items: flex-start; padding: 32px 16px; }
  .st-cta-in h3 { font-size: 19px; }
  .st-cta-btns { width: 100%; }
  .st-cta-btn { flex: 1; text-align: center; padding: 12px 10px; }
}
