/* index.php 专用样式文件 */

/* 修复侧边栏滚动和响应式布局 */
body {
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
}

html {
    overflow-x: hidden;
    overflow-y: hidden;
}

/* 修复响应式布局间隔问题 */
@media (max-width: 768px) {
    body .content-wrapper {
        margin-top: 50px;
        /* 修复：统一为50px，与CSS文件保持一致 */
        height: calc(100vh - 50px);
    }

    /* 修复侧边栏内容区域的顶部间隔 */
    body .sidebar-content {
        padding-top: 50px;
        /* 修复：统一为50px，确保对齐 */
    }

    /* 确保侧边栏与内容区域顶部对齐 */
    body .sidebar {
        top: 0px;
    }
}

@media (max-width: 480px) {
    body .content-wrapper {
        margin-top: 50px;
        height: calc(100vh - 50px);
    }

    /* 修复侧边栏内容区域的顶部间隔 */
    body .sidebar-content {
        padding-top: 60px;
    }

    /* 确保侧边栏与内容区域顶部对齐 */
    body .sidebar {
        top: 0px;
    }
}

/* 确保Font Awesome图标正确显示 */
#app .category-header i:first-child,
#app .card-icon i,
#app .fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 修复卡片图标类名 - 自动添加fa基础类 */
#app .card-icon i:not([class*=" fa "]) {
    font-family: FontAwesome;
}

.card-icon i.fa-link::before {
    content: "\f0c1";
}

.card-icon i.fa-test::before {
    content: "\f135";
    /* 使用火箭图标作为测试图标 */
}

.card-icon i.fa-code::before {
    content: "\f121";
}

.card-icon i.fa-book::before {
    content: "\f02d";
}

.card-icon i.fa-stack-overflow::before {
    content: "\f16c";
}

.card-icon i.fa-codepen::before {
    content: "\f1cb";
}

/* 侧边栏收起时隐藏折叠图标 */
aside.sidebar.collapsed .toggle-icon {
    display: none;
}

/* 为所有分类头部添加相对定位 */
div.category-header {
    position: relative;
}

/* 修复无二级分类的一级分类：图标左对齐，文字居中 */
div.category-header:not(:has(.toggle-icon)) {
    justify-content: flex-start;
    padding-left: 20px;
}

div.category-header:not(:has(.toggle-icon)) span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 如果不支持:has选择器，使用JavaScript类 */
div.category-header.no-subcategories {
    justify-content: flex-start;
    padding-left: 20px;
}

div.category-header.no-subcategories span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* 自定义滚动条样式 */
.content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.content-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.5);
    border-radius: 4px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.7);
}

/* 侧边栏滚动条样式 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

/* 三级分类样式 */
.section-header.third-level {
    margin-left: 20px;
    border-left: 3px solid #28a745;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.section-header.third-level h3 {
    color: #155724;
    font-size: 16px;
}

