/* 头部样式 */

        body {
               background: url('/static/bodybg.jpg') repeat;
            background-attachment: fixed;
            background-size: cover;
        }
    
    
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    height: 36px;
    line-height: 36px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
}

.welcome {
    color: #666;
}

.user-menu {
    display: flex;
}

.user-menu li {
    margin-left: 20px;
}

.user-menu a {
    color: #666;
}

.user-menu a:hover {
    color: #2B61B3;
}

/* 主导航区域 */
.header-main {
    height: 100px;
    background: #f1e3e3;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

/* Logo */
.logo {
    margin-right: 30px;
}

.logo img {
    height: 50px;
}

/* 搜索框样式 */
.search-wrapper {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
}

.search-container {
    display: flex;
    width: 100%;
    height: 44px;
    background: #fff;
    border-radius: 4px;
    border: 2px solid #2B61B3;
    overflow: hidden;
}

.search-input {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    min-width: 100px;
    height: 100%;
    padding: 0 25px;
    border: none;
    background: #2B61B3;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #1e4c8f;
}

.search-button span {
    display: inline-block;
    line-height: 1;
}

/* 适配移动端 */
@media screen and (max-width: 768px) {
    .search-wrapper {
        margin: 0 15px;
    }
    
    .search-button {
        min-width: 80px;
        padding: 0 15px;
    }
}

/* 右侧按钮组 */
.header-buttons {
    display: flex;
    gap: 15px;
}

.publish-btn {
    width: 120px;
    height: 40px;
    background: #ff6b6b;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publish-btn:hover {
    background: #ff5252;
    color: #fff;
}

.business-btn {
    width: 120px;
    height: 40px;
    background: #28a745;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-btn:hover {
    background: #218838;
    color: #fff;
}

/* 分类导航 */
.category-nav {
    background: #000000;
    border-bottom: 3px solid #ff0000;
}

.category-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
}

/* 首页链接样式 */
.category-item.home-link {
    font-weight: bold;
    color: #fff;
}

.category-item.home-link a {
    color: #fff;
}

.category-item.home-link:hover {
    background-color: #1e4c8f;
}

/* 积分充值按钮样式 */
.recharge-btn {
    padding: 6px 15px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: auto; /* 使按钮靠右 */
}

.recharge-btn:hover {
    background: #ff5252;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* 导航项样式 */
.category-item {
    position: relative;
    padding: 0 20px;
    line-height: 45px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item > a {
    color: #fff;
}

.category-item:hover {
    background-color: #1e4c8f;
}

/* 子分类样式 */
.sub-category {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 2px solid #ff6b6b;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
}

.category-item:hover .sub-category {
    display: block;
}

.sub-category li {
    padding: 10px 20px;
    transition: all 0.3s;
}

.sub-category li:hover {
    background-color: #f5f5f5;
}

.sub-category li:hover a {
    color: #2B61B3;
}

/* 导航布局 */
.category-list {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 改为左对齐 */
    height: 45px;
    position: relative; /* 添加相对定位 */
}

/* 右侧固定按钮容器 */
.nav-right-buttons {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
}

/* 付费发布按钮样式 */
.paid-publish-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    height: 40px;
}

.paid-publish-btn i {
    font-size: 18px;
}

.paid-publish-btn:hover {
    background: #ff5252;
} 