/*
 Theme Name:   Nerio Child
 Theme URI:    https://nerio.rstheme.com/
 Description:  Nerio Child
 Author:       RSTheme
 Author URI:   http://rstheme.com
 Template:     nerio
 Version:      1.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */
/* ============================================================
   BQEAI v2 配色系统 — 2026-07-05
   主色: #114232 (墨绿 木) | 点缀: #9B2423 (暗红 火)
   主背景: #F2F6F0 (木气灰白，忌金)
   ============================================================ */
:root {
  /* ── 主色调 ── */
  --color-primary:            #114232;
  --color-primary-hover:      #0D3628;
  --color-primary-active:     #09261E;
  --color-primary-light:      #1A5A42;
  --color-primary-subtle:     #E4EDE0;
  /* ── 点缀色 ── */
  --color-accent:             #9B2423;
  --color-accent-hover:       #B82B2A;
  --color-accent-active:      #7E1D1C;
  /* ── 背景系统（去金增木）── */
  --bg-page:                  #F2F6F0;
  --bg-section-alt:           #EDF2EA;
  --bg-card:                  #F7FAF5;
  --bg-card-hover:            #EDF2EA;
  --bg-nav:                   #114232;
  --bg-nav-deep:              #0A2E26;
  --bg-hero:                  #EDF2EA;
  --bg-footer:                #0A2E26;
  --bg-input:                 #F7FAF5;
  --bg-tag:                   #E4EDE0;
  --bg-highlight:             #E4EDE0;
  /* ── 文字系统 ── */
  --text-heading:             #114232;
  --text-body:                #3A5A4A;
  --text-secondary:           #6B8B7B;
  --text-placeholder:         #8CA09A;
  --text-on-dark:             #FFFFFF;
  --text-on-dark-body:        #C0D0C8;
  --text-on-dark-dim:         #A0B0A8;
  --text-accent:              #9B2423;
  --text-link:                #114232;
  --text-link-hover:          #9B2423;
  /* ── 边框 ── */
  --border-default:           #D3DDD6;
  --border-light:             #E4EDE0;
  --border-input:             #D3DDD6;
  --border-input-focus:       #114232;
  --border-card:              #D3DDD6;
  /* ── 按钮 ── */
  --btn-primary-bg:           #114232;
  --btn-primary-text:         #FFFFFF;
  --btn-primary-hover:        #0D3628;
  --btn-outline-border:       #114232;
  --btn-outline-text:         #114232;
  --btn-outline-hover-bg:     #E4EDE0;
  --btn-accent-bg:            #9B2423;
  --btn-accent-text:          #FFFFFF;
  --btn-accent-hover:         #B82B2A;
  /* ── 阴影 ── */
  --shadow-sm:                0 1px 4px rgba(17, 66, 50, 0.06);
  --shadow-md:                0 2px 12px rgba(17, 66, 50, 0.08);
  --shadow-lg:                0 8px 32px rgba(17, 66, 50, 0.12);
  --shadow-card:              0 2px 12px rgba(17, 66, 50, 0.08);
  --shadow-card-hover:        0 6px 24px rgba(17, 66, 50, 0.14);
  /* ── 圆角 ── */
  --radius-xs:                4px;
  --radius-sm:                6px;
  --radius-md:                8px;
  --radius-lg:                12px;
  --radius-full:              9999px;
}
/* ============================================================
   Elementor 全局颜色变量覆盖
   覆盖原橙色 #F99A1C 系统
   ============================================================ */
