body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* 排行榜大标题导航 */
.rank-header {
    background: #1a1a1a url('https://img.js.design/assets/smartFill/img341164da74a008.jpg') no-repeat center top;
    background-size: cover;
    padding: 40px 0;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.rank-header h1 {
    color: #ffda44;
    font-size: 3em;
    text-shadow: 2px 2px 4px #000, 0 0 20px #ff4500;
    margin: 0 0 30px 0;
    font-family: 'SimSun', serif;
}

.rank-nav {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    background: rgba(0,0,0,0.6);
}

.nav-btn {
    display: block;
    padding: 15px 25px;
    background: linear-gradient(to bottom, #d4af37, #8b6d1b);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #ffda44;
    transform: skew(-20deg); /* 倾斜效果 */
    transition: all 0.3s;
    box-shadow: 0 4px 0 #4a3a0e;
}

.nav-btn span {
    display: block;
    transform: skew(20deg); /* 文字反向倾斜回来 */
}

.nav-btn:hover, .nav-btn.active {
    background: linear-gradient(to bottom, #ffda44, #d4af37);
    box-shadow: 0 0 15px #ffda44;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1000px; /* 稍微加宽一点 */
    background: #fff;
    padding: 0; /* 改为0，内部由不同部分填充 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

.rank-content {
    padding: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

.level {
    font-weight: bold;
    color: #e74c3c;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
}
