/* =====================================================
   痞客邦 / Pixnet 风格 — 白底 · 橙色 · 卡片 · 清新
   Class prefix: px-  / pxc-  (全局唯一，避免SEO重叠)
   ===================================================== */

:root {
    --px-orange:      #f4820a;
    --px-orange-dk:   #d96e00;
    --px-orange-lt:   #fff4e6;
    --px-orange-mid:  #fde8c4;
    --px-fg:          #2b2b2b;
    --px-fg-soft:     #555555;
    --px-fg-muted:    #999999;
    --px-bg:          #f7f7f5;
    --px-white:       #ffffff;
    --px-line:        #e8e8e4;
    --px-line-md:     #d4d4cc;
    --px-shadow-xs:   0 1px 4px rgba(0,0,0,0.06);
    --px-shadow-sm:   0 2px 10px rgba(0,0,0,0.08);
    --px-shadow-md:   0 4px 18px rgba(0,0,0,0.11);
    --px-rd:          8px;
    --px-rd-sm:       5px;
    --px-rd-pill:     999px;
    --px-ease:        all 0.18s ease;
    --px-cover:       calc(350 / 600 * 100%);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { overflow-x:hidden; max-width:100vw; }

body {
    font-family: -apple-system,'Helvetica Neue',Arial,'PingFang TC','Microsoft JhengHei',sans-serif;
    background: var(--px-bg);
    color: var(--px-fg);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    max-width: 100vw;
}

a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul,ol { list-style:none; }

/* ─── LAYOUT ─── */
.pxw {
    max-width: 1050px;
    width: 100%;
    margin: 0 auto;
    padding: 0 14px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pxw * { max-width:100%; box-sizing:border-box; }

.pxr { padding: 5px 0; }

/* ─── HEADER ─── */
.px-header {
    background: var(--px-white);
    border-bottom: 3px solid var(--px-orange);
    box-shadow: var(--px-shadow-xs);
    padding: 10px 0;
}

.px-header .pxw {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.px-logo-link {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1.1;
}

.px-site-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--px-orange);
    letter-spacing: -0.3px;
}

.px-tagline {
    font-size: 10px;
    color: var(--px-fg-muted);
    margin-top: 1px;
}

.px-divider {
    width: 1px;
    height: 30px;
    background: var(--px-line-md);
    flex-shrink: 0;
}

.px-domain-block {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.px-domain-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--px-fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.px-domain-url {
    font-size: 13px;
    font-weight: 700;
    color: var(--px-orange-dk);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* ─── NAV ─── */
.px-nav-zone {
    background: var(--px-white);
    border-bottom: 1px solid var(--px-line);
    margin-bottom: 5px;
    box-shadow: var(--px-shadow-xs);
}

.px-nav-zone .pxw { padding: 0 14px; }

.px-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--px-line);
}
.px-nav-row:last-child { border-bottom: none; }

.px-nav-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10%;
    min-width: 52px;
    background: var(--px-orange);
    color: var(--px-white);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 4px;
    flex-shrink: 0;
    white-space: nowrap;
    word-break: keep-all;
}

.px-nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 6px 8px;
    align-items: center;
}

.px-nav-links a {
    display: inline-block;
    color: var(--px-fg-soft);
    padding: 4px 3px;
    border-radius: var(--px-rd-sm);
    border: 1px solid var(--px-line);
    background: var(--px-bg);
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    transition: var(--px-ease);
    width: calc((100% - 28px) / 8);
    flex-shrink: 0;
    text-decoration: none;
}

.px-nav-links a:hover,
.px-nav-links a.active {
    background: var(--px-orange);
    color: var(--px-white);
    border-color: var(--px-orange);
    box-shadow: 0 2px 8px rgba(244,130,10,0.3);
}

