:root {
    --primary-color: #FF4B6A;
    --secondary-color: #4A6EFF;
    --background-color: #F4F6F9;
    --text-color: #333;
    --card-background: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg,
    rgba(255, 75, 106, 0.05),
    rgba(74, 110, 255, 0.05));
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    position: relative;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px 60px;
}
/* 飘浮动画 */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
                0 18px 50px rgba(38, 70, 233, 0.15),
                0 6px 20px rgba(38, 70, 233, 0.1);
    }
    50% {
        transform: translateY(-8px);
        box-shadow:
                0 22px 60px rgba(38, 70, 233, 0.22),
                0 8px 24px rgba(38, 70, 233, 0.15);
    }
}

.bg-circle, .bg-square {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float-shape 10s infinite alternate;
}

.bg-square {
    border-radius: 15px;
    transform: rotate(45deg);
    animation: float-shape-alt 12s infinite alternate;
}

@keyframes float-shape {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(50px) rotate(20deg); }
}

@keyframes float-shape-alt {
    0% { transform: translateY(0) rotate(45deg); }
    100% { transform: translateY(-50px) rotate(0deg); }
}

.bg-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -5%;
    left: 5%;
    background: rgba(255, 75, 106, 0.4);
    animation-delay: -2s;
}

.bg-square:nth-child(1) {
    width: 150px;
    height: 150px;
    bottom: -10%;
    right: 10%;
    background: rgba(74, 110, 255, 0.4);
    animation-delay: -5s;
}

.bg-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    top: -15%;
    left: -10%;
    background: rgba(46, 204, 113, 0.4);
    animation-delay: -7s;
}

.bg-square:nth-child(2) {
    width: 250px;
    height: 250px;
    bottom: -20%;
    right: -5%;
    background: rgba(241, 196, 15, 0.4);
    animation-delay: -3s;
}

.bg-circle:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 70%;
    right: 20%;
    background: rgba(52, 152, 219, 0.4);
    animation-delay: -9s;
}
     /* 背景动态元素 */
 .bg-shapes {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     pointer-events: none;
     overflow: hidden;
 }

.bg-circle, .bg-square {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float-shape 10s infinite alternate;
}

.bg-square {
    border-radius: 15px;
    transform: rotate(45deg);
    animation: float-shape-alt 12s infinite alternate;
}

@keyframes float-shape {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(50px) rotate(20deg); }
}

@keyframes float-shape-alt {
    0% { transform: translateY(0) rotate(45deg); }
    100% { transform: translateY(-50px) rotate(0deg); }
}

.bg-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: -5%;
    left: 5%;
    background: rgba(255, 75, 106, 0.4);
    animation-delay: -2s;
}

.bg-square:nth-child(1) {
    width: 150px;
    height: 150px;
    bottom: -10%;
    right: 10%;
    background: rgba(74, 110, 255, 0.4);
    animation-delay: -5s;
}

.bg-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    top: -15%;
    left: -10%;
    background: rgba(46, 204, 113, 0.4);
    animation-delay: -7s;
}

.bg-square:nth-child(2) {
    width: 250px;
    height: 250px;
    bottom: -20%;
    right: -5%;
    background: rgba(241, 196, 15, 0.4);
    animation-delay: -3s;
}

.bg-circle:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 70%;
    right: 20%;
    background: rgba(52, 152, 219, 0.4);
    animation-delay: -9s;
}

/* 游戏分类容器增加层级 */
.container {
    position: relative;
    z-index: 10;
}
/*11*/
/* 分类容器网格布局 */
.game-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    padding: 10px 0;
}

:root {
    --primary-color: #FF4B6A;
    --secondary-color: #4A6EFF;
    --background-color: #F4F6F9;
    --text-color: #333;
    --card-background: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg,
    rgba(255, 75, 106, 0.05),
    rgba(74, 110, 255, 0.05));
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    position: relative;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px 60px;
}

/* 游戏分类网格容器 */
.game-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    flex-grow: 1;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
}

/* 分类卡片 */
.game-type-item {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f9fbff);
    border-radius: 24px;
    box-shadow:
            0 18px 50px rgba(38, 70, 233, 0.15),
            0 6px 20px rgba(38, 70, 233, 0.1);
    padding: 38px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition:
            transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
            box-shadow 0.35s ease;
    overflow: hidden;
    height: 150px;
}

/* 动态光圈效果（悬浮时显示） */
.game-type-item::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background:
            radial-gradient(circle at center,
            rgba(38, 70, 233, 0.15),
            transparent 70%);
    top: -20%;
    left: -20%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

/* 飘浮动画 */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
                0 18px 50px rgba(38, 70, 233, 0.15),
                0 6px 20px rgba(38, 70, 233, 0.1);
    }
    50% {
        transform: translateY(-8px);
        box-shadow:
                0 22px 60px rgba(38, 70, 233, 0.22),
                0 8px 24px rgba(38, 70, 233, 0.15);
    }
}

.game-type-item {
    animation: floatUpDown 6s ease-in-out infinite;
}

/* 悬停放大并显示动效 */
.game-type-item:hover {
    transform: scale(1.07) translateY(-5px);
    box-shadow:
            0 34px 75px rgba(38, 70, 233, 0.4),
            0 14px 45px rgba(38, 70, 233, 0.25);
    color: var(--secondary-color);
    z-index: 10;
}

.game-type-item:hover::before {
    opacity: 1;
}

/* 分类名称多行居中显示溢出换行 */
.game-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-height: 56px;
    line-height: 28px;
}

