/* ==========================================================================
   PoseAe视频创意库 — 主题层（移动优先）
   在 style.base.css（Zibll 基座）之上覆盖配色，并补 a5yy 专有组件
   ========================================================================== */

/* 1. 配色：PoseAe 品牌青绿 #16b597（取自原站内联变量） ------------------------ */
body {
  --theme-color: #16b597;
  --focus-color: var(--theme-color);
  --focus-shadow-color: rgba(22, 181, 151, .4);
  --focus-color-opacity1: rgba(22, 181, 151, .1);
  --mian-max-width: 1300px;
  --tabbar-height: 49px;
  /* 强调色 */
  --a5yy-roseo: #ff5c6c;
  --a5yy-red: #dc3545;
  --a5yy-pink: #e83e8c;
  --a5yy-purple: #6f42c1;
  --a5yy-blue: #2997f7;
  --a5yy-green: #18a52a;
  --brand-grad: linear-gradient(135deg, #16b597 0%, #0f9fd8 100%);
}

body.dark-theme {
  --theme-color: #ffffff;
  --focus-shadow-color: rgba(255, 255, 255, .4);
  --focus-color-opacity1: rgba(255, 255, 255, .1);
}

/* 2. 移动端整体：底部 tabbar 预留空间 --------------------------------------- */
body {
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
  }
}

/* 3. 头部 ------------------------------------------------------------------ */
.navbar-brand img {
  height: 34px;
  padding: 0;
}

.navbar-nav>li>a badge {
  transform: translate(-2px, -8px) scale(.85);
  margin-right: -6px;
}

/* 手机端头部：logo 居中，两侧汉堡与搜索 */
@media (max-width: 992px) {
  .container-header {
    min-height: 44px;
  }

  .navbar-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }

  .navbar-brand {
    order: 2;
    margin: 0;
    padding: 4px 0;
  }

  .navbar-brand img {
    height: 28px;
  }

  /* 汉堡左 / logo 中 / 搜索右，与原站移动端一致 */
  .navbar-header .js-mobile-nav {
    order: 1;
  }

  .navbar-header .js-search {
    order: 3;
  }
}

/* 4. 首屏横幅 / 轮播 --------------------------------------------------------
   原站移动端不渲染轮播，直接以横幅打头，这里保持一致：
   ≤992px 走 .home-banner，≥993px 才启用 .home-slider */
.home-banner {
  display: block;
  border-radius: var(--main-radius);
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 0 10px var(--main-shadow);
  line-height: 0;
}

.home-banner img {
  width: 100%;
  display: block;
}

@media (min-width: 993px) {
  .home-banner {
    display: none;
  }
}

@media (max-width: 992px) {
  .home-slider {
    display: none !important;
  }
}

.home-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--main-radius);
  margin-bottom: 15px;
}

.home-slider .slide-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.home-slider .slide-item {
  position: relative;
  flex: 0 0 100%;
  height: 220px;
}

.home-slider .slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-slider .slide-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%);
}

.home-slider .slide-title {
  position: absolute;
  left: 16px;
  bottom: 18px;
  right: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.home-slider .slide-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.home-slider .slide-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transition: .3s;
}

.home-slider .slide-dots i.on {
  width: 18px;
  border-radius: 5px;
  background: #fff;
}

@media (min-width: 992px) {
  .home-slider .slide-item {
    height: 340px;
  }

  .home-slider .slide-title {
    font-size: 30px;
    left: 30px;
    bottom: 30px;
  }
}

/* 5. 标题前缀角标（独家 / 原创 / 推荐） -------------------------------------- */
.a5yy-badge-text {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  height: 18px;
  line-height: 1.5;
  padding: 0 4px;
  margin-right: 3px;
  vertical-align: 1px;
  font-weight: 400;
}

.a5yy-badge-text::after {
  position: absolute;
  content: '';
  display: block;
  left: -100%;
  top: -5px;
  width: 15px;
  height: 145%;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
  animation: a5yy-sweep 3s ease-in-out infinite;
  transform: rotate(28deg);
}

