/* ============================================================
   snsfood 模板补丁层（原站基底：/assets/public/css/reset.css + style.css）
   作用：装饰元素处理、模板级覆盖、历史修复追加
   ============================================================ */

/* 装饰用 <s> 标签：原站大量用 <s> 做图标/下划线容器，须去除默认下划线 */
s {
    text-decoration: none;
    font-style: normal;
    display: inline-block;
}

/* 模板资源引用锚点（无实际用途，便于排查） */
/* 基底样式来自 /assets/public/css/style.css，此处仅追加 */

/* 顶部导航当前栏目高亮（main.js 自动给 .firItem 加 .on） */
.firItem.on .link1 {
    color: #fff;
}

/* 内页子导航当前项（main.js 自动给 .swiper-slide 加 .on） */
.subpage-nav .item.on {
    background: rgba(255, 255, 255, .12);
}

/* js-subnav-about 白名单补偿：默认隐藏，main.js 仅在 /about 系列页面显示 */
.subpage-nav .js-subnav-about {
    display: none;
}
.subpage-nav .js-subnav-about.nav-show {
    display: inline-block;
}

/* 留言表单：验证码输入行 */
.jform-verify {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jform-verify img {
    height: 38px;
    cursor: pointer;
    border: 1px solid #ddd;
}

/* 占位 shim 页面（待 DB 联调后替换） */
.tpl-placeholder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    color: #666;
}
.tpl-placeholder h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

/* ============================================================
   模板组A（新闻列表/详情、产品列表/详情、产品应用、企业月刊）补丁
   基底 /assets/public/css/style.css 已含 sNews-list/sProduct-list/
   sApplication-swiper/sPDF-list/sView 布局，此处仅补齐分页条样式
   ============================================================ */

/* 分页条：PbootCMS {page:bar} 输出 span.page-* 结构，重排为居中页码样式 */
.pageListBox {
    padding: 30px 0 60px;
    text-align: center;
}
.pageListBox .pageList > span {
    display: inline-block;
    margin: 0 3px;
}
.pageListBox .pageList a {
    display: inline-block;
    min-width: 34px;
    padding: 6px 12px;
    border: 1px solid #e3e0dd;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.pageListBox .pageList a:hover {
    border-color: #1b3a6b;
    color: #1b3a6b;
}
.pageListBox .pageList .page-num-current,
.pageListBox .pageList .page-num-current a {
    background: #1b3a6b;
    border-color: #1b3a6b;
    color: #fff;
}
.pageListBox .page-status {
    color: #999;
    font-size: 12px;
    margin-right: 12px;
}
.pageListBox .page-num {
    color: #bbb;
}

/* 新闻列表左右交错：循环内 {pboot:if} 不解析，用 nth-child 复刻基底 .even/.odd 布局 */
.sNews-list .item:nth-child(odd) {
    padding-right: 660px;
}
.sNews-list .item:nth-child(odd) .time {
    left: 0;
}
.sNews-list .item:nth-child(odd) .pic {
    right: 0;
}
.sNews-list .item:nth-child(even) {
    padding-left: 660px;
}
.sNews-list .item:nth-child(even) .time {
    right: 0;
}
.sNews-list .item:nth-child(even) .pic {
    left: 0;
}

/* ============================================================
   组B 补丁：人才招聘/人才理念/在线留言/联系圣恩/关于子栏目
   ============================================================ */

/* 人才理念：sHr-idea 1920 背景带居中 hack（勿叠加 width/translateX） */
.sHr-idea .df .bg.c {
    left: 50%;
    margin-left: -960px;
    width: 1920px;
    max-width: none;
    transform: none;
}

/* 招聘职位卡双栏（防御层，基底已有则兜底） */
.sHr-list .item .body {
    display: flex;
    flex-wrap: wrap;
}
.sHr-list .item .body .col {
    width: 550px;
    max-width: 100%;
}
.sHr-list .item .body .col .dt {
    font-size: 18px;
    color: #f58220;
    margin-bottom: 12px;
    font-weight: bold;
}
.sHr-list .item .head .btn.abtnBd {
    cursor: pointer;
}
@media (max-width: 768px) {
    .sHr-list .item .body .col { width: 100%; }
}

