:root {
  --p-bg: #f5f7fb;
  --p-card: #ffffff;
  --p-text: #1f2937;
  --p-muted: #7d8799;
  --p-line: #e8edf6;
  --p-blue: #3b82f6;
  --p-blue-2: #2563eb;
  --p-cyan: #22d3ee;
  --p-radius: 12px;
  --p-shadow: 0 10px 28px rgba(29, 58, 110, .08);
  --p-font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--p-bg); color: var(--p-text); font-family: var(--p-font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.p-wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* header */
.p-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--p-line); backdrop-filter: blur(12px); }
.p-nav { height: 64px; display: flex; align-items: center; gap: 28px; }
.p-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.p-brand img { width: 34px; height: 34px; border-radius: 9px; }
.p-brand span b { display: block; font-size: 16px; letter-spacing: .5px; }
.p-brand span em { display: block; font-style: normal; font-size: 10px; color: var(--p-muted); letter-spacing: 2px; }
.p-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.p-links a { padding: 8px 14px; border-radius: 8px; color: #55617a; font-size: 14px; transition: .2s; }
.p-links a:hover { background: #f1f5fd; color: var(--p-blue); }
.p-links a.active { color: var(--p-blue); background: #eef4ff; font-weight: 600; }
.p-actions { display: flex; align-items: center; gap: 10px; }
.p-ghost { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--p-line); color: #55617a; font-size: 13px; background: #fff; }
.p-ghost:hover { border-color: #c9d8f2; color: var(--p-blue); }
.p-primary { padding: 8px 18px; border-radius: 8px; background: linear-gradient(135deg, #4f8cff, #2fd3e8); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px rgba(59,130,246,.25); }
.p-primary:hover { filter: brightness(1.04); }
.p-primary.lg, .p-ghost.lg { padding: 11px 24px; font-size: 14px; }

/* hero */
.p-main { padding: 22px 0 40px; }
.p-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .92fr); gap: 16px; }
.p-banner {
  position: relative; overflow: hidden;
  min-height: 322px;
  border-radius: 14px;
  padding: 34px 34px 30px;
  color: #fff;
  background:
    radial-gradient(500px 240px at 82% 22%, rgba(34,211,238,.5), transparent 65%),
    radial-gradient(480px 300px at 8% 100%, rgba(124,58,237,.45), transparent 62%),
    linear-gradient(135deg, #17255c 0%, #1e47a8 55%, #2563eb 100%);
  box-shadow: 0 18px 40px rgba(30, 64, 140, .22);
}
.p-banner-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); font-size: 10px; letter-spacing: 2px; }
.p-banner h1 { margin: 18px 0 10px; font-size: 36px; line-height: 1.25; letter-spacing: 1px; }
.p-banner p { margin: 0 0 22px; color: rgba(255,255,255,.76); font-size: 13.5px; }
.p-banner-btns { display: flex; gap: 10px; position: relative; z-index: 2; }
.p-banner .p-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.p-banner .p-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.p-banner-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.p-banner-orbit.o1 { width: 360px; height: 360px; right: -90px; top: -110px; }
.p-banner-orbit.o2 { width: 240px; height: 240px; right: -30px; top: -50px; border-color: rgba(34,211,238,.28); }
.p-banner-screen {
  position: absolute; right: 44px; bottom: 38px; width: 168px; height: 106px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: rgba(255,255,255,.85); font-size: 10px; letter-spacing: 2px;
}
.p-banner-screen .p-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1d4ed8; font-size: 15px; padding-left: 3px; }

/* cards */
.p-card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-radius); box-shadow: var(--p-shadow); }
.p-center { padding: 20px; display: flex; flex-direction: column; }
.p-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.p-card-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.p-card-head span { color: var(--p-muted); font-size: 12px; }
.p-card-head a { color: var(--p-muted); font-size: 12px; }
.p-card-head a:hover { color: var(--p-blue); }
.p-announce { margin: 0 0 16px; color: #66738b; font-size: 12.8px; line-height: 1.75; min-height: 66px; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px dashed var(--p-line); border-bottom: 1px dashed var(--p-line); }
.p-stats div { text-align: center; }
.p-stats b { display: block; font-size: 20px; color: var(--p-blue-2); font-variant-numeric: tabular-nums; }
.p-stats span { font-size: 11.5px; color: var(--p-muted); }
.p-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }
.p-mini a { display: block; padding: 10px 12px; border-radius: 9px; background: #f6f9ff; border: 1px solid #edf3fd; }
.p-mini a:hover { border-color: #cfe0fb; background: #eef5ff; }
.p-mini b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.p-mini span { font-size: 11px; color: var(--p-muted); }

/* rank */
.p-rank { padding: 18px 18px 10px; }
.p-rank ol { list-style: none; margin: 0; padding: 0; }
.p-rank li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--p-line); }
.p-rank li:last-child { border-bottom: 0; }
.p-rank .r-no { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #c7d3e6; flex: 0 0 auto; }
.p-rank li:nth-child(1) .r-no { background: linear-gradient(135deg, #ff9f43, #ff7043); }
.p-rank li:nth-child(2) .r-no { background: linear-gradient(135deg, #4f8cff, #2fd3e8); }
.p-rank li:nth-child(3) .r-no { background: linear-gradient(135deg, #22c55e, #7bdcb5); }
.p-rank .r-logo { width: 34px; height: 26px; border-radius: 6px; background: #eef2f8; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; color: #93a4c2; font-size: 11px; }
.p-rank .r-logo img { width: 100%; height: 100%; object-fit: contain; }
.p-rank .r-main { min-width: 0; flex: 1; }
.p-rank .r-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-rank .r-views { font-size: 11px; color: var(--p-muted); }
.p-rank .r-empty { color: var(--p-muted); font-size: 12.5px; display: block; padding: 10px 0; }

/* sections */
.p-section { margin-top: 28px; scroll-margin-top: 84px; }
.p-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.p-sec-head h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: .3px; }
.p-sec-head a { font-size: 12px; color: var(--p-muted); }
.p-sec-head a:hover { color: var(--p-blue); }
.p-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.p-grid + .p-grid { margin-top: 14px; }
.p-item { background: #fff; border: 1px solid var(--p-line); border-radius: 10px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.p-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29,58,110,.1); border-color: #d8e6fb; }
.p-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef3fa, #e3ebf7); display: grid; place-items: center; }
.p-thumb img { width: 74%; height: 74%; object-fit: contain; }
.p-thumb .letter { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; background: linear-gradient(135deg, #4f8cff, #2fd3e8); }
.p-thumb .p-live { position: absolute; left: 8px; top: 8px; font-size: 9px; color: #fff; background: rgba(15,23,42,.62); padding: 2px 6px; border-radius: 4px; letter-spacing: 1px; }
.p-meta { padding: 9px 10px 10px; }
.p-name { display: block; font-size: 12.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sub { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--p-muted); }

/* footer */
.p-footer { border-top: 1px solid var(--p-line); background: #fff; padding: 24px 0 30px; margin-top: 10px; }
.p-footer p { margin: 4px 0; text-align: center; font-size: 11.5px; color: #9aa5b8; line-height: 1.7; }

@media (max-width: 1100px) {
  .p-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .p-rank { grid-column: 1 / -1; }
  .p-rank ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .p-wrap { width: calc(100% - 24px); }
  .p-links { display: none; }
  .p-hero { grid-template-columns: 1fr; }
  .p-banner { min-height: 260px; padding: 26px; }
  .p-banner h1 { font-size: 28px; }
  .p-banner-screen { display: none; }
  .p-rank ol { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-sec-head h2 { font-size: 17px; }
  .p-brand span em { display: none; }
}

/* 影视点播 */
.p-vod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.p-vod { border: 1px solid var(--p-line); background: #fff; border-radius: 10px; overflow: hidden; padding: 0; text-align: left; cursor: pointer; transition: .18s; }
.p-vod:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29,58,110,.1); border-color: #d8e6fb; }
.p-vod-cover { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #1e3a8a, #2563eb); display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700; }
.p-vod-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-vod-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 14px; padding-left: 3px; }
.p-vod-fmt { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 9px; padding: 2px 6px; border-radius: 4px; background: rgba(15,23,42,.65); color: #fff; }
.p-vod b { display: block; padding: 9px 10px 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-vod span { display: block; padding: 4px 10px 11px; color: var(--p-muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-modal { position: fixed; inset: 0; z-index: 90; background: rgba(7,11,20,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.p-modal[hidden] { display: none; }
.p-modal-box { width: min(900px, 100%); background: #0b1220; border: 1px solid #1e2a41; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.p-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #e6edf8; }
.p-modal-head button { border: 0; background: none; color: #94a3b8; font-size: 24px; cursor: pointer; }
.p-modal-box video { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.p-modal-meta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; color: #7f8da8; font-size: 11px; }
.p-user { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--p-line); background: #fff; font-size: 12px; }
.p-user span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #4f8cff, #2fd3e8); color: #fff; font-size: 12px; font-weight: 700; }
.p-user b { font-weight: 550; }
@media (max-width: 900px) { .p-vod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .p-vod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* 轮播图与公告 */
.p-banner { display: flex; flex-direction: column; justify-content: flex-end; }
.p-banner-slides { position: absolute; inset: 0; z-index: 0; }
.p-slide { position: absolute; inset: 0; background-size: cover; background-position: left center; opacity: 0; transition: opacity .6s ease; }
.p-slide.active { opacity: 1; }
.p-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,20,.28), rgba(7,11,20,.02) 60%); }
.p-banner.has-image .p-banner-copy { position: relative; z-index: 2; }
.p-banner.has-image .p-banner-copy h1,
.p-banner.has-image .p-banner-copy p,
.p-banner.has-image .p-banner-copy .p-banner-tag { display: none; }
.p-banner.has-image .p-banner-copy { margin-top: auto; }
.p-banner.has-image .p-banner-orbit,
.p-banner.has-image .p-banner-screen { display: none; }
.p-banner-dots { position: absolute; right: 20px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.p-banner-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.p-banner-dots button.active { width: 20px; border-radius: 999px; background: #fff; }
.p-ann-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.p-ann-item { padding-bottom: 8px; border-bottom: 1px dashed var(--p-line); }
.p-ann-item:last-child { border-bottom: 0; padding-bottom: 0; }
.p-ann-item b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #26344d; }
.p-ann-item b em { font-style: normal; font-size: 9px; padding: 1px 5px; border-radius: 4px; background: #fee2e2; color: #dc2626; font-weight: 500; }
.p-ann-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--p-muted); font-size: 11px; line-height: 1.6; }
.p-announce { margin-bottom: 0; min-height: 0; }