:root {
  --primary: #ff7a00;
  --primary-2: #5aa2ff;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.22);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --bg: #f5f8ff;
  --bg-soft: #eef4ff;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1240px;
}

html {
  scroll-behavior: smooth;
}

body.tpl5-page {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(90, 162, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 122, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 30%, #f3f7ff 100%);
  font-family:
    "Inter",
    "PingFang SC",
    "Microsoft YaHei",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.tpl5-shell {
  width: min(var(--max-width), calc(100vw - 40px));
  margin: 0 auto;
}

.tpl5-main {
  padding-bottom: 72px;
}

.tpl5-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.tpl5-header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.tpl5-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tpl5-brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8efff, #fff4e8);
  box-shadow: var(--shadow-soft);
  flex: 0 0 auto;
}

.tpl5-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl5-brand__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tpl5-brand__copy strong {
  color: var(--dark);
  font-size: 18px;
  line-height: 1.15;
}

.tpl5-brand__copy small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl5-header__toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tpl5-header__toggle span {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
}

.tpl5-header__toggle span::before,
.tpl5-header__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
}

.tpl5-header__toggle span::before {
  top: -6px;
}

.tpl5-header__toggle span::after {
  top: 6px;
}

.tpl5-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tpl5-nav > a {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.tpl5-nav > a:hover {
  color: var(--primary);
  background: rgba(255, 122, 0, 0.08);
}

.tpl5-nav > a.tpl5-header__cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(255, 122, 0, 0.16);
  padding-inline: 20px;
}

.tpl5-nav > a.tpl5-header__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 122, 0, 0.2);
}

.tpl5-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 44px;
}

.tpl5-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(90, 162, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(255, 122, 0, 0.14), transparent 26%);
  pointer-events: none;
}

.tpl5-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.tpl5-hero__content,
.tpl5-hero__panel,
.tpl5-sidecard,
.tpl5-article,
.tpl5-pagehead,
.tpl5-search,
.tpl5-footer {
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.tpl5-hero__content {
  padding: 40px;
  border-radius: 36px;
}

.tpl5-hero__panel {
  padding: 28px;
  border-radius: 32px;
}

.tpl5-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tpl5-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 122, 0, 0.12);
}

.tpl5-hero h1,
.tpl5-pagehead h1,
.tpl5-article h1 {
  margin: 12px 0 14px;
  color: var(--dark);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.tpl5-hero p,
.tpl5-pagehead p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 44rem;
}

.tpl5-search {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 20px;
}

.tpl5-search input {
  flex: 1;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dark);
  padding: 0 14px;
}

.tpl5-search input::placeholder {
  color: #94a3b8;
}

.tpl5-search button {
  height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.16);
  cursor: pointer;
  white-space: nowrap;
}

.tpl5-search--compact {
  margin-top: 22px;
  max-width: 620px;
}

.tpl5-hero__stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tpl5-stat {
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.tpl5-stat strong {
  display: block;
  color: var(--dark);
  font-size: 28px;
  line-height: 1;
}

.tpl5-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tpl5-hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tpl5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.tpl5-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.18);
}

.tpl5-btn--ghost {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.85);
}

.tpl5-btn:hover {
  transform: translateY(-1px);
}

.tpl5-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tpl5-panel-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tpl5-panel-head strong {
  color: var(--dark);
  font-size: 22px;
}

.tpl5-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tpl5-category-card {
  position: relative;
  min-height: 118px;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.12), rgba(90, 162, 255, 0.12)),
    linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.tpl5-category-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(90, 162, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.tpl5-category-card strong {
  color: var(--dark);
  font-size: 18px;
  line-height: 1.18;
}

.tpl5-category-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tpl5-category-card em {
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tpl5-section {
  padding: 34px 0 78px;
}

.tpl5-section--tight {
  padding-top: 22px;
  padding-bottom: 24px;
}

.tpl5-section__head,
.tpl5-pagehead {
  max-width: 900px;
  margin: 0 auto 28px;
}

.tpl5-section__head h2 {
  margin: 12px 0 8px;
  color: var(--dark);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.tpl5-section__head p,
.tpl5-pagehead p {
  max-width: 44rem;
}

.tpl5-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tpl5-article-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tpl5-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tpl5-article-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e8efff, #fff4e8);
}

.tpl5-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl5-article-card__media--empty,
.tpl5-article-row__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.08), rgba(90, 162, 255, 0.08)),
    linear-gradient(180deg, #f8fbff, #eef4ff);
}

.tpl5-article-card__media--empty span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.82);
}

.tpl5-article-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.tpl5-article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tpl5-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.tpl5-article-card__title {
  margin: 0;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.28;
}

.tpl5-article-card__title a:hover {
  color: var(--primary);
}

.tpl5-article-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.tpl5-article-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tpl5-article-card__read {
  color: var(--primary);
  font-weight: 700;
}

.tpl5-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 24px;
  align-items: start;
}

