* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover {
    color: #4CAF50;
}

.rank-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.exam-selector {
    position: relative;
}

.exam-selector select {
    padding: 8px 12px;
    background-color: #333;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.exam-selector select:hover {
    background-color: #444;
}

h1 {
    font-size: 24px;
    font-weight: bold;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

/* 为各列设置宽度 */
.rank-table th:nth-child(1),
.rank-table td:nth-child(1) {
    width: 60px;
}

.rank-table th:nth-child(2),
.rank-table td:nth-child(2) {
    width: 120px;
}

.rank-table th:nth-child(3),
.rank-table td:nth-child(3) {
    width: 100px;
}

.rank-table th:nth-child(4),
.rank-table td:nth-child(4) {
    width: 120px;
}

.rank-table th:nth-child(5),
.rank-table td:nth-child(5) {
    width: 120px;
}

.rank-table th,
.rank-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.rank-table th {
    background-color: #333;
    font-weight: bold;
}

.rank-table tr:hover {
    background-color: #2a2a2a;
}

.rank-table tr:nth-child(even) {
    background-color: #252525;
}

.progress-positive {
    color: #4CAF50;
}

.progress-negative {
    color: #f44336;
}

.progress-neutral {
    color: #999;
}

/* 响应式字体大小 */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .exam-selector select {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .rank-table th,
    .rank-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* 响应式调整列宽 */
    .rank-table th:nth-child(1),
    .rank-table td:nth-child(1) {
        width: 50px;
    }
    
    .rank-table th:nth-child(2),
    .rank-table td:nth-child(2) {
        width: 100px;
    }
    
    .rank-table th:nth-child(3),
    .rank-table td:nth-child(3) {
        width: 90px;
    }
    
    .rank-table th:nth-child(4),
    .rank-table td:nth-child(4) {
        width: 100px;
    }
    
    .rank-table th:nth-child(5),
    .rank-table td:nth-child(5) {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }
    
    .nav a {
        font-size: 12px;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .exam-selector select {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .rank-table th,
    .rank-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    /* 响应式调整列宽 */
    .rank-table th:nth-child(1),
    .rank-table td:nth-child(1) {
        width: 40px;
    }
    
    .rank-table th:nth-child(2),
    .rank-table td:nth-child(2) {
        width: 80px;
    }
    
    .rank-table th:nth-child(3),
    .rank-table td:nth-child(3) {
        width: 70px;
    }
    
    .rank-table th:nth-child(4),
    .rank-table td:nth-child(4) {
        width: 80px;
    }
    
    .rank-table th:nth-child(5),
    .rank-table td:nth-child(5) {
        width: 80px;
    }
}

/* 页脚样式 */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.Copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.Copyright .fl {
    float: left;
}

.Copyright .fr {
    float: right;
}

.Copyright a {
    color: #999;
    text-decoration: none;
}

.Copyright a:hover {
    text-decoration: underline;
}

/* 关于和联系方式样式 */
.about-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #222;
    border-radius: 8px;
    font-size: 14px;
}

.about-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.about-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #222;
    border-radius: 8px;
}

.contact-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item label,
.contact-item .wechat-container,
.contact-item span {
    align-self: flex-start;
    margin-top: 0;
}

.contact-item label {
    display: block;
    font-weight: bold;
    margin-top: 0;
}

.wechat-container {
    position: relative;
    display: inline-block;
}

.wechat-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.wechat-qrcode {
    position: absolute;
    bottom: 50px;
    left: 0;
    display: none;
    padding: 10px;
    background-color: #333;
    border-radius: 4px;
    z-index: 1000;
}

.wechat-container:hover .wechat-qrcode {
    display: block;
}

.wechat-qrcode img {
    width: 120px;
    height: 120px;
}