/*
Theme Name: Zibll Resource Child
Theme URI: https://example.invalid/
Description: 独立资源网站的 Zibll 子主题，仅覆盖公开页面布局与品牌样式。
Author: Site Owner
Template: zibll
Version: 1.2.0
Text Domain: zibll-resource-child
*/

:root {
  --rh-accent: #f13bae;
  --rh-accent-dark: #dc2397;
  --rh-orange: #ff8708;
  --rh-bg: #f5f6f7;
  --rh-card: #fff;
  --rh-text: #292c34;
  --rh-muted: #8a8f9d;
  --rh-border: #edf0f3;
  --rh-radius: 8px;
}

body { background: var(--rh-bg); color: var(--rh-text); }
.home > .header, .home > header.header, .home #header { display: none !important; }
.rh-topbar { position: relative; z-index: 30; height: 68px; border-bottom: 1px solid rgba(0,0,0,.04); background: #fff; }
.rh-topbar__inner { display: flex; width: min(1380px, calc(100% - 40px)); height: 100%; margin: 0 auto; align-items: center; gap: 34px; }
.rh-brand { display: flex; min-width: 170px; align-items: center; gap: 10px; color: var(--rh-text); }
.rh-brand__mark { display: block; width: 34px; height: 34px; flex: 0 0 34px; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(255,79,102,.17)); }
.rh-brand strong, .rh-brand small { display: block; }
.rh-brand strong { overflow: hidden; max-width: 145px; font-size: 18px; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.rh-brand small { margin-top: 2px; color: #9a9da5; font-size: 10px; line-height: 13px; }
.rh-main-nav { display: flex; min-width: 0; flex: 1; height: 100%; align-items: stretch; gap: 4px; }
.rh-main-nav a { position: relative; display: flex; padding: 0 16px; align-items: center; color: #4e515a; font-size: 14px; white-space: nowrap; }
.rh-main-nav a::after { position: absolute; right: 16px; bottom: 0; left: 16px; height: 3px; border-radius: 4px 4px 0 0; background: transparent; content: ""; }
.rh-main-nav a:hover, .rh-main-nav a.is-active { color: var(--rh-accent); }
.rh-main-nav a.is-active::after { background: var(--rh-accent); }
.rh-top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.rh-top-actions > a { color: #5b5e66; font-size: 14px; }
.rh-top-actions .rh-vip-button { display: flex; height: 36px; padding: 0 15px; border-radius: 6px; align-items: center; gap: 5px; color: #fff; font-weight: 600; background: linear-gradient(135deg,#ff9b21,#ff6a12); box-shadow: 0 6px 16px rgba(255,126,20,.2); }
.rh-vip-button .dashicons { width: 17px; height: 17px; font-size: 17px; }
.rh-mobile-menu { display: none; }

.rh-home { width: 100%; margin: 0; padding: 0 0 42px; }
.rh-hero { min-height: 550px; display: grid; place-items: center; margin: 0; padding: 60px 20px 96px; overflow: hidden; color: #fff; text-align: center; background: radial-gradient(circle at 15% 18%,rgba(255,255,255,.19),transparent 24%),radial-gradient(circle at 84% 72%,rgba(255,218,56,.2),transparent 28%),linear-gradient(135deg,#ff9c00 0%,#ff7c08 52%,#ff9717 100%); }
.rh-hero__inner { width: min(800px,100%); transform: translateY(-12px); }
.rh-hero h1 { margin: 0 0 12px; color: #fff; font-size: 30px; line-height: 1.35; font-weight: 700; letter-spacing: .5px; }
.rh-hero p { margin: 0 0 30px; color: rgba(255,255,255,.9); font-size: 16px; }
.rh-search { display: flex; width: 100%; height: 54px; padding: 5px 6px 5px 22px; border-radius: 999px; background: #fff; box-shadow: 0 16px 34px rgba(153,76,0,.2); }
.rh-search input { min-width: 0; height: 44px; flex: 1; padding: 0; border: 0 !important; outline: 0; color: #444; background: transparent; box-shadow: none !important; font-size: 14px; }
.rh-search button { display: grid; width: 74px; height: 44px; border: 0; border-radius: 999px; place-items: center; color: #fff; background: linear-gradient(135deg,var(--rh-accent),var(--rh-accent-dark)); }
.rh-search button .dashicons { width: 20px; height: 20px; font-size: 20px; }
.rh-keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.rh-keywords a { padding: 5px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.9); font-size: 12px; background: rgba(255,255,255,.1); }
.rh-keywords a:hover { color: #ff7a08; background: #fff; }

.rh-quick { position: relative; z-index: 5; display: grid; width: min(1170px,calc(100% - 40px)); margin: -41px auto 20px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.rh-quick__item { display: flex; min-width: 0; height: 82px; padding: 13px 12px; border: 1px solid rgba(0,0,0,.025); border-radius: 8px; align-items: center; gap: 10px; color: var(--rh-text); background: #fff; box-shadow: 0 7px 22px rgba(30,42,55,.08); transition: transform .2s ease,box-shadow .2s ease; }
.rh-quick__item:hover { color: var(--rh-text); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,42,55,.12); }
.rh-quick__icon { display: grid; width: 40px !important; height: 40px !important; flex: 0 0 40px; border-radius: 12px; place-items: center; font-size: 20px !important; line-height: 40px !important; }
.rh-quick__item strong, .rh-quick__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-quick__item strong { margin-bottom: 4px; font-size: 14px; }
.rh-quick__item small { color: #a0a4ad; font-size: 10px; }
.rh-quick__item.is-orange .rh-quick__icon { color: #ff7c16; background: #fff2e4; }
.rh-quick__item.is-violet .rh-quick__icon { color: #965bea; background: #f3eaff; }
.rh-quick__item.is-pink .rh-quick__icon { color: #ee49a6; background: #ffeaf6; }
.rh-quick__item.is-cyan .rh-quick__icon { color: #24a9a8; background: #e5fbf9; }
.rh-quick__item.is-blue .rh-quick__icon { color: #4d82f2; background: #eaf1ff; }
.rh-quick__item.is-indigo .rh-quick__icon { color: #6e69dd; background: #eeedff; }

.rh-content { width: min(1170px,calc(100% - 40px)); margin: 0 auto; }
.rh-filter { display: flex; min-height: 48px; margin: 0 0 5px; overflow-x: auto; align-items: center; gap: 6px; scrollbar-width: none; }
.rh-filter::-webkit-scrollbar { display: none; }
.rh-filter a { flex: 0 0 auto; padding: 8px 16px; border-radius: 5px; color: #696d76; font-size: 14px; white-space: nowrap; }
.rh-filter a:hover, .rh-filter a.is-active { color: #fff; background: linear-gradient(135deg,var(--rh-accent),var(--rh-accent-dark)); box-shadow: 0 5px 12px rgba(241,59,174,.17); }
.rh-sort { display: flex; min-height: 33px; margin-bottom: 11px; align-items: center; justify-content: flex-end; gap: 13px; color: #a0a4ad; font-size: 12px; }
.rh-sort a { color: #858995; }
.rh-sort a:hover, .rh-sort a.is-active { color: var(--rh-accent); }
.rh-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 16px; }
.rh-card { display: flex; min-width: 0; height: 174px; padding: 20px; overflow: hidden; border: 1px solid var(--rh-border); border-radius: var(--rh-radius); background: var(--rh-card); box-shadow: 0 3px 13px rgba(33,43,54,.035); transition: transform .2s ease,box-shadow .2s ease; }
.rh-card:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(33,43,54,.08); }
.rh-card__image { position: relative; display: block; width: 190px; height: 133px; flex: 0 0 190px; overflow: hidden; border-radius: 6px; background: #e9ecf3; }
.rh-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rh-card:hover .rh-card__image img { transform: scale(1.035); }
.rh-card__status { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; background: linear-gradient(135deg,#ff8b41,#f05661); }
.rh-card__body { display: flex; min-width: 0; flex: 1; padding-left: 20px; flex-direction: column; }
.rh-card h2 { min-height: 48px; margin: 0 0 5px; font-size: 17px; line-height: 24px; font-weight: 650; }
.rh-card h2 a { display: -webkit-box; overflow: hidden; color: var(--rh-text); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rh-card h2 a:hover { color: var(--rh-accent); }
.rh-card__excerpt { display: -webkit-box; min-height: 38px; margin: 0 0 6px; overflow: hidden; color: var(--rh-muted); font-size: 12px; line-height: 19px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rh-card__badges { display: flex; min-width: 0; margin-top: auto; align-items: center; gap: 7px; }
.rh-card__price, .rh-card__category { display: inline-flex; max-width: 135px; height: 22px; padding: 0 8px; border-radius: 4px; align-items: center; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rh-card__price { color: #ef389e; background: #ffebf7; }
.rh-card__category { color: #ff7a0b; background: #fff2e5; }
.rh-card__meta { display: flex; min-width: 0; margin-top: 7px; align-items: center; gap: 11px; color: #a1a5ae; font-size: 10px; white-space: nowrap; }
.rh-card__meta span { display: inline-flex; align-items: center; gap: 2px; }
.rh-card__meta .dashicons { width: 13px; height: 13px; font-size: 13px; line-height: 13px; }
.rh-card__meta time { overflow: hidden; text-overflow: ellipsis; }
.rh-panel { padding: 24px; border-radius: var(--rh-radius); color: var(--rh-muted); background: #fff; }
.rh-section-title { display: flex; margin: 0 0 14px; align-items: center; gap: 9px; font-size: 20px; line-height: 30px; }
.rh-section-title::before { width: 4px; height: 21px; border-radius: 5px; background: var(--rh-accent); content: ""; }
.rh-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.rh-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px; color: #737782; line-height: 36px; text-align: center; background: #fff; }
.rh-pagination .current { color: #fff; background: var(--rh-accent); }

.rh-vip { display: grid; margin-top: 30px; padding: 26px; border-radius: 12px; grid-template-columns: 1.35fr .75fr .75fr; gap: 16px; align-items: stretch; color: #fff; background: linear-gradient(135deg,#343447,#6253a4); }
.rh-vip h2 { margin: 0 0 8px; color: #fff; font-size: 23px; }
.rh-vip p { margin: 0; color: rgba(255,255,255,.72); }
.rh-vip__plan { padding: 17px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; background: rgba(255,255,255,.08); }
.rh-vip__plan strong { display: block; margin-bottom: 6px; font-size: 16px; }
.rh-vip__plan b { color: #ffd879; font-size: 23px; }
.rh-vip__plan a { display: block; margin-top: 11px; padding: 8px; border-radius: 6px; color: #4c407b; text-align: center; background: #fff; }
.rh-showcase { margin-top: 30px; }
.rh-showcase__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.rh-showcase__card { min-width: 0; padding: 20px; border: 1px solid var(--rh-border); border-radius: var(--rh-radius); background: #fff; box-shadow: 0 4px 16px rgba(35,40,52,.035); }
.rh-showcase__card header { display: flex; padding-bottom: 14px; border-bottom: 1px solid var(--rh-border); align-items: center; justify-content: space-between; gap: 12px; }
.rh-showcase__card header strong, .rh-showcase__card header small { display: block; }
.rh-showcase__card header strong { color: var(--rh-text); font-size: 17px; }
.rh-showcase__card header small { margin-top: 3px; color: var(--rh-muted); font-size: 12px; }
.rh-showcase__card header a { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: var(--rh-accent); background: #fff0f9; font-size: 12px; }
.rh-showcase__card ol { display: grid; margin: 15px 0 0; padding: 0; gap: 12px; counter-reset: rh-showcase; list-style: none; }
.rh-showcase__card li { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; counter-increment: rh-showcase; }
.rh-showcase__card li a { display: -webkit-box; overflow: hidden; color: #454b59; font-size: 13px; line-height: 20px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.rh-showcase__card li a::before { display: inline-grid; width: 20px; height: 20px; margin-right: 7px; border-radius: 5px; place-items: center; color: var(--rh-accent); background: #fff0f9; font-size: 11px; content: counter(rh-showcase); }
.rh-showcase__card time { color: #a0a5b1; font-size: 11px; }
.single .article, .single .article-header, .single .zib-widget { border-radius: 12px; }
.single .pay-box, .single .zibpay-box { border-radius: 10px; background: #fff7fc; }

@media (max-width: 1023px) {
  .rh-main-nav { gap: 0; }
  .rh-main-nav a { padding: 0 9px; }
  .rh-main-nav a::after { right: 9px; left: 9px; }
  .rh-quick { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .rh-card__image { width: 160px; flex-basis: 160px; }
  .rh-card__body { padding-left: 14px; }
  .rh-showcase__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  .home > .header, .home > header.header, .home #header { display: none !important; }
  .rh-topbar { height: 56px; }
  .rh-topbar__inner { width: calc(100% - 20px); justify-content: center; }
  .rh-brand { min-width: 0; }
  .rh-brand__mark { width: 30px; height: 30px; flex-basis: 30px; }
  .rh-brand strong { max-width: 185px; font-size: 16px; }
  .rh-brand small, .rh-main-nav, .rh-top-actions { display: none; }
  .rh-mobile-menu { position: absolute; left: 10px; display: block; }
  .rh-mobile-menu summary { display: grid; width: 34px; height: 34px; border-radius: 7px; place-items: center; color: #5f626b; background: #f4f5f7; cursor: pointer; list-style: none; }
  .rh-mobile-menu summary::-webkit-details-marker { display: none; }
  .rh-mobile-menu nav { position: absolute; top: 42px; left: 0; display: grid; width: 170px; max-height: 70vh; padding: 8px; overflow-y: auto; border: 1px solid var(--rh-border); border-radius: 8px; gap: 2px; background: #fff; box-shadow: 0 14px 30px rgba(25,32,44,.14); }
  .rh-mobile-menu nav a { padding: 9px 10px; border-radius: 5px; color: #50545e; font-size: 13px; }
  .rh-mobile-menu nav a:hover { color: var(--rh-accent); background: #fff2fa; }
  .rh-hero { min-height: 280px; padding: 37px 20px 62px; }
  .rh-hero__inner { width: min(350px,100%); transform: none; }
  .rh-hero h1 { margin-bottom: 7px; font-size: 21px; }
  .rh-hero p { margin-bottom: 20px; font-size: 12px; }
  .rh-search { height: 40px; padding: 3px 4px 3px 15px; }
  .rh-search input { height: 34px; font-size: 12px; }
  .rh-search button { width: 57px; height: 34px; }
  .rh-keywords { gap: 6px; margin-top: 13px; }
  .rh-keywords a { padding: 3px 8px; font-size: 10px; }
  .rh-quick { width: calc(100% - 20px); margin: -36px auto 13px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .rh-quick__item { height: 66px; padding: 9px; gap: 8px; }
  .rh-quick__icon { width: 34px !important; height: 34px !important; flex-basis: 34px; border-radius: 9px; font-size: 17px !important; line-height: 34px !important; }
  .rh-quick__item strong { margin-bottom: 2px; font-size: 13px; }
  .rh-quick__item small { font-size: 9px; }
  .rh-content { width: calc(100% - 20px); }
  .rh-filter { min-height: 43px; margin-bottom: 2px; justify-content: flex-start; }
  .rh-filter a { padding: 7px 12px; font-size: 12px; }
  .rh-sort { min-height: 26px; margin-bottom: 8px; gap: 10px; font-size: 10px; }
  .rh-grid { grid-template-columns: 1fr; gap: 9px; }
  .rh-card { height: 136px; padding: 10px; }
  .rh-card__image { width: 140px; height: 114px; flex-basis: 140px; border-radius: 5px; }
  .rh-card__body { padding-left: 10px; }
  .rh-card h2 { min-height: 42px; margin-bottom: 4px; font-size: 14px; line-height: 21px; }
  .rh-card__excerpt { display: none; }
  .rh-card__badges { margin-top: 4px; gap: 5px; }
  .rh-card__price, .rh-card__category { max-width: 90px; height: 20px; padding: 0 6px; font-size: 9px; }
  .rh-card__meta { margin-top: auto; gap: 6px; font-size: 9px; }
  .rh-card__meta span:first-child { display: none; }
  .rh-card__meta .dashicons { width: 11px; height: 11px; font-size: 11px; line-height: 11px; }
  .rh-card__meta time { max-width: 95px; }
  .rh-pagination { margin-top: 18px; }
  .rh-vip { margin-top: 22px; padding: 20px; grid-template-columns: 1fr; }
  .rh-vip h2 { font-size: 20px; }
  .rh-showcase { margin-top: 24px; }
  .rh-showcase__grid { grid-template-columns: 1fr; }
  .rh-showcase__card { padding: 16px; }
}

@media (max-width: 370px) {
  .rh-card__image { width: 126px; flex-basis: 126px; }
  .rh-card__meta time { max-width: 82px; }
}
