
/* ---------- 阿里妈妈数黑体（自托管子集：品牌名/Banner 主标题用字 + 数字，约 4KB） ----------
   与手机端左上角站点名同款字体；桌面系统若未安装该字体也按此文件渲染，
   不会随用户电脑字体设置变化（font-weight 用区间声明，避免浏览器再合成加粗） */
@font-face {
    font-family: "Alimama ShuHeiTi";
    src: url("fonts/AlimamaShuHeiTi-sub.woff2?v=20261110") format("woff2");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* ============ 覆盖 pintuer.css 里这条罪魁祸首 ============ */
/* body { border-top: solid 1px #EBEBEB; margin-top: -1px; padding-top: 15px } */
body {
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* pintuer.css 还有 body { padding: 15px 20px } */
body {
    padding: 0 !important;
}
/* ============ 全局：去掉文本框内阴影（跨浏览器一致） ============
   pintuer.css 的 .input 默认带 box-shadow:0 1px 1px rgba(0,0,0,.075) inset，
   Chrome 会在输入框顶部渲染出一道“内投影”，360 等浏览器不显示，造成视觉不一致。
   这里统一清除；各页面自定义的聚焦光圈属于更高优先级规则，不受影响。 */
input.input,
input:not([type]),
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea {
    box-shadow: none !important;
}
/* ============ 全局顶部间距清零（不动背景色！） ============ */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    overflow-x: hidden !important;
}
body {
    background: var(--bg);
}
/* 只清顶部 margin，不动背景 */
body > * {
    margin-top: 0 !important;
}
body::before, body::after {
    display: none !important;
}

/* ============================================================
   PC 窄屏 → 手机端：品牌切换加载态（根治方案）
   1) 窄屏下桌面版式宽度锁死 1024px（见文件末尾），内容不再重排、不再被压扁 —— 01.png 的根源消除；
   2) 切换判断改为 matchMedia 即时触发（header.htm 内联脚本），取消 300ms 防抖；
   3) reload 是服务端换模板必须付出的时间，用品牌加载态填充这段空档：柔光弥散底 + 心形脉冲光环 + 文案。
   本层挂 html::before / html::after —— body 伪元素已被上方 display:none 清除，不可用。
   CSS 直接生效、不依赖 JS，保证首帧就被覆盖。 */
@media (max-width: 1023px) {
    html::before {
        content: '正在切换至移动版，请稍候…';
        position: fixed;
        inset: 0;
        z-index: 9999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 112px;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: #8A5257;
        background:
            radial-gradient(62% 55% at 16% 10%, rgba(255, 205, 178, 0.55) 0%, rgba(255, 205, 178, 0) 62%),
            radial-gradient(52% 58% at 88% 14%, rgba(255, 240, 196, 0.50) 0%, rgba(255, 240, 196, 0) 64%),
            radial-gradient(58% 52% at 84% 92%, rgba(198, 238, 232, 0.45) 0%, rgba(198, 238, 232, 0) 62%),
            linear-gradient(160deg, #FFF9F6 0%, #FCF0ED 50%, #F3FAF8 100%);
    }
    /* 品牌 logo 图标 + 向外扩散的光环（呼吸式加载动画）
       logo 地址由 header.htm 注入的 --yk-brand-logo 提供（后台 web_attr_13）；
       圆形底、内描边、投影与 ripple 动效保持原样 */
    html::after {
        content: '';
        position: fixed;
        left: 50%;
        top: 50%;
        width: 72px;
        height: 72px;
        margin: -94px 0 0 -36px;
        border-radius: 50%;
        background:
            var(--yk-brand-logo, none) center / 100% 100% no-repeat,
            radial-gradient(circle at 50% 45%, #E8434B 0%, #C8161D 100%);
        box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 28px rgba(200, 22, 29, 0.20);
        animation: yk-switch-ripple 1.6s ease-out infinite;
        z-index: 9999999;
    }
}

@keyframes yk-switch-ripple {
    0% {
        box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 28px rgba(200, 22, 29, 0.20), 0 0 0 0 rgba(200, 22, 29, 0.28);
    }
    70% {
        box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 28px rgba(200, 22, 29, 0.20), 0 0 0 22px rgba(200, 22, 29, 0);
    }
    100% {
        box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), 0 10px 28px rgba(200, 22, 29, 0.20), 0 0 0 22px rgba(200, 22, 29, 0);
    }
}

/* 覆盖 inline style 的 display:none — 必须用 !important */
.yk-nav-item:hover > ul.yk-dropdown {
    display: block !important;
}
.yk-nav-item:hover > .yk-dropdown {
    display: block !important;
}/* ============ 强制修复 li display 和 position — MUST BE FIRST ============ */
.yk-nav-item,
.yk-nav > li,
.yk-nav-bar .yk-nav li {
    display: block !important;
    position: relative !important;
    list-style: none !important;
}
.yk-nav-item > ul.yk-dropdown {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 999999999 !important;
}
.yk-nav-item:hover > ul.yk-dropdown {
    display: block !important;
}
/* ============================================
   营口市慈善总会 PC 端公共样式（header/footer）
   主色 #b91c1c
   ============================================ */

/* 主题变量 */
:root {
    --primary: #b91c1c;
    --primary-hover: #9a1717;
    --primary-light: #fef0f0;
    --gold: #c9a227;
    --text-primary: #303133;
    --text-regular: #606266;       /* body 默认正文色，保持 */
    --text-secondary: #777;        /* 浅灰辅助文字：日期、浏览量、次级说明 */
    --pc-text-soft: #777;          /* PC 副标题/简介文字（index.css / e-user.css 统一引用） */
    --border: #e4e7ed;
    --bg: #f7f7f7;
    --bg-soft: #fafafa;            /* 更淡的浅灰：通知公告每条信息底层容器 */
    --white: #ffffff;
    --shadow: none;
    --radius: 8px;
    --header-height: 100px;
    --nav-height: 50px;
    --banner-h: 550px;   /* 首页 banner 固定高度：有图/无图都一致 */
    --footer-bg: #1a1a2e;
    --container-width: 1440px;
}

body {
    background: var(--bg);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text-regular);
}

/* 防止 iconfont 字体加载前 FOUC */
.iconfont {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    font-style: normal !important;
    -webkit-font-smoothing: antialiased;
}



/* ===== 消除所有元素默认顶部 margin（修复 header 上方灰色间距）===== */
body, html, .yk-header, .yk-nav-bar, .yk-banner-wrap, main.yk-main,
.owl-carousel, .owl-stage, .owl-stage-outer, .owl-item,
.section, .blank, .blank-small, .blank-middle {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.navbar, .navbar-body, .nav, .nav-body {
    margin-top: 0 !important;
}/* ========== Header 顶部（Logo + 搜索 + 用户） ========== */
/* 顶部灰色间距终极修复：强制 body 无任何外部留白 */
html { margin: 0 !important; padding: 0 !important; }
body { margin: 0 !important; padding: 0 !important; }
body > * { margin-top: 0 !important; padding-top: 0 !important; }

.yk-header {
    background: var(--white) !important;
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    z-index: 1002;
}

.yk-header {
    height: var(--header-height);
    min-height: var(--header-height);
    background: var(--white);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.yk-header-inner {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* Logo（整体放大 30%：logo 44→56、主标题 18→24、副标题 11→14、间隙 12→16） */
.yk-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.yk-logo-img {
    max-height: 56px;
    max-width: none;
    object-fit: contain;
}

.yk-logo-text strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
    /* 与手机端左上角站点名同款数黑体（带 !important 覆盖下方全局微软雅黑强制） */
    font-family: "Alimama ShuHeiTi", "Microsoft YaHei", "微软雅黑", sans-serif !important;
}

.yk-logo-text em {
    font-size: 14px;
    color: var(--text-secondary);
    font-style: normal;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 4px;
}

/* ========== 全宽红色导航条 ========== */
.yk-nav-bar {
    width: 100%;
    height: var(--nav-height);
    min-height: var(--nav-height);
    background: var(--primary);
    position: sticky;
    top: var(--header-height);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: visible;
    margin-bottom: 30px;
}

/* 带 banner 的页面（首页轮播 / 栏目大图）banner 紧贴导航条，不加 30px 间距 */
body:has(.yk-banner-wrap) .yk-nav-bar,
body:has(.channel-banner) .yk-nav-bar {
    margin-bottom: 0;
}

.yk-nav-bar-inner {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    height: var(--nav-height);
    overflow: visible;
    position: relative;
}

/* 主导航 */
.yk-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.yk-nav-item {
    position: relative !important;
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    height: var(--nav-height);
    line-height: 1;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    list-style: none;
    font-weight: 400;
    transition: background 0.2s;
    cursor: pointer;
    z-index: 2;
}

.yk-nav-item > a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    white-space: nowrap;
}

.yk-nav-item:hover {
    background: rgba(0, 0, 0, 0.15);
    color: var(--white);
}

/* 红底导航上的链接：悬停保持白字，避免全局 a:hover 变红 */
.yk-nav-item > a:hover,
.yk-nav-item:hover > a,
.yk-nav-item.active > a {
    color: var(--white) !important;
}

.yk-nav-item.active {
    background: rgba(0, 0, 0, 0.25);
    color: var(--white);
    font-weight: 600;
}

/* a 标签统一 flex — 居中，加字号和图标 */
.yk-nav-item > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    gap: 0 !important;
}

/* Phosphor 图标 — 18px，与文字间隔 6px */
.yk-nav-item > a > i.ph,
.yk-nav-item > a > .ph {
    font-size: 18px !important;
    line-height: 1 !important;
    margin-right: 6px !important;
    margin-left: 0 !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 有箭头的 a — 文本和箭头之间加 4px 间隙 */
.yk-nav-item > a .icon-down, .yk-nav-item > a .ph-caret-down,
.yk-nav-item > a .icon-listarrow,
.yk-nav-item > a > .icon-down, .yk-nav-item > a > .ph-caret-down,
.yk-nav-item > a > .icon-listarrow {
    font-size: 12px !important; margin-left: 4px !important;
    margin-left: 4px !important;
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    opacity: 0.85 !important;
    float: none !important;
    line-height: 1 !important;
}

/* 没箭头的 a — 居中 */
.yk-nav-item > a {
    justify-content: center !important;
    padding: 0 16px !important;
}
/* 二级下拉 — bulletproof 三属性同时控制 */
.yk-dropdown,
ul.yk-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 160px !important;
    width: max-content !important;
    background: var(--primary) !important;
    border-radius: 0 0 6px 6px !important;
    padding: 6px 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
    margin-top: -1px !important;
    list-style: none !important;
    list-style-type: none !important;
    z-index: 99999 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    float: none !important;
    pointer-events: auto !important;
}

/* hover 显示 — 三种方式同时覆盖 */
.yk-nav-item:hover > .yk-dropdown {
    display: block !important;
}
.yk-nav-item:hover > ul.yk-dropdown {
    display: block !important;
}
.yk-nav-item.hover > .yk-dropdown,
.yk-nav-item.hover > ul.yk-dropdown {
    display: block !important;
}

/* 隐藏的小三角桥接 gap — 让鼠标从 a 移到 dd 不丢失 hover */
.yk-dropdown::before,
ul.yk-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    display: block;
}

