/* ==================================== */
/* 底部导航栏样式 */
/* ==================================== */
.ainuo_foot_nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 99999;
    padding: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--line-grey);
    transition: all 0.5s;
}

html.protect-eye .ainuo_foot_nav {
    background: var(--bg-grey);
    border-top-color: var(--line-grey-dark);
}

.ainuo_foot_nav ul {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 15px; 
    margin: 0;
    list-style: none;
    height: 60px;
    position: relative;
}

.ainuo_foot_nav li {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 精准调整树洞和树屋的位置，让它们更靠近中间按钮 */
.ainuo_foot_nav li:nth-child(2) {
    margin-right: 40px;
    flex-grow: 1.5; 
}

.ainuo_foot_nav li:nth-child(4) {
    margin-left: 40px;
    flex-grow: 1.5; 
}

.ainuo_foot_nav li:nth-child(3) {
    flex-grow: 1;
}

.ainuo_foot_nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--black-light);
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.ainuo_foot_nav li a img {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    filter: grayscale(100%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.ainuo_foot_nav li a p {
    margin: 0;
    line-height: 1.2;
    color: var(--text-color-light);
}

.ainuo_foot_nav li a:hover img,
.ainuo_foot_nav li a.active img {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.ainuo_foot_nav li a:hover p,
.ainuo_foot_nav li a.active p {
    color: var(--color-brand);
}

/* ==================================== */
/* 中间发布按钮样式 (无阴影) */
/* ==================================== */
.post-button-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 100%;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.post-button {
    background: linear-gradient(to bottom, #FF8C00, #FF5F19);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: 3px solid var(--bg-white);
    transition: transform 0.3s ease;
}

html.protect-eye .post-button {
    border-color: var(--bg-grey);
    box-shadow: none;
}

/* 改变加号图标为叉号图标 */
.post-button img.plus-icon {
    width: 24px;
    height: 24px;
    filter: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-button.active img.plus-icon {
    opacity: 0;
    transform: rotate(45deg);
}

/* 新增：叉号图标样式 */
.post-button img.close-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    filter: none;
    opacity: 0;
    transform: rotate(-45deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-button.active img.close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* ==================================== */
/* 半圆形子菜单样式 - 增加了透明高斯模糊效果 */
/* ==================================== */
.sub-menu {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom center;
    /* 关键改动: 调整背景色为半透明，并添加高斯模糊 */
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 40px 40px 0 0;
    box-shadow: none;
    border-top: 1px solid var(--line-grey);
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 240px;
    height: 80px;
    padding: 0 10px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    /* 新增: 高斯模糊效果 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.protect-eye .sub-menu {
    /* 关键改动: 调整暗黑模式下的背景色为半透明 */
    background-color: rgba(60, 60, 60, 0.85);
    box-shadow: none;
    border-top-color: var(--line-grey-dark);
}

.sub-menu.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.sub-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-light);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sub-menu a:hover {
    transform: translateY(-3px);
}

.sub-menu a img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.sub-menu a p {
    font-size: 12px;
    margin: 0;
}

/* 底部留白 */
.ainuofoot_height {
    height: 60px;
    width: 100%;
}