/* 联系圣恩：双列布局由 contact.html 内联样式实现（对齐原站），此处仅保留移动端适配 */
@media (max-width: 768px) {
    .sContact-list .item { width: 100% !important; padding: 30px 20px !important; }
}

/* 发展历程（静态时间轴） */
.fz-timeline {
    margin: 60px auto 90px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
}
.fz-item {
    width: 340px;
    border: 1px solid #eee;
    padding: 20px;
    background: #fff;
    box-sizing: border-box;
}
.fz-item .pic img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.fz-item .dt {
    font-size: 22px;
    color: #f58220;
    font-weight: bold;
    margin: 15px 0 10px;
}
.fz-item .dd {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
}

/* 资质荣誉网格 */
.rz-grid {
    margin: 60px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
}
.rz-item {
    width: 48%;
    max-width: 560px;
}
.rz-item img {
    width: 100%;
    display: block;
    border: 1px solid #eee;
}

/* 合作伙伴网格 */
.hz-grid {
    list-style: none;
    margin: 60px auto 90px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
}
.hz-grid .item {
    width: 180px;
    height: 120px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.hz-grid .item img {
    max-width: 80%;
    max-height: 80%;
}

/* 在线留言表单 */
.sContact-form .container {
    max-width: 800px;
    margin: 0 auto;
}
.sContact-form .formItem .skin {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #ddd;
    font-size: 15px;
}
.sContact-form textarea.skin {
    min-height: 120px;
}
.sContact-form .jform-verify {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sContact-form .jform-verify img {
    height: 42px;
    cursor: pointer;
    border: 1px solid #ddd;
}
.sContact-form .btn.abtnSc {
    background: #f58220;
    color: #fff;
    text-align: center;
    cursor: pointer;
    padding: 14px;
    font-size: 16px;
    letter-spacing: 4px;
}

/* 耕味加载动画：圣恩红/棒球棍 → 耕味 LOGO 白底 */
.modal-guidance {
    background-color: #fff;
}
.modal-guidance .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 耕味加载动画：背景橙系流动渐变 + LOGO 淡入放大 */
.modal-guidance {
    background: linear-gradient(135deg, #ff8a3d 0%, #ff6a00 25%, #fde3c8 50%, #ff8a3d 75%, #ff6a00 100%) !important;
    background-size: 300% 300% !important;
    -webkit-animation: gvciBg 5s ease infinite !important;
    animation: gvciBg 5s ease infinite !important;
}
@-webkit-keyframes gvciBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes gvciBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.modal-guidance .logo {
    -webkit-animation: gvciLogo 1.4s cubic-bezier(.22,.61,.36,1) both !important;
    animation: gvciLogo 1.4s cubic-bezier(.22,.61,.36,1) both !important;
}
@-webkit-keyframes gvciLogo {
    0% { opacity: 0; -webkit-transform: scale(.5); transform: scale(.5); }
    60% { opacity: 1; -webkit-transform: scale(1.06); transform: scale(1.06); }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes gvciLogo {
    0% { opacity: 0; -webkit-transform: scale(.5); transform: scale(.5); }
    60% { opacity: 1; -webkit-transform: scale(1.06); transform: scale(1.06); }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

/* 加载动画 LOGO 白色化 */
.modal-guidance .logo img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}

/* 导航 LOGO 纯白 */
.header .logo img.front,
.header .logo img.behind {
    filter: brightness(0) invert(1);
}
/* 加载动画：白底 + 白 LOGO 淡阴影 */
.modal-guidance {
    background: #fff !important;
    animation: none !important;
}
.modal-guidance .logo img {
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(0,0,0,.25));
    filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(0,0,0,.25));
}

/* 加载动画：背景保留橙色渐变，LOGO 纯白 */
.modal-guidance {
    background: linear-gradient(135deg, #ff8a3d 0%, #ff6a00 25%, #fde3c8 50%, #ff8a3d 75%, #ff6a00 100%) !important;
    background-size: 300% 300% !important;
    -webkit-animation: gvciBg 5s ease infinite !important;
    animation: gvciBg 5s ease infinite !important;
}
.modal-guidance .logo img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}
/* 导航 logo 恢复彩色（进入首页后有颜色） */
.header .logo img.front,
.header .logo img.behind {
    -webkit-filter: none;
    filter: none;
}

/* 加载动画 LOGO 入场：缩放弹跳 + 白色流光扫过 */
.modal-guidance .logo {
    -webkit-animation: gvciLogo 2s cubic-bezier(.22,.61,.36,1) both !important;
    animation: gvciLogo 2s cubic-bezier(.22,.61,.36,1) both !important;
}
.modal-guidance .logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
    -webkit-animation: gvciShine 2.2s ease 1s infinite;
    animation: gvciShine 2.2s ease 1s infinite;
}
@-webkit-keyframes gvciLogo {
    0% { opacity: 0; -webkit-transform: scale(.3) translateY(30px); transform: scale(.3) translateY(30px); }
    50% { opacity: 1; -webkit-transform: scale(1.08) translateY(0); transform: scale(1.08) translateY(0); }
    72% { -webkit-transform: scale(.95); transform: scale(.95); }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes gvciLogo {
    0% { opacity: 0; -webkit-transform: scale(.3) translateY(30px); transform: scale(.3) translateY(30px); }
    50% { opacity: 1; -webkit-transform: scale(1.08) translateY(0); transform: scale(1.08) translateY(0); }
    72% { -webkit-transform: scale(.95); transform: scale(.95); }
    100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@-webkit-keyframes gvciShine {
    0% { left: -120%; }
    60%, 100% { left: 120%; }
}
@keyframes gvciShine {
    0% { left: -120%; }
    60%, 100% { left: 120%; }
}

/* 流光修正：初始在视口外、无延迟、快速扫过 */
.modal-guidance .logo::after {
    left: -250% !important;
    -webkit-animation: gvciShine 1.2s ease 0s infinite !important;
    animation: gvciShine 1.2s ease 0s infinite !important;
}
@-webkit-keyframes gvciShine {
    0% { left: -250%; }
    60%, 100% { left: 250%; }
}
@keyframes gvciShine {
    0% { left: -250%; }
    60%, 100% { left: 250%; }
}

/* 对标目标站加载动画：LOGO 静态居中 + 波浪进度条推进流动 */
.modal-guidance .logo {
    -webkit-animation: none !important;
    animation: none !important;
}
.modal-guidance .logo::after {
    display: none !important;
}
.modal-guidance .gvci-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: 55px;
    margin-left: -130px;
    width: 0;
    height: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.3);
    -webkit-animation: gvciWaveW 1.5s ease-out .1s forwards;
    animation: gvciWaveW 1.5s ease-out .1s forwards;
}
.modal-guidance .gvci-wave s {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 10px, transparent 10px 22px);
    -webkit-animation: gvciWaveMove 1s linear infinite;
    animation: gvciWaveMove 1s linear infinite;
}
@-webkit-keyframes gvciWaveW {
    0% { width: 0; }
    100% { width: 260px; }
}
@keyframes gvciWaveW {
    0% { width: 0; }
    100% { width: 260px; }
}
@-webkit-keyframes gvciWaveMove {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(22px); transform: translateX(22px); }
}
@keyframes gvciWaveMove {
    0% { -webkit-transform: translateX(0); transform: translateX(0); }
    100% { -webkit-transform: translateX(22px); transform: translateX(22px); }
}

