:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #f7f9fc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --shadow-soft: 0 4px 16px 0 rgba(31, 38, 135, 0.1);
    --neumorphism: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    --neumorphism-inset: inset 8px 8px 16px #d1d9e6, inset -8px -8px 16px #ffffff;
    --radius: 16px;
    --radius-small: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "HarmonyOS Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text);
    font-weight: 400;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.5px;
}

.page-title i {
    margin-right: 12px;
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.update-time {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-soft);
    font-weight: 500;
}

.update-time i {
    margin-right: 8px;
    color: var(--secondary);
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-small);
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    box-shadow: var(--neumorphism-inset);
    font-size: 15px;
    transition: all 0.3s ease;
    color: var(--text);
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    box-shadow: var(--neumorphism-inset), 0 0 0 2px var(--primary-light);
}

.search-input::placeholder {
    color: #a5b1c2;
    font-weight: 400;
}

.search-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    letter-spacing: 0.5px;
    width: 48px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn i {
    margin: 0;
    font-size: 16px;
}

/* 新增提交按钮样式 */
.submit-button-container {
    display: flex;
    align-items: center;
    margin-left: auto; /* 将按钮推到右侧 */
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-small);
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    margin-left: 20px;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.submit-btn i {
    margin-right: 8px;
}

/* 主内容区域 */
.main-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-header {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: -0.3px;
}

.node-table {
    width: 100%;
    border-collapse: collapse;
}

.node-table th {
    text-align: left;
    padding: 18px 25px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2px;
}

.node-table td {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 15px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.node-table tr {
    transition: all 0.2s ease;
}

.node-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.node-table tr:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.node-table tr:hover td {
    padding: 20px 25px;
}

/* 状态标签 */
.status-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 80px;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.3px;
}

.status-online {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    color: white;
}

.status-offline {
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 100%);
    color: #636e72;
}

/* 负载标签 */
.load-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.3px;
}

.load-low {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    color: white;
}

.load-medium {
    background: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%);
    color: #2d3436;
}

.load-high {
    background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%);
    color: white;
}

/* 标签组 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.node-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
    letter-spacing: 0.2px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

.loading i {
    font-size: 32px;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
    animation: spin 1.5s linear infinite;
}

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

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.pagination-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-small);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.9) 100%);
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-soft);
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    border-color: var(--primary-light);
}

.pagination-btn:hover:not(:disabled)::before {
    left: 100%;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    color: #b2bec3;
    background: #dfe6e9;
    transform: none;
    box-shadow: none;
    border-color: #dfe6e9;
}

.pagination-btn i {
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.pagination-btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

.pagination-info {
    font-size: 15px;
    color: var(--text);
    margin: 0 20px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .node-table th:nth-child(5),
    .node-table td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-title {
        justify-content: center;
        margin-bottom: 10px;
        font-size: 24px;
    }
    
    .update-time {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .node-table {
        display: block;
        overflow-x: auto;
    }
    
    .node-table th:nth-child(2),
    .node-table td:nth-child(2),
    .node-table th:nth-child(4),
    .node-table td:nth-child(4) {
        display: none;
    }
    
    .node-table th, 
    .node-table td {
        padding: 15px 10px;
    }
    
    .status-tag, .load-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-info {
        margin: 10px 0;
        order: -1;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .table-header {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .node-table th, 
    .node-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .status-tag, .load-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .pagination-btn {
        padding: 8px 14px;
        font-size: 14px;
    }
}
