.article-page {
  padding-bottom: var(--page-bottom-with-nav);
  overflow-x: hidden;
}

.topbar,
.page-title-wrap,
.article-filter-scroll,
.article-feed,
.site-footer {
  width: var(--w-content);
  margin: 0 auto;
}

.topbar {
  width: var(--w-topbar);
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
}

.topbar-actions {
  width: auto;
  height: 16px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.icon-image {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.menu-icon {
  width: 12px;
  height: 12px;
}

.page-title-wrap {
  margin-top: -2px;
}

.article-page > .ad-slot[data-ad-slot="article-top"] {
  width: var(--w-content);
  margin: 6px auto 0;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  color: #f9d366;
}

.article-filter-scroll {
  display: none;
}

.article-filter-scroll::-webkit-scrollbar {
  display: none;
}

.article-filter-bar {
  position: relative;
  min-width: max-content;
  height: 44px;
  border-radius: 80px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.article-filter-thumb {
  position: absolute;
  left: var(--filter-offset, 3px);
  top: 3px;
  width: var(--filter-width, 56px);
  height: calc(100% - 6px);
  border-radius: 80px;
  background: rgba(254, 184, 53, 0.22);
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.14);
  transition:
    left 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: left, width;
}

.article-filter-bar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 30%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.78;
  pointer-events: none;
  z-index: 0;
}

.article-filter-bar::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.01);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.article-filter-btn {
  height: 38px;
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 80px;
  padding: 0 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  cursor: pointer;
  transition: color 0.24s ease;
}

.article-filter-btn:first-of-type {
  padding-left: 16px;
  padding-right: 16px;
}

.article-filter-btn.is-active {
  color: #feb835;
  font-weight: 700;
}

.article-filter-btn:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .article-filter-thumb,
  .article-filter-btn {
    transition: none;
  }
}

.article-feed {
  width: var(--w-content);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 48px 20px;
  text-align: center;
}

.article-empty-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.article-feature-card,
.article-row-card,
.article-footer-card {
  position: relative;
  overflow: hidden;
}

.article-feature-card {
  width: 100%;
  display: grid;
  min-height: 176px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 26, 0.72);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.article-feature-image,
.article-feature-overlay {
  grid-area: 1 / 1;
  width: 100%;
}

.article-feature-image {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-feature-overlay {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(13, 15, 22, 0.04) 0%, rgba(13, 15, 22, 0.18) 42%, rgba(13, 15, 22, 0.86) 100%),
    linear-gradient(0deg, rgba(17, 19, 27, 0.5) 0%, rgba(17, 19, 27, 0.5) 100%);
}

.article-feature-content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 176px;
  padding: 20px 20px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.article-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  min-width: 90px;
  height: 25px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fdf5d7;
  font-size: 14px;
  font-weight: 500;
}

.article-badge-icon {
  width: 15px;
  height: 16px;
  object-fit: contain;
}

.article-feature-title {
  margin: 0;
  width: 100%;
  max-width: 286px;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: normal;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.article-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.article-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-inline-ad-slot {
  align-self: center;
}

.article-feed-status {
  width: 100%;
  min-height: 22px;
  padding: 4px 2px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.article-feed-status[data-tone="loading"] {
  color: rgba(255, 255, 255, 0.7);
}

.article-feed-status[data-tone="error"] {
  color: rgba(255, 188, 188, 0.92);
}

.article-feed-status[data-tone="empty"],
.article-feed-status[data-tone="end"] {
  color: rgba(255, 255, 255, 0.48);
}

.article-feed-sentinel {
  width: 100%;
  height: 1px;
}

.article-row-card {
  width: 100%;
  height: 136px;
  min-height: 136px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
    rgba(20, 22, 31, 0.76);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.article-row-thumb {
  width: 99px;
  height: 134px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 99px;
  align-self: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px;
  box-sizing: border-box;
  border-radius: 14px;
}

.article-row-copy {
  padding: 16px 20px 14px 12px;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.article-row-title {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: normal;
  color: #b3b9f4;
  display: -webkit-box;
  max-height: 36px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.article-row-desc {
  width: 100%;
  max-width: none;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 0;
}

.article-row-card .article-meta {
  margin-top: auto;
  padding-top: 14px;
}

@media (max-width: 767px) {
  .topbar,
  .page-title-wrap,
  .article-filter-scroll,
  .article-feed,
  .site-footer {
    width: 100%;
  }

  .article-page > .ad-slot[data-ad-slot="article-top"] {
    width: 100%;
  }

  .article-feature-title {
    width: auto;
  }
}

/* ========== Skeleton Loading Styles ========== */

/* Skeleton animation */
@keyframes el-skeleton-loading {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

/* Base skeleton styles */
.skeleton-box,
.skeleton-line {
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.18) 37%,
    rgba(255, 255, 255, 0.1) 63%
  );
  background-size: 400% 100%;
  animation: el-skeleton-loading 2s ease-in-out infinite;
}

/* Feature skeleton in real card layout */
.article-feature-card-skeleton {
  min-height: 176px;
  pointer-events: none;
}

.article-feature-image-skeleton {
  min-height: 176px;
  border-radius: 18px;
}

.article-feature-content-skeleton {
  padding: 24px 20px 18px;
  gap: 12px;
  justify-content: flex-end;
}

.article-badge-skeleton {
  width: 96px;
  min-height: 20px;
  border-radius: 999px;
  padding: 0;
  border: 0;
  background-color: transparent;
  position: absolute;
  top: 24px;
  left: 20px;
}

.article-feature-title-skeleton {
  min-height: 16px;
  max-width: 320px;
  width: 86%;
  color: transparent;
}

.article-feature-title-skeleton.short {
  width: 58%;
}

.article-meta-skeleton {
  margin-top: 2px;
  gap: 10px;
  flex-wrap: wrap;
}

.article-meta-item-skeleton {
  min-height: 14px;
  width: 112px;
  border-radius: 8px;
}

.article-meta-item-skeleton.short {
  width: 80px;
}

/* List skeleton in real row-card layout */
.article-list-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-row-card-skeleton {
  pointer-events: none;
}

.article-row-thumb-skeleton {
  border-radius: 18px 0 0 18px;
}

.article-row-copy-skeleton {
  justify-content: center;
  gap: 8px;
}

.article-row-title-skeleton {
  min-height: 18px;
  width: 85%;
  color: transparent;
}

.article-row-desc-skeleton {
  min-height: 16px;
  width: 100%;
  color: transparent;
  margin: 0;
}

.article-row-desc-skeleton.short {
  width: 70%;
}

.article-row-meta-skeleton {
  min-height: 16px;
  width: 120px;
  margin-top: 8px;
  border-radius: 8px;
}

/* Loading state toggle */
.article-page.is-initial-loading .article-feature-card:not(.article-feature-card-skeleton),
.article-page.is-initial-loading .article-list {
  display: none !important;
}

.article-page:not(.is-initial-loading) .article-feature-card-skeleton,
.article-page:not(.is-initial-loading) .article-list-skeleton {
  display: none !important;
}
