/* 排行榜页面样式 - 我的世界风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Minecraft', 'Courier New', monospace;
    color: #333;
    line-height: 1.6;
    background: #1a1a1a;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 背景图片 */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 添加我的世界风格的背景装饰 */
.background-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
}

/* 顶部导航栏 */
.header {
    position: relative;
    z-index: 100;
    margin-bottom: 30px;
}

.header-bg {
    position: relative;
    width: 100%;
    height: 80px;
}

.header-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航链接 */
.nav {
    display: flex;
    gap: 20px;
    position: relative;
}

.nav::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #C0C0C0, #CD7F32);
    border-radius: 1px;
    opacity: 0.6;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(139, 69, 19, 0.3);
    backdrop-filter: blur(10px);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(139, 69, 19, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

/* 认证按钮 */
.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-login,
.btn-register {
    position: relative;
    border: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 80px;
    height: 40px;
}

.btn-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.btn-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.btn-login:hover,
.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧边栏 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    margin-top: 20px;
}

/* 讨论专区 */
.discussion-zone {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid #8B4513;
}

.discussion-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

/* 我的世界方块设计 */
.minecraft-block {
    width: 60px;
    height: 60px;
    position: relative;
    transform: rotateX(45deg) rotateZ(45deg);
    transform-style: preserve-3d;
    animation: blockFloat 3s ease-in-out infinite;
}

@keyframes blockFloat {
    0%, 100% { transform: rotateX(45deg) rotateZ(45deg) translateY(0px); }
    50% { transform: rotateX(45deg) rotateZ(45deg) translateY(-10px); }
}

.block-top {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    position: absolute;
    top: 0;
    left: 0;
    transform: translateZ(30px);
    border: 2px solid #654321;
}

.block-side {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #654321, #8B4513);
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(90deg) translateZ(30px);
    border: 2px solid #654321;
}

.block-front {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #A0522D, #CD853F);
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateX(90deg) translateZ(30px);
    border: 2px solid #654321;
}

.discussion-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.discussion-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

/* 游戏模式切换 */
.game-modes {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid #8B4513;
}

.mode-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.mode-item:first-child {
    border-radius: 10px 10px 0 0;
}

.mode-item:last-child {
    border-radius: 0 0 10px 10px;
}

.mode-item.active .mode-bg {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    transform: scale(1.02);
}

.mode-item:hover .mode-bg {
    background: linear-gradient(45deg, #45a049, #4CAF50);
    transform: scale(1.05);
}

.mode-bg {
    width: 100%;
    height: 60px;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #654321;
    position: relative;
    overflow: hidden;
}

.mode-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mode-item:hover .mode-bg::before {
    left: 100%;
}

.mode-text {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
    font-family: 'Minecraft', 'Courier New', monospace;
}

/* 右侧主要内容 */
.content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: -20px;
}

/* 标题横幅 */
.title-banner {
    text-align: center;
    margin-bottom: 20px;
}

.minecraft-title {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    padding: 20px 40px;
    border-radius: 15px;
    border: 4px solid #654321;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.minecraft-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.minecraft-title h1 {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.title-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.diamond, .emerald, .gold {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: float 2s ease-in-out infinite;
}

.diamond {
    background: #00FFFF;
    animation-delay: 0s;
}

.emerald {
    background: #00FF00;
    animation-delay: 0.5s;
}

