/* 妯＄増1錛氬巻鍙茶祫璁?闂ㄦ埛椋庢牸錛堝弬鑰?adminbuy 綾?Dedecms 璧勮婕旂ず絝欑増寮忥紝鏁版嵁浠嶇敱 site-template-runtime 娉ㄥ靉錛?*/
:root {
  --header-h: 72px;
  --topbar-h: 0px;
  --accent: #b91c1c;
  --accent-dark: #7f1d1d;
  --accent-soft: rgba(185, 28, 28, 0.12);
  --paper: #ffffff;
  --paper-card: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e5e7eb;
  --shadow: rgba(28, 25, 23, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tpl--news {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  padding-top: calc(var(--topbar-h) + var(--header-h));
}

.tpl-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--topbar-h);
  background: linear-gradient(90deg, var(--accent-dark) 0%, #450a0a 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.tpl-topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.tpl-topbar__hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--paper-card);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 20px var(--shadow);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  min-height: 40px;
}
.site-logo:hover { color: var(--accent); }
.site-logo img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: none; }
.site-logo.is-with-logo img { display: block; }
#site-logo-text {
  display: inline-block;
  min-width: 8ch;
  white-space: nowrap;
}
.site-nav { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ef4444);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.site-nav a:hover {
  background: rgba(185, 28, 28, 0.1);
  color: var(--accent-dark);
  transform: translateY(-1px);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}
.site-nav a:focus-visible {
  outline: none;
  background: rgba(185, 28, 28, 0.14);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.18);
}
.site-nav--loading #nav-list { min-width: 360px; min-height: 34px; }
.site-nav--loading #nav-list::before {
  content: '';
  display: block;
  width: 100%;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(110deg, #ffffff 0%, #f3f4f6 45%, #ffffff 55%, #f3f4f6 100%);
  background-size: 220% 100%;
  animation: tpl1-shimmer 1.35s ease-in-out infinite;
}
.site-nav--loading ul::after { content: 'Loading navigation...'; font-size: 0.82rem; color: var(--muted); padding-left: 0.5rem; }
.site-nav--error ul::after { content: attr(data-error); font-size: 0.82rem; color: #b45309; padding-left: 0.5rem; }
.nav-empty { color: var(--muted); font-size: 0.85rem; }

.site-carousel-wrap { margin-bottom: 1.25rem; }
.site-carousel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px var(--shadow);
  border: 1px solid var(--border);
  background: #1c1917;
}
.site-carousel[hidden] { display: none !important; }
.site-carousel--empty { display: none !important; }
.site-carousel--loading {
  min-height: clamp(220px, 30vw, 380px);
  background: linear-gradient(110deg, #ffffff 0%, #f3f4f6 45%, #ffffff 55%, #f3f4f6 100%);
  background-size: 220% 100%;
  animation: tpl1-shimmer 1.35s ease-in-out infinite;
}
@keyframes tpl1-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.site-carousel--error {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border-radius: 4px;
  border: 1px dashed var(--border);
  background: var(--paper-card);
}
.site-carousel__error-msg {
  margin: 0;
  padding: 0.5rem 0;
}
.site-carousel__viewport { overflow: hidden; aspect-ratio: 24 / 9; max-height: 380px; }
@media (max-width: 640px) {
  .site-carousel__viewport { aspect-ratio: 16 / 9; max-height: 220px; }
}
.site-carousel__track { display: flex; height: 100%; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.site-carousel--reduced-motion .site-carousel__track { transition-duration: 0.01ms !important; }
.site-carousel__slide { flex-shrink: 0; height: 100%; position: relative; }
.site-carousel__slide-inner { position: relative; height: 100%; min-height: 160px; }
.site-carousel__link { display: block; height: 100%; line-height: 0; }
.site-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 160px;
}
.site-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem 0.85rem;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.9));
  color: #fafaf9;
  text-align: left;
  pointer-events: none;
}
.site-carousel__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.site-carousel__desc {
  margin: 0;
  font-size: 0.84rem;
  opacity: 0.95;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.site-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
}
.site-carousel__btn:hover { background: #fff; }
.site-carousel__btn--prev { left: 10px; }
.site-carousel__btn--next { right: 10px; }
.site-carousel--single .site-carousel__btn { display: none; }
.site-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.site-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--accent);
}
.site-carousel--single .site-carousel__dots { display: none; }