body {
  --e-global-color-primary: #114232 !important;
  --e-global-color-secondary: #9B2423 !important;
  --e-global-color-text: #3A5A4A !important;
  --e-global-color-accent: #9B2423 !important;
  --e-global-color-7c24774: #0A2E26 !important;
  --e-global-color-81aa0b4: #114232 !important;
  --e-global-color-f69366a: #F2F6F0 !important;
  --e-global-color-99b6f14: #0D3628 !important;
  --e-global-color-4f49e74: #D3DDD6 !important;
  --e-global-color-c30db5b: #F5F5F5 !important;/* 柔白 */
  --e-global-color-ba063a4: #F5F5F5 !important;/* 柔白 */
  background-color: #F2F6F0 !important;
}
/* ── 页面背景 ── */
.elementor-kit-7287,
.elementor-page,
.page-id-1520,
.site-main {
  background-color: #F2F6F0 !important;
}
/* ── 区块交替底色 ── */
.section-alt,
.elementor-section.section-alt {
  background-color: #EDF2EA !important;
}
/* ── 卡片背景 ── */
.elementor-widget-container,
.elementor-element .elementor-widget-wrap {
  background-color: transparent;
}
/* ── 导航栏背景 ── */
.elementor-element.elementor-section-stretched > .elementor-container,
.elementor-widget-nav-menu .elementor-nav-menu--main {
  background-color: transparent;
}
/* ── 页脚 ── */
.site-footer,
.elementor-element[data-id*="footer"] {
  background-color: #0A2E26 !important;
}
/* ── 链接颜色 ── */
a:not(.elementor-button):not(.ultimate-tag-cloud-word):not(.post-cat) {
  color: #114232 !important;
}
a:not(.elementor-button):not(.ultimate-tag-cloud-word):not(.post-cat):hover {
  color: #9B2423 !important;
}
/* ── 标题颜色 ── */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  color: #114232 !important;
}
/* ── 按钮覆盖 ── */
.elementor-button {
  background-color: #114232 !important;
  color: #FFFFFF !important;
}
.elementor-button:hover {
  background-color: #0D3628 !important;
}
.elementor-button.elementor-button-accent,
.elementor-button[class*="accent"] {
  background-color: #9B2423 !important;
}
.elementor-button.elementor-button-accent:hover {
  background-color: #B82B2A !important;
}
/* ════════════════════════════════════════════════════════════
   Nerio 主题专用选择器覆盖
   目标：彻底消除 #F99A1C 橙色和 #61993B 旧绿色
   ════════════════════════════════════════════════════════════ */
/* ── 链接/悬停色（Nerio 主题特有）── */
.nerio-blog-post-title a:hover,
.blog-title a:hover,
.post-title a:hover,
.entry-title a:hover,
.widget-title a:hover {
  color: #114232 !important;
}
/* ── 分类标签/徽章 ── */
.blog-cat a,
.post-cat a,
.category-link,
.blog-meta .blog-cat {
  background: #114232 !important;
  color: #FFFFFF !important;
}
.blog-cat a:hover,
.post-cat a:hover {
  background: #0D3628 !important;
}
/* ── 按钮变体（Nerio 默认按钮）── */
.btn-common,
.btn-primary,
.btn-secondary,
.theme-button,
.wp-block-button__link {
  background-color: #114232 !important;
  color: #FFFFFF !important;
}
.btn-common:hover,
.btn-primary:hover {
  background-color: #0D3628 !important;
}
/* ── 导航菜单 ── */
.main-menu li a,
.nav-menu li a,
.rstb-nav-menu a {
  color: #C0D0C8 !important;
}
.main-menu li a:hover,
.nav-menu li.current-menu-item a,
.rstb-nav-menu a:hover {
  color: #FFFFFF !important;
}
/* ── 页脚 ── */
.footer-area,
.site-footer,
.footer-top-area {
  background-color: #0A2E26 !important;
}
.footer-area a,
.site-footer a {
  color: #A0B8AE !important;
}
.footer-area a:hover {
  color: #FFFFFF !important;
}
/* ── 分页 ── */
.pagination .page-numbers.current,
.pagination a:hover {
  background-color: #114232 !important;
  border-color: #114232 !important;
  color: #FFFFFF !important;
}
/* ── 选中/激活态 ── */
::selection {
  background-color: #114232 !important;
  color: #FFFFFF !important;
}
/* ── Elementor Tab / 手风琴 激活态 ── */
.elementor-tabs .elementor-tab-title.elementor-active,
.elementor-accordion .elementor-tab-title.elementor-active {
  color: #114232 !important;
  border-color: #114232 !important;
}
.elementor-tabs .elementor-tab-title.elementor-active:before {
  background-color: #114232 !important;
}
/* ── Elementor 进度条 ── */
.elementor-progress-bar {
  background-color: #114232 !important;
}
/* ── Elementor 标签云 ── */
.elementor-widget-wp-widget-tag-cloud a {
  color: #114232 !important;
  background-color: #E4EDE0 !important;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.elementor-widget-wp-widget-tag-cloud a:hover {
  color: #9B2423 !important;
  background-color: #114232 !important;
}
[class*="rstheme"] .active,
[class*="nerio"] a:hover {
  color: #114232 !important;
}
/* ════════════════════════════════════════════════════════════
   Elementor 容器覆盖（导航栏头部旧色#2B2F32→墨绿）
   ════════════════════════════════════════════════════════════ */
