/* 详情页专用头部 */
.header-detail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 1000;
}
.header-detail .layui-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-detail .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-detail .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-detail .logo-section a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.header-detail .logo-section img {
    height: 32px;
    width: auto;
}
.header-detail .logo-section .brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.header-detail .logo-section .divider {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin: 0 4px;
}
.header-detail .logo-section .section-name {
    font-size: 16px;
    color: #666;
}
.header-detail .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-detail .nav-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.header-detail .nav-links a:hover {
    color: #ff6b35;
}
.header-detail .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-detail .login-btn {
    padding: 6px 20px;
    background: #ff6b35;
    color: #fff !important;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}
.header-detail .login-btn:hover {
    background: #e55a2b;
}
.header-detail .user-section {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
}
.header-detail .user-section .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.header-detail .user-section .username {
    font-size: 14px;
    color: #333;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-detail .user-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 5px 0;
    display: none;
    z-index: 1000;
}
/* 使用伪元素创建悬停桥接，防止鼠标移动断开 */
.header-detail .user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.header-detail .user-section:hover .user-dropdown,
.header-detail .user-dropdown:hover {
    display: block;
}
.header-detail .user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}
.header-detail .user-dropdown .dropdown-item:hover {
    background: #f5f5f5;
    color: #ff6b35;
}
.header-detail .user-dropdown .dropdown-item i {
    margin-right: 8px;
    font-size: 16px;
}
.author-card{
    cursor: pointer;
}