/* 防诈骗管理系统头部样式 */

/* 清除默认头部阴影 */
header {
    box-shadow: none;
}
html{
    font-size: 16px;
}

/* 确保防诈骗头部固定在顶部 */
.anti-fraud-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d5a27 0%, #1a3a16 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* 头部容器 */
.anti-fraud-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo样式 */
.anti-fraud-logo-section {
    display: flex;
    align-items: center;
}

.anti-fraud-logo {
    text-decoration: none;
}

.anti-fraud-logo-text {
    color: #fff;
}

.anti-fraud-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.anti-fraud-title {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Logo hover效果 */
.anti-fraud-logo:hover .anti-fraud-name {
    color: #4CAF50;
    transition: all 0.3s ease;
}

/* 顶部搜索框样式 */
.anti-fraud-search form {
    display: flex;
    align-items: stretch;
}

.anti-fraud-search input[type="text"] {
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    border-radius: 6px 0 0 6px;
    background-color: rgba(255,255,255,0.9);
    min-width: 200px;
    transition: all 0.3s ease;
}

.anti-fraud-search input[type="text"]::placeholder {
    color: #666;
}

.anti-fraud-search input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.anti-fraud-search button {
    border: none;
    border-radius: 0 6px 6px 0;
    background-color: #4CAF50;
    color: #fff;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.anti-fraud-search button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

/* 移动菜单按钮 */
.anti-fraud-mobile-menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anti-fraud-mobile-menu-toggle:hover {
    color: #4CAF50;
    transform: scale(1.1);
}

/* 导航 */
.anti-fraud-nav {
    display: flex;
    justify-content: left;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.anti-fraud-nav div a:hover {
    color: #4CAF50;
}

.anti-fraud-nav div a {
    color: #fff;
}

/* 导航菜单 */
.anti-fraud-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.anti-fraud-nav-menu li a {
    display: block;
    padding: 1rem 0;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.anti-fraud-nav-menu li a:hover {
    color: #4CAF50;
    transform: translateY(-2px);
}

/* 移动端侧边栏 */
.offcanvas {
    position: fixed;
    background: linear-gradient(135deg, #2d5a27 0%, #1a3a16 100%);
    width: 300px;
    margin-left: -300px;
    top: 0;
    transition: margin-left 0.5s ease;
    z-index: 1050;
    height: 100vh;
    overflow-y: auto;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-header .offcanvas-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.offcanvas-header .btn-close {
    padding: 0.5rem;
    margin: -0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offcanvas-header .btn-close:hover {
    color: #4CAF50;
    transform: scale(1.1);
}

/* 添加 offcanvas show 样式 */
.offcanvas.show {
    margin-left: 0;
    transition: margin-left 0.5s ease;
}

/* 侧边栏搜索表单样式 */
.offcanvas-search {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    outline: none;
    background-color: rgba(255,255,255,0.15);
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.search-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #4CAF50;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.search-btn i {
    font-size: 1rem;
}

/* 侧边栏导航 */
.offcanvas-body {
    padding: 1.5rem;
}

.offcanvas-body .nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.offcanvas-body .nav-item {
    margin-bottom: 0.25rem;
}

.offcanvas-body .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: #4CAF50;
    transform: translateX(5px);
}

.offcanvas-body .nav-link.text-success {
    color: #4CAF50;
    font-weight: 600;
}

/* 垂直分隔线 */
.vr {
    display: inline-block;
    align-self: stretch;
    width: 1px;
    min-height: 1em;
    background-color: rgba(255,255,255,0.25);
    margin: 0 1.5rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 移动端菜单样式 */
    .anti-fraud-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2d5a27 0%, #1a3a16 100%);
        border-top: 1px solid rgba(255,255,255,0.1);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .anti-fraud-nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .anti-fraud-nav-menu li {
        margin-bottom: 0.25rem;
    }
    
    .anti-fraud-nav-menu li a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .anti-fraud-header-container {
        padding: 1rem;
    }
    
    .anti-fraud-name {
        font-size: 1.25rem;
    }
    
    .anti-fraud-title {
        font-size: 0.8rem;
    }
    
    .anti-fraud-search input[type="text"] {
        min-width: 150px;
    }
    
    .offcanvas {
        width: 260px;
        margin-left: -260px;
    }
}