/* ======================================================
   Lin Notes – Flexiva 稳定样式
   作者：你自己
   作用：Hero / Canvas / Notes 不被主题覆盖
====================================================== */

/* ---------- 1. Hero 容器 ---------- */
.lin-hero {
    position: relative !important;
    min-height: 40vh !important;
    width: 100% !important;
    overflow: visible !important;
    z-index: 10 !important;
}

/* ---------- 2. 背景层 ---------- */
.lin-hero-bg {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
}

/* ---------- 3. Canvas 层 ---------- */
.lin-hero canvas,
.lin-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* ---------- 4. 内容层 ---------- */
.lin-hero-content {
    position: relative !important;
    z-index: 2 !important;
    color: #fff !important;
    padding: clamp(2rem, 5vw, 4rem) !important;
}

/* ---------- 5. 强制主题 Header / Title 不覆盖 ---------- */
body .site-header,
body .page-header,
body .entry-header,
body .dt_pagetitle {
    position: relative !important;
    z-index: 0 !important; /* ⭐ 保证低于 Canvas */
}

/* ---------- 6. 禁止 Flexiva Hero 遮罩 ---------- */
.lin-hero::before,
.lin-hero::after {
    content: none !important;
}

/* ---------- 7. Gutenberg Group 兼容 ---------- */
.wp-block-group.lin-hero {
    padding: 0 !important;
    margin: 0 !important;
}