@keyframes a5yy-sweep {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

.a5yy-jb-purples {
  background: linear-gradient(135deg, #a78bfa 10%, #7c3aed 100%);
}

.a5yy-jb-reds {
  background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
}

.a5yy-jb-blues {
  background: linear-gradient(135deg, #59c3fb 10%, #268df7 100%);
}

.a5yy-jb-greens {
  background: linear-gradient(135deg, #60e464 10%, #5cb85b 100%);
}

/* 缩略图左上角定价角标 */
.jinsom-honor-s {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
}

.jinsom-honor-s.corner-free {
  background: linear-gradient(135deg, #6bd97f 10%, #17b55c 100%);
}

.jinsom-honor-s.corner-vip {
  background: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
  color: #866127;
  text-shadow: none;
}

.jinsom-honor-s.corner-pay {
  background: linear-gradient(135deg, #f59f54 10%, #ff6922 100%);
}

/* 6. 分类页头部封面 -------------------------------------------------------- */
.page-cover {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
}

.page-cover>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cover .linear-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .05));
}

.page-cover-con {
  position: relative;
  width: 100%;
  padding: 15px;
  color: #fff;
}

.page-cover-con .title-h-left {
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 0;
}

.page-cover-con .title-h-left::before {
  display: none;
}

.page-cover-con .icon-spot {
  font-size: 12px;
  font-weight: 400;
  opacity: .85;
  margin-left: 10px;
}

.page-cover-con .page-desc {
  opacity: .8;
  margin-top: 4px;
}

/* 7. 筛选栏 ---------------------------------------------------------------- */
/* 与原站移动端一致：整栏无卡片底，维度名后带竖线，
   选项为纯文字、用 · 分隔，不是胶囊按钮 */
.ajax-option {
  background: none;
  padding: 0;
  margin: 0 5px 10px;
}

.ajax-option>.flex {
  display: flex;
  align-items: flex-start;
  min-height: 30px;
  padding: 5px 0;
}

.ajax-option .option-dropdown {
  flex: none;
  position: relative;
  padding: 0 10px 0 0;
  margin-right: 10px;
  color: var(--key-color);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.ajax-option .option-dropdown::after {
  content: '';
  position: absolute;
  right: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--main-color);
  opacity: .2;
}

.ajax-option .option-items {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.ajax-option .option-items a {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--muted-color);
  white-space: nowrap;
}

/* 选项之间用圆点分隔 */
.ajax-option .option-items a+a::before {
  content: '·';
  margin: 0 .55em;
  color: var(--muted-3-color);
}

.ajax-option .option-items a:hover {
  color: var(--focus-color);
}

.ajax-option .option-items a.on {
  color: var(--focus-color);
  font-weight: 700;
}

/* 8. 首页 tab 列表与迷你列表 ------------------------------------------------ */
.tab-nav-theme {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 12px;
  padding: 0;
}

.tab-nav-theme::-webkit-scrollbar {
  display: none;
}

.tab-nav-theme li>a {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: var(--muted-color);
  white-space: nowrap;
  position: relative;
}

.tab-nav-theme li.active>a {
  color: var(--key-color);
  font-weight: 700;
}

.tab-nav-theme li.active>a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--theme-color);
  transform: translateX(-50%);
}

.posts-mini {
  display: flex;
  align-items: stretch;
  padding: 8px 0;
}

.posts-mini+.posts-mini {
  border-top: 1px solid var(--muted-border-color);
}

.posts-mini .item-thumbnail {
  width: 92px;
  height: 64px;
  border-radius: var(--main-radius);
  overflow: hidden;
  position: relative;
  flex: none;
}

.posts-mini .item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.posts-mini-con {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.posts-mini-con .item-heading {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.posts-mini-con .item-heading a {
  color: var(--key-color);
}

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 9. 分类聚合卡片 ---------------------------------------------------------- */
.term-aggregation .term-head {
  display: flex;
  margin-bottom: 14px;
}

.term-aggregation .term-img {
  flex: none;
  width: 120px;
}

.term-aggregation .term-img .graphic {
  position: relative;
  height: 0;
  padding-bottom: 70%;
  border-radius: var(--main-radius);
  overflow: hidden;
}

.term-aggregation .term-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.term-aggregation .term-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  margin-left: 10px;
}

.term-aggregation .term-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--key-color);
}

