a:hover {
    color: #000
}

.phb-banner {
    margin: 20px auto auto;
    width: 1200px
}

.phb-banner img {
    width: 100%
}

:root {
    --primary-color: #5dc8fd;
    --primary-hover: #1eb55e;
    --text-main: #222;
    --text-sub: #888;
    --bg-body: #f5f7fa;
    --bg-card: #fff;
    --shadow-card: 0 8px 24px rgba(0,0,0,.04);
    --shadow-hover: 0 12px 32px rgba(38,199,108,.15);
    --radius-md: 16px;
    --radius-sm: 8px
}

* {
    box-sizing: border-box;
    margin: 0;
    outline: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Microsoft YaHei,sans-serif;
    font-size: 14px;
    line-height: 1.5
}

a {
    color: inherit;
    text-decoration: none;
    transition: .3s
}

ul {
    list-style: none
}

img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%
}

.inTitle {
    padding: 15px 20px 0
}

.container {
    display: flex;
    flex-direction: column;
    margin: 20px auto 0;
    max-width: 1200px;
    min-height: 100vh
}

.top-nav-bar {
    backdrop-filter: blur(10px);
    background: hsla(0,0%,100%,.95);
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
    height: 64px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border: 1px solid #00f1ff;
    background: #defdff;
}

.nav-left-area,.top-nav-bar {
    align-items: center;
    display: flex
}

.nav-left-area {
    flex: 1;
    height: 100%;
    padding: 0 40px;
    position: relative
}

.nav-btn {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    color: #666;
    cursor: pointer;
    display: flex;
    height: 32px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all .3s;
    width: 32px;
    z-index: 10
}

.nav-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    color: var(--primary-color)
}

.nav-prev {
    left: 0
}

.nav-next {
    right: 0
}

.icon-arrow {
    border-right: 2px solid;
    border-top: 2px solid;
    display: block;
    height: 8px;
    width: 8px
}

.icon-left {
    margin-left: 2px;
    transform: rotate(-135deg)
}

.icon-right {
    margin-right: 2px;
    transform: rotate(45deg)
}

.nav-swiper {
    height: 100%;
    width: 100%
}

.nav-swiper .swiper-slide {
    align-items: center;
    color: #555;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 500;
    height: 100%;
    justify-content: center;
    padding: 0 16px;
    position: relative;
    width: auto
}

.nav-swiper .swiper-slide.active {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700
}

.nav-swiper .swiper-slide.active:after {
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
    bottom: 0;
    content: "";
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 24px
}

.nav-right-links {
    border-left: 1px solid #eee;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px
}

.nav-right-links a.active {
    background: #47dfff;
    box-shadow: 0 4px 10px rgb(38 198 199 / 30%);
    color: #fff
}

.link-tag {
    background: #f0f2f5;
    border-radius: 20px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px
}

.link-tag:hover {
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(38,199,108,.3);
    color: #fff
}

.content-wrapper {
    display: flex;
    gap: 24px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 24px 0;
    width: 100%
}

@media(max-width: 1240px) {
    .content-wrapper {
        padding-left:20px;
        padding-right: 20px
    }
}

.main-list {
    display: none;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    width: 0
}

.main-list:nth-child(1) {
    display: flex;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    padding: 24px;
    position: relative;
    transition: transform .3s
}

.game-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
    transform: translateY(-2px)
}

.game-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px
}

.rank-badge {
    background: #eee;
    border-radius: 16px 0 16px 0;
    color: #666;
    font-size: 14px;
    font-weight: 800;
    left: 0;
    padding: 6px 14px 6px 10px;
    position: absolute;
    top: 0;
    z-index: 2
}

.rank-1 {
    background: linear-gradient(135deg,gold,#ffb900);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,.1)
}

.rank-2 {
    background: linear-gradient(135deg,#e0e0e0,#bdbdbd);
    color: #fff
}

.rank-3 {
    background: linear-gradient(135deg,#f5bc89,#d49156);
    color: #fff
}

.game-icon {
    border-radius: 18px;
    box-shadow: 0 6px 12px rgba(0,0,0,.08);
    flex-shrink: 0;
    height: 88px;
    overflow: hidden;
    width: 88px
}

.game-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center
}

.info-top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px
}

.game-name {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px
}

.tags-row {
    align-items: center;
    color: var(--text-sub);
    display: flex;
    font-size: 12px;
    gap: 8px
}

.tag {
    background: #f7f8fa;
    border-radius: 4px;
    color: #666;
    padding: 2px 8px
}

.star-box {
    color: #ffca28;
    display: flex;
    font-size: 14px
}

.star-box img {
    height: 14px;
}

.desc-text {
    color: #999;
    display: -webkit-box;
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-height: 1.6;
    margin-top: 8px;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.download-btn {
    background: #47dfff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(38,183,199,.4);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    height: fit-content;
    margin-top: 5px;
    padding: 8px 24px;
    transition: all .3s
}

.download-btn:hover {
    background: #5fe2fd;
    box-shadow: 0 6px 16px rgba(38,160,199,.5);
    transform: translateY(-2px)
}

.screenshots-area {
    background: 0 0;
    border-radius: 0;
    height: 400px;
    padding: 0;
    position: relative;
    width: 100%
}

.swiper-screenshots {
    height: 100%;
    width: 100%
}

.swiper-screenshots .swiper-slide {
    align-items: center;
    display: flex;
    height: 100%;
    width: auto
}

.swiper-screenshots img {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    cursor: pointer;
    height: 100%;
    transform: scale(.96);
    transition: all .4s cubic-bezier(.25,.8,.25,1);
    width: auto
}

.swiper-screenshots .swiper-slide:hover img {
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
    transform: scale(1)
}

.ss-btn {
    align-items: center;
    backdrop-filter: blur(4px);
    background: hsla(0,0%,100%,.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    color: #333;
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(.8);
    transition: all .3s;
    width: 40px;
    z-index: 20
}

.game-card:hover .ss-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1)
}

.ss-btn:hover {
    background: var(--primary-color);
    color: #fff
}

.ss-prev {
    left: 10px
}

.ss-next {
    right: 10px
}

.sidebar {
    flex-shrink: 0;
    width: 280px
}

.side-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    overflow: hidden
}

.side-header {
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    padding: 16px 20px
}

.side-title {
    border-left: 4px solid var(--primary-color);
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding-left: 10px
}

.side-more {
    color: #999;
    font-size: 12px
}

.side-more:hover {
    color: var(--primary-color)
}

.side-list {
    padding: 10px 0
}

.side-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    padding: 10px 20px;
    transition: background .2s
}

.side-item:hover {
    background: #f9fbfd
}

.side-item img {
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,.05);
    height: 48px;
    margin-right: 12px;
    width: 48px
}

.side-info h4 {
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.side-info .stars {
    color: #ffca28;
    font-size: 12px
}

.side-action {
    align-items: center;
    background: #f0f2f5;
    border-radius: 50%;
    color: #ccc;
    display: flex;
    height: 28px;
    justify-content: center;
    margin-left: auto;
    transition: .3s;
    width: 28px;
    flex-shrink: 0;
}

.side-item:hover .side-action {
    background: #47dfff;
    color: #fff
}
