body.ahl-homepage {
  background: #f5f6f8;
  color: #2f343b;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  --ahl-brand: #f04494;
  --ahl-brand-dark: #c92872;
  --ahl-brand-soft: rgba(240, 68, 148, 0.1);
  --ahl-ink: #191b1f;
  --ahl-muted: #7a818c;
  --ahl-soft: #f7f8fb;
  --ahl-line: #e7e9ee;
  --ahl-panel: #ffffff;
  --ahl-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

body.ahl-homepage * {
  box-sizing: border-box;
}

body.ahl-homepage a {
  color: inherit;
  text-decoration: none;
}

body.ahl-homepage img,
body.ahl-homepage svg {
  display: block;
}

body.ahl-homepage > .google-auto-placed,
body.ahl-homepage > ins.adsbygoogle-noablate,
body.ahl-homepage .google-auto-placed:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}

body.ahl-homepage > .float-right,
body.ahl-homepage > .main-search,
body.ahl-homepage > #zibpay_modal {
  display: none !important;
}

.ahl-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 233, 238, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}

body.admin-bar .ahl-header {
  top: 32px;
}

.ahl-header-inner {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  height: 66px;
  margin: 0 auto;
  max-width: 1460px;
  padding: 0 28px;
}

.ahl-logo {
  align-items: center;
  display: inline-flex;
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.ahl-logo span {
  color: var(--ahl-ink);
}

.ahl-logo strong {
  color: var(--ahl-brand);
  font-weight: 850;
}

.ahl-nav {
  align-items: center;
  display: flex;
  gap: 34px;
  justify-content: center;
  min-width: 0;
}

.ahl-nav a {
  color: #252a33;
  font-size: 14px;
  font-weight: 750;
  line-height: 66px;
  position: relative;
  white-space: nowrap;
}

.ahl-nav a::after {
  background: var(--ahl-brand);
  border-radius: 999px;
  bottom: 16px;
  content: "";
  height: 3px;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.16s ease, width 0.16s ease;
  width: 0;
}

.ahl-nav a:hover,
.ahl-nav a.is-active {
  color: var(--ahl-brand-dark);
}

.ahl-nav a:hover::after,
.ahl-nav a.is-active::after {
  opacity: 1;
  width: 26px;
}

.ahl-actions {
  align-items: center;
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  white-space: nowrap;
}

.ahl-mobile-menu {
  display: none;
}

.ahl-icon-btn,
.ahl-avatar {
  align-items: center;
  border: 0;
  display: inline-flex;
  justify-content: center;
}

.ahl-icon-btn {
  background: #f7f8fb;
  border-radius: 50%;
  color: #252a33;
  height: 36px;
  width: 36px;
}

.ahl-icon-btn svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.ahl-avatar img {
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

.ahl-main {
  margin: 0 auto;
  max-width: 1360px;
  padding: 30px 26px 64px;
}

.ahl-ad-slot {
  background: #fff;
  border: 1px dashed rgba(240, 68, 148, 0.32);
  border-radius: 8px;
  contain-intrinsic-size: 180px;
  content-visibility: auto;
  color: #4b5563;
  overflow: hidden;
}

.ahl-ad-slot img {
  height: auto;
  max-width: 100%;
}

.ahl-ad-slot a {
  color: var(--ahl-brand-dark);
  font-weight: 800;
}

.ahl-ad-top {
  margin: 0 0 20px;
  min-height: 74px;
  padding: 18px;
}

.ahl-ad-inline {
  align-items: center;
  display: flex;
  grid-column: span 2;
  min-height: 162px;
  padding: 18px;
}

.ahl-ad-sidebar {
  min-height: 180px;
  padding: 18px;
}

.ahl-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 288px;
}

.ahl-toolbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ahl-line);
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 12px 14px;
}

.ahl-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ahl-tab {
  background: #f2f3f5;
  border-radius: 999px;
  color: #69707a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  padding: 9px 15px;
}

.ahl-tab:hover,
.ahl-tab.is-active {
  background: var(--ahl-brand);
  color: #fff;
}