.yk-dropdown li,
ul.yk-dropdown li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    display: block !important;
}

.yk-dropdown li a,
ul.yk-dropdown li a {
    display: block !important;
    padding: 8px 18px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.yk-dropdown li:last-child a,
ul.yk-dropdown li:last-child a {
    border-bottom: none !important;
}

.yk-dropdown li a:hover,
ul.yk-dropdown li a:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--white) !important;
}

/* 在线捐款按钮 - 旧冲突样式已移除，统一使用底部 .yk-nav-bar .yk-btn-donate 样式 */

/* ========== 右侧操作区 ========== */
.yk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 内联搜索框 - 时尚简洁：浅灰胶囊底 + 圆形红色按钮 */
.yk-search-form {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: 24px;
    overflow: visible;
    padding: 3px 4px;
    transition: all 0.3s;
}

.yk-search-form:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.yk-search-form input {
    border: 0;
    outline: 0;
    height: 36px;
    padding: 0 18px;
    width: 320px;
    background: transparent;
    font-size: 14px;
    color: var(--text-regular);
}

.yk-search-form button {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--white);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.yk-search-form button:hover {
    background: var(--primary-hover);
}

.yk-search-form button .iconfont {
    font-size: 16px;
}

/* 用户登录头像 - 严格限30px圆形 */
.dialogs.user-ico.yk-user-ico,
a.dialogs.user-ico.yk-user-ico,
.yk-actions .yk-user-ico,
.header .dialogs.user-ico,
.header a[class*="user-ico"],
.yk-header .user-ico {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    line-height: 45px !important;
    background: var(--primary-light) !important;
    border-radius: 50% !important;
    color: var(--primary) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: 2px solid var(--primary) !important;
    overflow: visible !important;
    outline: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: opacity 0.2s !important;
    vertical-align: middle !important;
    float: none !important;
}

/* 头像内部 img — 绝对限宽30px */
.dialogs.user-ico.yk-user-ico img,
.yk-actions .yk-user-ico img,
.header .dialogs.user-ico img,
.header a[class*="user-ico"] img,
.yk-header .user-ico img,
.dialogs.user-ico img,
a.user-ico img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    vertical-align: middle !important;
}

/* iconfont 降级 */
.dialogs.user-ico.yk-user-ico .iconfont,
.yk-actions .yk-user-ico .iconfont,
.header .dialogs.user-ico .iconfont {
    font-size: 20px !important;
    line-height: 1 !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
}



/* 覆盖 EYOUCMS 可能注入的 img inline style 和 width/height 属性 */
img[width][height][class*="head"],
img[src*="head"],
img[src*="avatar"],
.dialogs img,
.user-ico img,
a[class*="user-ico"] img,
a[class*="userinfo"] img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* ========== 防止刷新抖动(FOUC) ==========
   注：.yk-nav-bar 不能加 content-visibility:auto，
   paint containment 会把 position:absolute 的子菜单（top:100%）
   裁剪到导航条 50px 盒子之外，导致 hover 后 display:block 仍不可见。
   注2：.yk-header 同样不能加 content-visibility:auto，
   否则头像 hover 下拉菜单（position:fixed, top:104px）会被裁剪到
   .yk-header 100px 盒子之外导致不可见。 */
