* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}



.vulnerability-navigation {
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
}

.page-header {
    margin-bottom: 30px;
}



.page-title {
    font-size: 2em;
    font-weight: 700;
    color: #c9d1d9;
    margin-bottom: 10px;
}

.page-description {
    color: #8b949e;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    /* Assuming header is 80px */
}


/* 顶部统计概览 */
.stats-overview {
    width:30%;
margin-left:30px;
float: right;
}

.personal-stats,
.recommended-path {
    flex: 1;
}

.stats-overview h3 {
    color: #00d084;
    margin-bottom: 15px;
    font-size: 1.2em; 
}

.progress-bar {
    position: relative;
    height: 8px;
    background-color: #21262d;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d084, #26a641);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 1em;
    color: #8b949e;
    margin:-10px 0 0 15px;

}
.text-flex{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d084, #26a641);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #26a641, #00d084);
    transform: translateY(-1px);
}

/* 主要内容区域 */

.main-content {
    flex-grow: 1;
    padding-top: calc(var(--header-height) + 24px);
}

/* 左侧分类树 */
.category-tree {
    width: 350px;
    background-color: #161b22;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #30363d;
    height: fit-content;
}

.category-tree h3 {
    color: #00d084;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #30363d;
    padding-bottom: 10px;
}

.tree-nav ul {
    list-style: none;
}

.tree-root>.tree-node {
    margin-bottom: 15px;
}

.node-toggle {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #21262d;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.node-toggle:hover {
    background-color: #30363d;
    color: #00d084;
}

.node-toggle i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.tree-children {
    margin-top: 10px;
    margin-left: 20px;
    display: none;
}

.tree-children.expanded {
    display: block;
}

.tree-leaf {
    margin-bottom: 8px;
}

.tree-leaf a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: #0d1117;
    border-radius: 6px;
    text-decoration: none;
    color: #c9d1d9;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.tree-leaf.active a {
    background-color: #1a2332;
    border-left-color: #00d084;
    color: #00d084;
}

.tree-leaf a:hover {
    background-color: #21262d;
    color: #00d084;
}

.tree-leaf a i {
    margin-right: 10px;
    color: #00d084;
}

.progress-indicator {
    font-size: 0.8em;
    background-color: #30363d;
    padding: 2px 8px;
    border-radius: 10px;
    color: #8b949e;
}

/* 右侧靶场列表 */
.target-list {
    flex: 1;
}

/* 筛选工具栏 */
.filter-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #161b22;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.filter-group-left,
.filter-group-right {
    display: flex;
    gap: 15px;
    align-items: center;
}
.filter-group-right{
    margin-left:15px;
}
.filter-toolbar select,
.search-input {
    padding: 8px 12px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.9em;
}

.search-input {
    width: 250px;
}

.filter-toolbar select:focus,
.search-input:focus {
    outline: none;
    border-color: #00d084;
}

/* 靶场卡片网格 */
.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.target-card {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border-radius: 12px;
    border: 1px solid #30363d;
    overflow: hidden;
    transition: all 0.3s ease;
}

.target-card:hover {
    transform: translateY(-3px);
    border-color: #00d084;
    box-shadow: 0 8px 25px rgba(0, 208, 132, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #30363d;
}

.target-title {
    margin-bottom: 5px;
}

.target-title a {
    color: #c9d1d9;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
}

.target-title a:hover {
    color: #00d084;
}

.difficulty-stars {
    color: #ffd700;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-completed {
    background-color: #238636;
    color: white;
}

.status-in-progress {
    background-color: #f85149;
    color: white;
}

.status-not-started {
    background-color: #6e7681;
    color: white;
}

.card-body {
    padding: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.tag-sql {
    background-color: #1f6feb;
    color: white;
}

.tag-php {
    background-color: #7c3aed;
    color: white;
}

.tag-mysql {
    background-color: #f97316;
    color: white;
}

.tag-xss {
    background-color: #dc2626;
    color: white;
}

.tag-javascript {
    background-color: #facc15;
    color: black;
}

.tag-html {
    background-color: #16a34a;
    color: white;
}

.tag-upload {
    background-color: #06b6d4;
    color: white;
}

.tag-bypass {
    background-color: #8b5cf6;
    color: white;
}

.tag-command {
    background-color: #ef4444;
    color: white;
}

.tag-linux {
    background-color: #374151;
    color: white;
}

.tag-privilege {
    background-color: #991b1b;
    color: white;
}

.tag-deserialization {
    background-color: #be185d;
    color: white;
}

.tag-rce {
    background-color: #dc2626;
    color: white;
}

.description {
    color: #8b949e;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #8b949e;
}

.card-stats i {
    margin-right: 5px;
    color: #00d084;
}

.progress-bar.small {
    height: 6px;
    margin-bottom: 0;
}

.card-footer {
    padding: 15px 20px;
    background-color: #0d1117;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-secondary {
    background-color: #21262d;
    color: white;
    border: 1px solid #30363d;
}

.btn-secondary:hover {
    background-color: #30363d;
    color: #00d084;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #00d084;
    color: #00d084;
}

.btn-outline:hover {
    background-color: #00d084;
    color: #0d1117;
}

/* 分页容器 */
.pagination-container {
    text-align: center;
    padding: 30px 0;
}

.load-more {
    padding: 12px 30px;
    font-size: 1em;
}