/* 额外动效装饰 */
.game-type-item::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 75, 106, 0.1), rgba(74, 110, 255, 0.1));
    border-radius: 0 0 0 50%;
    transform: rotate(45deg);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.game-type-item:hover::after {
    transform: rotate(45deg) scale(1.15);
    opacity: 0.7;
}

/* 加载中提示 */
.loading {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 80px 0;
    color: var(--secondary-color);
    user-select: none;
}

/* 分页部分 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 36px;
    gap: 24px;
}

.page-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 75, 106, 0.25);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(255, 75, 106, 0.45);
}

.page-info {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    user-select: none;
}
:root {
    --primary-color: #2ECC71;     /* 柔和的绿色 */
    --secondary-color: #27AE60;   /* 深一点的绿色 */
    --background-color: #E8F5E9;  /* 浅绿色背景 */
    --text-color: #2C3E50;        /* 深灰色文字 */
    --card-background: white;
}

body {
    background: linear-gradient(135deg,
    rgba(46, 204, 113, 0.05),
    rgba(39, 174, 96, 0.05));
}

/* 背景动态元素调整为绿色系 */
.bg-circle:nth-child(1) {
    background: rgba(46, 204, 113, 0.4);  /* 主绿色 */
}

.bg-square:nth-child(1) {
    background: rgba(39, 174, 96, 0.4);   /* 深绿色 */
}

.bg-circle:nth-child(2) {
    background: rgba(33, 150, 83, 0.4);   /* 更深的绿色 */
}

.bg-square:nth-child(2) {
    background: rgba(76, 175, 80, 0.4);   /* 另一种绿色 */
}

.bg-circle:nth-child(3) {
    background: rgba(56, 142, 60, 0.4);   /* 橄榄绿 */
}

/* 游戏分类卡片调整 */
.game-type-item {
    color: var(--primary-color);
}

.game-type-item:hover {
    color: var(--secondary-color);
}

/* 其他元素的悬浮和动效保持原有的渐变和动画 */
.game-type-item::after {
    background: linear-gradient(135deg,
    rgba(46, 204, 113, 0.1),
    rgba(39, 174, 96, 0.1));
}

/* 分页按钮调整 */
.page-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.25);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-color);
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.45);
}

.page-info {
    color: var(--primary-color);
}
:root {
    --primary-color: #2ecc71;     /* 柔和的绿色 */
    --secondary-color: #27ae60;   /* 深绿色 */
    --accent-color: #3498db;      /* 点缀蓝色 */
    --background-color: #f0f4f0;  /* 淡雅绿灰色 */
    --text-color: #2c3e50;        /* 深灰色文字 */
    --card-background: white;
}

/* 游戏分类卡片 */
.game-type-item {
    background: linear-gradient(135deg,
    #ffffff,
    #f4f9f4
    );
    border: 1px solid rgba(46, 204, 113, 0.1);
    color: var(--text-color);  /* 使用默认文字颜色 */
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.game-type-item:hover {
    transform: scale(1.07) translateY(-8px);
    box-shadow:
            0 20px 40px rgba(46, 204, 113, 0.15),
            0 8px 20px rgba(52, 152, 219, 0.1);
    border-color: rgba(46, 204, 113, 0.2);
    color: var(--secondary-color);  /* 悬停时变成深绿 */
}

/* 整体风格调整 */
body {
    background: linear-gradient(135deg,
    rgba(46, 204, 113, 0.03),
    rgba(52, 152, 219, 0.03));
}
.header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}

.header h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.header h1:hover {
    transform: scale(1.02);
}

.user-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(74, 110, 255, 0.1);
}

.user-name {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
}

#login-status {
    color: var(--primary-color);
    font-weight: 600;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(74, 110, 255, 0.3);
}

.logout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 110, 255, 0.4);
}

.logout-btn i {
    font-size: 18px;
}html, body {
     touch-action: manipulation; /* 阻止缩放 */
     -ms-touch-action: manipulation;
     -webkit-text-size-adjust: 100%;
     text-size-adjust: 100%;
 }

input, textarea, select {
    font-size: 16px; /* 防止iOS自动放大 */
}
/* 通用响应式适配 */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* 防止iOS自动调整文字大小 */
    -webkit-tap-highlight-color: transparent; /* 移除点击高亮 */
}

body {
    max-width: 100%;
    min-width: 320px;
    position: relative;
    font-size: 16px;
}

/* 弹性布局容器 */
.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 媒体查询：小屏幕优化 */
@media screen and (max-width: 375px) {
    body {
        font-size: 14px; /* 小屏幕降低基础字体 */
    }

    .container {
        padding: 0 15px;
    }
}

/* 安全区域适配 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 禁止缩放和选择 */
body {
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* 统一input和button样式 */
input, button, textarea {
    -webkit-appearance: none;  /* 移除iOS默认样式 */
    appearance: none;
    outline: none;
    border: none;
}

/* 流畅滚动 */
html {
    -webkit-overflow-scrolling: touch;
}

/* 防止图片被拉伸 */
img {
    max-width: 100%;
    height: auto;
}

/* 响应式字体大小 */
@media screen and (max-width: 320px) {
    html {
        font-size: 14px;
    }
}

@media screen and (min-width: 321px) and (max-width: 375px) {
    html {
        font-size: 16px;
    }
}

@media screen and (min-width: 376px) and (max-width: 414px) {
    html {
        font-size: 18px;
    }
}

@media screen and (min-width: 415px) {
    html {
        font-size: 20px;
    }
}

/* 统一盒模型 */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* 修复部分安卓手机input和select的兼容性 */
input, select {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border: none;
}
/* 返回按钮 */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;  /* 改为透明 */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}