/* === 首页深蓝金配色 (home-ocean-gold) === */
/* 仅改颜色：背景/导航/卡片/按钮/文字/边框；不动字体、布局、图片、功能 */
/* 目标：背景#0F1826 顶底栏#172B41 卡片#20364D 按钮#27415C 选中#2A2A22 */
/*       金#E0B866 主文字#F2F5F8 辅文字#AEBED2 边框#304A63 */

/* 页面背景 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app uni-page[data-page="pages/index/index"],
html #app uni-page[data-page="pages/index/index"] .center[data-v-19ec4d18],
html #app uni-page[data-page="pages/index/index"] .content[data-v-19ec4d18] {
    background: #0F1826 !important;
}
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) body,
html #app uni-page[data-page="pages/index/index"] ~ body {
    background: #0F1826 !important;
}

/* 顶部栏 + 公告条 */
html #app uni-page[data-page="pages/index/index"] .head,
html #app uni-page[data-page="pages/index/index"] .header,
html #app uni-page[data-page="pages/index/index"] .uni-noticebar {
    background: #172B41 !important;
}

/* 卡片 + 边框 */
html #app uni-page[data-page="pages/index/index"] .mvbox[data-v-236020b3],
html #app uni-page[data-page="pages/index/index"] .h5-cards64 > .mvbox,
html #app uni-page[data-page="pages/index/index"] .home-service-float {
    background: #20364D !important;
    border-color: #304A63 !important;
}

/* 按钮：换一批 / 查看更多 / 搜索 / 悬浮控件 */
html #app uni-page[data-page="pages/index/index"] .morebox .more,
html #app uni-page[data-page="pages/index/index"] .morebox .reflash,
html #app uni-page[data-page="pages/index/index"] .home-keyword-search > button,
html #app uni-page[data-page="pages/index/index"] .home-install-shortcuts > button {
    background: #27415C !important;
    border-color: #304A63 !important;
}

/* 选中项：底栏选中背景 + 分类选中下划线背景 */
html #app uni-page[data-page="pages/index/index"] .custom-tabbar .tabbar-item.active,
html #app uni-page[data-page="pages/index/index"] .tabItemTitleActive {
    background: #2A2A22 !important;
}

/* 强调金：选中文字/图标/按钮文字/VIP */
html #app uni-page[data-page="pages/index/index"] .custom-tabbar .tabbar-item.active .text,
html #app uni-page[data-page="pages/index/index"] .custom-tabbar .tabbar-item.active svg,
html #app uni-page[data-page="pages/index/index"] .custom-tabbar .tabbar-item.active path,
html #app uni-page[data-page="pages/index/index"] .tabItemTitleActive,
html #app uni-page[data-page="pages/index/index"] .morebox .more,
html #app uni-page[data-page="pages/index/index"] .morebox .reflash,
html #app uni-page[data-page="pages/index/index"] .viptips {
    color: #E0B866 !important;
}
html #app uni-page[data-page="pages/index/index"] .tabItemTitleActive::after,
html #app uni-page[data-page="pages/index/index"] .uni-noticebar .uni-icons,
html #app uni-page[data-page="pages/index/index"] .h5-vip-badge {
    background: #E0B866 !important;
    color: #E0B866 !important;
}

/* 主文字 / 辅助文字 */
html #app uni-page[data-page="pages/index/index"] .mvname,
html #app uni-page[data-page="pages/index/index"] .section-heading40,
html #app uni-page[data-page="pages/index/index"] .uni-noticebar .uni-noticebar__content-text {
    color: #F2F5F8 !important;
}
html #app uni-page[data-page="pages/index/index"] .h5-count64,
html #app uni-page[data-page="pages/index/index"] .mvtips,
html #app uni-page[data-page="pages/index/index"] .tabbar-item:not(.active) .text,
html #app uni-page[data-page="pages/index/index"] .tabItemTitle {
    color: #AEBED2 !important;
}

/* 通用边框 */
html #app uni-page[data-page="pages/index/index"] .mvbox,
html #app uni-page[data-page="pages/index/index"] .home-keyword-field,
html #app uni-page[data-page="pages/index/index"] .home-service-float {
    border: 1px solid #304A63 !important;
}

/* 客服按钮保持金色底、深色字 */
html #app uni-page[data-page="pages/index/index"] .home-service-link {
    background: #E0B866 !important;
    color: #18283A !important;
}

/* 选中项背景 #2A2A22：压过 home-btn-tune 的底栏整条背景 */
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item:first-child.active,
html[data-site-palette="midnight"] body:has(uni-page[data-page="pages/index/index"]) #app .custom-tabbar .tabbar-item.active[data-v-f6b1133f] {
    background: #2A2A22 !important;
}

/* === 悬浮栏与"查看更多"统一配色 (dock-color) === */
/* 背景 #27415C / 边框 #304A63 / 文字图标 #E0B866；仅改颜色 */
html #app uni-page[data-page="pages/index/index"] .home-install-controls > .home-install-shortcuts > button,
html #app uni-page[data-page="pages/index/index"] .home-install-controls > button.home-install-toggle,
html #app uni-page[data-page="pages/index/index"] .home-service-float .home-install-shortcuts > button,
html #app uni-page[data-page="pages/index/index"] .home-service-float .home-install-toggle {
    background: #27415C !important;
    border: 1px solid #304A63 !important;
    border-color: #304A63 !important;
    color: #E0B866 !important;
}
html #app uni-page[data-page="pages/index/index"] .home-install-shortcuts > button svg,
html #app uni-page[data-page="pages/index/index"] .home-install-shortcuts > button path,
html #app uni-page[data-page="pages/index/index"] .home-install-toggle svg,
html #app uni-page[data-page="pages/index/index"] .home-install-toggle path {
    stroke: #E0B866 !important;
}
/* 客服按钮保持金底深字 */
html #app uni-page[data-page="pages/index/index"] .home-service-link,
html #app uni-page[data-page="pages/index/index"] .home-service-link span {
    background: #E0B866 !important;
    color: #18283A !important;
}