/* ─── SEARCH ─── */
.px-search-wrap {
    background: var(--px-white);
    border: 1px solid var(--px-line);
    border-radius: var(--px-rd);
    padding: 10px 14px;
    margin-bottom: 5px;
    box-shadow: var(--px-shadow-xs);
}

.px-search-wrap form {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: nowrap;
}

.px-search-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 14px;
    border: 1.5px solid var(--px-line-md);
    border-radius: var(--px-rd-pill);
    background: var(--px-bg);
    color: var(--px-fg);
    font-size: 14px;
    outline: none;
    transition: var(--px-ease);
}

.px-search-wrap input[type="text"]:focus {
    border-color: var(--px-orange);
    background: var(--px-white);
    box-shadow: 0 0 0 3px var(--px-orange-lt);
}

.px-search-wrap input[type="text"]::placeholder { color: var(--px-fg-muted); }

.px-search-wrap button {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: var(--px-rd-pill);
    background: var(--px-orange);
    color: var(--px-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--px-ease);
}

.px-search-wrap button:hover {
    background: var(--px-orange-dk);
    box-shadow: 0 2px 8px rgba(244,130,10,0.35);
}

/* ─── TAG PANEL ─── */
.px-tag-panel {
    background: var(--px-white);
    border: 1px solid var(--px-line);
    border-radius: var(--px-rd);
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: var(--px-shadow-xs);
}

.px-tag-head {
    padding: 8px 14px;
    border-bottom: 1px solid var(--px-line);
    display: flex;
    align-items: center;
    gap: 7px;
}

.px-tag-head::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--px-orange);
    border-radius: 2px;
    flex-shrink: 0;
}

.px-tag-head strong { font-size:13px; font-weight:700; color:var(--px-fg); }

.px-tag-body {
    padding: 9px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.px-tag-item {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--px-rd-pill);
    background: var(--px-orange-lt);
    border: 1px solid var(--px-orange-mid);
    color: var(--px-orange-dk);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--px-ease);
}

.px-tag-item:hover {
    background: var(--px-orange);
    color: var(--px-white);
    border-color: var(--px-orange);
}

/* ─── SECTION HEADING ─── */
.pxb { margin-bottom: 8px; }

.pxb-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--px-line);
    margin-bottom: 10px;
    position: relative;
}

.pxb-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--px-orange);
    border-radius: 1px;
}

.pxb-star { color:var(--px-orange); font-size:14px; flex-shrink:0; line-height:1; }

.pxb-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--px-fg);
}

.pxb-title a { color:var(--px-fg); text-decoration:none; transition:var(--px-ease); }
.pxb-title a:hover { color:var(--px-orange); }

/* ─── CARD GRID ─── */
.px-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    list-style: none;
    padding: 0;
}

.px-grid li { animation: pxFade 0.35s ease backwards; }

@keyframes pxFade {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0); }
}

.px-grid li:nth-child(1){animation-delay:.03s}
.px-grid li:nth-child(2){animation-delay:.06s}
.px-grid li:nth-child(3){animation-delay:.09s}
.px-grid li:nth-child(4){animation-delay:.12s}
.px-grid li:nth-child(5){animation-delay:.15s}
.px-grid li:nth-child(6){animation-delay:.18s}
.px-grid li:nth-child(7){animation-delay:.21s}
.px-grid li:nth-child(8){animation-delay:.24s}

.px-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--px-rd);
    padding-top: var(--px-cover);
    background: var(--px-bg);
    border: 1px solid var(--px-line);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.px-thumb img {
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.px-thumb:hover { box-shadow:var(--px-shadow-md); transform:translateY(-2px); }
.px-thumb:hover img { transform:scale(1.05); }

.px-thumb::after {
    content:'';
    position:absolute; inset:0;
    background: linear-gradient(to top,rgba(0,0,0,0.35) 0%,transparent 55%);
    opacity:0;
    transition:opacity 0.25s ease;
    pointer-events:none;
}
.px-thumb:hover::after { opacity:1; }

.px-caption { padding: 6px 1px 0; }

.px-caption h5 { margin:0; font-size:12px; font-weight:600; line-height:1.45; }

.px-caption h5 a {
    color: var(--px-fg);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--px-ease);
}

