﻿@font-face {
    font-family: "PnBarlowCondensed";
    src: url("/content/fonts/pn-barlow-condensed-bold.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #f4f4f4;
    color: #141414;
}

button {
    border: 0;
    padding: 0;
    font: inherit;
    background: transparent;
}

.pn-page {
    position: relative;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    background: linear-gradient(180deg, #fff 0%, #f4f4f4 2%);
}

.pn-hero {
    position: relative;
    padding: 14px 0 0;
}

.pn-heroBg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
}

.pn-heroLayer {
    position: relative;
    z-index: 1;
}

.pn-heroTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 14px;
}

.pn-logo {
    display: block;
    width: 104px;
    height: 34px;
    object-fit: contain;
}

.pn-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    padding: 4px 12px;
    border-radius: 100px;
    background: #fff;
    color: #f44336;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.pn-desc {
    width: 227px;
    max-width: calc(100% - 28px);
    margin: 11px 0 0 14px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}

.pn-main {
    margin-top: 0;
}

.pn-info {
    position: relative;
    display: flex;
    align-items: center;
    margin: 20px 8px 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px 0 rgba(179, 179, 179, 0.25);
    justify-content: center;
}

.pn-infoItem {
    display: flex;
    width: 113.5px;
    flex: 0 0 113.5px;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.pn-infoMid {
    width: 100px;
    flex-basis: 100px;
}

.pn-infoIcon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: block;
    margin-right: 8px;
}

.pn-infoText {
    min-width: 0;
}

.pn-infoMain {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
}

.pn-infoNum {
    color: #f44336;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
}

.pn-infoUnit {
    margin-left: 2px;
    color: #141414;
    font-size: 12px;
    line-height: 14px;
    font-weight: 600;
}

.pn-infoTitle {
    color: #141414;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
}

.pn-infoSub {
    margin-top: 2px;
    color: #8e8e8e;
    font-size: 10px;
    line-height: 12px;
    white-space: nowrap;
}

.pn-infoLine {
    width: 1px;
    height: 30px;
    flex: 0 0 1px;
    margin: 0 6.75px;
    background: #eaeaea;
}

.pn-infoBadge {
    position: absolute;
    top: 3.5px;
    right: 3.5px;
    padding: 1.5px 5px;
    border-radius: 4px 2px;
    background: #f44336;
    color: #fff;
    font-size: 10px;
    line-height: 12px;
    font-weight: 600;
}

.pn-tabs {
    display: flex;
    align-items: flex-start;
    padding: 12px 0 10px 14px;
}

.pn-tab {
    position: relative;
    color: #8e8e8e;
    min-height: 30px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: color 0.22s ease;
}

    .pn-tab:nth-child(1),
    .pn-tab:nth-child(2) {
        width: 32px;
    }

    .pn-tab:nth-child(3) {
        width: 48px;
    }

    .pn-tab + .pn-tab {
        margin-left: 30px;
    }

    .pn-tab.on {
        color: #141414;
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
    }

    .pn-tab::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 20px;
        height: 4px;
        transform: translateX(-50%) scaleX(0.35);
        opacity: 0;
        border-radius: 100px;
        background: #f44336;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .pn-tab.on::after {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }

.pn-list {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

.tips-time {
    position: absolute;
    right: -10px;
    top: -14px;
    overflow: hidden;
    line-height: 0;
}

.tips-time img {
    display: block;
    max-width: none;
}

.tips-time::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.7),
        transparent
    );
    transform: skewX(-25deg);
    animation: tipsShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tipsShine {
    0% {
        left: -60%;
    }
    40%, 100% {
        left: 150%;
    }
}

.pn-card + .pn-card {
    margin-top: 8px;
}

.pn-card {
    padding: 10px 8px;
    border-radius: 8px;
    background: #fff;
}

.pn-user {
    display: flex;
    min-width: 0;
    align-items: center;
}

