* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.topNav {
    background-color: #007bff;
    padding: 10px 0;
    white-space: nowrap;
}

.topNav .w {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    
}

.nav-container {
    overflow: hidden;
    width: 100%;
}

.nav {
    white-space: nowrap;
  
}

.nav li {
    display: inline-block;
    margin-right: 10px;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start; /* 确保子元素从左侧开始排列 */
    flex-wrap: nowrap; /* 禁止换行 */

    white-space: nowrap; /* 禁止文本换行 */
    margin: 0; /* 调整间距 */
    transition: transform 0.3s ease;
  
    
}


.nav ul li {
    margin: 0 2px;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.nav ul li a.active {
    background-color: #575757;
    border-radius: 5px;
}

.nav ul li a:hover,
.nav ul li a.active {
    background-color: #575757;
    border-radius: 5px;
}


.naim ol {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.naim ol li {
    background-color: #fff;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.naim ol li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.naim ol li .number {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
}

.naim ol li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    flex-grow: 1;
}

.naim ol li a:hover {
    color: #007bff;
}

.naim .w ol li:nth-child(1) .number {
    color: red;
}

.naim .w ol li:nth-child(2) .number {
    color: orange;
}

.naim .w ol li:nth-child(3) .number {
    color: yellow;
}

.host {

   
    padding: 5px 10px;
    border-radius: 5px;
}

.reading {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.reading .num {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer ul li {
    margin: 5px 10px;
}

.loading {
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px) {
    .nav ul {
        flex-direction: row;
        justify-content: flex-start;
    }

    .nav ul li {
        margin: 0 5px; /* 移动端同样减少间距 */
    }

    .nav ul li a {
        padding: 5px; /* 移动端链接内边距稍大一些 */
    }

    .naim ol li {
        padding: 10px;
    }

    .naim ol li .number {
        font-size: 20px;
    }

    .naim ol li a {
        font-size: 16px;
    }

    .host {
        float: none;
        margin-top: 10px;
        width: 35px;
        text-align: right;
    }
}