.px-caption h5 a:hover { color:var(--px-orange); }

/* ─── PLAYER ─── */
.pg-player-shell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.pg-player-shell * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.pg-player-shell > div,
.pg-player-shell > iframe,
.pg-player-shell > video {
    width: 100% !important;
}

.pxc-player {
    width: 100%;
    max-width: 100%;
    height: 640px;
    max-height: 640px;
    background: #000;
    border-radius: var(--px-rd);
    overflow: hidden;
    box-shadow: var(--px-shadow-md);
    position: relative;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.pxc-player iframe,
.pxc-player video,
.pxc-player #video-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--px-rd);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--px-shadow-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.MacPlayer > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

iframe, video, object, embed { max-width:100%; box-sizing:border-box; }

/* ─── TORRENT CAPTURE ─── */
.px-capture { width:100%; max-width:100%; overflow:hidden; box-sizing:border-box; margin-top:8px; }

.px-capture picture,
.px-capture img,
.px-capture .img_item img {
    display:block; width:100%; max-width:100%; height:auto;
    border-radius:var(--px-rd-sm);
    border:1px solid var(--px-line);
}

/* ─── DETAIL BLOCKS ─── */
.px-detail-head {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-all;
    overflow-wrap: break-word;
    background: var(--px-white);
    border-radius: var(--px-rd);
    border: 1px solid var(--px-line);
    border-left: 4px solid var(--px-orange);
    box-shadow: var(--px-shadow-xs);
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.px-detail-head a {
    color: var(--px-orange);
    font-size: 12px;
    font-weight: 700;
    margin-right: 7px;
}

.px-info-block {
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
    background: var(--px-white);
    border-radius: var(--px-rd);
    border: 1px solid var(--px-line);
    box-shadow: var(--px-shadow-xs);
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
    overflow-wrap: break-word;
    overflow: hidden;
}

/* ─── DOWNLOAD BAR ─── */
.px-dl-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    background: var(--px-white);
    border: 1px solid var(--px-line);
    border-radius: var(--px-rd);
    box-shadow: var(--px-shadow-xs);
    margin-bottom: 8px;
}

.px-btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--px-orange);
    color: var(--px-white);
    border-radius: var(--px-rd-pill);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--px-ease);
}

.px-btn:hover {
    background: var(--px-orange-dk);
    box-shadow: 0 3px 10px rgba(244,130,10,0.4);
    transform: translateY(-1px);
}

/* ─── SHARE BAR ─── */
.px-share {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    background: var(--px-white);
    border: 1px solid var(--px-line);
    border-radius: var(--px-rd);
    box-shadow: var(--px-shadow-xs);
    margin-bottom: 8px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.px-share-url-wrap {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--px-bg);
    border: 1px solid var(--px-line-md);
    border-radius: var(--px-rd-pill);
    padding: 7px 13px;
    overflow: hidden;
}

.px-share-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--px-orange);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.px-share-url {
    font-size: 12px;
    color: var(--px-fg-soft);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
    white-space: normal;
}

