
:root {
    --tpg-bg-yellow: #f7e03c; /* 用户要求的黄色背景 */
    --tpg-main-blue: #e0f4ff; /* 容器淡蓝色背景 */
    --tpg-white: #ffffff;
    --tpg-text: #333333;
    --tpg-border: #d1e8f5;
    --tpg-btn-green: #689f38;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--tpg-bg-yellow);
    color: var(--tpg-text);
}

a { text-decoration: none; color: inherit; }

/* --- 顶部 Header --- */
.tpg-top-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tpg-logo-area img {
    height: 50px;
    display: block;
}

.tpg-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tpg-my-box-btn {
    background-color: #d7ccc8;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #bcaaa4;
}

/* PC端搜索框 */
.tpg-search-pc {
    display: flex;
    align-items: center;
    background: var(--tpg-btn-green);
    border-radius: 6px;
    padding: 2px;
    overflow: hidden;
}

.tpg-search-pc input {
    border: none;
    padding: 8px 12px;
    outline: none;
    width: 180px;
    font-size: 14px;
}

.tpg-search-pc button {
    background: transparent;
    border: none;
    color: white;
    padding: 0 10px;
    cursor: pointer;
    font-size: 16px;
}

/* --- 分类导航栏 --- */
.tpg-nav-bar {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 20px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.tpg-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.tpg-nav-item i {
    font-size: 20px;
    color: #555;
}

.tpg-nav-item span {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
}

/* --- 核心内容容器 --- */
.tpg-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--tpg-main-blue);
    border-radius: 40px 40px 0 0;
    position: relative;
    padding-bottom: 40px;
    min-height: 800px;
}

/* 波浪边缘效果 */
.tpg-content-wrapper::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: radial-gradient(circle at 10px -5px, transparent 12px, var(--tpg-main-blue) 13px);
    background-size: 20px 20px;
}

/* --- 游戏区标题 --- */
.tpg-section-title {
    padding: 25px 20px 15px;
    font-size: 18px;
    font-weight: bold;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 游戏网格 --- */
.tpg-game-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* PC端7列 */
    gap: 15px;
    padding: 0 20px;
}

.tpg-game-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.tpg-game-card:hover {
    transform: translateY(-3px);
}

.tpg-game-card img {
    width: 100%;
    aspect-ratio: 1/1;
    display: block;
    object-fit: cover;
}

.tpg-game-name {
    font-size: 11px;
    padding: 5px 2px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    line-height: 1.2;
}

/* "NEW" 标签 */
.tpg-tag-new {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff5722;
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* --- 分页点 --- */
.tpg-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.tpg-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.tpg-dot.active {
    background: #ff9800;
}

/* --- 底部文本信息块 --- */
.tpg-info-section {
    background: rgba(255,255,255,0.6);
    margin: 20px;
    padding: 25px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.tpg-info-section p { margin-bottom: 15px; }

/* --- 底部导航和版权 --- */
.tpg-footer {
    text-align: center;
    padding: 30px 0;
    font-size: 12px;
    color: #555;
}

.tpg-footer-links {
    margin-bottom: 15px;
}

.tpg-footer-links a {
    margin: 0 10px;
    color: #333;
    font-weight: 500;
}

.tpg-app-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tpg-app-btns img { height: 35px; }

/* --- 响应式适配 --- */
@media (max-width: 992px) {
    .tpg-game-grid { grid-template-columns: repeat(4, 1fr); }
    .tpg-nav-bar { justify-content: flex-start; padding: 10px; }
}

@media (max-width: 600px) {
    .tpg-game-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .tpg-section-title { font-size: 16px; }
}
.tpg-nav-bar a{
    margin-left:17px;
}