.term-aggregation .term-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-3-color);
}

.term-aggregation .term-post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}

.term-aggregation .term-post>a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--main-color);
}

.term-aggregation .term-post time {
  flex: none;
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted-3-color);
}

.img-badge {
  position: absolute;
  top: .6em;
  right: 0;
  border-radius: 50px 0 0 50px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
  z-index: 1;
  padding: .2em .6em;
  font-size: 12px;
}

/* 10. 付费盒（客户重点） ---------------------------------------------------- */
.pay-box {
  position: relative;
  overflow: hidden;
}

.pay-flexbox {
  display: flex;
}

.pay-thumb {
  flex: none;
  width: 150px;
  margin-right: 20px;
}

.pay-thumb .graphic {
  position: relative;
  height: 0;
  padding-bottom: 70%;
  border-radius: var(--main-radius);
  overflow: hidden;
}

.pay-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pay-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pay-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--key-color);
  padding-right: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-box {
  margin-top: 6px;
}

.price-box .em3x {
  font-size: 3em;
  line-height: 1.1;
  font-weight: 700;
}

.price-box .pay-mark {
  font-size: .45em;
  font-weight: 400;
  margin-right: 2px;
}

.price-box .c-red {
  --this-color: #ff1856;
  color: var(--this-color);
  display: flex;
  align-items: flex-end;
}

.price-box .original-price {
  text-decoration: line-through;
  color: var(--muted-3-color);
  font-size: 13px;
}

.price-box badge {
  --this-bg: linear-gradient(135deg, #f59f54 10%, #ff6922 100%);
}

/* 会员价按钮组 */
.vip-price-buts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.but.vip-price {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: .45em .6em;
  font-size: 13px;
  border-radius: 6px;
  --this-bg: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
  --this-color: #866127;
  border: none;
}

.but.vip-price[vip-level="2"] {
  --this-bg: linear-gradient(25deg, #b9c7e0 10%, #eef3fb 70%, #c3d1e6 100%);
  --this-color: #4a5b76;
}

.vip-price .vip-price-text {
  font-size: 1.15em;
  font-weight: 700;
}

.pay-buts {
  margin-top: 12px;
  text-align: right;
}

.pay-buts .but {
  padding: .55em 1.6em;
  font-size: 15px;
}

.pay-details {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #16b597 0%, #0f9fd8 100%);
}

.pay-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 10px;
  font-size: 12px;
  color: #fff;
  border-radius: var(--main-radius) 0 8px 0;
  background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
}

.pay-box .img-badge {
  top: 10px;
}

@media (max-width: 768px) {
  .pay-thumb {
    display: none;
  }

  .pay-title {
    padding-right: 70px;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .price-box .em3x {
    font-size: 2.2em;
  }

  .pay-buts .but {
    display: block;
    width: 100%;
  }
}

/* 11. 文章正文 -------------------------------------------------------------- */
.article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--key-color);
  margin: 0 0 10px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted-2-color);
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb li+li::before {
  content: '/';
  margin-right: 6px;
  opacity: .5;
}

.wp-posts-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--main-color);
  word-break: break-word;
}

.wp-posts-content h2,
.wp-posts-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--key-color);
  margin: 1.6em 0 .7em;
  padding-left: 12px;
  border-left: 4px solid var(--theme-color);
  line-height: 1.4;
}

.wp-posts-content p {
  margin: 0 0 1em;
}

.wp-posts-content img {
  max-width: 100%;
  border-radius: var(--main-radius);
}

.wp-posts-content code {
  background: var(--muted-bg-color);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 13px;
}

.wp-posts-content pre {
  background: #282c34;
  color: #abb2bf;
  border-radius: var(--main-radius);
  padding: 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}