.yk-header {
    visibility: visible;
    content-visibility: visible;
    contain: none;
}
.yk-main {
    visibility: visible;
    content-visibility: auto;
}

/* ========== Footer 底部 ========== */
.yk-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.yk-footer-inner {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.yk-footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.yk-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.yk-footer-col p,
.yk-footer-col li {
    font-size: 13px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 !important;
    padding: 0 !important;
}

.yk-footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yk-footer-col li {
    list-style: none;
}

.yk-footer-col li a,
.yk-footer-col a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.3s;
}

.yk-footer-col li a:hover,
.yk-footer-col a:hover {
    color: var(--white);
}

.yk-footer-col .iconfont {
    color: var(--primary);
    margin-right: 6px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

/* 品牌区 */
.yk-footer-brand .yk-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.yk-footer-brand .yk-footer-logo img {
    max-height: 40px;
    max-width: 40px;
    object-fit: contain;
    background: var(--white);
    border-radius: 8px;
    padding: 4px;
}

.yk-footer-brand .yk-footer-logo span {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

/* 二维码 */
.yk-qr {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    overflow: visible;
}

.yk-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yk-qr span {
    display: none;
}

.yk-qr-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 6px;
    text-align: center;
    width: 100px;
}

/* 友情链接 */
.yk-flink {
    max-width: var(--container-width);
    width: 100%;
    margin: 16px auto 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.yk-flink a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-right: 12px;
    transition: color 0.3s;
}

.yk-flink a:hover {
    color: var(--white);
}

/* 版权底部 */
.yk-footer-bottom {
    max-width: var(--container-width);
    width: 100%;
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-start;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.yk-footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.yk-footer-bottom a:hover {
    color: var(--white);
}

/* ========== 媒体查询 ========== */
@media (max-width: 1240px) {
    .yk-header-inner,
    .yk-nav-bar-inner,
    .yk-footer-inner,
    .yk-flink,
    .yk-footer-bottom,
    .yk-main,
    .yk-section-vol {
        width: 96%;
    }
}

/* 平板端 */
@media (max-width: 1199px) {
    .yk-header-inner {
        gap: 12px;
    }
    .yk-logo-text strong {
        font-size: 20px;
        letter-spacing: 2px;
    }
    /* 间距由 li 内边距移入 a：li 与 a 同宽，悬停白高亮与深色高亮宽度一致
       （li 自身 padding 会让 li 比 a 宽 24px，Chrome 下两层高亮错位） */
    .yk-nav-item {
        padding: 0;
        font-size: 14px;
    }
    .yk-nav-item > a {
        padding: 0 28px !important;
    }

    .yk-search-form input {
        width: 160px;
        font-size: 13px;
    }
    .yk-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .yk-footer-brand,
    .yk-footer-contact {
        grid-column: 1 / -1;
    }
}

/* 小平板/手机 */
@media (max-width: 900px) {
    .yk-logo-text {
        display: none;
    }
    .yk-logo-img {
        max-height: 36px;
    }
    .yk-nav-bar {
        position: static;
    }
    .yk-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    .yk-nav::-webkit-scrollbar {
        display: none;
    }
    .yk-nav-item {
        padding: 0;
        font-size: 14px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .yk-nav-item > a {
        padding: 0 30px !important;
    }
    .yk-search-form input {
        display: none;
    }
    .yk-search-form {
        border: none;
        background: transparent;
        padding: 0;
    }
    /* 折叠为纯图标按钮：与右侧消息铃铛/头像同为 45px 圆形，避免窄宽下尺寸突兀 */
    .yk-search-form button {
        background: var(--primary-light);
        color: var(--primary);
        border-radius: 50%;
        width: 45px;
        height: 45px;
    }
    .yk-search-form button svg {
        width: 20px;
        height: 20px;
    }
}

/* ========== 兼容保留：登录弹窗样式 ========== */
.register .tab { font-size: 0; }
.register .tab li { cursor: pointer; display: inline-block; position: relative; font-size: 20px; width: 100%; color: var(--pc-text-soft); margin: 0 0 40px 0; }
.register .tab li.cur { color: var(--primary); }
.register .tab li.cur::before { background: var(--primary); content: ''; position: absolute; bottom: -10px; left: 0; width: 100%; height: 3px; border-radius: 3px; transition: transform .3s; }
.register .line { margin: 0; padding: 0; position: relative; text-align: center; }
.register .line span { display: inline-block; padding: 0 20px; position: relative; z-index: 200; }
.register .line hr { border-color: #E2E2E2 -moz-use-text-color -moz-use-text-color; border-image: none; border-style: solid none none; margin-top: 10px; position: absolute; top: 0; width: 100%; }
.register .bnt-login { margin: 0 auto; text-align: center; }
.register .bnt-login a { display: inline-block; color: #fff; font-size: 22px; width: 48px; height: 48px; text-align: center; line-height: 48px; margin-right: 10px; border-radius: 30px; }
.register .bnt-login a i { font-size: 22px; }
.register .bnt-login a:hover { opacity: 0.8; }
.register .bnt-login a.weixin { background: #38B624; }
.register .bnt-login a.qq { background: #1F92DF; }
.register .bnt-login a.weibo { background: #FF6000; }

/* ========== 登录弹窗美化 ========== */
#log .dialog {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    min-width: auto !important;
    width: 100% !important;
    max-width: 440px !important;
}
#log .dialog-head {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    padding: 20px 24px !important;
    position: relative !important;
}
#log .dialog-head .close {
    color: rgba(255,255,255,0.85) !important;
    font-size: 28px !important;
    right: 16px !important;
    top: 14px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    border-radius: 50% !important;
    transition: all .2s !important;
}
#log .dialog-head .close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    transform: rotate(90deg);
}
#log .dialog-body {
    padding: 32px 36px 28px !important;
}
#log .dialog-body .register {
    padding: 0 !important;
}
#log .blank-middle { display: none !important; }
#log .register .tab {
    margin-bottom: 24px !important;
}
#log .register .tab ul {
    border-bottom: 2px solid #f0f0f0;
    padding: 0;
    display: flex;
    justify-content: center;
}
#log .register .tab li {
    font-size: 18px !important;
    font-weight: 600;
    color: var(--pc-text-soft);
    padding: 0 24px 12px !important;
    position: relative;
    cursor: pointer;
    transition: color .2s;
}
#log .register .tab li:hover {
    color: var(--primary);
}
#log .register .tab li.cur {
    color: var(--primary) !important;
    font-size: 18px !important;
    font-weight: 600;
}
#log .register .tab li.cur::before {
    background: var(--primary) !important;
    height: 3px !important;
    border-radius: 3px !important;
}
#log .form-group {
    margin-bottom: 18px !important;
}
#log .field .input,
#log .input-group .input {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    height: 46px !important;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    background: #fafafa !important;
}
#log .field .input:focus,
#log .input-group .input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.08) !important;
    outline: none !important;
}
#log .input-group {
    border-radius: 8px !important;
    overflow: hidden;
}
#log .input-group .addon {
    border: none !important;
    background: #f5f5f5 !important;
}
#log .input-group .addon img {
    height: 44px !important;
    border-radius: 0 8px 8px 0 !important;
    cursor: pointer;
}
#log .form-button {
    margin-top: 8px !important;
}
#log .form-button input[type="button"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 4px;
    cursor: pointer !important;
    transition: opacity .2s, transform .1s !important;
}
#log .form-button input[type="button"]:hover {
    opacity: 0.9;
}
#log .form-button input[type="button"]:active {
    transform: scale(0.98);
}
#log .register > p {
    text-align: center !important;
    margin-top: 16px !important;
    font-size: 14px;
}
#log .register > p a {
    color: var(--primary) !important;
    transition: opacity .2s;
}
#log .register > p a:hover {
    opacity: 0.7;
}
#log .register .line span {
    font-size: 13px !important;
    color: #bbb !important;
    background: #fff !important;
}
#log .register .line hr {
    border-color: #f0f0f0 !important;
}
#log #ey_third_party_login .bnt-login a {
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    border-radius: 50% !important;
    transition: transform .2s, opacity .2s !important;
}
#log #ey_third_party_login .bnt-login a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}
#log #ey_third_party_login .blank-small { display: none; }
/* 遮罩层 */
#log::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: -1;
}