/* 导航栏顶部深色条 */
div[data-id="55b32f8"],
.elementor-element[data-id="55b32f8"],
div[data-id="55c1be9"],
.elementor-element[data-id="55c1be9"] {
  --e-con-bg-color: #114232 !important;
  background-color: #114232 !important;
}
/* 导航栏主菜单区域背景 */
div[data-id="2e2190d"],
.elementor-element[data-id="2e2190d"] {
  --e-con-bg-color: #114232 !important;
  background-color: #114232 !important;
}
/* Hero 区域绿色背景 */
div[data-id="86e550d"],
.elementor-element[data-id="86e550d"] {
  --e-con-bg-color: #EDF2EA !important;
  background-color: #EDF2EA !important;
}
/* 页脚深色 */
section[data-id*="footer"],
.elementor-element[data-id*="footer"] {
  --e-con-bg-color: #0A2E26 !important;
  background-color: #0A2E26 !important;
}
/* 所有白色容器检查 - 卡片应使用 #F7FAF5 */
.elementor-element.e-con.e-flex {
  --e-con-bg-color-rollover: transparent;
}
/* ── 类名选择器保险（data-id 不匹配时的备胎）── */
.elementor-element-55b32f8,
.elementor-element-55c1be9 {
  --e-con-bg-color: #114232 !important;
  background-color: #114232 !important;
}
.elementor-element-55c1be9 .item-wrapper,
.elementor-element-55c1be9 [class*="date"],
.elementor-element-55c1be9 [class*="social"] {
  color: #C0D0C8 !important;
}
.elementor-element-2e2190d {
  --e-con-bg-color: #114232 !important;
  background-color: #114232 !important;
}
/* ════════════════════════════════════════════════════════════
   最高优先级覆盖（匹配 Elementor 内联 CSS 的权重）
   解决：内联 CSS 用 .elementor-1520 前缀，权重高于普通类
   ════════════════════════════════════════════════════════════ */
/* 页面 1520 = Home 页面专用覆盖 */
.page-id-1517 .elementor-element-55b32f8:not(.elementor-motion-effects-element-type-background),
.page-id-1517 .elementor-element-55b32f8 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body .elementor-1517 .elementor-element-55b32f8:not(.elementor-motion-effects-element-type-background) {
  background-color: #114232 !important;
  --e-con-bg-color: #114232 !important;
}
.page-id-1517 .elementor-element-55c1be9:not(.elementor-motion-effects-element-type-background),
.page-id-1517 .elementor-element-55c1be9 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body .elementor-1517 .elementor-element-55c1be9:not(.elementor-motion-effects-element-type-background) {
  background-color: #114232 !important;
  --e-con-bg-color: #114232 !important;
}
.page-id-1517 .elementor-element-2e2190d:not(.elementor-motion-effects-element-type-background),
.page-id-1517 .elementor-element-2e2190d > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body .elementor-1517 .elementor-element-2e2190d:not(.elementor-motion-effects-element-type-background) {
  background-color: #114232 !important;
  --e-con-bg-color: #114232 !important;
}
/* 导航栏文字颜色 */
.page-id-1517 .elementor-element-55c1be9,
.page-id-1517 .elementor-element-55c1be9 .item-wrapper,
.page-id-1517 .elementor-element-55c1be9 [class*="date"],
.page-id-1517 .elementor-element-55c1be9 [class*="social"] a {
  color: #C0D0C8 !important;
}
/* 导航栏社交图标 hover */
.page-id-1517 .elementor-element-55c1be9 [class*="social"] a:hover {
  color: #FFFFFF !important;
}
/* ════════════════════════════════════════════════════════════
   配色巡检修复 v2.1 — 2026-07-05
   覆盖 Nerio 主题残留的旧色
   ════════════════════════════════════════════════════════════ */