.section-header.third-level:hover {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

/* HeaSec头部布局优化 - 浏览器缩放兼容性 */
.heasec-header-stable {
    container-type: inline-size;
}

@container (max-width: 1200px) {
    .title-section {
        max-width: 65vw;
    }
}

@container (max-width: 900px) {
    .title-section {
        max-width: 55vw;
    }
}

/* 防止缩放时的布局错位 */
.header-content {
    container-type: inline-size;
}

/* 确保在极端缩放比例下的稳定性 */
@media (max-resolution: 1dppx) {

    .logo-section,
    .version-section {
        will-change: transform;
    }
}

/* 紧急兼容性修复 */
@supports not (container-type: inline-size) {
    .header-content {
        min-width: 320px;
        overflow: hidden;
    }

    .title-section {
        width: auto;
        min-width: 200px;
        max-width: 600px;
    }
}

/* HeaSec修复：在768px以下隐藏版本号以避免重叠 */
@media (max-width: 768px) {
    header .version-section {
        display: none;
        visibility: hidden;
        width: 0;
        height: 0;
        overflow: hidden;
    }

    header .title-section {
        max-width: calc(100% - 80px);
        margin-right: 10px;
    }

    header .main-slogan {
        max-width: 25%;
    }
}

/* 重置选项样式 */
.reset-options {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.reset-options h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background-color: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.option-text {
    font-weight: 500;
    color: #495057;
    display: block;
    margin-bottom: 4px;
}

.checkbox-label small {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
    display: block;
}

.reset-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

.reset-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 学习状态确认模态框样式 */
.confirm-message {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.confirm-message i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 15px;
    display: block;
}

.confirm-message p:first-of-type {
    font-size: 18px;
    font-weight: bold;
    color: #155724;
    margin-bottom: 10px;
}

.confirm-message p:last-of-type {
    color: #155724;
    margin: 0;
    line-height: 1.6;
}

.confirm-tips {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
}

.confirm-tips h4 {
    color: #0c5460;
    margin: 0 0 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #495057;
}

.confirm-tips li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* 靶场重置结果模态框样式提取 */
#rangeResetResultModal .modal-container {
    max-width: 600px;
}

.range-reset-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.range-reset-summary .summary-item {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.range-reset-summary .summary-item .summary-number {
    font-size: 24px;
    font-weight: bold;
}

.range-reset-summary .summary-item .summary-label {
    font-size: 13px;
}

.range-reset-summary .summary-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}
.range-reset-summary .summary-success .summary-number,
.range-reset-summary .summary-success .summary-label {
    color: #155724;
}

.range-reset-summary .summary-failed {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}
.range-reset-summary .summary-failed .summary-number,
.range-reset-summary .summary-failed .summary-label {
    color: #721c24;
}

.range-reset-summary .summary-total {
    background: #e2e3e5;
    border-left: 4px solid #6c757d;
}
.range-reset-summary .summary-total .summary-number,
.range-reset-summary .summary-total .summary-label {
    color: #383d41;
}

.range-reset-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.range-reset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.range-reset-item:nth-child(even) {
    background: #f9f9f9;
}
.range-reset-item:nth-child(odd) {
    background: #fff;
}

.range-reset-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.range-reset-item-icon {
    font-size: 16px;
}
.range-reset-item-icon.text-success {
    color: #28a745;
}
.range-reset-item-icon.text-danger {
    color: #dc3545;
}

.range-reset-item-text {
    font-size: 13px;
    color: #333;
    word-break: break-all;
}

.range-reset-item-right {
    flex-shrink: 0;
    margin-left: 10px;
}

.range-reset-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
}
.range-reset-badge.badge-success {
    background: #d4edda;
    color: #155724;
}
.range-reset-badge.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.range-reset-alert {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff3cd;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
}

.range-reset-alert p {
    margin: 0;
    font-size: 13px;
    color: #856404;
}

/* ========================================
 * 首页样式
 * ======================================== */

/* 首页导航项 */
.home-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    background: rgba(0, 123, 255, 0.08);
}

.home-nav-item i {
    margin-right: 10px;
    width: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-nav-item:hover {
    background: rgba(0, 123, 255, 0.18);
    transform: translateX(5px);
}

.home-nav-item.active {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* 侧边栏收起时首页导航项样式 */
.sidebar.collapsed .home-nav-item {
    padding: 15px 0;
    justify-content: center;
    background: transparent;
}

.sidebar.collapsed .home-nav-item span {
    display: none;
}

.sidebar.collapsed .home-nav-item i {
    margin-right: 0;
    font-size: 18px;
}

.sidebar.collapsed .home-nav-item.active {
    background: transparent;
    box-shadow: none;
}

.sidebar.collapsed .home-nav-item.active i {
    color: #007BFF;
    font-weight: bold;
}

.sidebar.collapsed .home-nav-item:hover {
    background: transparent;
    transform: none;
}

.sidebar.collapsed .home-nav-item:hover i {
    color: #007BFF;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* 首页介绍组件 */
.home-intro {
    animation: fadeInUp 0.6s ease-out;
}

/* 平台简介卡片 */
.home-brief-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.home-brief-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.home-brief-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.home-brief-content strong {
    color: #007BFF;
}

/* 通用卡片 */
.home-intro-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.home-intro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* 手风琴 */
.home-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.home-accordion-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.home-accordion-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.home-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.home-accordion-header:hover {
    background: rgba(0, 123, 255, 0.04);
}

.home-accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
}

.home-accordion-title i {
    color: #007BFF;
    font-size: 18px;
}

.home-accordion-arrow {
    color: #007BFF;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.home-accordion-body {
    padding: 0 24px 20px;
    animation: fadeInUp 0.3s ease-out;
}

/* 基础配置 */
.home-config-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-config-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #007BFF;
}

.home-config-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-config-label i {
    color: #007BFF;
}

.home-config-value {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.home-config-value strong {
    color: #007BFF;
}

.home-config-list {
    margin: 0;
    padding-left: 18px;
}

.home-config-list li {
    margin-bottom: 8px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
}

.home-config-list li:last-child {
    margin-bottom: 0;
}

.home-config-list code,
.home-tips-list code {
    background: rgba(0, 123, 255, 0.1);
    color: #007BFF;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
}

/* 靶场使用描述 */
.home-usage-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 子板块标题 */
.home-subsection {
    margin-bottom: 20px;
}

.home-subsection:last-child {
    margin-bottom: 0;
}

.home-subsection-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-subsection-title i {
    color: #007BFF;
}

/* 靶场模式卡片 */
.home-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.home-mode-card {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.home-mode-card:hover {
    border-color: rgba(0, 123, 255, 0.2);
    background: #f0f7ff;
}

.home-mode-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-mode-name i {
    color: #007BFF;
}

.home-mode-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 靶场难度 */
.home-difficulty-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.home-difficulty-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
}

.home-difficulty-badge {
    flex-shrink: 0;
    margin-top: 1px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.home-difficulty-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* 提示信息 */
.home-tips-list {
    margin: 0;
    padding-left: 18px;
}

.home-tips-list li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 14px;
    color: #555;
}

.home-tips-list li:last-child {
    margin-bottom: 0;
}

/* 联系我们 */
.home-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.2s;
}

.home-contact-item:hover {
    background: #f0f7ff;
}

.home-contact-item > i {
    font-size: 24px;
    color: #007BFF;
    margin-top: 2px;
    flex-shrink: 0;
}

.home-contact-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 15px;
}

