/* ============================================================
   原点体育 · 门户二级页（文章 / 更新 / 协议 / 404）
   ============================================================ */

body.subpage {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.subpage > main {
  flex: 1 0 auto;
}

body.subpage > .site-footer {
  flex: none;
}

/* 顶部信息带 */
.page-hero {
  position: relative;
  padding: 40px 0 44px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 53, 0.1), transparent);
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 12.5px;
  color: var(--muted-2);
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb span {
  opacity: 0.6;
}

.page-hero h1 {
  margin-top: 14px;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero__lead {
  margin-top: 16px;
  text-wrap: balance;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

.page-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

.page-meta .mono-num {
  font-family: var(--font-num);
}

/* 正文区 */
.page-body {
  padding: 56px 0 88px;
}

.prose {
  max-width: 720px;
}

.prose--wide {
  max-width: 860px;
}

.article--page {
  font-size: 17px;
  line-height: 2.05;
}

.article--page h3 {
  margin-top: 2.4em;
}

.article--page > p:first-of-type::first-letter {
  font-size: 62px;
}

.article--page.article--no-drop > p:first-of-type::first-letter {
  float: none;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.page-end {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-end__text {
  font-size: 13px;
  color: var(--muted);
}

.page-end__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 协议 / 说明类长文 */
.legal {
  font-size: 15px;
  line-height: 1.95;
  color: #263a46;
}

.legal > p {
  margin: 0 0 1.1em;
}

.legal h2 {
  margin: 2.2em 0 0.7em;
  font-size: 19px;
  font-family: var(--font-serif);
  letter-spacing: 0;
}

.legal h3 {
  margin: 1.6em 0 0.5em;
  font-size: 15.5px;
}

.legal ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.45em;
}

.legal strong {
  color: var(--ink);
}

.legal__note {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--orange-soft);
  border: 1px solid #ffdccd;
  font-size: 13px;
  line-height: 1.8;
  color: #8a3d21;
}

.legal__updated {
  margin-bottom: 28px;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 更新日志页 */
.log__anchor {
  position: relative;
}

.log-page .log__item {
  padding-bottom: 38px;
}

.log-page .log__item:first-child {
  padding-top: 4px;
}

.log__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.log__link:hover {
  color: var(--orange);
}

/* 404 */
.notfound {
  min-height: calc(100vh - 72px - 340px);
  display: grid;
  place-items: center;
  padding: 72px 0;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-num);
  font-size: clamp(84px, 12vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.notfound__code span {
  color: var(--orange);
}

.notfound h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
}

.notfound p {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.notfound__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notfound__links {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.notfound__links a {
  border-bottom: 1px solid transparent;
}

.notfound__links a:hover {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

@media (max-width: 640px) {
  .page-hero { padding: 28px 0 32px; }
  .page-body { padding: 36px 0 56px; }
  .article--page { font-size: 16px; }
  .page-end { flex-direction: column; align-items: flex-start; }
}

/* ---------- 文章配图 ---------- */
.article__figure {
  margin: 2.4em 0;
}
.article__figure picture {
  display: block;
}
.article__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.article__figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted-2);
  text-align: center;
}

@media (max-width: 640px) {
  .page-meta { column-gap: 16px; row-gap: 6px; }
  .page-meta i { display: none; }
  .only-mobile { display: inline; }
}
