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

body {
    font-family: 'Arial', sans-serif;
    /* background: linear-gradient(135deg, #ff6b6b, #ff8e53); */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}



.container {
    width: 100%;
    max-width: 1200px;
    min-height: 600px;  /* 设置最小高度 */
    background-image: url('bg.png');
    background-size: cover;
    background-position: top center;  /* 从顶部开始显示，保留头部 */
    /* background-position: 50% 20%; */  /* 自定义显示位置 */
    background-repeat: no-repeat;
    /* 圆角 */
    /* border-radius: 20px; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    /* margin-bottom: 10px; */
}

.ranking-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* gap: 10px; */
    background-color: #FFF0D9;
    padding: 0;
    margin: 17.5% 4% 4% 4.8%;
}

.datetime-display {
    text-align: right;
    /* margin-bottom: 10px; */
    margin-right: 35px;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.ranking-container-inner {
    width: 100%;
    /* padding-top: 20px; */
    padding-left: 35px;
    padding-right: 35px;
    display: flex;
    justify-content: space-between;
}

.ranking-section {
    flex: 1;
    background: #f9f9f9;
    /* border-radius: 10px; */
    /* padding: 2px; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-section h2 {
    text-align: center;
    color: #e74c3c;
    /* margin: 5px; */
    font-size: 36px;
    font-weight: bold;
}

#monthly {
    background-color: #B6010A;
    /* padding: 10px;
    border-radius: 5px; */
    color: white;
}
#weekly {
    background-color: #F13939;
    color: white;
}

#pm {
    background-color: #AA6E56;
    color: white;
}
#yy {
    background-color: #7C0403;
    color: white;
}
#pt {
    background-color: #620300;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #e74c3c;
    color: white;
    padding: 6px;
    font-size: 22px;
    text-align: center;
    font-weight: bold;
}

table tr:nth-child(even) {
    background: #F7E5CF;
}

table tr:nth-child(odd) {
    background: #FEF7ED;
}

table td {
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table tr:nth-child(-n+3) td {
    font-weight: bold;
    color: #e74c3c;
}

#last-updated {
    margin-top: 10px;
    font-weight: bold;
    color: #e74c3c;
}

@media (max-width: 768px) {
    .ranking-container {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .ranking-section h2 {
        font-size: 20px;
    }
}