.pn-avatarBox {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.pn-avatar {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

.pn-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #F44336;
    color: #fff;
    font-size: 10px;
    line-height: 12px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
}


.pn-userInfo {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 8px;
    padding-top: 1px;
}

.pn-name {
    color: #141414;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.pn-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
    padding-right: 8px;
}

.pn-tag {
    padding: 2px 6px;
    border-radius: 100px;
    background: #f44336;
    color: #fff;
    font-size: 11px;
    line-height: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pn-tag {
    margin-right: 4px;
}

.pn-profit {
    flex: 0 0 auto;
    margin-left: 6px;
    color: #f44336;
    text-align: right;
}

.pn-profitValue {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    font-family: "PnBarlowCondensed", Arial, sans-serif;
    font-weight: 500;
    color: #f44336;
    gap: 1px;
}

.pn-profitNum {
    font-size: 25px;
    line-height: 22px;
}

.pn-profitPct {
    font-size: 16px;
    line-height: 16px;
}

.pn-profitSub {
    margin-top: 4px;
    font-size: 11px;
    line-height: 12px;
}

.pn-picks {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

.pn-pick + .pn-pick {
    margin-top: 4px;
}

.pn-pick {
    position: relative;
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
    border-radius: 4px;
}

.pn-pick-blue {
    background: linear-gradient(90deg, #f7faff 66.05%, rgba(247, 250, 255, 0) 100%);
}

.pn-pick-gray {
    background: linear-gradient(90deg, #f9f9f9 66.05%, rgba(247, 250, 255, 0) 100%);
}

.pn-bar {
    width: 2px;
    height: 28px;
    flex: 0 0 2px;
    border-radius: 0 4px 4px 0;
}

.pn-bar-blue {
    background: #0d75ff;
}

.pn-bar-red {
    background: #f44336;
}

.pn-bar-gray {
    background: #ccc;
}

.pn-pickMain {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.pn-pick-hit .pn-pickMain {
    padding-right: 36px;
}

.pn-stage {
    flex: 0 0 auto;
    color: #141414;
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pn-stage-1 {
    width: 44px;
}

.pn-stage-2 {
    width: 51px;
}

.pn-stage-3 {
    width: 58px;
}

.pn-stage-4 {
    width: 65px;
}

.pn-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    background: #efefef;
    color: #141414;
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
}

.pn-play {
    width: 36px;
    flex: 0 0 36px;
    margin-left: 8px;
    margin-right: 5px;
    color: #0d75ff;
    font-size: 12px;
    line-height: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.pn-playBlank {
    color: transparent;
}

.pn-match {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 4px;
}

.pn-team,
.pn-vs,
.pn-score,
.pn-update {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
}

.pn-team {
    flex: 0 0 auto;
    color: #141414;
    white-space: nowrap;
}

.pn-teamTail {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pn-vs {
    flex: 0 0 auto;
    margin: 0 6px;
    color: #8e8e8e;
}

.pn-score {
    flex: 0 0 auto;
    margin: 0 6px;
    color: #f44336;
}

.pn-update {
    flex: 1 1 auto;
    min-width: 0;
    color: #8e8e8e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pn-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 4px;
    color: #f44336;
    font-size: 11px;
    line-height: 12px;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

    .pn-side span + span {
        margin-top: 2px;
    }

.pn-seal {
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    pointer-events: none;
}

.pn-dock {
    position: fixed;
    left: 50%;
    bottom: calc(70px + env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    align-items: center;
    width: 85.5vw;
    max-width: 336px;
    padding: 6px;
    transform: translateX(-50%);
    border-radius: 100px;
    background: linear-gradient(180deg, #1f2a3b 0%, #1a1c22 100%);
    box-shadow: 0 6px 10px 0 rgba(26, 26, 34, 0.4);
    z-index: 998;
}


.pn-dock-buy {
    width: 180px;
    max-width: calc(100vw - 48px);
}

    .pn-dock-buy .pn-dockItem {
        flex: 1 1 0;
    }

.pn-dockItem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 0;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.02);
    color: #fff;
    font-size: 12px;
    line-height: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.28s ease, opacity 0.28s ease;
}

    .pn-dockItem + .pn-dockItem {
        margin-left: 2px;
    }

    .pn-dockItem.on {
        background-color: #f44336;
    }

.pn-dockIcon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-right: 4px;
}

.pn-dockItem.on .pn-dockIcon,
.pn-dockItem.on span {
    animation: pnDockFade 0.28s ease both;
}

@keyframes pnDockFade {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 1;
    }
}




@media (min-width: 420px) {
    .pn-infoItem {
        width: 121px;
        flex-basis: 121px;
    }

    .pn-infoMid {
        width: 108px;
        flex-basis: 108px;
    }

    .pn-desc {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    .pn-desc {
        width: 200px;
        font-size: 11.5px;
    }

    .pn-tabs {
        padding-left: 14px;
    }

    .pn-tab + .pn-tab {
        margin-left: 24px;
    }

    .pn-info {
        padding-right: 10px;
        padding-left: 10px;
    }

    .pn-infoItem {
        width: calc((100% - 118px) / 2);
        flex-basis: calc((100% - 118px) / 2);
        justify-content: center;
    }

    .pn-infoMid {
        width: 92px;
        flex-basis: 92px;
    }

    .pn-infoIcon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        margin-right: 6px;
    }

    .pn-profitNum {
        font-size: 20px;
        line-height: 20px;
    }
}

/* 榜单页面 */
.pn-boardList {
    padding-bottom: 16px;
}

.pn-boardCard {
    padding: 10px 8px;
}

.pn-boardRow {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.pn-boardRank {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 9px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pn-boardRankIcon {
    display: block;
    width: 22px;
    height: 22px;
}

.pn-boardRankNum {
    width: 22px;
    height: 22px;
    color: #8e8e8e;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.pn-boardBody {
    flex: 1 1 auto;
    min-width: 0;
}

.pn-boardUser {
    align-items: center;
}

.pn-boardMetric {
    min-width: 62px;
}

.pn-boardDesc {
    margin-top: 10px;
    color: #8e8e8e;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.pn-dock-board {
    width: 180px;
    max-width: calc(100vw - 48px);
}

    .pn-dock-board .pn-dockItem {
        flex: 1 1 0;
    }