.site-category-tabs {
  margin-bottom: 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 0.85rem 1rem;
  box-shadow: 0 2px 12px var(--shadow);
}
.site-category-tabs::before {
  content: 'News Feed';
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
  border-left: 4px solid var(--accent);
}
.site-tabs__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.2rem 0.85rem;
  padding: 0 0.2rem;
  scrollbar-width: thin;
}
.site-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-height: 42px;
  align-items: stretch;
}
.site-tabs__tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.site-tabs__tab:hover { color: var(--accent); border-color: var(--accent); }
.site-tabs__tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}
.site-tabs__panel { min-height: 620px; outline: none; }
#site-list-articles { min-height: 620px; }
.site-tabs__loading,
.site-tabs__empty,
.site-tabs__hint,
.site-tabs__error {
  margin: 0;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-tabs__panel > .site-tabs__loading,
#site-list-articles > .site-tabs__loading {
  margin: 0;
  min-height: 620px;
  padding: 0;
  border-radius: 4px;
  border: 1px dashed var(--border);
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: linear-gradient(110deg, #ffffff 0%, #f3f4f6 45%, #ffffff 55%, #f3f4f6 100%);
  background-size: 220% 100%;
  animation: tpl1-shimmer 1.35s ease-in-out infinite;
}
.site-tabs__error { color: var(--accent); }

.site-article-list { display: flex; flex-direction: column; gap: 0; }
.site-article-row {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  padding: 1.1rem 0.65rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed var(--border);
  transition: background 0.2s ease;
}
.site-article-row:last-child { border-bottom: none; }
.site-article-row:hover { background: rgba(185, 28, 28, 0.04); }
.site-article-list a,
.site-article-row,
.site-tabs__pager a {
  text-decoration: none !important;
  color: inherit;
}
.site-article-row__thumb {
  flex: 0 0 clamp(120px, 26vw, 200px);
  width: clamp(120px, 26vw, 200px);
  min-height: 100px;
  border-radius: 2px;
  overflow: hidden;
  background: #ffffff;
  align-self: center;
  border: 1px solid var(--border);
}
.site-article-row__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: rgba(185, 28, 28, 0.35);
}
.site-article-row__img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  display: block;
}
.site-article-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.1rem 0;
}
.site-article-row__title {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.site-article-row:hover .site-article-row__title { color: var(--accent); }
.site-article-row__excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-article-row__cta {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}
.site-tabs__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.site-tabs__page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.site-tabs__page-btn,
.site-tabs__page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  line-height: 1;
}
.site-tabs__page-btn:hover,
.site-tabs__page-num:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.site-tabs__page-btn[disabled],
.site-tabs__page-num[disabled] {
  color: #a8a29e !important;
  background: #ffffff;
  cursor: not-allowed;
}
.site-tabs__page-num.is-active {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff !important;
}
@media (max-width: 640px) {
  .site-carousel--loading { min-height: 220px; }
  .site-tabs__panel,
  #site-list-articles { min-height: 380px; }
  .site-tabs__panel > .site-tabs__loading,
  #site-list-articles > .site-tabs__loading { min-height: 380px; }
  .site-article-row { flex-direction: column; gap: 0.85rem; padding: 1rem 0.4rem; }
  .site-article-row__thumb { flex: none; width: 100%; max-height: 200px; min-height: 140px; }
}

body.tpl--article-detail-open #site-carousel,
body.tpl--article-detail-open #site-category-tabs,
body.tpl--article-detail-open .hero,
body.tpl--article-detail-open #category-sections,
body.tpl--article-detail-open .tpl1-side-col,
body.tpl--article-detail-open .tpl-topbar {
  display: none !important;
}
body.tpl--article-detail-open .tpl1-shell {
  display: block;
}
body.tpl--article-detail-open .tpl1-main-col {
  display: none !important;
}
body.tpl--article-detail-open {
  padding-top: var(--header-h);
}
body.tpl--article-detail-open .site-header {
  top: 0;
}

