/* 看板娘核心样式 - 保持在左下角 */
#live2dcanvas {
    position: fixed !important;
    left: 5px !important;
    bottom: 0px !important;
    width: 170px !important;
    height: 800px !important;
    z-index: 999 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 隐藏/显示按钮（上方） */
#catToggleBtn {
    position: fixed !important;
    left: 170px !important;
    bottom: 40px !important;
    z-index: 1000 !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    background: #5b6ee1;
    color: white;
    border: none;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(91, 110, 225, 0.4);
}

#catToggleBtn:hover {
    background: #7280e3;
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(91, 110, 225, 0.6);
}

/* 提示按钮（下方） */
#catInfoBtn {
    position: fixed !important;
    left: 170px !important;
    bottom: 0px !important;
    z-index: 1000 !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50% !important;
    cursor: pointer;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

#catInfoBtn:hover {
    background: #5b9def;
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(74, 144, 226, 0.6);
}

/* 状态提示（隐藏按钮上方） */
#catStatus {
    position: fixed;
    left: 175px !important;
    bottom: 80px !important;
    z-index: 1000;
    padding: 5px 10px;
    background: rgba(91, 110, 225, 0.9);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    display: none;
    animation: fadeInOut 2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 提示信息（提示按钮上方） */
#catInfo {
    position: fixed;
    left: 175px !important;
    bottom: 40px !important;
    z-index: 1000;
    padding: 8px 12px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    display: none;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* h2保持橙色背景，修复宽度问题 */
h2 {
    background-color: #ff7a00;
    color: white;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* 确保宽度包含内边距，不超出容器 */
}

/* h3蓝色背景，修复超模问题 */
h3 {
    background-color: #4a90e2;
    color: white;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* 宽度计算包含内边距 */
    width: 100%; /* 保持满宽但不超出容器 */
    margin-left: 0; /* 移除可能导致超出的外边距 */
    margin-right: 0;
}

/* 确保内容可交互 */
#home, .post, .entry, #toc, article {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    padding: 0 15px; /* 给内容容器添加内边距，避免标题紧贴边缘 */
}

a, button, input, select, textarea {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}
    