/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

h1 {
    font-size: 2.0em;
    margin-bottom: 0.1rem;
}

h2 {
    color: #1cc088;
    margin-bottom: 0.1rem;
    transform: translateY(-13%);
}

hr {
    border: 0;              /* 清除默认边框 */
    height: 1px;            /* 控制线条粗细 */
    background-color: #ccc; /* 设置线条颜色 */
    margin: 10px 0;         /* 调整上下间距 */;
}

body {
    line-height: 1.6;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background-image: url('../picture/header_bg2.jpg'); /* 替换为你的背景图片路径 */
    background-size: cover;                /* 背景图片覆盖整个区域 */
    background-position: center center;     /* 背景图片居中显示 */
    color: #FFFFFF;
    text-align: center;
    padding: 5rem 0;
    position: relative;                    /* 为叠加层定位做准备 */
}

/* 添加半透明叠加层增强文字可读性 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* 黑色半透明叠加层 */
    z-index: 0;
}

/* 确保内容在叠加层上方 */
.header > * {
    position: relative;
    z-index: 1;
}

/* 卡片容器布局 */
.container {
    max-width: 1200px;
    margin: 2rem auto; /* 卡片头部页脚距离 */
    padding: 0 1rem;
    flex-grow: 1;
    width: 100%;
    color: #666666;
}

/* 卡片样式 */
.content-section {
    background: white;
    border-radius: 10px; /* 卡片圆角 */
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-section:hover {
    transform: translateY(-3px);
}
@media (max-width: 768px) {
    .navbar, .menu {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}
/* 头像样式 */
.logo-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: -80px auto 1rem;
    border: 4px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background-color: #333333;
    color: white;
    text-align: center;
    font-size: 0.9em;
    padding: 1rem;
    margin-top: auto;
}

.footer a {
    text-decoration: none; /* 去除下划线 */
    color: #FFFFFF;        /* 文字颜色 */;
}

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

/* 状态样式 */
.status-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 添加动态边框效果 */
.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    background-size: 200% 100%;
    animation: borderFlow 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-card:hover::before {
    opacity: 1;
}

/* 在线状态 - 绿色边框流动 */
.status-online.status-card::before {
    color: #4CAF50;
    opacity: 1;
}

/* 离线状态 - 红色边框流动 */
.status-offline.status-card::before {
    color: #F44336;
    opacity: 1;
}

/* 边框流动动画 */
@keyframes borderFlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 原有样式保持不变 */
.status-corner {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    border-radius: 0 8px 0 8px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-align: center;
}

.status-online .status-corner {
    background-color: #4CAF50;
}

.status-offline .status-corner {
    background-color: #F44336;
}

.site-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.site-url {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-all;
}

.status-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

.status-detail span {
    display: flex;
    align-items: center;
}

.blinking-icon {
    margin-right: 5px;
    animation: blink 1.5s infinite;
}
.status-owner {
    font-size: 14px;
    text-align: right;
    color: #666;
    margin-top: auto;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/*首页立即使用按钮*/
    .cta-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        background: linear-gradient(135deg, #3498db 0%, #2541b2 100%);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        position: relative;
        overflow: hidden;
    }
    
    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
        background: linear-gradient(135deg, #2541b2 0%, #3498db 100%);
    }
    
    .cta-button:active {
        transform: translateY(0);
    }
    
    .cta-icon {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
    
    .cta-button:hover .cta-icon {
        transform: translateX(3px);
    }
    
    /* 添加点击水波纹效果 */
    .cta-button::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }
    
    .cta-button:focus:not(:active)::after {
        animation: ripple 0.6s ease-out;
    }
    
    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }
        100% {
            transform: scale(20, 20);
            opacity: 0;
        }
    }
    
/*徽章*/
/* 鼠标悬停跟随显示 */
#tooltip {
    position: fixed;
    background: #F9F9F9;
    color:#1cc088;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    padding: 3px 5px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    pointer-events: none; /* 防止遮挡鼠标事件 */
    z-index: 1000;
}

.status-container {
    text-align: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    border-radius: 4px;
    text-shadow: none;
    font-size: 12px;
    color: #fff;
    line-height: 15px;
    background-color: #abbac3;
    white-space: nowrap;
}

.status-badge a {
    color:#ffffff;
}

.status-subject {
    display: inline-block;
    background-color: #555;
    padding: 4px 4px 4px 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.status-value {
    display: inline-block;
    padding: 4px 6px 4px 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.bg-online {
    background-color: #3C9E3F;
}

.bg-offline {
    background-color: #E33C30;
}
.bg-refresh {
    background-color: #0099CC;
    color: #fff;
}