.gold {
    background: #FFD700;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 搜索区域 */
.search-section {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.search-section::before {
    content: '🔍';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: searchBounce 2s ease-in-out infinite;
}

@keyframes searchBounce {
    0%, 100% { transform: translateX(-50%) translateY(0px); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.search-container {
    display: inline-block;
    max-width: 500px;
}

.minecraft-search-box {
    display: flex;
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border: 3px solid #654321;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    padding: 15px 20px;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.search-input::placeholder {
    color: #666;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.search-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
}

.minecraft-icon {
    font-size: 18px;
    color: #fff;
}

/* 排行榜表格 */
.ranking-table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid #8B4513;
    position: relative;
    overflow: hidden;
}

.ranking-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FFD700, #C0C0C0, #CD7F32, #FFD700);
    background-size: 200% 100%;
    animation: rainbowBorder 3s linear infinite;
}

@keyframes rainbowBorder {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.table-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

/* 表格头部 */
.table-header {
    margin-bottom: 20px;
}

.header-row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 3px solid #8B4513;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    background: linear-gradient(45deg, #F5DEB3, #DEB887);
    border-radius: 10px;
    padding: 15px;
}

.header-cell {
    text-align: center;
    font-family: 'Minecraft', 'Courier New', monospace;
}

/* 排行榜列表 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #F5DEB3;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    margin-bottom: 5px;
    background: rgba(245, 222, 179, 0.3);
    padding: 15px;
}

.ranking-item:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    border-left: 4px solid #8B4513;
}

.ranking-item:nth-child(1) .rank-number {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ranking-item:nth-child(2) .rank-number {
    color: #C0C0C0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ranking-item:nth-child(3) .rank-number {
    color: #CD7F32;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

 .rank-number {
     text-align: center;
     font-weight: bold;
     color: #333;
     font-family: 'Minecraft', 'Courier New', monospace;
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     min-height: 40px;
 }
 
 /* 排名奖牌图标样式 */
 .rank-medal {
     font-size: 28px !important;
     display: inline-block !important;
     transition: all 0.3s ease;
     filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
     animation: medalFloat 2s ease-in-out infinite;
     line-height: 1;
     vertical-align: middle;
 }
 
 .rank-medal:hover {
     transform: scale(1.2) rotate(5deg);
     filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
 }
 
 /* 奖牌浮动动画 */
 @keyframes medalFloat {
     0%, 100% { transform: translateY(0px) rotate(0deg); }
     50% { transform: translateY(-3px) rotate(2deg); }
 }
 
 /* 排名数字文本样式 */
 .rank-text {
     font-size: 18px;
     font-weight: bold;
     color: #8B4513;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
     font-family: 'Minecraft', 'Courier New', monospace;
 }
 
 /* 前三名奖牌特殊样式 */
 .gold-medal {
     filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.8));
     animation: goldMedalGlow 2s ease-in-out infinite alternate, medalFloat 2s ease-in-out infinite;
 }
 
 .silver-medal {
     filter: drop-shadow(0 2px 8px rgba(192, 192, 192, 0.8));
     animation: silverMedalGlow 2s ease-in-out infinite alternate, medalFloat 2s ease-in-out infinite;
 }
 
 .bronze-medal {
     filter: drop-shadow(0 2px 8px rgba(205, 127, 50, 0.8));
     animation: bronzeMedalGlow 2s ease-in-out infinite alternate, medalFloat 2s ease-in-out infinite;
 }
 
 /* 奖牌发光动画 */
 @keyframes goldMedalGlow {
     from { filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.8)); }
     to { filter: drop-shadow(0 2px 15px rgba(255, 215, 0, 1.0)); }
 }
 
 @keyframes silverMedalGlow {
     from { filter: drop-shadow(0 2px 8px rgba(192, 192, 192, 0.8)); }
     to { filter: drop-shadow(0 2px 15px rgba(192, 192, 192, 1.0)); }
 }
 
 @keyframes bronzeMedalGlow {
     from { filter: drop-shadow(0 2px 8px rgba(205, 127, 50, 0.8)); }
     to { filter: drop-shadow(0 2px 15px rgba(205, 127, 50, 1.0)); }
 }

/* K/D值颜色样式 */
.kd-value {
    font-weight: bold;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.gold-kd {
    color: #FFEB3B; /* 普通黄色 */
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.6);
    animation: goldKdGlow 2s ease-in-out infinite alternate;
}

.silver-kd {
    color: #C0C0C0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
    animation: silverKdGlow 2s ease-in-out infinite alternate;
}

.bronze-kd {
    color: #CD7F32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.6);
    animation: bronzeKdGlow 2s ease-in-out infinite alternate;
}

/* K/D值发光动画 */
@keyframes goldKdGlow {
    from { text-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
    to { text-shadow: 0 0 15px rgba(255, 215, 0, 1.0); }
}

@keyframes silverKdGlow {
    from { text-shadow: 0 0 8px rgba(192, 192, 192, 0.6); }
    to { text-shadow: 0 0 15px rgba(192, 192, 192, 1.0); }
}

@keyframes bronzeKdGlow {
    from { text-shadow: 0 0 8px rgba(205, 127, 50, 0.6); }
    to { text-shadow: 0 0 15px rgba(205, 127, 50, 1.0); }
}

/* 暂未开放的游戏模式样式 */
.unavailable-mode {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #8B4513;
}

.unavailable-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: constructionBounce 2s ease-in-out infinite;
}