/* ========== 全局字体强制微软雅黑 ========== */
html, body,
div, span, p, h1, h2, h3, h4, h5, h6,
a, b, strong, em, i, u, li, td, th,
label, button, input, select, textarea {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* iconfont 保持自身字体（非常关键，被通配符覆盖后会变方框） */
.iconfont,
.iconfont * {
    font-family: "iconfont" !important;
}

/* Phosphor 图标字体保护（class="ph ph-xxx" 或 class="ph-duotone ph-xxx"） */
.ph,
[class^="ph-"],
[class*=" ph-"] {
    font-family: "Phosphor" !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* 其他图标字体保护 */
[class*=" icon-"],
[class^="icon-"],
[class*=" fa"],
[class^="fa-"],
[class^="glyphicons"],
code, kbd, pre, samp {
    font-family: inherit !important;
}
/* ========== 头像 + FOUC 终极修复 ========== */

/* 1. 刷新瞬间隐藏头像容器，防止先显示大图片再缩小 */
.yk-header .yk-user-ico,
.yk-header .dialogs.user-ico {
    opacity: 0 !important;
    transition: opacity 0.15s !important;
}
.yk-header.loaded .yk-user-ico,
.yk-header.loaded .dialogs.user-ico {
    opacity: 1 !important;
}

/* 2. 头像图片绝对限宽 — 覆盖 EYOUCMS 任何注入 */
.yk-user-ico img,
.dialogs.user-ico img,
a[class*="user-ico"] img,
a[class*="userinfo"] img,
img[src*="head"],
img[src*="avatar"],
img[width][height][class*="head"],
.yk-actions img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    display: block !important;
    line-height: 1 !important;
}

/* 3. banner 防跳 — 锁定高度：有图 / 无图 / 旧缓存多图堆叠时高度恒为 --banner-h，容器不被内容撑大 */
.yk-banner-wrap,
.yk-banner-slider,
.yk-banner-slider .owl-stage,
.yk-banner-slider .owl-stage-outer {
    height: var(--banner-h, 550px) !important;
    min-height: var(--banner-h, 550px) !important;
    max-height: var(--banner-h, 550px) !important;
}
.yk-banner-slider .item,
.yk-banner-slider .item img {
    height: var(--banner-h, 550px) !important;
    min-height: var(--banner-h, 550px) !important;
    max-height: var(--banner-h, 550px) !important;
}

/* 4. 新闻标题容器标签上移 */
.yk-news-category {
    margin-top: -2px !important;
    vertical-align: top !important;
}
.yk-news-title-row {
    margin-bottom: 7px !important;
}

/* 5. body 防初始滚动跳移 */
body {
    padding-top: 0 !important;
}
html {
    overflow-y: scroll !important;
}



/* ========== 头像容器占位（防搜索跳移） ========== */
.yk-actions > div,
.yk-actions > div#ey_htmlid_v4e2082,
.yk-actions [id*="ey_htmlid"],
.yk-actions > div:has(.yk-user-ico) {
    width: 52px !important;
    min-width: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
/* 登录后：消息图标 + 头像同排，容器宽 45 + 16 + 45，并保留头像右侧原有余量 */
.yk-actions > div:has(.pc-head-msg) {
    width: 106px !important;
    min-width: 106px !important;
    margin-right: 4px;
}
/* 头像始终占位，不隐藏 */
.yk-header .yk-user-ico,
.yk-header .dialogs.user-ico {
    opacity: 1 !important;
    visibility: visible !important;
}
.yk-header.loaded .yk-user-ico,
.yk-header.loaded .dialogs.user-ico {
    opacity: 1 !important;
}
/* 搜索框不要 flex-grow */
.yk-search-form {
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

/* Phosphor caret down — 下拉箭头（加 i 提升特异性，覆盖上面 18px 规则） */
.yk-nav-item > a > i.ph-caret-down {
    font-size: 10px !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}
/* ===== 终极兜底 ===== */
.yk-nav-item { pointer-events: auto !important; cursor: pointer !important; }
.yk-nav-item > a { pointer-events: auto !important; }
.yk-dropdown, ul.yk-dropdown { pointer-events: auto !important; }
/* 终极兜底 — 所有祖先都不能裁剪 dropdown */
.yk-header, .yk-header-inner, body { overflow: visible !important; }

/* ============ 终极下拉菜单兜底 ============ */
/* 用 :focus-within 也能触发 (键盘可达) */
.yk-nav-item:focus-within > .yk-dropdown,
.yk-nav-item > a:focus + .yk-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* 确保 dropdown 能在任何层之上 */
.yk-dropdown, ul.yk-dropdown {
    z-index: 2147483647 !important;  /* Int32.MaxValue */
}
/* 确保没有父元素裁剪 dropdown */
body, html, .yk-header, .yk-header-inner, .yk-nav-bar, .yk-nav-bar-inner, .yk-nav, .yk-nav-item {
    overflow: visible !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}
/* ============ 终极修复：确保 nav-item 有 position: relative ============ */
.yk-nav > .yk-nav-item,
.yk-nav .yk-nav-item {
    position: relative !important;
}
/* 确保 dropdown 绝对定位相对于 nav-item */
.yk-nav-item > .yk-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
}
/* ============ ABSOLUTE FINAL FIX: Must be last ============ */
.yk-nav > li.yk-nav-item,
.yk-nav-bar .yk-nav .yk-nav-item,
.yk-nav-item {
    position: relative !important;
}
.yk-nav-item > ul.yk-dropdown,
.yk-nav-item > .yk-dropdown {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 160px;
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    z-index: 2147483647 !important;
    margin: 0;
    padding: 8px 0;
}
.yk-nav-item:hover > ul.yk-dropdown {
    display: block !important;
}
.yk-nav-item > ul.yk-dropdown li {
    display: block;
    position: static !important;
    padding: 0;
    margin: 0;
    height: auto;
    line-height: 1.6;
    background: transparent;
}
.yk-nav-item > ul.yk-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}
.yk-nav-item > ul.yk-dropdown li a:hover {
    background: rgba(0,0,0,.2);
}
/* ======== FINAL DROPDOWN FIX (2026-09-15) ======== */
.yk-nav-item { position: relative !important; }
.yk-nav-item > ul.yk-dropdown {
    display: none;
    position: absolute !important;
    top: calc(100% + 0px) !important;
    left: 0 !important;
    min-width: 180px;
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35) !important;
    z-index: 2147483647 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    clip-path: none !important;
}
.yk-nav-item:hover > ul.yk-dropdown,
.yk-nav-item.hover > ul.yk-dropdown {
    display: block !important;
}
.yk-nav-item > ul.yk-dropdown > li {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}
.yk-nav-item > ul.yk-dropdown > li:last-child {
    border-bottom: none !important;
}
.yk-nav-item > ul.yk-dropdown > li > a {
    display: block !important;
    padding: 12px 20px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
}
.yk-nav-item > ul.yk-dropdown > li > a:hover {
    background: rgba(0,0,0,0.22) !important;
    color: #fff !important;
}
/* 确保祖先都不裁剪 */
.yk-nav-bar, .yk-nav-bar-inner, .yk-nav, .yk-header, .yk-header-inner, body, html {
    overflow: visible !important;
    clip-path: none !important;
}
/* ============ Footer padding 修复 ============ */
.yk-footer {
    padding-top: 40px !important;
    padding-bottom: 40px !important;   /* 与顶部对称，保证版权区上下间距一致 */
    margin-top: 0 !important;
    background: #1a1a2e;
    color: #ccc;
}
.yk-footer-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* 子栏目页面不显示友情链接横幅，页脚外容器与上方内容保留 30px 间距 */
.yk-footer.yk-footer--sub {
    margin-top: 30px !important;
}
.yk-footer-bottom {
    padding: 16px 0 0 0 !important;   /* 底部不再额外留 12px，交给 .yk-footer 的 padding-bottom 统一控制 */
    margin-top: 24px !important;   /* 分割线与上方内容（含扫码关注）留出 24px 上间距 */
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    color: var(--pc-text-soft);
    font-size: 13px;
    line-height: 1.8;
}
.yk-footer-bottom p, .yk-footer-bottom span {
    margin: 0 !important;
    padding: 0 !important;
}
/* 公安备案图标：与版权文字同基线居中，尺寸 16px 不大不小 */
.yk-footer-bottom .yk-ga-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: -3px;   /* 与文字基线对齐 */
    margin: 0 2px 0 0;      /* 右侧留 2px 与备案号文字分隔 */
    object-fit: contain;
}
/* clearfix 零高度 */
.clearfix, body > .clearfix { display:none !important; height:0 !important; overflow:hidden !important; margin:0 !important; padding:0 !important; }