.site-article-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.15rem 3rem;
}
.site-article-detail__inner { padding-top: 0.35rem; }
.site-article-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.site-article-detail__back:hover {
  border-color: var(--accent);
  background: #fff;
}
.site-article-detail__cover-wrap {
  margin: 0 0 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px var(--shadow);
}
.site-article-detail__cover {
  width: 100%;
  display: block;
  max-height: min(48vh, 400px);
  object-fit: cover;
}
.site-article-detail__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}
.site-article-detail__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3.8vw, 2rem);
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.3;
}
.site-article-detail__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-article-detail__body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #292524;
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Serif SC", "Songti SC", serif;
}
.site-article-detail__body p { margin: 0 0 1.1em; }
.site-article-detail__body h2,
.site-article-detail__body h3 { margin: 1.4em 0 0.6em; color: var(--accent-dark); }
.site-article-detail__body img { max-width: 100%; height: auto; border-radius: 4px; }
.site-article-detail__loading,
.site-article-detail__error { text-align: center; padding: 2rem; color: var(--muted); }
.site-article-detail__error { color: var(--accent); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--paper-card);
  padding: 0.45rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav--loading #nav-list { min-width: 0; }
  .site-nav--loading #nav-list::before { display: none; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper-card);
    border-bottom: 2px solid var(--accent);
    padding: 0.65rem 1rem;
    display: none;
    box-shadow: 0 12px 24px var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: 0.7rem 0.2rem; border-radius: 0; }
  .site-nav a::after { left: 0; right: 0; bottom: 0; height: 1px; background: rgba(185, 28, 28, 0.35); }
  .site-nav a:hover { transform: none; background: rgba(185, 28, 28, 0.08); }
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}
/* Home/list unified two-column shell (desktop), with explicit width constraints */
body.tpl--home .tpl1-shell,
body.tpl--list .tpl1-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}
body.tpl--home .tpl1-shell > .tpl1-main-col,
body.tpl--list .tpl1-shell > .tpl1-main-col {
  grid-column: 1;
  min-width: 0;
}
body.tpl--home .tpl1-shell > .tpl1-side-col,
body.tpl--list .tpl1-shell > .tpl1-side-col {
  grid-column: 2;
  width: 300px;
  min-width: 0;
}
.tpl1-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}
.tpl1-main-col { min-width: 0; }
body.tpl--home .tpl1-shell > .tpl1-main-col,
body.tpl--list .tpl1-shell > .tpl1-main-col {
  min-width: 0;
}

.hero {
  background: var(--paper-card);
  border-radius: 4px;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 5px solid var(--accent);
}
.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 800;
  color: var(--accent-dark);
}
.hero p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.tpl1-shell + .hero { margin-top: 0.8rem; }

.section-block { margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 12px); }
.section-block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--accent-dark);
  padding: 0.35rem 0 0.35rem 0.65rem;
  border-left: 4px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.section-desc { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.88rem; }
.section-placeholder {
  min-height: 90px;
  background: var(--paper-card);
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.section-placeholder code { font-size: 0.72rem; background: #ffffff; padding: 0.15rem 0.35rem; border-radius: 2px; }

.tpl1-side-col {
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 12px);
}
@media (max-width: 480px) {
  .tpl1-shell { grid-template-columns: 1fr; }
  .tpl1-side-col { position: static; top: auto; }
}

/* Fallback for old cached home markup (.tpl1-home-layout) */
body.tpl--home .tpl1-home-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.25rem;
  align-items: start;
}
body.tpl--home .tpl1-home-main,
body.tpl--home .tpl1-home-side {
  min-width: 0;
}
body.tpl--home .tpl1-home-side > .tpl1-side-col {
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + 12px);
}
@media (max-width: 480px) {
  body.tpl--home .tpl1-home-layout {
    grid-template-columns: 1fr;
  }
  body.tpl--home .tpl1-home-side > .tpl1-side-col {
    position: static;
    top: auto;
  }
}