.unavailable-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 15px;
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.unavailable-message {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 10px;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.unavailable-subtitle {
    font-size: 1em;
    color: #888;
    font-style: italic;
    font-family: 'Minecraft', 'Courier New', monospace;
}

@keyframes constructionBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

.player-name {
    font-weight: bold;
    color: #333;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.stat-value {
    text-align: center;
    color: #666;
    font-family: 'Minecraft', 'Courier New', monospace;
}

/* 我的世界按钮样式 */
.minecraft-button {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    color: #fff;
    border: 2px solid #654321;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Minecraft', 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.minecraft-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.minecraft-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.minecraft-button:hover::before {
    left: 100%;
}

.minecraft-button:hover {
    background: linear-gradient(45deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.4);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.minecraft-modal {
    background: linear-gradient(45deg, #F5DEB3, #DEB887);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid #8B4513;
}

.close {
    color: #8B4513;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #654321;
}

/* 认证模态框 */
.auth-tabs {
    display: flex;
    border-bottom: 3px solid #8B4513;
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #8B4513;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Minecraft', 'Courier New', monospace;
    cursor: pointer;
}

.tab-btn.active {
    color: #654321;
    border-bottom-color: #654321;
}

.tab-btn:hover {
    color: #654321;
}

/* 表单样式 */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #8B4513;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #DEB887;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.form-group input:focus {
    outline: none;
    border-color: #8B4513;
}

.email-verification {
    display: flex;
    gap: 10px;
}

.email-verification input {
    flex: 1;
}

.verification-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.verification-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.auth-btn:hover {
    background: linear-gradient(45deg, #45a049, #4CAF50);
}

/* 用户信息显示样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #8B4513;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.username {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 2px;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.user-level {
    font-size: 12px;
    opacity: 0.9;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-family: 'Minecraft', 'Courier New', monospace;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .minecraft-title h1 {
        font-size: 28px;
    }
    
    .title-decoration {
        gap: 15px;
    }
    
    .diamond, .emerald, .gold {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
        max-width: 400px;
        margin-top: 0;
    }
    
    .content-right {
        margin-top: 0;
    }
    
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .auth-buttons {
        order: 1;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .main-content {
        padding: 0 15px;
    }
    
    .minecraft-title h1 {
        font-size: 24px;
    }
    
    .minecraft-title {
        padding: 15px 25px;
    }
    
    .title-decoration {
        gap: 15px;
    }
    
    .diamond, .emerald, .gold {
        width: 16px;
        height: 16px;
    }
    
         .header-row,
     .ranking-item {
         grid-template-columns: 50px 1.5fr 1fr 1fr 1fr 1fr 1fr 1fr;
         gap: 10px;
         font-size: 12px;
     }
     
     .rank-medal {
         font-size: 24px;
     }
    
    .search-section::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .minecraft-title h1 {
        font-size: 20px;
    }
    
    .minecraft-title {
        padding: 12px 20px;
    }
    
    .title-decoration {
        gap: 10px;
    }
    
    .diamond, .emerald, .gold {
        width: 14px;
        height: 14px;
    }
    
         .header-row,
     .ranking-item {
         grid-template-columns: 50px 1.5fr 1fr 1fr 1fr 1fr 1fr 1fr;
         gap: 8px;
         font-size: 11px;
         padding: 10px;
     }
     
     .rank-medal {
         font-size: 22px;
     }
    
    .table-content {
        padding: 20px;
    }
    
    .discussion-zone,
    .game-modes {
        padding: 15px;
    }
    
    .minecraft-block {
        width: 50px;
        height: 50px;
    }
    
    .block-top,
    .block-side,
    .block-front {
        width: 50px;
        height: 50px;
        transform: translateZ(25px);
    }
    
    .block-side {
        transform: rotateY(90deg) translateZ(25px);
    }
    
    .block-front {
        transform: rotateX(90deg) translateZ(25px);
    }
}

@media (max-width: 320px) {
    .minecraft-title h1 {
        font-size: 18px;
    }
    
    .minecraft-title {
        padding: 10px 15px;
    }
    
    .title-decoration {
        gap: 8px;
    }
    
    .diamond, .emerald, .gold {
        width: 12px;
        height: 12px;
    }
    
    .header-row,
    .ranking-item {
        grid-template-columns: 40px 1.5fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 5px;
        font-size: 10px;
        padding: 8px;
    }
    
    .table-content {
        padding: 15px;
    }
    
    .discussion-zone,
    .game-modes {
        padding: 12px;
    }
    
    .minecraft-block {
        width: 40px;
        height: 40px;
    }
    
    .block-top,
    .block-side,
    .block-front {
        width: 40px;
        height: 40px;
        transform: translateZ(20px);
    }
    
    .block-side {
        transform: rotateY(90deg) translateZ(20px);
    }
    
    .block-front {
        transform: rotateX(90deg) translateZ(20px);
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .btn-login,
    .btn-register {
        width: 70px;
        height: 35px;
    }
    
    .btn-text {
        font-size: 14px;
    }
}

/* 添加我的世界风格的滚动条 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #A0522D, #8B4513);
}

/* 添加我的世界风格的选择文本 */
::selection {
    background: rgba(139, 69, 19, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(139, 69, 19, 0.3);
    color: #fff;
}

/* 添加我的世界风格的焦点样式 */
input:focus,
button:focus {
    outline: 2px solid #8B4513;
    outline-offset: 2px;
}

/* 添加我的世界风格的加载动画 */
@keyframes minecraftLoad {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.ranking-item {
    animation: minecraftLoad 0.5s ease-out;
}

.ranking-item:nth-child(1) { animation-delay: 0.1s; }
.ranking-item:nth-child(2) { animation-delay: 0.2s; }
.ranking-item:nth-child(3) { animation-delay: 0.3s; }
.ranking-item:nth-child(4) { animation-delay: 0.4s; }
.ranking-item:nth-child(5) { animation-delay: 0.5s; }

/* 通知系统样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    max-width: 300px;
    word-wrap: break-word;
    font-family: 'Minecraft', 'Courier New', monospace;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.notification-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: rgba(40, 167, 69, 0.5);
}

.notification-warning {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    border-color: rgba(255, 193, 7, 0.5);
}

.notification-error {
    background: linear-gradient(45deg, #dc3545, #e83e8c);
    border-color: rgba(220, 53, 69, 0.5);
}

.notification-info {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
    border-color: rgba(23, 162, 184, 0.5);
}

/* 通知动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 无数据提示样式 */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
    font-family: 'Minecraft', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 2px solid #8B4513;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 40px;
    color: #8B4513;
    font-size: 16px;
    font-family: 'Minecraft', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 2px solid #8B4513;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #8B4513;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 16px;
    font-family: 'Minecraft', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 2px solid #dc3545;
}

/* 搜索结果样式 */
.player-search-result {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #8B4513;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #DEB887;
    font-family: 'Minecraft', 'Courier New', monospace;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item .label {
    font-weight: bold;
    color: #8B4513;
    min-width: 100px;
}

.result-item .value {
    color: #654321;
    font-weight: 500;
    text-align: right;
    flex: 1;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.pagination-btn {
    background: linear-gradient(145deg, #8B4513, #A0522D);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #A0522D, #CD853F);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pagination-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.page-info {
    color: #8B4513;
    font-weight: bold;
    font-size: 14px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

/* 禁止下载样式 */
img, video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: auto;
    /* 额外的保护 */
    -webkit-filter: none;
    filter: none;
    transform: none;
    transition: none;
}

/* 禁用图片的保存功能 */
img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

/* 右键菜单禁用 */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 网易云音乐播放器样式 */
.netease-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.netease-player iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.music-toggle-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #8B4513, #A0522D);
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
}

.music-toggle-btn:hover {
    background: linear-gradient(145deg, #A0522D, #CD853F);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 音乐播放器隐藏状态 */
.netease-player.hidden iframe {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.netease-player.hidden .music-toggle-btn {
    background: linear-gradient(145deg, #666, #888);
}

/* 人机验证样式 */
.captcha-container {
    text-align: center;
}

.captcha-area {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.captcha-puzzle {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.puzzle-piece {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border: 2px solid #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.puzzle-piece:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.puzzle-target {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(76, 175, 80, 0.3);
    border: 2px dashed #4CAF50;
    border-radius: 5px;
    pointer-events: none;
}



.captcha-timer {
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

.captcha-timer.warning {
    color: #ff9800;
}

.captcha-timer.danger {
    color: #f44336;
}

.status-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    display: none;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.button-group .minecraft-button {
    min-width: 100px;
}