.yk-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12) !important; }

/* ===== 返回列表按钮 ===== */
.yk-back-list-wrap {
    text-align: center;
    margin-top: 24px;
}
.yk-back-list i {
    margin-right: 6px;
}
/* ============ 导航菜单（回归 EYOUCMS 原生 nav-menu + drop-menu） ============ */
.yk-nav-bar {
    background: var(--color-primary);
    width: 100%;
}
.yk-nav-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}
/* 导航 ul — 水平排列 */
.yk-nav-bar .nav-menu.nav-inline {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* 一级 li */
.yk-nav-bar .nav-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}
/* 通栏平均分布：日期组件隐藏后，各菜单项等宽铺满导航条 */
.yk-nav-bar .nav-menu.nav-inline > li {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
}
.yk-nav-bar .nav-menu.nav-inline > li.yk-nav-item > a {
    width: 100%;
    justify-content: center;
}
/* 一级 a */
.yk-nav-bar .nav-menu > li > a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 22px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
/* 导航主菜单左侧图标 */
.yk-nav-bar .nav-menu > li > a .yk-nav-ico {
    font-size: 17px;
    margin-right: 6px;
    line-height: 1;
    flex-shrink: 0;
}
/* 导航图标不做“字体就绪后再显示”的隐藏：
   实测该方案会把图标一直藏到 fonts.load 解析完成（晚于首帧绘制），
   反而造成刷新时“先空白、随后瞬间出现”。图标字体已由 header.htm 预加载，
   字体就绪即随首帧一起渲染 */
.yk-nav-bar .nav-menu > li > a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
/* 修复 Chrome 点击导航/子菜单后出现系统焦点描边（pintuer 的 a:focus 双色自动描边）：
   鼠标点击不显示描边，键盘 Tab 聚焦时保留白色可见焦点 */
.yk-nav-bar .nav-menu a:focus {
    outline: none;
}
.yk-nav-bar .nav-menu a:focus-visible {
    outline: 2px solid rgba(255,255,255,0.85);
    outline-offset: -2px;
}
/* 激活态 */
.yk-nav-bar .nav-menu > li.active > a,
.yk-nav-bar .nav-menu > li.currentstyle > a {
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-weight: var(--font-weight-bold) !important;
}
/* 激活态图标加粗：切到 Phosphor-Bold 字体（码点与常规版一致，仅字重变粗）；
   图标本身固定 normal，避免继承父级 700 后被浏览器二次合成加粗 */
.yk-nav-bar .nav-menu > li.active > a .yk-nav-ico,
.yk-nav-bar .nav-menu > li.currentstyle > a .yk-nav-ico {
    font-family: "Phosphor-Bold" !important;
    font-weight: normal;
}
/* 下拉箭头 14px */
.yk-nav-bar .yk-nav-arrow {
    font-size: 14px !important;
    margin-left: 6px;
    line-height: 1;
}
/* 下拉菜单 — 红色背景（覆盖 pintuer 白色） */
.yk-nav-bar .drop-menu {
    display: none !important;
    position: absolute !important;
    top: 50px !important;
    bottom: auto !important;
    left: 0 !important;
    /* 宽度跟随一级菜单格子宽度（导航为通栏均分），不写死 */
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    background: var(--color-primary) !important;
    border: none !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
    z-index: 999999 !important;
    list-style: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    overflow: visible !important;
    height: auto !important;
}
/* hover 显示 */
.yk-nav-bar .nav-menu li:hover > ul.drop-menu {
    display: block !important;
}
/* 下拉菜单项 */
.yk-nav-bar .drop-menu li {
    display: block !important;
    float: none !important;
    list-style: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}
.yk-nav-bar .drop-menu li:last-child {
    border-bottom: none !important;
}
.yk-nav-bar .drop-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    /* 宽度受限时允许换行，避免长栏目名溢出下拉框 */
    white-space: normal !important;
    line-height: 1.6 !important;
    background: transparent !important;
    text-align: left !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    transition: background 0.2s !important;
}
.yk-nav-bar .drop-menu li a:hover {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
}
/* 在线捐款按钮（紧跟志愿活动） */
.yk-nav-bar .yk-nav-donate-li {
    margin-left: 0;
    /* li 被上方规则强制为 block，用文本居中让胶囊按钮在均分格内居中 */
    text-align: center;
}
.yk-nav-bar .yk-nav-donate-li .yk-btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 18px;
    background: #fff;
    color: var(--color-primary);
    border-radius: 17px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin: 8px 0;
    transition: all 0.2s;
    box-shadow: none;
}
.yk-nav-bar .yk-nav-donate-li .yk-btn-donate .yk-nav-ico {
    font-size: 16px;
    margin-right: 2px;
}
.yk-nav-bar .yk-nav-donate-li .yk-btn-donate:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: none;
}
/* 日期·星期·农历（导航行已隐藏，不参与菜单分布）
   选择器需高于上方 `.yk-nav-bar .yk-nav li { display: block !important }` */
