/* 头部状态栏 */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 状态卡片容器 */
#statusContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 新增两列布局 */
    gap: 15px;
}

/* 响应式调整：小于768px时切换为单列 */
@media (max-width: 768px) {
    #statusContainer {
        grid-template-columns: 1fr;
    }
}

/* 单个状态卡片 */
.status-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.status-card:hover {
    transform: translateY(-3px);
}

/* 状态指示灯 */
.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
}

/* 在线状态样式 */
.status-online {
    background: #00C853;
}

/* 离线状态样式 */
.status-offline {
    background: #FF1744;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
    opacity: 0;
}

.status-online::before { background-color: rgba(0, 200, 83, 0.8); }
.status-offline::before { background-color: rgba(255, 23, 68, 0.8); }

/* 网站信息区域 */
.site-info {
    flex: 1;
}

.site-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #1F2937;
}

.site-name a {
  text-decoration: none;    /* 去除下划线 */
  color: #1F2937;              /* 文字颜色 */
}

.site-name a:hover {
  color: #1cc088;             /* 鼠标悬停颜色 */
  text-decoration: none;   /* 悬停时也无下划线 */
}

.site-url {
    color: #546e7a;
    font-size: 0.9em;
    margin: 4px 0;
}

/* 状态详细信息 */
.status-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #455a64;
}

.status-detail span {
    display: inline-block;
    margin-right: 15px;
}

/* 加载中样式 */
.loading {
    text-align: center;
    padding: 10px;
    color: #00BB9A;
}

/* 响应时间颜色编码 */
.response-time {
    padding: 2px 8px;
    border-radius: 5px;
}

.good { background: #e8f5e9; color: #2e7d32; }
.warning { background: #fff3e0; color: #ef6c00; }
.bad { background: #ffebee; color: #c62828; }

/* SSL证书样式 */
.ssl-info {
    margin: 8px 0;
}

.ssl-days {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85em;
}

.ssl-good { background: #e8f5e9; color: #2e7d32; }
.ssl-warning { background: #fff3e0; color: #ef6c00; }
.ssl-danger { background: #ffebee; color: #c62828; }
.ssl-error { background: #eeeeee; color: #888888; font-size: 0.85em; }

/* 状态码颜色 */
.status-code-2xx { color: #00C853; }
.status-code-3xx { color: #FFA500; }
.status-code-4xx { color: #FF1744; }
.status-code-5xx { color: #9C27B0; }
.status-code-other { color: #757575; }
.status-code-error { color: #757575; }

/* 刷新倒计时 */
#refreshCountdown {
    color: #1cc088;
    font-weight: 600;
}

/* 图标闪烁效果 */
.blinking-icon {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}