.px-share-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--px-orange);
    color: var(--px-white);
    border: none;
    border-radius: var(--px-rd-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--px-ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.px-share-btn:hover {
    background: var(--px-orange-dk);
    box-shadow: 0 2px 8px rgba(244,130,10,0.35);
}

/* ─── PAGINATION ─── */
.px-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.px-page-a, .px-page-cur {
    display: inline-block;
    padding: 6px 13px;
    border-radius: var(--px-rd-pill);
    font-weight: 600;
    font-size: 13px;
    min-width: 34px;
    text-align: center;
    transition: var(--px-ease);
}

.px-page-a {
    background: var(--px-white);
    color: var(--px-fg);
    border: 1.5px solid var(--px-line-md);
    text-decoration: none;
}

.px-page-a:hover {
    background: var(--px-orange);
    border-color: var(--px-orange);
    color: var(--px-white);
}

.px-page-cur {
    background: var(--px-orange);
    color: var(--px-white);
    border: 1.5px solid var(--px-orange-dk);
    cursor: default;
}

/* ─── FRIEND LINKS ─── */
.px-flinks {
    background: var(--px-white);
    border: 1px solid var(--px-line);
    border-radius: var(--px-rd);
    padding: 9px 14px;
    box-shadow: var(--px-shadow-xs);
}

.px-flinks dl { margin:0; }
.px-flinks dd { display:inline-block; margin:3px 5px; }
.px-flinks a { color:var(--px-fg-soft); font-size:12px; font-weight:500; text-decoration:none; transition:var(--px-ease); }
.px-flinks a:hover { color:var(--px-orange); }

/* ─── FOOTER ─── */
.px-footer {
    background: var(--px-white);
    border-top: 3px solid var(--px-orange);
    padding: 16px 0;
    margin-top: 14px;
    text-align: center;
}

.px-footer p { font-size:12px; color:var(--px-fg-muted); margin:5px 0; }
.px-footer a { color:var(--px-fg-muted); text-decoration:none; transition:var(--px-ease); }
.px-footer a:hover { color:var(--px-orange); }

/* ─── UTILS ─── */
.clearfix::after { content:""; display:table; clear:both; }
.hide-mb { display:block; }
.hide-pc { display:block; }
@media (max-width:768px)  { .hide-mb { display:none !important; } }
@media (min-width:769px)  { .hide-pc { display:none !important; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .pxw { padding:0 8px; }
    .pxr { padding:4px 0; }
    .px-header .pxw { gap:8px; }
    .px-site-name { font-size:17px; }
    .px-divider { height:22px; }
    .px-domain-url { font-size:16px; }

    .px-nav-tag { width:15%; font-size:10px; padding:6px 3px; min-width:0; }
    .px-nav-links { width:85%; gap:3px; padding:5px 4px; }
    .px-nav-links a { font-size:12px; padding:3px 2px; width:calc((100% - 9px) / 4); }

    .px-grid { grid-template-columns:repeat(2,1fr); gap:9px; }

    .pxc-player { height:56.25vw; max-height:360px; }

    .pxb-title { font-size:14px; }
    .pxb-head { margin-bottom:8px; padding-bottom:6px; }

    .px-btn { padding:8px 16px; font-size:13px; }
    .px-dl-bar { padding:10px 8px; gap:8px; }

    .px-share { padding:9px 10px; gap:7px; }
    .px-share-url-wrap { padding:6px 10px; }
    .px-share-lbl { font-size:9px; }
    .px-share-url { font-size:11px; }
    .px-share-btn { padding:7px 12px; font-size:12px; }

    .px-tag-body { padding:7px 10px; gap:4px; }
    .px-tag-item { padding:3px 10px; font-size:11px; }
    .px-search-wrap { padding:9px 10px; }
    .px-search-wrap button { padding:8px 12px; font-size:12px; }
    .px-footer { padding:12px 0; margin-top:10px; }
}

@media (min-width:481px) and (max-width:768px) {
    .px-nav-links a { font-size:14px; }
}

@media (max-width:480px) {
    .px-site-name { font-size:16px; }
    .px-domain-url { font-size:14px; }
    .px-nav-tag { font-size:10px; padding:5px 2px; }
    .px-nav-links a { font-size:12px; }
    .px-caption h5 { font-size:11px; }
}

@media (min-width:769px) {
    .px-grid { grid-template-columns:repeat(4,1fr); }
    .px-nav-links a { font-size:13px; }
    .px-nav-tag { width:10%; font-size:13px; }
}