.yk-nav-bar .yk-nav li.yk-nav-datetime-li {
    display: none !important;
    list-style: none;
}
.yk-nav-bar .yk-nav-datetime {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 14px 0 10px;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
.yk-nav-bar .yk-nav-date {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}
.yk-nav-bar .yk-nav-lunar {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    margin-top: 0;
}
@media (max-width: 1199px) {
    .yk-nav-bar .yk-nav-datetime { display: none; }
}

/* 均分后单个菜单格宽度受限：中小屏收紧菜单左右内边距，避免文字挤压 */
@media (max-width: 1439px) {
    .yk-nav-bar .nav-menu.nav-inline > li.yk-nav-item > a {
        padding: 0 8px !important;
    }
}

/* ========== 统一 PC 端 .container 宽度为 1440px（覆盖 pintuer 默认 1200px） ========== */
@media (min-width: 1440px) {
    .container,
    .container-layout { width: 1440px; max-width: 1440px; }
    .container.inside { width: 1440px; max-width: 1440px; }
}
/* 中等屏（1200-1439px）保持 pintuer 默认 1200px；<1200px 自适应 */

/* ========== 当前位置横向条（banner 下方，所有子页面统一） ========== */
.yk-current-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}
.yk-current-inner {
    width: var(--container-width);
    max-width: 96%;
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.yk-current-label {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 4px;
}
.yk-current-label i {
    font-size: 16px;
    color: var(--primary);
}
.yk-current-path {
    color: var(--text-regular);
}
.yk-current-path a {
    color: var(--text-regular);
    text-decoration: none;
    transition: color 0.3s;
}
.yk-current-path a:hover {
    color: var(--primary);
}
.yk-current-path > span {
    margin: 0 6px;
    color: var(--text-secondary);
}
@media (max-width: 766px) {
    .yk-current-inner { padding: 10px 14px; font-size: 12px; }
}

/* ========== 友情链接横幅（公共组件，所有页面通用） ========== */
.yk-section-vol {
    max-width: var(--container-width);
    width: 100%;
    margin: 30px auto 30px !important;
}
.yk-volunteer-banner {
    background: linear-gradient(135deg, rgba(185,28,28,0.85) 0%, rgba(154,23,23,0.85) 100%), url('/uploads/images/vol_community.jpg') center/cover no-repeat;
    border-radius: var(--radius);
    height: 140px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}
/* ---------- 友情链接横幅（方案 B：半透明白卡） ---------- */
.yk-links-banner {
    height: auto;
    padding: 16px;
    align-items: center;
}
/* 半透明卡片：横向铺满横幅内区域，标题与链接分列两侧 */
.yk-links-card {
    width: 100%;
    min-height: 96px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
}
.yk-links-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}
.yk-links-title-cn {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
    color: var(--primary);
}
.yk-links-title-en {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 1px;
    color: var(--pc-text-soft, #909399);
}
/* 标题与链接之间的竖向细分隔线 */
.yk-links-divider {
    flex-shrink: 0;
    width: 1px;
    height: 40px;
    background: #d0d4db;
}
.yk-links-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}
.yk-links-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
/* 图片链接：白底细边框小卡片，与卡片的白色区分开 */
.yk-links-logo {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid #ebeef5;
    border-radius: 6px;
    transition: border-color 0.3s;
}
.yk-links-logo:hover {
    border-color: var(--primary);
}
.yk-links-logo img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    border-radius: 0;
}
.yk-links-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
    line-height: 1.6;
}
.yk-links-text a {
    color: var(--pc-text-regular, #606266);
    text-decoration: none;
    transition: color 0.3s;
}
.yk-links-text a:hover {
    color: var(--primary);
}
@media (max-width: 900px) {
    .yk-volunteer-banner {
        flex-direction: column;
        gap: 16px;
        height: auto;
        padding: 16px;
    }
    .yk-links-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .yk-links-divider {
        width: 100%;
        height: 1px;
    }
    .yk-links-body {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .yk-links-logos,
    .yk-links-text {
        justify-content: flex-start;
    }
}

/* ========== 公益广告位（首页板块间，高度140px，参考志愿卡片样式） ========== */
.yk-ad-block {
    width: 100%;
    max-width: var(--container-width);
    margin: 30px auto !important;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
/* 与广告位相邻的板块，重置 padding 让广告位独立控制30px间距 */
.yk-section:has(+ .yk-ad-block) { padding-bottom: 0 !important; }
.yk-ad-block + .yk-section { padding-top: 0 !important; }
.yk-ad-block + .yk-dual-section { padding-top: 0 !important; margin-top: 0 !important; }
/* 消除紧跟广告位的板块标题半行距，使广告位到标题文字间距精确为30px */
.yk-ad-block + .yk-section .yk-section-title,
.yk-ad-block + .yk-dual-section .yk-section-title { line-height: 1; }
.yk-ad-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.yk-ad-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s;
}
.yk-ad-block:hover .yk-ad-link img { transform: scale(1.03); }
.yk-ad-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, rgba(161,16,21,0.9) 0%, rgba(200,22,29,0.62) 52%, rgba(200,22,29,0.2) 100%);   /* 红色遮罩：与手机端金刚区下方 banner 遮罩一致 */
    padding: 0 24px;
    z-index: 1;
}
.yk-ad-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.yk-ad-overlay p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    letter-spacing: 1px;
}
.yk-ad-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    pointer-events: none;
    z-index: 3;
    letter-spacing: 0.5px;
}

/* ========== PC头部 头像 hover 下拉菜单（红色卡片样式） ========== */
/* 仅作用 .log-in 命名空间，避免与 yk-nav .drop-menu 冲突 */
.log-in .button-group { position: relative !important; z-index: 2147483647 !important; }
.log-in .drop-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    min-width: 180px !important;
    background: var(--white) !important;
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    padding: 8px 0 !important;
    z-index: 2147483647 !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s 0.5s, visibility 0.3s 0.5s;
    overflow: hidden;
}
/* 桥接 .button-group(头像) 与 .drop-menu(position:fixed top:104px) 之间的 hover gap，
   让鼠标从头像移到菜单时不丢失 :hover，菜单可点击选中。 */
.log-in .drop-menu::before {
    content: '';
    position: absolute;
    top: -32px;
    left: 0;
    right: 0;
    height: 32px;
    background: transparent;
    display: block;
    pointer-events: auto;
}
.log-in .button-group:hover .drop-menu,
.log-in .drop-menu:hover {
    transition: opacity 0.2s 0s, visibility 0.2s 0s;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.log-in .drop-menu ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.log-in .drop-menu li + li { border-top: 1px solid #f0f0f0 !important; }
.log-in .drop-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: var(--text-regular) !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s !important;
}
.log-in .drop-menu li a i.ph {
    margin-right: 8px !important;
    font-size: 16px !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
}
.log-in .drop-menu li a:hover {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    padding-left: 24px !important;
}
/* 会员消息入口：图标 + 全圆背景，尺寸与会员头像一致（45px） */
.yk-header .log-in {
    display: flex;
    align-items: center;
    gap: 16px;
}
.yk-header .pc-head-msg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.yk-header .pc-head-msg i.ph {
    font-size: 22px;
    line-height: 1;
}
.yk-header .pc-head-msg:hover {
    background: var(--primary);
    color: var(--white);
}

/* 头像圆形 + 红色边框 */
#a_logins_drop-menu img,
.log-in .user-head img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    border: 2px solid var(--primary) !important;
    object-fit: cover !important;
    display: block !important;
}

