/* === 首页按钮与底栏配色微调 (home-btn-tune) === */
/* 仅改颜色；字体栈保持 Noto Sans SC；不改布局/图片/图标/功能 */

/* 1. 查看更多 / 换一批：同款深蓝底 + 金边金字 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app uni-page[data-page="pages/index/index"] .morebox .more,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app uni-page[data-page="pages/index/index"] .morebox .reflash,
html #app uni-page[data-page="pages/index/index"] .center[data-v-19ec4d18] .morebox[data-v-19ec4d18] > .more[data-v-19ec4d18],
html #app uni-page[data-page="pages/index/index"] .center[data-v-19ec4d18] .morebox[data-v-19ec4d18] > .reflash[data-v-19ec4d18] {
    background: #27415C !important;
    border: 1px solid #304A63 !important;
    border-color: #304A63 !important;
    color: #E0B866 !important;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 600 !important;
}

/* 2. 底部悬浮栏：添加到桌面 / 下载APP / 关闭 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .home-install-shortcuts > button,
html #app .home-install-dock .home-install-controls :is(.home-install-shortcuts > button, .home-install-toggle) {
    background: #27415C !important;
    border-color: #304A63 !important;
    color: #E0B866 !important;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 600 !important;
}

/* 3. 客服按钮：金色底、深色字 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .home-service-link,
html #app .home-install-dock > .home-service-link {
    background: #E0B866 !important;
    border-color: #E0B866 !important;
    color: #18283A !important;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 600 !important;
}

/* 4. 底部导航：所有项目统一深蓝 #172B41；选中项仅金色图标+文字，无棕色背景 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .tabbar-content,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .h5-semantic-nav,
html #app .custom-tabbar .tabbar-item:first-child.active,
html #app .custom-tabbar .tabbar-item.active[data-v-f6b1133f] {
    background: #172B41 !important;
    border-color: #304A63 !important;
}
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item .text,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .h5-semantic-nav .text {
    color: #E0B866 !important;
    font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
    font-weight: 600 !important;
}
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item.active .text,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item.active .h5-ui-label62,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item.active svg,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item.active path,
html #app .custom-tabbar .tabbar-item:first-child.active .text,
html #app .custom-tabbar .tabbar-item:first-child.active svg,
html #app .custom-tabbar .tabbar-item:first-child.active path {
    color: #E0B866 !important;
    stroke: #E0B866 !important;
    font-weight: 600 !important;
}

/* 最终覆盖：悬浮栏按钮与客服按钮（压过内联 !important） */
html body .home-install-dock .home-install-controls > .home-install-shortcuts > button,
html body .home-install-dock .home-install-controls > .home-install-shortcuts > button > span {
    background: #27415C !important;
    border-color: #304A63 !important;
    color: #E0B866 !important;
    font-weight: 600 !important;
}
html body .home-install-dock > .home-service-link,
html body .home-install-dock > .home-service-link > span {
    background: #E0B866 !important;
    border-color: #E0B866 !important;
    color: #18283A !important;
    font-weight: 600 !important;
}

/* 关闭按钮同背景 + 图标金色 */
html body .home-install-dock .home-install-controls > button.home-install-toggle,
html #app .home-install-dock .home-install-toggle {
    background: #27415C !important;
    border-color: #304A63 !important;
    color: #E0B866 !important;
}
html .home-install-dock button svg path,
html .home-install-dock button svg {
    stroke: #E0B866 !important;
}