/* ── 正文颜色 #616C74 → #3A5A4A ── */
.nerio-page-wrapper,
.nerio-content-wrapper,
.site-main,
.page-wrapper,
.entry-content,
.post-content,
.elementor-widget-text-editor,
.elementor-text-editor,
p:not(.has-text-color) {
  color: #3A5A4A !important;
}
/* ── 输入框纯白 → 木气灰白 ── */
input, textarea, select,
.wpcf7 input, .wpcf7 textarea,
.wpcf7-form input, .wpcf7-form textarea {
  background-color: #F7FAF5 !important;
  border-color: #D3DDD6 !important;
  color: #3A5A4A !important;
}
/* ── 输入框 focus ── */
input:focus, textarea:focus, select:focus {
  border-color: #114232 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(17, 66, 50, 0.15) !important;
}
/* ── 表单标签 ── */
label, .wpcf7-form label {
  color: #114232 !important;
}
/* ── 联系表单提交按钮（修复蓝色 #0073FF）── */
.wpcf7-submit,
.wpcf7 input[type="submit"],
button[type="submit"],
.contact-form input[type="submit"] {
  background-color: #114232 !important;
  color: #FFFFFF !important;
  border: none !important;
}
.wpcf7-submit:hover,
.wpcf7 input[type="submit"]:hover {
  background-color: #0D3628 !important;
}
/* ── 桌面版导航栏文字 ── */
.rstb-nav-menu.nav-horizontal .primary-menu > .menu-item > .menu-item-link {
  color: #C0D0C8 !important;
}
.rstb-nav-menu.nav-horizontal .primary-menu > .menu-item > .menu-item-link:hover {
  color: #FFFFFF !important;
}
/* ── 表格表头 ── */
th, thead th, .wp-block-table th,
table th, table thead th {
  background-color: #114232 !important;
  color: #FFFFFF !important;
  border-color: #D3DDD6 !important;
}
/* ── 表格斑马纹 ── */
tr:nth-child(even), tbody tr:nth-child(even) {
  background-color: #F2F6F0 !important;
}
tr:nth-child(odd), tbody tr:nth-child(odd) {
  background-color: #F7FAF5 !important;
}
/* ── 文章特色图片下面的分类标签 ── */
.blog-cat a, .post-cat a, .category-link {
  background-color: #114232 !important;
  color: #FFFFFF !important;
}
/* ── 卡片背景 ── */
.elementor-element .elementor-widget-wrap,
.elementor-widget-container {
  background-color: transparent;
}
.card, [class*="card"], [class*="post-card"],
.fpg-post-grid .fpg-post-item {
  background-color: #F7FAF5 !important;
}
/* ── 页脚残留旧色覆盖 ── */
.site-footer, .footer-area, .footer-top-area, .footer-bottom-area,
.elementor-element[data-id*="footer"] {
  background-color: #0A2E26 !important;
}
.site-footer a, .footer-area a {
  color: #A0B8AE !important;
}
.site-footer a:hover, .footer-area a:hover {
  color: #FFFFFF !important;
}
/* ════════════════════════════════════════════════════════════
   导航栏 hover 修复 — 黄→暗红
   ════════════════════════════════════════════════════════════ */
/* 墨绿背景上的导航文字默认灰白 */
.rstb-nav-menu a,
.rstb-nav-menu .menu-item-link,
.primary-menu > .menu-item > a {
  color: #C0D0C8 !important;
}
/* hover → 暗红 */
.rstb-nav-menu a:hover,
.rstb-nav-menu .menu-item-link:hover,
.primary-menu > .menu-item > a:hover,
.rstb-nav-menu .menu-item.current-menu-item > a {
  color: #9B2423 !important;
}
/* 桌面版主导航 hover */
@media (min-width: 1025px) {
  .elementor-1520 .rstb-nav-menu.nav-horizontal .primary-menu > .menu-item > .menu-item-link:hover {
    color: #9B2423 !important;
  }
}
/* footer 区域的导航链接 hover 修复 */
.site-footer a:hover,
.footer-area a:hover,
.elementor-element-4bc5ef6 .rstb-nav-menu a:hover {
  color: #9B2423 !important;
}
.fpg-post-grid .fpg-post-cat .post-cat:hover {
  --catCurrentBgColor: #9B2423 !important;
}
body .fpg-post-grid .fpg-post-cat a:hover,
body .fpg-post-grid .fpg-post-cat .post-cat:hover {
  background: #9B2423 !important;
  color: #FFFFFF !important;
}

/* ============================================================
   导航二级菜单修复 — 2026-07-15
   背景色 #121418 太暗，看不清文字
   ============================================================ */

/* 所有子菜单背景改为白色/浅色 + 深色文字 */
.rstb-nav-menu .primary-menu .sub-menu,
.elementor-1520 .elementor-element .rstb-nav-menu .primary-menu .sub-menu {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    border-radius: 0 0 8px 8px !important;
    padding: 8px 0 !important;
}

/* 子菜单链接文字颜色 */
.rstb-nav-menu .primary-menu .sub-menu a,
.elementor-1520 .elementor-element .rstb-nav-menu .primary-menu .sub-menu a {
    color: #1a1a1a !important;
    padding: 10px 24px !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
}

/* 子菜单链接悬停 */
.rstb-nav-menu .primary-menu .sub-menu a:hover,
.elementor-1520 .elementor-element .rstb-nav-menu .primary-menu .sub-menu a:hover {
    color: #114232 !important;
    background-color: #f0f5ee !important;
    padding-left: 28px !important;
}

/* 加强覆盖 — 防止Elementor重新生成时恢复深色背景 */
.primary-menu .sub-menu,
ul.sub-menu {
    background-color: #ffffff !important;
}

.primary-menu .sub-menu li a,
ul.sub-menu li a {
    color: #1a1a1a !important;
}

.primary-menu .sub-menu li a:hover,
ul.sub-menu li a:hover {
    color: #114232 !important;
    background-color: #f0f5ee !important;
}
