@charset "utf-8";
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-primary: #007bff;
    --bg-body: #f8f9fa; /* 页面背景 */
    --text-primary: #212529; /* 标题主色 */
    --text-muted: #6c757d; /* 灰色文字 */
    --navbar-bg: #ffffff; /* 导航背景色 */
    --card-bg: #ffffff; /* 卡片背景 */
    --border-color: #dee2e6; /* 通用边框色 */
    --hover-shadow: rgba(0,0,0,0.15); /* hover阴影颜色 */
    --bs-light-border-subtle: #f1f1f1; /* footer背景色 */
    --bs-navbar-active-color: #0056b3;
    --icon-highlight-color: #ffd700;
    --background-hover: #e9ecef;
}

/* 全局基础样式 */
body, div, h1, h2, h3, h4, p, span, strong, header, footer, ul, ol, li, dl, dt, dd, input, button, nav, main, figure, figcaption, img, section, aside {
    padding: 0;
    margin: 0;
}
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
}
/* 标题样式 */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}
h2 { font-size:1.4rem; font-weight: 600; }
h3 { font-size:1.2rem; font-weight: 500; }
h4 { font-size:1rem; font-weight: 400; }
.tool_detail{overflow-y: auto; max-height: 300px;}
.tool_detail ul ,.tool_detail ol {
    list-style-position: outside;
    padding-left: 20px;
    margin: 0;
}
.tool_detail li {
    margin-bottom: 8px;
}
.tool_detail .code-block {
    background: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 20px 0;
}

.title-h1 {
    letter-spacing: 2px;
    margin: .6rem auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    padding-bottom:.4rem;
    border-bottom: 1px solid var(--border-primary);
}
.h2 { font-size:1.4rem; font-weight: 600; }
.h3 { font-size: 1.2rem; font-weight: 500; }
.h4 { font-size: 1rem; font-weight: 400; }

.breadcrumb {
    margin: 0.6rem auto 0.1rem auto;
}
#customToastContainer {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
}
.custom-toast {
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* navbar */
.navbar {
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 10px 20px;
    background-color: var(--navbar-bg);
}
.navbar .navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.navbar .nav-link {
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s, background-color 0.3s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bs-navbar-active-color);
    background-color: var(--background-hover);
    border-radius: 4px;
}

/* 下拉菜单 */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 通用阴影 */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px var(--hover-shadow);
}

/* 侧边栏 */
.sidebar {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: 100%;
}
.sidebar h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.sidebar .nav-link {
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-primary);
    background-color: transparent;
}
.sidebar .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
    transition: color 0.3s;
}
/* 鼠标悬停效果：背景渐变，阴影增强 */
.sidebar .nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* 激活状态：突出背景色，内阴影，字体加粗 */
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--bs-navbar-active-color);
}
.sidebar .nav-link.active:hover {
    box-shadow: inset 0 -4px 0 var(--bs-navbar-active-color), 0 4px 12px rgba(0,0,0,0.15);
}
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    color: var(--icon-highlight-color);
}

.section {
    padding: 20px 20px;
    background-color: var(--bg-body);
}
/* 右侧内容 */
.index_section {
    padding: 15px !important;
    margin: 10px auto;
}
.right_box,
.index_section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.right_box h1 {
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 10px;
}
.right_box .card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: none;
    background-color: var(--card-bg);
}
.right_box .card-body {
    padding: 30px;
}

/*news list*/
.article-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.article-image {
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .article-image {
    transform: scale(1.03);
}
.article-title {
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    text-decoration: none;
}
.article-title:hover {
    color: var(--primary-color);
}
.article-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.category-badge {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}
.load-placeholder {
    background: var(--background-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}




.footer {
    background: var(--bs-light-border-subtle);
    padding: 25px 0;
    margin-top: 20px;
}