.home-contact-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.home-contact-link {
    color: #007BFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    word-break: break-all;
}

.home-contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 安全警告卡片 */
.home-warning-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 2px solid rgba(255, 152, 0, 0.3);
    transition: all 0.3s ease;
}

.home-warning-card:hover {
    border-color: rgba(255, 152, 0, 0.5);
    box-shadow: 0 6px 25px rgba(255, 152, 0, 0.1);
}

.home-warning-header {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-warning-content {
    padding: 18px 24px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.home-warning-content strong {
    color: #e65100;
}

.home-warning-severe {
    padding: 16px 24px;
    background: #fff3e0;
    border-top: 1px solid rgba(255, 152, 0, 0.15);
}

.home-warning-severe-title {
    font-weight: 600;
    color: #bf360c;
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-warning-severe-title i {
    color: #d32f2f;
}

.home-warning-severe p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.home-warning-severe strong {
    color: #d32f2f;
}

/* 首页响应式 */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-mode-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .home-difficulty-list {
        grid-template-columns: 1fr;
    }

    .home-brief-card {
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .home-brief-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .home-mode-grid {
        grid-template-columns: 1fr;
    }

    .home-difficulty-list {
        grid-template-columns: 1fr;
    }

    .home-accordion-header {
        padding: 14px 18px;
    }

    .home-accordion-body {
        padding: 0 18px 16px;
    }

    .home-brief-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .home-brief-content {
        font-size: 14px;
    }

    .home-warning-content,
    .home-warning-severe p {
        font-size: 13px;
    }
}

/* ========================================
 * HeaSec 前台样式优化 - 靶场使用区域
 * ======================================== */

/* 1. 靶场使用说明区优化 (Usage Description) */
.heasec-alert-box {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 20px;
    background-color: rgba(52, 152, 219, 0.08);
    border-left: 4px solid #3498db;
    border-radius: 4px 8px 8px 4px;
}
.heasec-alert-icon {
    font-size: 20px;
    color: #3498db;
    margin-right: 12px;
    margin-top: 2px;
}
.heasec-alert-content {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.text-highlight-blue {
    color: #007BFF;
    font-weight: 600;
}
.text-highlight-orange {
    color: #e67e22;
    font-weight: 600;
}
.text-highlight-green {
    color: #27ae60;
    font-weight: 600;
}

/* 2. 提示信息区重构 (Tips List) */
.home-tips-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.home-tip-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.tip-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 16px;
    color: #fff;
}
.tip-icon-shield { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.tip-icon-refresh { background: linear-gradient(135deg, #e67e22, #d35400); }
.tip-icon-mobile { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.tip-icon-code { background: linear-gradient(135deg, #34495e, #2c3e50); }

.tip-content {
    flex: 1;
}
.tip-title {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 6px;
}
.tip-desc {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
}
.heasec-code-highlight {
    background: rgba(0, 123, 255, 0.08);
    color: #007BFF;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 12.5px;
}

/* 3. 靶场模式与靶场难度优化 (Modes & Difficulties) */
.home-mode-card {
    transition: all 0.3s ease !important;
}
.home-mode-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 123, 255, 0.2) !important;
}

.home-difficulty-badge {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(0,0,0,0.1);
}