.tpl5-layout--detail {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.tpl5-layout__main,
.tpl5-layout__aside {
  min-width: 0;
}

.tpl5-article-list {
  display: grid;
  gap: 18px;
}

.tpl5-article-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
  transition: 0.22s ease;
}

.tpl5-article-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tpl5-article-row__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #e8efff, #fff4e8);
}

.tpl5-article-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl5-article-row__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.tpl5-article-row__body h3 {
  margin: 0;
  color: var(--dark);
  font-size: 22px;
  line-height: 1.28;
}

.tpl5-article-row__body h3 a:hover {
  color: var(--primary);
}

.tpl5-article-row__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.tpl5-article-row__meta,
.tpl5-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tpl5-sidecard {
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 18px;
}

.tpl5-sidecard--plain {
  padding: 0;
  margin-bottom: 20px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tpl5-sidecard--plain .tpl5-sidecard__head {
  margin-bottom: 10px;
}

.tpl5-sidecard--plain .tpl5-sidecard__head h3 {
  font-size: 16px;
}

.tpl5-rectangle-long-ad {
  padding: 0;
  overflow: hidden;
  line-height: 0;
  width: 100%;
  max-width: 100%;
}

.tpl5-rectangle-long-ad__link,
.tpl5-rectangle-long-ad__body {
  display: block;
  width: 100%;
  height: auto;
}

.tpl5-rectangle-long-ad__body {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  width: 100%;
  max-width: 100%;
}

.tpl5-rectangle-long-ad__body img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.tpl5-rectangle-short-ad {
  padding: 0;
  overflow: hidden;
  line-height: 0;
  width: 100%;
  max-width: 100%;
}

.tpl5-rectangle-short-ad__link,
.tpl5-rectangle-short-ad__body {
  display: block;
  width: 100%;
  height: auto;
}

.tpl5-rectangle-short-ad__body {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  width: 100%;
  max-width: 100%;
}

.tpl5-rectangle-short-ad__body img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.tpl5-rectangle-long-ad__body p,
.tpl5-rectangle-short-ad__body p {
  margin: 0;
}

.tpl5-rectangle-long-ad__body > *:first-child,
.tpl5-rectangle-short-ad__body > *:first-child {
  margin-top: 0;
}

.tpl5-rectangle-long-ad__body > *:last-child,
.tpl5-rectangle-short-ad__body > *:last-child {
  margin-bottom: 0;
}

.tpl5-sidecard__head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpl5-sidecard__head h3 {
  margin: 0;
  color: var(--dark);
  font-size: 18px;
}

.tpl5-side-links {
  display: grid;
  gap: 10px;
}

.tpl5-side-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  color: var(--dark);
  transition: 0.2s ease;
}

.tpl5-side-link:hover,
.tpl5-side-link.is-active {
  color: var(--primary);
  border-color: rgba(255, 122, 0, 0.18);
  background: rgba(255, 122, 0, 0.06);
}

.tpl5-side-link small {
  color: var(--muted);
}

.tpl5-side-list {
  display: grid;
  gap: 12px;
}

.tpl5-sidecard--plain .tpl5-side-list {
  gap: 0;
}

.tpl5-side-list__item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: 0.2s ease;
}

.tpl5-side-list__item:hover {
  transform: translateY(-2px);
  background: rgba(255, 122, 0, 0.05);
}

.tpl5-side-list__item strong {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.45;
}

.tpl5-side-list__item span {
  color: var(--muted);
  font-size: 12px;
}

.tpl5-sidecard--plain .tpl5-side-list__item {
  display: block;
  padding: 0 0 14px;
  margin: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tpl5-sidecard--plain .tpl5-side-list__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.tpl5-sidecard--plain .tpl5-side-list__item:hover {
  transform: translateX(4px);
  background: transparent;
  color: var(--primary);
}

.tpl5-sidecard--plain .tpl5-side-list__item strong {
  display: block;
  font-size: 15px;
  line-height: 1.7;
}

.tpl5-pagination {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tpl5-pagination .total {
  color: var(--muted);
  font-size: 14px;
  margin-right: 10px;
}

.tpl5-page-btn,
.tpl5-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--surface-strong);
  color: var(--dark);
  transition: 0.2s ease;
}

.tpl5-page-btn:hover,
.tpl5-page-num:hover {
  color: var(--primary);
  border-color: rgba(255, 122, 0, 0.18);
}

.tpl5-page-btn.is-active,
.tpl5-page-num.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 26px rgba(255, 122, 0, 0.16);
}

.tpl5-page-btn.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background: #f8fafc;
}

.tpl5-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.tpl5-detail-breadcrumb a {
  color: var(--muted);
}

.tpl5-detail-breadcrumb a:hover {
  color: var(--primary);
}

.tpl5-article {
  padding: 30px;
  border-radius: 30px;
}

.tpl5-article > .tpl5-kicker {
  margin-bottom: 10px;
}

.tpl5-detail__meta {
  margin-bottom: 20px;
}