/* 棣栭〉鎸夊垎綾婚〉鍚岀増寮忥細PC 絝己鍒朵袱鏍忥紝闃叉鍙蟲爮涓嬫矇 */
.tpl1-side-card {
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.tpl1-side-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-dark);
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--accent);
}
.tpl1-side-card__body {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}
#tpl1-hot-list,
#tpl1-random-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
}
.tpl1-side-loading {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9ca3af;
}
.tpl1-hot-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.tpl1-hot-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tpl1-hot-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}
.tpl1-hot-item:hover .tpl1-hot-item__title {
  color: var(--accent, #b91c1c);
}
.tpl1-random-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.tpl1-random-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tpl1-random-item__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 50px;
  border-radius: 3px;
  overflow: hidden;
  background: #f3f4f6;
}
.tpl1-random-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tpl1-random-item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}
.tpl1-random-item:hover .tpl1-random-item__title {
  color: var(--accent, #b91c1c);
}
footer.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #292524;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  border-top: 3px solid var(--accent);
}
footer.site-footer p { margin: 0.25rem 0; }
.site-footer__friend-title {
  margin: 0 0 0.4rem;
  color: #f5f5f4;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}
.site-footer__links a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}
.site-footer__desc {
  margin: 0.85rem auto 0;
  max-width: 920px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
  font-size: 0.8rem;
}
/* runtime parity: avoid first-paint ad/customer-service flicker */
.site-banner-ad {
  margin: 12px 0 18px;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  background: transparent;
}
.site-banner-ad[hidden] { display: none !important; }
.site-banner-ad__rich {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  line-height: 1.6;
}
.site-banner-ad__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.site-banner-ad__rich p {
  margin: 0;
  padding: 0;
}
.site-banner-ad__rich img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  border: 0;
  outline: 0;
}
.site-banner-ad--sidebar-long .site-banner-ad__rich img:not(:first-of-type),
.site-banner-ad--sidebar-short .site-banner-ad__rich img:not(:first-of-type) {
  display: none !important;
}
.site-banner-ad__rich * { max-width: 100%; }
.site-banner-ad__placeholder {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: #f3f4f6;
}
.site-banner-ad--sidebar-long { margin: 0 0 12px; min-height: 240px; }
.site-banner-ad--sidebar-long .site-banner-ad__placeholder {
  aspect-ratio: 1 / 2;
  min-height: 240px;
}
.site-banner-ad--sidebar-short { margin: 0 0 12px; }
.site-banner-ad--detail { margin: 18px 0; }

.site-customer-service-fixed {
  position: fixed;
  right: max(14px, calc((100vw - 1180px) / 2 - 194px));
  bottom: 184px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.site-customer-service-fixed__card {
  width: 168px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(20, 150, 212, 0.16);
  box-shadow: 0 16px 30px rgba(34, 52, 78, 0.1);
  color: #202a36;
}
.site-customer-service-fixed__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.site-customer-service-fixed__avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(20, 150, 212, 0.1);
  color: #1496d4;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.site-customer-service-fixed__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-customer-service-fixed__avatar svg {
  width: 18px;
  height: 18px;
  display: block;
}
.site-customer-service-fixed__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-customer-service-fixed__platform {
  font-size: 12px;
  line-height: 1.2;
  color: #738193;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-customer-service-fixed__title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  color: #202a36;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-customer-service-fixed__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-customer-service-fixed__field-label {
  font-size: 11px;
  line-height: 1.25;
  color: #738193;
}
.site-customer-service-fixed__field-value {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  color: #202a36;
  word-break: break-all;
  min-height: 20px;
}
.site-customer-service-fixed__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.site-customer-service-fixed__button {
  appearance: none;
  border: 0;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: transform .18s ease, opacity .18s ease;
}
.site-customer-service-fixed__button:hover { transform: translateY(-1px); }
.site-customer-service-fixed__button.is-copy {
  width: 44px;
  background: rgba(32, 42, 54, 0.08);
  color: #202a36;
}
.site-customer-service-fixed__button.is-copy[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}
.site-customer-service-fixed__button.is-contact {
  flex: 1 1 auto;
  background: #1496d4;
  color: #ffffff;
}
.site-customer-service-fixed__button.is-contact.is-whatsapp {
  background: #25D366;
}
.site-customer-service-fixed__copy-state {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #738193;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1200px) {
  .site-customer-service-fixed {
    right: 10px;
    bottom: 140px;
  }
  .site-customer-service-fixed__card { width: 160px; }
}