.ahl-sort {
  color: #4f5662;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

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

.ahl-post-card {
  background: var(--ahl-panel);
  border: 1px solid var(--ahl-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.045);
  contain-intrinsic-size: 500px;
  content-visibility: auto;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.ahl-post-card:hover {
  border-color: rgba(240, 68, 148, 0.28);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.07);
  transform: translateY(-1px);
}

.ahl-card-cover {
  background: #191b1f;
  display: block;
  height: 282px;
  overflow: hidden;
  position: relative;
}

.ahl-card-cover img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
  width: 100%;
}

.ahl-post-card:hover .ahl-card-cover img {
  transform: scale(1.035);
}

.ahl-card-cover::after {
  background: linear-gradient(180deg, rgba(10, 14, 24, 0) 40%, rgba(10, 14, 24, 0.38) 100%);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.ahl-cover-fallback {
  align-items: center;
  background: linear-gradient(135deg, #191b1f, #4a1f36);
  color: #fff;
  display: flex;
  font-size: 24px;
  font-weight: 800;
  height: 100%;
  line-height: 1.25;
  padding: 22px;
  width: 100%;
}

.ahl-card-badge {
  background: var(--ahl-brand);
  border-radius: 5px;
  bottom: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  left: 14px;
  line-height: 1;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 7px 9px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
}

.ahl-card-body {
  padding: 20px 20px 18px;
}

.ahl-card-title {
  color: var(--ahl-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.52;
  margin: 0 0 12px;
}

.ahl-card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ahl-card-excerpt {
  color: #667085;
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.78;
  margin: 0 0 30px;
  min-height: 50px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ahl-card-meta {
  align-items: center;
  color: #7c8798;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 11px;
  min-height: 24px;
}

.ahl-author-mini {
  align-items: center;
  color: #475467;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  margin-right: auto;
  min-width: 0;
}

.ahl-author-mini img {
  border-radius: 50%;
  height: 24px;
  width: 24px;
}

.ahl-meta-icon {
  align-items: center;
  display: inline-flex;
  gap: 4px;
}

.ahl-meta-icon svg {
  fill: #8a94a6;
  height: 14px;
  width: 14px;
}

.ahl-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 94px;
}

body.admin-bar .ahl-sidebar {
  top: 126px;
}

.ahl-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--ahl-line);
  border-radius: 8px;
  box-shadow: none;
  contain-intrinsic-size: 220px;
  content-visibility: auto;
  padding: 20px;
}

.ahl-panel h2 {
  color: var(--ahl-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 16px;
}

.ahl-hot ol {
  counter-reset: hot;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahl-hot li + li {
  margin-top: 16px;
}

.ahl-hot a {
  display: grid;
  gap: 10px;
  grid-template-columns: 24px 1fr;
}

.ahl-hot span {
  color: var(--ahl-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.ahl-hot strong {
  color: var(--ahl-ink);
  display: -webkit-box;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.46;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ahl-hot em {
  color: var(--ahl-muted);
  display: block;
  font-size: 12px;
  font-style: normal;
  grid-column: 2;
  margin-top: -6px;
}

.ahl-side-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

.ahl-resources,
.ahl-categories {
  padding: 20px;
}

.ahl-resources a,
.ahl-categories a {
  align-items: center;
  color: #3f4651;
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  line-height: 1.55;
  min-height: 38px;
}

.ahl-resources a span,
.ahl-categories a span {
  min-width: 0;
}

.ahl-resources a span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ahl-resources a + a,
.ahl-categories a + a {
  border-top: 1px solid #edf0f4;
  margin-top: 9px;
  padding-top: 11px;
}

.ahl-resources b {
  background: var(--ahl-brand-soft);
  border-radius: 999px;
  color: var(--ahl-brand-dark);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  max-width: 92px;
  overflow: hidden;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ahl-categories b {
  align-items: center;
  background: #f1f4f8;
  border-radius: 999px;
  color: var(--ahl-muted);
  display: inline-flex;
  font-size: 11px;
  height: 22px;
  justify-content: center;
  min-width: 28px;
  padding: 0 8px;
}

.ahl-pagination {
  margin: 30px 0 0;
  text-align: center;
}

.ahl-pagination-status {
  color: var(--ahl-muted);
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 12px;
}

.ahl-pagination ul {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahl-pagination a,
.ahl-pagination span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ahl-line);
  border-radius: 999px;
  color: var(--ahl-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 12px;
}

.ahl-pagination .current {
  background: var(--ahl-brand);
  border-color: var(--ahl-brand);
  color: #fff;
}

.ahl-empty {
  background: #fff;
  border: 1px solid var(--ahl-line);
  border-radius: 8px;
  color: var(--ahl-muted);
  padding: 40px;
  text-align: center;
}

.ahl-footer {
  background: #fff;
  border-top: 1px solid var(--ahl-line);
  color: #4b5563;
}

.ahl-footer-inner {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  margin: 0 auto;
  max-width: 1460px;
  padding: 34px 28px;
}

.ahl-footer-brand img {
  height: 40px;
  margin-bottom: 12px;
  object-fit: contain;
  width: auto;
}

.ahl-footer-brand p,
.ahl-footer-links p {
  color: var(--ahl-muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}

.ahl-footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

.ahl-footer-links a {
  color: var(--ahl-ink);
  font-size: 13px;
  font-weight: 750;
}

.ahl-footer-links a:hover {
  color: var(--ahl-brand-dark);
}

@media (max-width: 1320px) {
  .ahl-header-inner,
  .ahl-main {
    max-width: 1240px;
  }

  .ahl-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

  .ahl-nav {
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  .ahl-header-inner {
    grid-template-columns: auto 1fr;
  }

  .ahl-nav {
    display: none;
  }

  .ahl-mobile-menu {
    display: block;
    grid-column: 1 / -1;
  }

  .ahl-mobile-menu summary {
    align-items: center;
    background: #f0f2f5;
    border-radius: 8px;
    color: var(--ahl-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    height: 34px;
    list-style: none;
    padding: 0 14px;
  }

  .ahl-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .ahl-mobile-menu nav {
    border-top: 1px solid var(--ahl-line);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    padding-top: 12px;
  }

  .ahl-mobile-menu a {
    background: #fff;
    border: 1px solid var(--ahl-line);
    border-radius: 8px;
    color: #313842;
    font-size: 13px;
    font-weight: 750;
    min-width: 0;
    overflow: hidden;
    padding: 10px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ahl-mobile-menu a.is-active {
    background: var(--ahl-brand);
    border-color: var(--ahl-brand);
    color: #fff;
  }

  .ahl-layout {
    grid-template-columns: 1fr;
  }

  .ahl-sidebar {
    position: static;
  }

  .ahl-side-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ahl-header-inner {
    height: auto;
    padding: 14px 16px;
  }

  .ahl-actions {
    gap: 8px;
  }

  .ahl-main {
    padding: 20px 14px 44px;
  }

  .ahl-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

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

  .ahl-ad-inline {
    grid-column: span 2;
  }

  .ahl-card-cover {
    height: 210px;
  }
}

@media (max-width: 620px) {
  body.admin-bar .ahl-header {
    top: 46px;
  }

  .ahl-logo {
    font-size: 22px;
  }

  .ahl-mobile-menu nav {
    grid-template-columns: 1fr;
  }

  .ahl-icon-btn {
    height: 32px;
    width: 32px;
  }

  .ahl-avatar {
    display: none;
  }

  .ahl-tabs {
    gap: 9px;
  }

  .ahl-tab {
    font-size: 12px;
    padding: 9px 12px;
  }

  .ahl-grid,
  .ahl-side-grid,
  .ahl-footer-inner {
    grid-template-columns: 1fr;
  }

  .ahl-ad-inline {
    grid-column: span 1;
    min-height: 126px;
  }

  .ahl-pagination .page-numbers:not(.prev):not(.next) {
    display: none;
  }

  .ahl-pagination a.prev,
  .ahl-pagination a.next {
    min-width: 92px;
  }

  .ahl-card-cover {
    height: 230px;
  }

  .ahl-panel {
    padding: 18px;
  }

  .ahl-footer-inner {
    padding: 28px 16px;
  }

  .ahl-footer-links nav {
    gap: 12px;
  }
}