/* ========== 耕味整体配色：LOGO 橙(GVCI) + 深蓝(耕味) ========== */

/* 顶部导航：一级菜单 hover/当前 橙色 */
.header .firItem .link1 { -webkit-transition: color .3s ease; transition: color .3s ease; }
.header .firItem:hover .link1,
.header .firItem.on .link1 { color: #f58220 !important; }

/* 下拉面板：深蓝渐变 + 白色链接 + 卡片式 hover（更换展示方式） */
.secNavBlock {
    background: linear-gradient(135deg, #852d00 0%, #000000 100%)!important;
    -webkit-box-shadow: 0 10px 30px rgba(16,38,77,.35);
    box-shadow: 0 10px 30px rgba(16,38,77,.35);
}
.secNavBlock .secNav { border-right: 1px solid rgba(255,255,255,.1); }
.secNavBlock .secNav .col { padding: 6px 0; }
.secNavBlock .secNav .line {
    padding: 8px 14px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}
.secNavBlock .secNav .line:hover { background: rgba(245,130,32,.16); border-left-color: #f58220; }
.secNavBlock .secNav .line a { }
.secNavBlock .secNav .line a:hover { color: #ffb35c !important; }
.secNavBlock .left p { color: rgba(255,255,255,.65) !important; }
.secNavBlock .left ._logo { -webkit-filter: brightness(0) invert(1); filter: brightness(0) invert(1); }

/* 首页模块标题：橙主 + 蓝副 */
.index-about .index-head .cn,
.index-product .index-product-contain .btn .cn,
.index-news .index-head .cn,
.index-partner .index-head .cn,
.index-contact .index-head .cn { color: #f58220 !important; }
.index-about .index-head .en,
.index-product .index-product-contain .btn .en,
.index-news .index-head .en,
.index-partner .index-head .en,
.index-contact .index-head .en { color: #1b3a6b !important; }

/* 关于耕味背景：橙蓝渐变氛围叠加（保留粒子动画） */
.index-about .fullpage-bg {
    background:
        radial-gradient(circle at 18% 28%, rgba(245,130,32,.20), transparent 55%),
        radial-gradient(circle at 82% 72%, rgba(27,58,107,.28), transparent 55%),
        linear-gradient(160deg, rgba(245,130,32,.10) 0%, rgba(27,58,107,.16) 100%) !important;
}

/* 首页产品 hover：上浮 + 橙色光晕（更换效果） */
.index-product .btn {
    -webkit-transition: -webkit-transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease;
    transition: transform .45s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease;
}
.index-product .btn:hover { -webkit-transform: translateY(-8px); transform: translateY(-8px); box-shadow: 0 14px 34px rgba(245,130,32,.35); }
.index-product .btn:hover .contain .cn { color: #f58220; }
.index-product .btn:hover .more { background: #f58220; border-color: #f58220; color: #fff; }

/* 新闻卡片（PC）：图片在上、标题描述在下 */
.index-news-list .item { position: relative; }
.index-news-list .item .pic { position: static; margin-bottom: 14px; }
.index-news-list .item .pic img { width: 100%; height: auto; display: block; }
.index-news-list .item h3 { position: static; }

/* 通用 more 按钮：橙色系 */
.index-about .more, .index-news .more, .index-partner .more,
.index-product .more, .more.more1 { color: #f58220; border-color: #f58220; }
.index-about .more:hover, .index-news .more:hover, .index-partner .more:hover,
.index-product .more:hover, .more.more1:hover { background: #f58220; border-color: #f58220; color: #fff; }

/* 内页通用：按钮橙底、标题橙/蓝 */
.sContact-form .btn.abtnSc { background: #f58220; }
.sHr-list .item .body .col .dt, .fz-item .dt { color: #f58220; }
.pageListBox .pageList a:hover { border-color: #1b3a6b; color: #1b3a6b; }
.pageListBox .pageList .page-num-current,
.pageListBox .pageList .page-num-current a { background: #1b3a6b; border-color: #1b3a6b; }

/* ===== 修正2：新闻卡片图片在上（固定高度）、标题描述完整显示 ===== */
.index-news-list .item { height: 406px; }
.index-news-list .item .pic { position: static; margin-top: 0; margin-bottom: 14px; height: 180px; overflow: hidden; }
.index-news-list .item .pic img { width: 100%; height: 180px; -o-object-fit: cover; object-fit: cover; display: block; }
.index-news-list .item>h3 { white-space: normal; line-height: 24px; max-height: 48px; }

/* ===== 修正3：关于我们左右互换（文字移到右、年份移到左） ===== */
.index-about-contain { padding-right: 0 !important; padding-left: 408px; }
.index-about-contain .head .more { right: auto !important; left: 0; }
.index-about-contain .year { right: auto !important; left: 0; }
.index-about-contain .vd-box { right: auto !important; left: 0; }

/* ===== 修正4：底部联系板块左右互换（信息移到右、表单移到左） ===== */
.index-contact-contain .left { float: right; }
.index-contact-contain .formCheck { float: left; margin-right: 0; margin-left: -80px; }
