/* 现代网格布局 */
.status-wrapper {
    background-image: linear-gradient(0deg, #fbfbfb, #ffffff);
    border: 2px solid #ffffff;
    box-shadow: 0 0px 8px rgb(0 0 0 / 10%);
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1600px;
    padding: 2rem;
}

.status-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr; /* 一行一个 */
    }
}

.status-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.25s ease;
}

.status-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.status-header {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}

.status-indicator {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    position: relative;
}

.online { background: #10b981; }
.online::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.offline { background: #ef4444; }
.offline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #64748b;
    gap: 10px;
    margin-top: 1rem;
}

.server-link { 
    color: #2655ff;
    text-decoration: none;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 5px 20px;
    margin-right: 5px;
    background-color: #f2f2f2;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .current {
    font-weight: bold;
    background-color: #333;
    color: #fff;
}

.pagination a:hover {
    background-color: #ddd;
}

@media (max-width: 768px) {
    .notice-box {
        flex-direction: column; /* 手机端垂直排列 */
        align-items: flex-start; /* 左对齐 */
    }
    
    .notice-time {
        margin-left: 0; /* 移除左边距 */
        margin-top: 5px; /* 添加顶部间距 */
    }
}

/* 内容容器加载动画样式 */
.content-container {
    position: relative;
}

.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 10;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(22, 93, 255, 0.1); /* 使用#165DFF的10%透明度 */
    border-radius: 50%;
    border-top-color: #165DFF; /* 主色调 */
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.1em;
    color: #000; /* 主色调 */
    font-weight: 500;
    text-align: center;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 服务卡片初始隐藏 */
.status-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.status-card.visible {
    opacity: 1;
    transform: translateY(0);
}