/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面基础样式 */
body {
    background-image: url('../background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #2196F3;
}

.header h1 {
    color: #2196F3;
    margin: 0;
    font-size: 28px;
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #f8f9fa;
    border: none;
    outline: none;
    font-size: 16px;
    color: #666;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-right: 2px;
}

.tab.active {
    background-color: white;
    color: #2196F3;
    font-weight: bold;
    border-bottom: 3px solid #2196F3;
    margin-bottom: -2px;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
}

/* 状态部分样式 */
.status-section {
    margin-bottom: 0;
}

.status-section h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 8px;
    display: inline-block;
}

.status-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.status-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.status-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #666;
}

.status-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #2196F3;
}

.status-card .time {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

/* 刷新控制样式 */
.auto-refresh-indicator {
    margin-top: 20px;
    text-align: center;
}

.refresh-text {
    font-size: 14px;
    color: #666;
    background-color: #f0f7ff;
    padding: 6px 12px;
    border-radius: 16px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

/* 线程部分样式 */
.threads-section h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 8px;
    display: inline-block;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background-color: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #555;
}



/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

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

.status-dead {
    background-color: #f44336;
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

/* 移除动画效果 */
.tab-content.active {
    /* 移除淡入动画 */
}

/* 实时更新指示器 */
.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4CAF50;
    margin-left: 8px;
}

/* 加载提示 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    margin-right: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .status-info {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 400px;
    }
}



/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}



/* 按钮通用样式 */
button {
    font-family: inherit;
    cursor: pointer;
}





/* 文本选择样式 */
::selection {
    background-color: rgba(33, 150, 243, 0.2);
    color: inherit;
}

::-moz-selection {
    background-color: rgba(33, 150, 243, 0.2);
    color: inherit;
}

/* 无障碍样式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}