.tpl5-detail__banner {
  display: block;
  width: 100%;
  margin: 18px 0 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tpl5-detail-banner {
  margin: 0;
}

.tpl5-detail-banner__body {
  display: block;
  width: 100%;
  overflow: visible;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tpl5-detail-banner__body img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tpl5-detail__banner--bottom {
  margin: 30px 0 24px;
}

.tpl5-prose {
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
}

.tpl5-prose > :first-child {
  margin-top: 0;
}

.tpl5-prose h2,
.tpl5-prose h3,
.tpl5-prose h4 {
  color: var(--dark);
  line-height: 1.25;
  margin: 1.5em 0 0.75em;
}

.tpl5-prose h2 {
  font-size: 1.75em;
}

.tpl5-prose h3 {
  font-size: 1.35em;
}

.tpl5-prose p,
.tpl5-prose ul,
.tpl5-prose ol,
.tpl5-prose blockquote,
.tpl5-prose table,
.tpl5-prose pre {
  margin: 0 0 1.1em;
}

.tpl5-prose ul,
.tpl5-prose ol {
  padding-left: 1.3em;
}

.tpl5-prose blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  background: rgba(255, 122, 0, 0.05);
  border-radius: 14px;
  color: var(--muted);
}

.tpl5-prose pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
}

.tpl5-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.95em;
}

.tpl5-prose pre code {
  padding: 0;
  background: transparent;
}

.tpl5-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.tpl5-prose table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  display: block;
}

.tpl5-prose table tbody,
.tpl5-prose table thead,
.tpl5-prose table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.tpl5-prose th,
.tpl5-prose td {
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  text-align: left;
  word-break: break-word;
}

.tpl5-prose th {
  background: #f8fbff;
}

.tpl5-prevnext {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tpl5-prevnext__item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  display: grid;
  gap: 6px;
  transition: 0.2s ease;
}

.tpl5-prevnext__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.18);
}

.tpl5-prevnext__item span {
  color: var(--muted);
  font-size: 13px;
}

.tpl5-prevnext__item strong {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.5;
}

.tpl5-empty,
.tpl5-loading {
  padding: 44px 20px;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
}

.tpl5-empty strong,
.tpl5-loading strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 18px;
}

.tpl5-footer {
  margin: 0 auto 32px;
  border-radius: 28px;
}

.tpl5-footer__inner {
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 20px 28px;
  align-items: center;
}

.tpl5-footer__brand strong {
  display: block;
  color: var(--dark);
  font-size: 18px;
}

.tpl5-footer__brand p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tpl5-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.tpl5-footer__links a {
  color: var(--dark);
  font-weight: 600;
}

.tpl5-footer__links a:hover {
  color: var(--primary);
}

.tpl5-footer__note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--muted);
  font-size: 13px;
}

.tpl5-header + .tpl5-main .tpl5-hero {
  margin-top: -1px;
}

.tpl5-page-help .tpl5-hero__panel {
  align-self: stretch;
}

.tpl5-page-help .tpl5-category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpl5-page-help .tpl5-category-card {
  min-height: 128px;
}

.tpl5-page-list .tpl5-pagehead {
  padding: 30px;
  border-radius: 28px;
}

.tpl5-page-list .tpl5-layout,
.tpl5-page-detail .tpl5-layout {
  align-items: start;
}

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

  .tpl5-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpl5-footer__inner {
    grid-template-columns: 1fr;
  }

  .tpl5-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .tpl5-shell {
    width: min(var(--max-width), calc(100vw - 28px));
  }

  .tpl5-header__inner {
    min-height: 72px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .tpl5-header__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .tpl5-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 0 6px;
  }

  .tpl5-nav-open .tpl5-nav {
    display: flex;
  }

  .tpl5-nav > a {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.85);
  }

  .tpl5-nav > a.tpl5-header__cta {
    justify-content: center;
  }

  .tpl5-hero {
    padding-top: 18px;
  }

  .tpl5-hero__content,
  .tpl5-hero__panel,
  .tpl5-article,
  .tpl5-pagehead,
  .tpl5-sidecard,
  .tpl5-footer {
    border-radius: 24px;
  }

  .tpl5-hero__content {
    padding: 26px 22px;
  }

  .tpl5-hero__panel {
    padding: 20px;
  }

  .tpl5-hero h1,
  .tpl5-pagehead h1,
  .tpl5-article h1 {
    font-size: clamp(30px, 8vw, 44px);
  }

  .tpl5-hero p,
  .tpl5-pagehead p {
    font-size: 15px;
  }

  .tpl5-search {
    flex-direction: column;
    align-items: stretch;
  }

  .tpl5-search button {
    width: 100%;
  }

  .tpl5-hero__stats {
    grid-template-columns: 1fr;
  }

  .tpl5-category-grid,
  .tpl5-article-grid {
    grid-template-columns: 1fr;
  }

  .tpl5-article-row {
    grid-template-columns: 1fr;
  }

  .tpl5-prevnext {
    grid-template-columns: 1fr;
  }
}
