:root {
  --pt-blue: #3385ff;
  --pt-blue-deep: #007cf8;
  --pt-indigo: #524efe;
  --pt-nav: linear-gradient(90deg, #007cf8, #524efe);
  --pt-bg: #f3f8ff;
  --pt-bar: #e8eff5;
  --pt-top: #f2f2f2;
  --pt-white: #ffffff;
  --pt-text: #333333;
  --pt-muted: #666666;
  --pt-faint: #999999;
  --pt-line: #efefef;
  --pt-hot: #ff4400;
  --pt-radius: 5px;
  --pt-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --pt-wrap: 1200px;
  --pt-header: 70px;
}

* { box-sizing: border-box; }
body.pt-body {
  margin: 0;
  background: var(--pt-bg);
  color: var(--pt-text);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
}
body.pt-body a { color: #333; text-decoration: none; }
body.pt-body a:hover { color: var(--pt-blue); }
body.pt-body img { max-width: 100%; border: 0; }
button, input { font-family: inherit; }
.pt-wrap { width: min(var(--pt-wrap), calc(100% - 32px)); margin: 0 auto; }

.pt-topbar { background: var(--pt-top); border-bottom: 1px solid #f3f3f3; font-size: 12px; color: #666; }
.pt-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 12px; }
.pt-topbar a { color: var(--pt-blue-deep); padding: 0 4px; }
.pt-topbar__pub { color: #fff !important; background: var(--pt-blue); border-radius: 3px; padding: 2px 10px !important; }

.pt-header { background: var(--pt-white); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07); position: sticky; top: 0; z-index: 40; }
.pt-header__row { background: var(--pt-nav); }
.pt-header__inner { display: flex; align-items: center; height: var(--pt-header); gap: 12px; }
.pt-logo { display: flex; align-items: center; flex: 0 0 auto; max-width: 240px; height: 52px; padding: 0 10px; background: #fff; border-radius: 4px; }
.pt-logo img { max-height: 44px; width: auto; }
.pt-logo__name { margin-left: 8px; font-size: 16px; font-weight: 700; color: #222; white-space: nowrap; }
.pt-navwrap { flex: 1; min-width: 0; height: var(--pt-header); }
.pt-nav { display: flex; align-items: stretch; height: var(--pt-header); margin: 0; padding: 0; list-style: none; }
.pt-nav__item { position: relative; flex: 0 0 auto; }
.pt-nav__link {
  display: flex; align-items: center; height: var(--pt-header); padding: 0 14px;
  color: #fff !important; font-size: 16px; font-weight: 600; position: relative; white-space: nowrap;
}
.pt-nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 14px; width: 0; height: 2px;
  background: #fff; transform: translateX(-50%); transition: width .2s;
}
.pt-nav__link:hover::after, .pt-nav__link.is-on::after { width: 50%; }
.pt-nav__sub {
  display: none; position: absolute; left: 0; top: 100%; min-width: 140px; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border-radius: 4px; box-shadow: var(--pt-shadow); z-index: 20;
}
.pt-nav__sub a { display: block; padding: 8px 16px; color: #333; font-size: 14px; font-weight: 400; }
.pt-nav__sub a:hover { background: #f3f8ff; color: var(--pt-blue); }
.pt-nav__item:hover > .pt-nav__sub:has(a) { display: block; }
.pt-user { position: relative; flex: 0 0 auto; }
.pt-user__btn {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  color: #fff; background: rgba(255,255,255,.16); border: 0; border-radius: 17px; cursor: pointer;
}
.pt-user__avatar { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--pt-indigo); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.pt-user__menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px;
  background: #fff; border-radius: 4px; box-shadow: var(--pt-shadow); padding: 6px 0; z-index: 30;
}
.pt-user.is-open .pt-user__menu, .pt-user:hover .pt-user__menu { display: block; }
.pt-user__menu a { display: block; padding: 8px 16px; }
.pt-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.pt-burger span { display: block; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }

.pt-tools { background: var(--pt-bar); border-bottom: 1px solid #e9eff5; }
.pt-tools__inner { display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 8px 0; }
.pt-search { display: flex; align-items: center; background: #fff; border: 1px solid #cfdee3; border-radius: 3px; overflow: hidden; }
.pt-search input { width: 280px; height: 34px; border: 0; padding: 0 10px; outline: none; }
.pt-search button { height: 34px; padding: 0 16px; border: 0; background: var(--pt-blue); color: #fff; cursor: pointer; }
.pt-search button:hover { background: var(--pt-blue-deep); }
.pt-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--pt-muted); font-size: 13px; }
.pt-hot strong { color: #222; font-weight: 700; }
.pt-hot a { color: #666; }
.pt-hot a:hover { color: var(--pt-hot); }

.pt-main { padding-bottom: 28px; }
.pt-slider { position: relative; margin-top: 12px; border-radius: var(--pt-radius); overflow: hidden; background: #d9e6f5; height: 420px; }
.pt-slides { height: 100%; position: relative; }
.pt-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.pt-slide.is-on, .pt-slides .pt-slide:first-child { opacity: 1; }
.pt-slides:has(.is-on) .pt-slide:first-child:not(.is-on) { opacity: 0; }
.pt-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,.4); color: #fff; font-size: 18px;
}
.pt-slider__btn:hover { background: rgba(0,0,0,.65); }
.pt-slider__btn--prev { left: 12px; }
.pt-slider__btn--next { right: 12px; }

.pt-ads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pt-ads a { display: block; border-radius: var(--pt-radius); overflow: hidden; background: #fff; box-shadow: var(--pt-shadow); }
.pt-ads img { width: 100%; height: 115px; object-fit: cover; display: block; }

.pt-sec { margin-top: 8px; }
.pt-title { position: relative; text-align: center; margin: 28px 0 12px; }
.pt-title h2 { display: inline-block; margin: 0; padding: 0 18px; font-size: 22px; font-weight: 500; color: #111; background: var(--pt-bg); position: relative; z-index: 1; }
.pt-title h2::after { content: ""; display: block; width: 30px; height: 2px; margin: 8px auto 0; background: #f00; border-radius: 2px; }
.pt-title::before { content: ""; position: absolute; left: 8%; right: 8%; top: 16px; height: 1px; background: #e3e8ef; }

.pt-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.pt-tab {
  border: 1px solid #eee; background: #fff; color: #333; border-radius: 5px;
  padding: 4px 14px; line-height: 28px; cursor: pointer; font-size: 14px;
}
.pt-tab:hover, .pt-tab.is-on { color: #007bff; border-color: #c9ddff; }

.pt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; align-items: start; }
.pt-card { position: relative; min-width: 0; background: #fff; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); padding: 10px; transition: transform .25s, box-shadow .25s; }
.pt-card:hover { transform: translateY(-3px); box-shadow: 0 0 10px #ddd; }
.pt-card__cover { display: block; border-radius: 3px; overflow: hidden; background: #f3f5f8; }
.pt-card__cover img { width: 100%; height: 182px; object-fit: cover; display: block; }
.pt-latest .pt-card__cover { position: relative; aspect-ratio: 1 / 1; }
.pt-latest .pt-card__cover img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: contain; object-position: center; background: #f3f5f8;
}
.pt-latest > .pt-panel { display: none; }
.pt-latest > .pt-panel.is-on { display: block; }
.pt-latest:not(.is-ready) > .pt-panel:first-of-type { display: block; }
.pt-card__cat { position: absolute; top: 18px; left: 18px; padding: 3px 8px; font-size: 12px; color: #fff !important; background: rgba(51,51,51,.42); border-radius: 3px; }
.pt-card__cat:hover { color: var(--pt-hot) !important; }
.pt-card__title { display: block; margin-top: 8px; height: 30px; line-height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; color: #000; }
.pt-card__meta { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 0; color: #666; font-size: 12px; }
.pt-card__view::before { content: ""; display: inline-block; width: 14px; height: 10px; margin-right: 4px; border: 1.5px solid #999; border-radius: 8px 8px 6px 6px; vertical-align: -1px; }

.pt-more { display: table; margin: 18px auto 6px; padding: 8px 38px; color: #fff !important; border-radius: 4px; background-image: linear-gradient(90deg, #71b8ff, #4e76f6); box-shadow: 0 5px 10px rgba(16,110,253,.3); }
.pt-more:hover { color: #fff !important; transform: translateY(-2px); }

.pt-hscroll { position: relative; }
.pt-hscroll__view { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.pt-hscroll__view::-webkit-scrollbar { display: none; }
.pt-hscroll__track { display: flex; gap: 10px; margin: 0; padding: 6px 2px 10px; list-style: none; }
.pt-hitem { position: relative; flex: 0 0 290px; height: 206px; background: #fff; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.1); overflow: hidden; }
.pt-hitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-hitem span { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; line-height: 36px; padding: 0 10px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: linear-gradient(to top, #000, rgba(0,0,0,0)); }
.pt-hscroll__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  border: 0; background: rgba(0,0,0,.33); color: #fff; border-radius: 5px; padding: 12px 14px; cursor: pointer;
}
.pt-hscroll__btn:hover { background: rgba(0,0,0,.7); }
.pt-hscroll__btn--prev { left: 0; }
.pt-hscroll__btn--next { right: 0; }

.pt-recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pt-rec { min-width: 0; background: #fff; border: 1px solid var(--pt-line); border-radius: 5px; transition: transform .25s, box-shadow .25s; }
.pt-rec:hover { transform: translateY(-3px); box-shadow: 0 0 10px #ddd; }
.pt-rec a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; color: inherit; }
.pt-rec__cover { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 3px; overflow: hidden; background: #f3f5f8; }
.pt-rec__cover img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; object-position: center; display: block; }
.pt-rec__body { flex: 1; min-width: 0; }
.pt-rec h3 { margin: 0; font-size: 16px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pt-rec p { margin: 4px 0 0; color: #767676; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pt-rec__meta { display: flex; gap: 10px; }

.pt-ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.pt-rank { background: #fff; border-radius: 4px; box-shadow: 1px 1px 2px #dbdbdb; overflow: hidden; }
.pt-rank__hd { display: flex; align-items: center; justify-content: space-between; height: 45px; padding: 0 16px 0 20px; border-bottom: 1px solid #efefef; position: relative; font-size: 16px; }
.pt-rank__hd::before { content: ""; position: absolute; left: 8px; top: 50%; width: 4px; height: 18px; transform: translateY(-50%); background: #006eff; border-radius: 2px; box-shadow: 3px 0 10px -1px #006eff; }
.pt-rank__hd a { font-weight: 600; }
.pt-rank ol { margin: 0; padding: 10px 12px 12px; list-style: none; counter-reset: rk; }
.pt-rank li { counter-increment: rk; line-height: 36px; }
.pt-rank li a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #666; font-size: 15px; }
.pt-rank li a::before { content: counter(rk); display: inline-block; width: 21px; margin-right: 6px; text-align: center; color: #999; }
.pt-rank li:nth-child(1) a::before { color: #f40; }
.pt-rank li:nth-child(2) a::before { color: #03a7f7; }
.pt-rank li:nth-child(3) a::before { color: #0aeb99; }
.pt-rank li a:hover { color: #2e9dd3; }

.pt-footer { margin-top: 28px; background: #fbfbfb; border-top: 1px solid #2f9fd6; color: #666; }
.pt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 28px 0 18px; }
.pt-footer h3 { margin: 0 0 10px; font-size: 16px; color: #222; font-weight: 600; }
.pt-footer ul { margin: 0; padding: 0; list-style: none; }
.pt-footer li { line-height: 28px; }
.pt-footer a { color: #666; }
.pt-footer a:hover { color: var(--pt-blue); }
.pt-footer__copy { border-top: 1px solid #eee; text-align: center; padding: 12px 0 18px; font-size: 13px; }
.pt-footer__copy a { margin-left: 8px; }

.pt-top, .pt-tabbar { }
.pt-top {
  position: fixed; right: 18px; bottom: 80px; z-index: 50; width: 42px; height: 42px;
  border: 0; border-radius: 4px; background: var(--pt-blue); color: #fff; cursor: pointer; display: none;
}
.pt-top.is-on { display: block; }
.pt-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 56px;
  background: #fff; border-top: 1px solid #e6e6e6; box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}
.pt-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #666; }
.pt-tabbar a.is-on, .pt-tabbar a:hover { color: var(--pt-blue); }

.pt-pagehead { background: #fff; border-bottom: 1px solid #e8eef5; padding: 22px 0 16px; }
.pt-pagehead h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.pt-crumb { color: var(--pt-faint); font-size: 13px; }
.pt-crumb a { color: #666; }

.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.pt-filters a { padding: 4px 12px; background: #fff; border: 1px solid #eee; border-radius: 5px; }
.pt-filters a.is-on, .pt-filters a:hover { color: #007bff; border-color: #c9ddff; }
.pt-count { margin: 0 0 12px; color: var(--pt-muted); }
.pt-count b { color: var(--pt-hot); font-weight: 600; }
.pt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.pt-side { background: #fff; border-radius: 4px; box-shadow: 1px 1px 2px #dbdbdb; }
.pt-side h3 { margin: 0; padding: 12px 16px; border-bottom: 1px solid #efefef; font-size: 16px; position: relative; }
.pt-side h3::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: #006eff; }
.pt-side ol { margin: 0; padding: 8px 14px 12px; list-style: none; counter-reset: rk; }
.pt-side li { counter-increment: rk; line-height: 32px; }
.pt-side li a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #666; }
.pt-side li a::before { content: counter(rk); display: inline-block; width: 18px; color: #999; }
.pt-pager { margin: 22px 0 8px; text-align: center; }
.pt-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-pager a, .pt-pager span { display: inline-block; min-width: 32px; padding: 4px 10px; background: #fff; border: 1px solid #e5e5e5; border-radius: 3px; }
.pt-pager .active span, .pt-pager .active a, .pt-pager span.current { background: var(--pt-blue); border-color: var(--pt-blue); color: #fff; }
.pt-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--pt-faint); background: #fff; border-radius: 5px; }

.pt-article { background: #fff; border-radius: 5px; padding: 28px 32px 36px; box-shadow: var(--pt-shadow); }
.pt-article__title { margin: 0; text-align: center; font-size: 24px; line-height: 1.4; }
.pt-article__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding-bottom: 14px; border-bottom: 1px dashed #ddd; color: #888; font-size: 13px; }
.pt-article__meta button { border: 0; background: none; color: var(--pt-blue); cursor: pointer; padding: 0 4px; }
.pt-contact { margin: 0 0 18px; padding: 16px 18px; background: #f7f9fc; border-radius: 4px; line-height: 1.9; }
.pt-contact b { color: var(--pt-blue-deep); font-size: 18px; }
.pt-content { font-size: 15px; line-height: 1.9; color: #333; word-break: break-word; }
.pt-content img { height: auto; }
.pt-subhead { margin: 28px 0 14px; font-size: 18px; font-weight: 600; }

.pt-searchbox { display: flex; justify-content: center; margin: 8px 0 18px; }
.pt-searchbox .pt-search input { width: min(520px, 70vw); }
.pt-key { color: var(--pt-hot); }

@media (max-width: 1024px) {
  .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-recs, .pt-ranks, .pt-ads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-slider { height: 280px; }
  .pt-layout { grid-template-columns: 1fr; }
  .pt-search input { width: 180px; }
}
@media (max-width: 768px) {
  .pt-header { position: sticky; }
  .pt-header__inner { height: 56px; }
  .pt-logo { height: 40px; }
  .pt-logo img { max-height: 32px; }
  .pt-burger { display: block; margin-left: auto; background: var(--pt-nav); border-radius: 4px; }
  .pt-navwrap { display: none; position: absolute; left: 0; right: 0; top: 100%; height: auto; border-radius: 0; background: #fff; box-shadow: var(--pt-shadow); }
  .pt-navwrap.is-open { display: block; }
  .pt-nav { flex-direction: column; height: auto; background: #fff; max-height: 70vh; overflow: auto; }
  .pt-nav__link { color: #222 !important; height: 44px; font-size: 15px; }
  .pt-nav__link::after { display: none; }
  .pt-nav__sub { display: block; position: static; box-shadow: none; padding: 0 0 6px 16px; }
  .pt-user { display: none; }
  .pt-tools__inner { flex-direction: column; align-items: stretch; }
  .pt-search input { width: 100%; }
  .pt-search { width: 100%; }
  .pt-slider { height: 180px; }
  .pt-ads, .pt-recs, .pt-ranks, .pt-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .pt-hitem { flex-basis: 180px; height: 132px; }
  .pt-title h2 { font-size: 18px; }
  .pt-article { padding: 18px 14px 24px; }
  body.pt-body .pt-tabbar { display: flex; }
  body.pt-body { padding-bottom: 64px; }
  .pt-top { bottom: 72px; }
}
@media (max-width: 480px) {
  .pt-cards { gap: 12px; }
  .pt-card__cover img { height: 150px; }
  .pt-slider { height: 150px; }
}