.posts-copyright {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: var(--main-radius);
  background: var(--body-bg-color);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted-2-color);
}

.article-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 12. 会员套餐 -------------------------------------------------------------- */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.vip-plan {
  position: relative;
  border: 2px solid var(--main-border-color);
  border-radius: var(--main-radius);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  background: var(--main-bg-color);
}

.vip-plan.on {
  border-color: var(--theme-color);
  box-shadow: 0 4px 14px var(--focus-shadow-color);
}

.vip-plan .plan-name {
  font-size: 14px;
  color: var(--muted-color);
}

.vip-plan .plan-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--a5yy-roseo);
  margin: 6px 0 2px;
}

.vip-plan .plan-price small {
  font-size: 13px;
  font-weight: 400;
}

.vip-plan .plan-original {
  font-size: 12px;
  color: var(--muted-3-color);
  text-decoration: line-through;
}

.vip-plan .plan-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  font-size: 11px;
  padding: 1px 7px;
  color: #fff;
  border-radius: 0 var(--main-radius) 0 8px;
  background: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
}

/* 13. 用户中心 -------------------------------------------------------------- */
.user-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--main-radius);
  padding: 18px 15px;
  color: #fff;
  background: linear-gradient(135deg, #16b597 0%, #0f9fd8 100%);
}

.user-card .u-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-card .u-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6);
  object-fit: cover;
  background: rgba(255, 255, 255, .25);
}

.user-card .u-name {
  font-size: 17px;
  font-weight: 700;
}

.user-card .u-sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 3px;
}

.user-stats {
  display: flex;
  text-align: center;
  margin-top: 16px;
}

.user-stats>div {
  flex: 1;
}

.user-stats b {
  display: block;
  font-size: 18px;
}

.user-stats span {
  font-size: 12px;
  opacity: .85;
}

.user-menu .u-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 4px;
  color: var(--main-color);
  font-size: 15px;
}

.user-menu .u-item+.u-item {
  border-top: 1px solid var(--muted-border-color);
}

.user-menu .u-item .u-arrow {
  margin-left: auto;
  color: var(--muted-3-color);
}

/* 14. 移动端底部 tabbar ----------------------------------------------------- */
.footer-tabbar {
  display: none;
}

@media (max-width: 768px) {
  .footer-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: center;
    background: var(--blur-bg);
    backdrop-filter: saturate(5) blur(20px);
    -webkit-backdrop-filter: saturate(5) blur(20px);
    box-shadow: 0 -1px 10px var(--main-shadow);
  }

  .tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: var(--muted-2-color);
    height: var(--tabbar-height);
  }

  .tabbar-item .icon {
    width: 22px;
    height: 22px;
  }

  .tabbar-item.on {
    color: var(--theme-color);
  }

}

/* 15. 通用小件 -------------------------------------------------------------- */
.scroll-x {
  overflow-x: auto;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.load-more {
  display: block;
  text-align: center;
  padding: 11px;
  margin: 4px 0 20px;
  border-radius: 50px;
  background: var(--main-bg-color);
  box-shadow: 0 0 10px var(--main-shadow);
  color: var(--muted-color);
  font-size: 14px;
}

.load-more:hover {
  color: var(--focus-color);
}

.empty-tip {
  text-align: center;
  padding: 50px 0;
  color: var(--muted-3-color);
  font-size: 14px;
}

/* 手机端两列栅格 —— 数值取自原站 390px 视口实测：
   容器 padding 0 10px → 内容 370；posts-row margin -5px → 380；
   卡片 calc(50% - 10px) = 180，margin 5、padding 10，缩略图 160×112(70%) */
@media (max-width: 992px) {
  .container {
    padding: 0 10px;
    width: 100%;
  }

  .posts-row {
    margin: -5px;
  }

  .posts-item.card {
    width: calc(50% - 10px);
    margin: 5px;
    padding: 10px;
  }

  .posts-item.card .item-heading {
    font-size: 14px;
    line-height: 1.4em;
  }

  .widget-main-post.style-card .widget-ajaxpager {
    margin: -5px;
  }
}
