/* 主体样式 */
body {
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 20px;
    color: white;
    font-size: 18px;
    transition: background 0.5s, color 0.5s; /* 背景和文字色变化 */
}

/* 标题渐变样式 */
.gradient-title {
    background: linear-gradient(50deg, red, blue, white, pink);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3em;
    margin: 20px 0;
    text-align: center;
    animation: gradient 5s ease infinite;
}

/* 渐变动画效果 */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 链接列表样式 */
.link-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.link-list li {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 15px;
    padding: 15px;
    width: 100%;
    max-width: 320px;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.link-list li:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.link-list a {
    text-decoration: none;
    color: #333;
}

/* 加载速度标签样式 */
.speed {
    color: blue;
}

/* 速度分类背景色 */
.fast { background-color: #d4ffcc; }
.medium { background-color: #ffecb3; }
.slow { background-color: #ffcccb; }

/* 滚动公告样式 */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    font-size: 20px;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.marquee span {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 20px;
    color: black;
    font-size: 12px;
}

/* loading 动画样式 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 手机端样式 */
@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 16px;
        background: rgba(0, 0, 0, 0.7); /* 添加背景色 */
    }
    h1 {
        font-size: 2em; /* 小屏幕上减小标题字体 */
    }
    .link-list {
        flex-direction: column; /* 小屏幕竖排 */
    }
    .link-list li {
        width: 90%; /* 手机端链接项宽度调整 */
        margin: 10px auto; /* 手机端链接项居中显示 */
    }
    .marquee {
        font-size: 16px; /* 手机端滚动公告字体大小调整 */
    }
}

/* 平板设备样式 */
@media (min-width: 601px) and (max-width: 900px) {
    h1 {
        font-size: 2.5em; /* 平板设备标题 */
    }
    .link-list li {
        width: 80%; /* 宽度80% */
        margin: 10px; /* 增加边距 */
    }
}

/* 大屏设备样式 */
@media (min-width: 901px) {
    h1 {
        font-size: 3em; /* 大屏设备标题 */
    }
    .link-list {
        justify-content: space-around; /* 大屏设备链接项分布更均匀 */
    }
}

.speed {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    color: #333;
}

.status {
    margin-left: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 2px 6px;
    border-radius: 4px;
}

.status.normal {
    background-color: #d4edda;
    color: #00BFFF; /* 正常状态字体颜色改为湖蓝 */
}

.status.abnormal {
    background-color: #f8d7da;
    color: #FF2400; /* 异常状态字体颜色改为朱红 */
}

.status.pending {
    background-color: #e2e3e5;
    color: #C0C0C0; /* 检测中状态字体颜色改为银灰 */
}

.link-list li {
    position: relative;
    margin-bottom: 10px;
}

.link-list li a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    color: #007BFF;
}

.link-list li a:hover {
    text-decoration: underline;
}    

#copyright-year {
    background: linear-gradient(50deg, #FF6347, #FFA500, #FFD700);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 5s ease infinite;
    font-weight: bold;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}