/* Dynamic theme helpers for real cover images & CMS widgets */

/* 导航二级菜单：mega__ico 使用 c-* 渐变色（images.css 已排除 mega__ico 的图片映射） */
.mega__ico[class*="c-"] {
  color: #fff;
  text-shadow: none;
}

.ico--img,
.cover--img,
.g-ico.ico--img,
.hot-side__ico.ico--img,
.week-rank-ico.ico--img,
.editor-pick__ico.ico--img,
.app-card__ico.ico--img,
.detail-hero__icon.ico--img,
.latest-scroll__ico.ico--img,
.related-apps__ico.ico--img,
.game-card__cover-inner.ico--img,
.news-list__cover.ico--img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8eef7, #d5deec);
  color: transparent !important;
  font-size: 0 !important;
}

.ico--img img,
.cover--img img,
.g-ico.ico--img img,
.hot-side__ico.ico--img img,
.week-rank-ico.ico--img img,
.editor-pick__ico.ico--img img,
.app-card__ico.ico--img img,
.detail-hero__icon.ico--img img,
.latest-scroll__ico.ico--img img,
.related-apps__ico.ico--img img,
.game-card__cover-inner.ico--img img,
.news-list__cover.ico--img img,
.detail-hero__bg.cover--img img,
.article__cover.cover--img img,
.daily-feature__cover.cover--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero__icon.ico--img img {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.detail-hero__bg.cover--img {
  position: absolute;
  inset: 0;
}

.detail-hero__bg.cover--img img {
  filter: blur(2px) saturate(1.05);
  transform: scale(1.06);
}

.top-banner-section .cover.cover--img {
  width: 100%;
  height: 100%;
}
.top-banner-section .cover.cover--img img,
.daily-feature__cover.cover--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Star rating fill by class star-0..star-5 */
.hot-side__stars i,
.app-card__stars i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 2px;
  border-radius: 1px;
  background: #d0d7e2;
}

.star-1 i:nth-child(-n+1),
.star-2 i:nth-child(-n+2),
.star-3 i:nth-child(-n+3),
.star-4 i:nth-child(-n+4),
.star-5 i:nth-child(-n+5) {
  background: #f5a623;
}

.empty-state {
  padding: 40px 16px;
  text-align: center;
  color: #6b778a;
}

.news-list__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #edf1f6;
  text-decoration: none;
  color: inherit;
}

.news-list__cover {
  flex: 0 0 140px;
  height: 88px;
  border-radius: 8px;
}

.news-list__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.news-list__body b {
  font-size: 16px;
  line-height: 1.4;
}

.news-list__body em {
  color: #6b778a;
  font-style: normal;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list__meta {
  display: flex;
  gap: 12px;
  color: #8a94a6;
  font-size: 12px;
}

.filter__chip {
  text-decoration: none;
}

.comment-mod.reveal,
.comment-mod {
  opacity: 1;
  transform: none;
}

.about-page__back {
  margin-top: 28px;
}

.article-page {
  max-width: 860px;
  margin: 0 auto;
}

.article-page .article {
  max-width: none;
  margin: 0;
}

.article-page .crumb {
  margin-bottom: 16px;
}

.article-comments {
  margin-top: 28px;
}

.article-comments .comment-mod + .comment-mod {
  margin-top: 20px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-mod__title::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff8a00;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f6;
}

.comment-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.comment-item__main p {
  margin: 0;
  line-height: 1.7;
  color: #3a4654;
}

.comment-item__floor {
  color: #ff8a00;
}

.comment-item__ava {
  border-radius: 50%;
  flex: 0 0 48px;
}

.comment-item__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  color: #6b778a;
  font-size: 13px;
}

.comment-item__head strong {
  color: #1f2a37;
  font-size: 14px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  transition: border-color .2s ease;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: #a0a8b5;
}

.comment-form input:hover,
.comment-form textarea:hover,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #ffb347;
  outline: none;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-form__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-form__submit {
  min-width: 120px;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: #ff8a00;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}

.comment-form__submit:hover {
  background: #ff7a00;
  color: #fff;
}

.comment-form__actions [data-comment-message] {
  font-size: 13px;
  color: #6b778a;
}

.comment-form__actions [data-comment-message][data-status="success"] {
  color: #16a34a;
}

.comment-form__actions [data-comment-message][data-status="error"] {
  color: #dc2626;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pager__btn,
.pager__num {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #d8dee8;
  color: #1f2a37;
  text-decoration: none;
  background: #fff;
}

.pager__num.is-current {
  background: #2f6bff;
  border-color: #2f6bff;
  color: #fff;
}

.pager__btn.is-disabled {
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 768px) {
  .comment-form__fields {
    grid-template-columns: 1fr;
  }
  .news-list__cover {
    flex-basis: 96px;
    height: 64px;
  }
}