/* ========== 登录弹窗增强（autofill 修复 + SVG 标题图标 + 淡入动画 + 按钮微交互） ========== */
/* 1. 修复浏览器 autofill 蓝底 */
.dialog-win input:-webkit-autofill,
.dialog-win input:-webkit-autofill:hover,
.dialog-win input:-webkit-autofill:focus,
.dialog-win input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--primary-light) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
/* 2. 标题加 SVG 图标（flex子元素，垂直居中） */
.dialog-win .register .tab li#signtab1 {
    padding-left: 0 !important;
}
.dialog-win .register .tab li#signtab1::before {
    content: '';
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    flex-shrink: 0;
}
/* 3. 弹窗淡入动画 */
@keyframes yk-dialog-fadein {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dialog-win .dialog {
    animation: yk-dialog-fadein 0.25s ease-out !important;
}
/* 4. 输入框焦点态加强 */
.dialog-win .field .input:focus,
.dialog-win .input-group .input:focus {
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12) !important;
    border-color: var(--primary) !important;
}
/* 5. 登录按钮微交互 + 红色主题 */
.dialog-win .form-button input[type="button"] {
    transform: translateY(0);
    background: var(--primary) !important;
    box-shadow: none !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
}
.dialog-win .form-button input[type="button"]:hover {
    transform: translateY(-1px) !important;
    background: var(--primary-hover) !important;
    box-shadow: none !important;
    opacity: 1 !important;
}
.dialog-win .form-button input[type="button"]:active {
    transform: translateY(0) !important;
}
/* 6. 弹窗整体红色主题增强 */
.dialog-win .dialog {
    border-top: 3px solid var(--primary) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
}
.dialog-win .register .tab li#signtab1 {
    color: var(--primary) !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}
.dialog-win .dialog-body {
    padding: 16px 32px 16px !important;
}
.dialog-win .field .input {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    height: 42px !important;
    transition: all 0.2s !important;
}
.dialog-win .field .input:focus {
    border-color: var(--primary) !important;
}
.dialog-win .input-group .input {
    border-radius: var(--radius) 0 0 var(--radius) !important;
}
.dialog-win .input-group .addon {
    border-radius: 0 var(--radius) var(--radius) 0 !important;
}
.dialog-win .dialog-close {
    color: var(--text-secondary) !important;
    font-size: 20px !important;
}
.dialog-win .dialog-close:hover {
    color: var(--primary) !important;
}
.dialog-win p a {
    color: var(--text-secondary) !important;
    transition: color 0.2s;
}
.dialog-win p a:hover {
    color: var(--primary) !important;
}

/* ========== PC端隐藏移动端组件 + 登录弹窗（所有PC页面通用） ========== */
/* 隐藏登录弹窗（只在点击登录入口时通过 pintuer.js 显示） */
#log { display: none !important; }
/* PC端隐藏移动端底部 TabBar 和侧边抽屉 */
.yk-tabbar { display: none !important; }
.yk-drawer, .yk-drawer-mask { display: none !important; }

/* ========== 登录弹窗样式修复（P2） ========== */
/* 1. 遮罩层：黑色半透明，z-index低于弹窗 */
.dialog-mask {
    background: rgba(0,0,0,0.5) !important;
    z-index: 10000 !important;
}

/* 2. 弹窗容器：白色背景+圆角+阴影，z-index高于遮罩层 */
.dialog-win {
    z-index: 10001 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: none !important;
}
/* dialog-win 内部 .dialog 也用 border-box，防止 padding 撑破 dialog-win 宽度
   （pintuer.js 用 JS 算 outerWidth 居中，撑破会导致 race condition：宽度先窄后宽） */
.dialog-win .dialog {
    box-sizing: border-box !important;
    width: 100% !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    border: none !important;
}

/* 3. 弹窗头部：红色渐变背景，高度紧凑 */
.dialog-win .dialog-head {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    padding: 0 12px !important;
    border-bottom: none !important;
    position: relative !important;
    height: 36px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
}

/* 4. 关闭按钮：白色圆形，垂直居中，SVG图标替代×字符 */
.dialog-win .dialog-head .close {
    color: transparent !important;
    font-size: 0 !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 1 !important;
    text-align: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}
.dialog-win .dialog-head .close::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}
.dialog-win .dialog-head .close:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-50%) rotate(90deg) !important;
}

/* 5. 弹窗主体：白色背景，紧凑 */
.dialog-win .dialog-body {
    background: #fff !important;
    padding: 16px 32px 16px !important;
}

/* 隐藏空白占位 */
.dialog-win .blank-middle,
.dialog-win .blank-small { display: none !important; }

/* 6. "账号登录"标题：紧凑，flex垂直居中 */
.dialog-win .register .tab {
    margin: 0 0 14px 0 !important;
}
.dialog-win .register .tab ul {
    border-bottom: none !important;
    padding: 0 0 4px 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
}
.dialog-win .register .tab li {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    padding: 8px 0 4px 0 !important;
    margin: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.2 !important;
    width: auto !important;
}
.dialog-win .register .tab li.cur {
    color: var(--primary) !important;
}
.dialog-win .register .tab li.cur::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: var(--primary) !important;
    border-radius: 3px !important;
}

/* 7. 输入框：白色背景，圆角，focus红色边框 */
.dialog-win .field .input,
.dialog-win .input-group .input {
    background: #fff !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    height: 46px !important;
    box-sizing: border-box !important;
    color: var(--text-primary) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s !important;
}

/* 密码框小眼睛 */
.dialog-win .yk-pwd-field { position: relative !important; }
.dialog-win .yk-toggle-pwd {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    z-index: 2 !important;
}
.dialog-win .yk-toggle-pwd:hover svg {
    stroke: var(--primary) !important;
}
/* 登录弹窗输入框左侧灰色小图标（弹窗打开时会被移入 .dialog-win 容器，故两类作用域同时适配） */
#log .field,
#log .input-group,
.dialog-win .field,
.dialog-win .input-group {
    position: relative;
}
#log .yk-login-icon,
.dialog-win .yk-login-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
    color: #999;
    pointer-events: none;
    z-index: 2;
}
#log .field > .input,
#log .input-group > .input,
.dialog-win .field > .input,
.dialog-win .input-group > .input {
    padding-left: 44px !important;
}
.dialog-win .field .input:focus,
.dialog-win .input-group .input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.08) !important;
}

