/* =================================================================
   Page Header - 页面头部组件
   ================================================================= */

/* ==================== 文件说明 ====================
 * 文件名称: page-header.css
 * 所属层级: components（组件层）
 * 文件用途: 内页顶部标题区域样式（标题+图标）
 * 应用场景: 列表页、详情页的头部区域
 * 依赖关系: 依赖 base/variables.css
 * 维护说明: 可复用的页面头部组件
 * ================================================== */

/* ==================== 目录结构 ====================
 * 1. 头部容器布局
 * 2. 左侧内容区（标题+描述）
 * 3. 标题样式
 * 4. 描述文字样式
 * 5. 主题适配（暗色模式）
 * 6. 响应式适配（移动端）
 * ================================================== */

/* 页面头部容器 */
.page-header {
    padding: 0 0 60px;
    position: relative;
    overflow: hidden; /* 防止水印溢出 */
}

/* ==================== 新增：父级分类眉题 ==================== */
.category-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1); /* 默认蓝色背景淡色 */
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .category-eyebrow {
    background: rgba(59, 130, 246, 0.2);
}

.eyebrow-icon {
    display: flex;
    align-items: center;
}

.page-header-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1; /* 确保内容在水印之上 */
}

.page-header-left {
    flex: 1;
    min-width: 0;
}

/* 页面标题 */
.page-title {
    font-size: 68px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

/* 页面副标题 */
.page-subtitle {
    font-size: 30px;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-line;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* 右侧分类图片 */
.page-header-right {
    margin-left: 40px;
    flex-shrink: 0;
}

.category-image {
    max-width: 700px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* ==================== 响应式设计 ==================== */

/* iPad端: 768px - 1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .page-header {
        padding: 0 0 48px;
    }

    .page-title {
        font-size: 48px;
    }

    .page-subtitle {
        font-size: 24px;
    }

    .page-header-right {
        margin-left: 30px;
    }

    .category-image {
        max-width: 500px;
    }
}

/* 移动端: 0 - 767px */
@media (max-width: 767px) {
    .page-header {
        padding: 0 0 32px;
    }

    .page-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .page-header-right {
        margin-left: 0;
        margin-top: 20px;
        align-self: center;
    }

    .category-image {
        max-width: 300px;
    }
}

