/* ===== 页面头部样式 - 完全外联 ===== */

/* 前台页面头部 - 统一高度118px，无圆角，延伸到导航栏边缘 */
body.sidebar-layout .page-header-enhanced {
    position: relative;
    background: linear-gradient(135deg, #00b42a 0%, #009a24 60%, #007a1e 100%);
    padding: 28px 30px;
    margin: 0 -15px 25px -15px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 180, 42, 0.15);
    min-height: 118px;
    height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* 交易中心 - 深绿色渐变 */
body.sidebar-layout .page-header-enhanced.trade-header {
    background: linear-gradient(135deg, #14532d 0%, #166534 40%, #15803d 65%, #22c55e 100%);
}

/* 数据导入 - 蓝绿色渐变 */
body.sidebar-layout .page-header-enhanced.import-header {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
}

/* 标本列表 - 翠绿色渐变 */
body.sidebar-layout .page-header-enhanced.specimens-header {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #22c55e 100%);
}

/* 管理后台头部 - 统一高度118px，无圆角，负margin延伸到边缘 */
body.admin-panel .page-header-enhanced {
    position: relative;
    background: linear-gradient(135deg, #00b42a 0%, #009a24 60%, #007a1e 100%);
    padding: 28px 30px;
    margin: -30px -30px 25px -30px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 180, 42, 0.15);
    min-height: 118px;
    height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* 头部内容区域 */
.page-header-enhanced > .page-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 标题区域 */
.page-header-enhanced .page-title-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* 图标包装器 */
.page-header-enhanced .page-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.page-header-enhanced .page-icon-wrapper i {
    font-size: 22px;
    color: #fff;
}

/* 标题文字 */
.page-header-enhanced .page-title-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* 副标题 */
.page-header-enhanced .page-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 5px 0 0 0;
    font-weight: 400;
}

/* 装饰区域 */
.page-header-enhanced .page-header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.page-header-enhanced .deco-mushroom {
    position: absolute;
    pointer-events: none;
}

.page-header-enhanced .dm-1 {
    width: 160px;
    height: auto;
    top: -50px;
    right: -20px;
}

.page-header-enhanced .dm-2 {
    width: 100px;
    height: auto;
    bottom: -40px;
    left: 8%;
}

.page-header-enhanced .dm-3 {
    width: 70px;
    height: auto;
    top: -15px;
    right: 20%;
}

/* 顶部工具栏 */
.page-header-enhanced .topbar-right {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 768px) {
    body.sidebar-layout .page-header-enhanced {
        padding: 24px 20px;
        margin: 0 0 20px 0;
        border-radius: 0;
        min-height: 85px;
        height: auto;
    }

    body.admin-panel .page-header-enhanced {
        padding: 24px 20px;
        margin: -15px -15px 20px -15px;
        border-radius: 0;
        min-height: 85px;
        height: auto;
    }

    .page-header-enhanced .topbar-right {
        display: none;
    }

    .page-header-enhanced .page-icon-wrapper {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .page-header-enhanced .page-icon-wrapper i {
        font-size: 16px;
    }

    .page-header-enhanced .page-title-text h1 {
        font-size: 19px;
    }

    .page-header-enhanced .page-subtitle {
        font-size: 12px;
        margin-top: 4px;
    }

    .page-header-enhanced .dm-1 {
        width: 110px;
        top: -35px;
        right: -15px;
    }

    .page-header-enhanced .dm-2,
    .page-header-enhanced .dm-3 {
        display: none;
    }
}