/* 8. autofill背景色：白色，不是粉色 */
.dialog-win input:-webkit-autofill,
.dialog-win input:-webkit-autofill:hover,
.dialog-win input:-webkit-autofill:focus,
.dialog-win input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* 9. 验证码输入框组：与账号登录页保持一致（单一描边容器 + 图片无自身边框） */
.dialog-win .input-group {
    border-radius: 8px !important;
    overflow: hidden !important;
    display: flex !important;
    /* 会员中心等页面加载 eyoucms.css 的 .input-group{width:320px;margin:0 auto}，
       会把弹窗内输入组压窄并居中，这里统一撑满整行 */
    width: 100% !important;
    margin: 0 !important;
}
#ey_login_vertify .input-group,
.dialog-win #ey_login_vertify .input-group {
    background: #fff !important;
    border: 1px solid #e4e7ed !important;
    border-radius: 8px !important;
    width: 100% !important;
    margin: 0 !important;
}
#ey_login_vertify .input-group:focus-within {
    border-color: var(--primary) !important;
}
.dialog-win .input-group > .input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
#ey_login_vertify .input-group > .input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
#ey_login_vertify .input-group > .input:focus {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.dialog-win .input-group .addon {
    border: none !important;
    background: #f5f5f5 !important;
    padding: 0 10px !important;
    width: auto !important;   /* 覆盖 pintuer 的 width:1%，让验证码图完整显示 */
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}
#ey_login_vertify .input-group .addon {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}
.dialog-win .input-group .addon img {
    height: 44px !important;
    width: auto !important;
    cursor: pointer !important;
}
#ey_login_vertify .input-group .addon img {
    height: 46px !important;
    border: 0 !important;
    border-radius: 0 7px 7px 0 !important;
    display: block !important;
}

/* 10. 登录按钮：红色渐变 */
.dialog-win .form-button input[type="button"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9999px !important;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: 100% !important;
}
.dialog-win .form-button input[type="button"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

/* 11. 底部链接 */
.dialog-win .margin-top {
    margin-top: 16px !important;
    text-align: right !important;
}
.dialog-win .margin-top a {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    text-decoration: none !important;
}
.dialog-win .margin-top a:hover {
    color: var(--primary) !important;
}

/* 12. 第三方登录分隔线 */
.dialog-win .line {
    text-align: center !important;
    margin: 20px 0 !important;
    position: relative !important;
}
.dialog-win .line hr {
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
    margin: 0 !important;
}
.dialog-win .line span {
    background: #fff !important;
    padding: 0 16px !important;
    position: relative !important;
    z-index: 1 !important;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
}

/* ============================================================
   2026-10-27 全站 layer 弹窗统一美化（视觉对齐 PC 登录弹窗）
   1) 12px 圆角 + 柔和投影；2) 红色渐变标题栏 + 白色圆角关闭按钮；
   3) 确认框按钮统一红色渐变 / 浅灰次级样式
   ============================================================ */
.layui-layer.layui-layer-page,
.layui-layer.layui-layer-iframe,
.layui-layer.layui-layer-dialog {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16) !important;
}
.layui-layer .layui-layer-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    border-bottom: 0 !important;
    height: 36px !important;
    line-height: 36px !important;
    padding: 0 56px 0 20px !important;
}
.layui-layer .layui-layer-setwin { top: 6px !important; right: 14px !important; }
/* 关闭按钮：与登录弹窗（0.png）一致——纯白色 × 图标，无圆形底色 */
.layui-layer .layui-layer-setwin .layui-layer-close {
    width: 24px !important; height: 24px !important;
    margin: 0 !important; padding: 0 !important;
    background: transparent !important;
    border-radius: 0; position: relative; float: right;
}
.layui-layer .layui-layer-setwin .layui-layer-close:hover { background: transparent !important; opacity: 0.8; }
.layui-layer .layui-layer-setwin .layui-layer-close::before,
.layui-layer .layui-layer-setwin .layui-layer-close::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 11px; height: 1.5px; background: #FFFFFF; border-radius: 1px;
}
.layui-layer .layui-layer-setwin .layui-layer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.layui-layer .layui-layer-setwin .layui-layer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.layui-layer.layui-layer-page .layui-layer-btn,
.layui-layer.layui-layer-dialog .layui-layer-btn { padding: 0 24px 20px !important; }
.layui-layer .layui-layer-btn a {
    height: 44px !important; line-height: 44px !important;
    padding: 0 28px !important; border: 0 !important; border-radius: 9999px !important;
    font-size: 15px !important;
}
.layui-layer .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    color: #FFFFFF !important;
}
.layui-layer .layui-layer-btn .layui-layer-btn1 {
    background: #F5F5F5 !important; color: #666666 !important;
}
.layui-layer.layui-layer-msg {
    border-radius: 8px !important; border: 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ========== 窄屏：锁死桌面版式宽度，禁止重排压扁 ==========
   本文件后部有 html{overflow-y:scroll !important} 与 html,body{overflow:visible !important}，
   会在层叠中覆盖前面媒体查询里的 overflow:hidden，因此必须放在文件最末同权重覆盖。
   min-width:1024px 与切换阈值一致：窄屏时桌面版式保持 1024px 宽（只是被裁切），
   不会挤压折叠成 01.png 那种"错版"形态，配合上方的品牌加载态，切换过程无错位闪现。 */
@media (max-width: 1023px) {
    html, body {
        overflow: hidden !important;
        min-width: 1024px !important;
    }
}

/* 鼠标点击超链接时去掉浏览器默认黑色焦点描边（键盘 Tab 聚焦仍保留） */
a:focus:not(:focus-visible) {
    outline: none;
}

/* 弹窗尺寸：固定 440px（与 pintuer.js data-width 一致），不再由内容自适应。
   旧方案 width:auto 导致弹窗宽度随表单内容变化（有无验证码时宽度不同），
   且覆盖 pintuer.js 内联 width 造成居中计算偏差。 */
.dialog-win {
    width: 440px !important;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
}
.dialog-win .dialog {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .dialog-win {
        width: calc(100vw - 32px) !important;
    }
    .dialog-win .dialog {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* ============================================================
   2026-11-18 全站表单统一：输入框内小图标 + 占位文字颜色 #999
   与移动端输入框保持一致
   ============================================================ */
input::placeholder,
textarea::placeholder {
    color: #999 !important;
    opacity: 1;
}
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #999 !important;
    opacity: 1;
}
/* 输入框内的小图标（登录弹窗 / 绑定弹窗等）统一为 #999 */
.yk-login-icon,
.el-input-ico,
.field > i.ph,
.input-group > i.ph,
.el-input > i.ph {
    color: #999 !important;
}
/* ============================================================
 * 图片模糊到清晰（Blur-up）· 全站通用
 * 加载前：同色调主色底 + 20px 高斯模糊
 * 加载完成：500ms 内变清晰（class 由 photo-blurup.js 切换）
 * ============================================================ */
img.bu-pending {
    background-color: var(--bu-color, #EAE4DF);
    color: transparent;
    filter: blur(20px);
    transition: filter 500ms ease-out;
    will-change: filter;
}
img.bu-loaded {
    filter: blur(0);
}

/* 载入动效：卡片进入视口时逐条淡入上移（类名由 reveal-on-scroll.js 添加）
   不预先隐藏元素，脚本失效也不会导致内容不可见 */
.rv-in {
    animation: rv-fade-up 760ms cubic-bezier(.2, .7, .3, 1) var(--rv-d, 0ms) both;
}
@keyframes rv-fade-up {
    from { opacity: 0; transform: translate3d(0, 44px, 0); }
    to { opacity: 1; transform: none; }
}
/* 说明：不再提供 prefers-reduced-motion 下 animation:none 的覆盖。
   Windows 关闭"动画效果"时 Chrome / 360 会返回 reduce，会导致卡片动效整体消失。 */
