/* 剧情栏目：站点模板化后的列表与正文样式
   Scope: /jq/ */
.story-page {
  background: #f4f7f8;
}

.story-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 32px;
}

.story-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: #75888e;
  font-size: 13px;
  font-weight: 700;
}

.story-breadcrumb a {
  color: #0b7280;
  text-decoration: none;
}

.story-breadcrumb .fa-angle-right {
  color: #b3c2c5;
  font-size: 12px;
}

/* 列表页 */
.story-hero {
  padding: 26px 28px 28px;
  border: 1px solid #d2e0e3;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% -20%, rgba(11, 114, 128, .12), transparent 38%),
    #fff;
}

.story-hero .story-kicker {
  margin: 0 0 6px;
  color: #0b7280;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}

.story-hero h1 {
  margin: 0;
  color: #0d2027;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 950;
  line-height: 1.15;
}

.story-hero p {
  max-width: 860px;
  margin: 10px 0 0;
  color: #50686f;
  font-size: 14px;
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.story-card {
  min-width: 0;
  border: 1px solid #d3e0e3;
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.story-card:hover,
.story-card:focus-within {
  border-color: #83b4bc;
  box-shadow: 0 14px 30px rgba(23, 46, 53, .08);
  transform: translateY(-2px);
}

.story-card__link {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 18px 18px 16px;
  color: inherit;
  text-decoration: none;
}

.story-card__kicker {
  color: #8ba0a5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.story-card h2 {
  margin: 0;
  color: #0d2027;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.3;
}

.story-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 63px;
  margin: 0;
  color: #566d74;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-card__go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 2px;
  color: #0b7280;
  font-size: 12.5px;
  font-weight: 950;
}

.story-card__go .fa {
  font-size: 11px;
}

/* 详情页 */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.story-article {
  min-width: 0;
  border: 1px solid #d3e0e3;
  border-radius: 12px;
  background: #fff;
  padding: 26px 28px 24px;
}

.story-article h1 {
  margin: 0 0 16px;
  color: #0d2027;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 950;
  line-height: 1.2;
}

.story-content {
  color: #20373e;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.story-content p {
  margin: 0 0 14px;
}

.story-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.story-content a {
  color: #0b7280;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.story-content iframe {
  display: block;
  max-width: 100%;
  height: 500px;
  margin: 12px 0;
  border: 0;
  border-radius: 10px;
}

.story-content hr {
  max-width: 760px;
  margin: 18px auto;
  border: 0;
  border-top: 1px solid #dbe5e7;
}

.story-content h3,
.story-content h4 {
  margin: 22px 0 10px;
  color: #12303a;
  font-weight: 950;
  line-height: 1.35;
}

.story-content h3 {
  font-size: 20px;
}

.story-content h4 {
  font-size: 17px;
}

.story-content .ts,
.story-content .rwmb,
.story-content .rwyq,
.story-content .rwgl {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #ecf7f8;
  color: #0b6471;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.6;
}

.story-prenext {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #e2eaed;
  font-size: 13px;
  font-weight: 800;
}

.story-prenext a {
  color: #0b7280;
  text-decoration: none;
}

.story-prenext a:hover {
  text-decoration: underline;
}

.story-prenext .is-muted {
  color: #9aabaf;
}

.story-side {
  position: sticky;
  top: 78px;
  min-width: 0;
  border: 1px solid #d3e0e3;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.story-side h2 {
  margin: 0 0 10px;
  color: #142c34;
  font-size: 15px;
  font-weight: 950;
}

.story-side__list {
  display: grid;
  gap: 2px;
}

.story-side__list a {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 7px;
  color: #3d565e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-side__list a:hover,
.story-side__list a.is-active {
  background: #ecf7f8;
  color: #0b6471;
}

.story-side__back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 12px;
  border: 1px solid #cddde0;
  border-radius: 999px;
  background: #f6fafb;
  color: #0b6471;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.story-side__back:hover {
  border-color: #0b7280;
  background: #0b7280;
  color: #fff;
}

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

  .story-side {
    position: static;
    margin-top: 12px;
  }
}

@media (max-width: 700px) {
  .story-wrap {
    width: calc(100% - 20px);
    padding: 16px 0 24px;
  }

  .story-hero {
    padding: 20px 18px;
  }

  /* 2026-09-26 移动端优化：故事/攻略列表桌面 3 列、手机 1 列会拉长页面，
     手机保持 2 列（卡片高度不变，列表块 3433px → 2023px）。 */
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .story-article {
    padding: 18px 16px;
  }

  .story-content iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .story-prenext {
    flex-direction: column;
  }
}