/*
Theme Name: AeroCorePro Child
Theme URI: https://qqrjk.cn
Author: qqrjk.cn
Description: AeroCore Pro 子主题：默认首页布局（轮播+图文卡片+侧边栏）、菜单/分类图标自动填充、游客收藏夹、文章下载框、主色对齐参考站。
Version: 1.3.0
Template: AeroCorePro
Text Domain: aerocorepro-child
*/

/* ============ 游客收藏夹（shortcode: [softnews_favorites]） ============ */
.apc-fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.apc-card {
  background: #fff;
  border: 1px solid var(--aero-border, #ececf0);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.apc-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.apc-card__img {
  position: relative;
  display: block;
  aspect-ratio: 8 / 5;
  background: #f2f3f7;
}
.apc-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apc-card__img .apc-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #4984f5 0%, #6aa1f8 55%, #8fb8fa 100%);
}
.apc-card__cat {
  position: absolute; left: 10px; bottom: 10px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(17, 17, 17, .62);
  color: #fff; font-size: 12px; line-height: 20px;
}
.apc-card__body { padding: 12px 14px 14px; }
.apc-card__body h3 {
  margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.apc-card__body h3 a { color: inherit; text-decoration: none; }
.apc-card__body h3 a:hover { color: #4984f5; }
.apc-card__meta { margin-top: 8px; display: flex; align-items: center; }
.apc-rm {
  border: 0; background: none; padding: 0;
  color: #999; font-size: 12px; cursor: pointer;
}
.apc-rm:hover { color: #f34c4c; }
.apc-fav-empty {
  margin-top: 16px; padding: 46px 16px; text-align: center;
  border: 1px dashed #d8dbe2; border-radius: 10px; color: #8a90a0;
}
.apc-fav-empty a { color: #4984f5; text-decoration: none; }

/* ============ 文章下载框（文章编辑「下载信息」填写后自动显示） ============ */
.apc-dl-box {
  margin: 26px 0; padding: 16px;
  background: var(--aero-weak, #f0f6ff);
  border: 1px solid var(--aero-border, #e0e9fb);
  border-radius: 10px;
}
.apc-dl-box__head {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: #4984f5;
}
.apc-dl-box__row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.apc-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 22px; border-radius: 8px;
  background: #4984f5; color: #fff !important; font-size: 14px;
  text-decoration: none !important;
}
.apc-dl-btn:hover { background: #3a6fd8; color: #fff; }
.apc-dl-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.apc-dl-item b { color: #f34c4c; font-weight: 600; }
.apc-dl-copy {
  border: 1px solid #d0d8ea; background: #fff; border-radius: 6px;
  padding: 2px 10px; font-size: 12px; color: #555; cursor: pointer;
}
.apc-dl-copy.ok { border-color: #34b37f; color: #34b37f; }
.apc-dl-box__tip { margin: 12px 0 0; font-size: 12px; color: #999; line-height: 1.7; }

/* 移动端 */
@media (max-width: 568px) {
  .apc-fav-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============ v1.3 参考站美化包（hover 上浮/角标/按钮/封面缩放） ============ */
/* 列表卡片 hover 上浮 + 封面微放大 */
.article-item {
  transition: transform .25s ease, box-shadow .25s ease;
  border-radius: var(--aero-radius, 12px);
}
.article-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 60, 120, .10);
}
.article-item__thumb { overflow: hidden; border-radius: 8px; }
.article-item__thumb img { transition: transform .35s ease; }
.article-item:hover .article-item__thumb img { transform: scale(1.045); }

/* 置顶角标：橙红渐变，更醒目 */
.article-item__sticky {
  background: linear-gradient(135deg, #ff6b6b, #ff9f43) !important;
  color: #fff !important;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(255, 107, 107, .35);
}

/* 分类快捷入口 hover 上浮 */
.icon-card-item { transition: transform .22s ease; }
.icon-card-item:hover { transform: translateY(-3px); }
.icon-card-item:hover .icon-card-item__icon { box-shadow: 0 6px 14px rgba(73, 132, 245, .18); }

/* 下载按钮：渐变 + 投影 + hover 反馈 */
.apc-dl-btn {
  background: linear-gradient(135deg, #4984f5, #6fa1f8);
  box-shadow: 0 4px 14px rgba(73, 132, 245, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.apc-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(73, 132, 245, .45);
}

/* 标题 hover 过渡到主色 */
.article-item__title a { transition: color .2s ease; }

/* 卡片圆角统一取主题圆角变量 */
.apc-card { border-radius: var(--aero-radius, 12px); }
