/* ============================================================
   元新星官网 · 全模块交互感增强层 v1.0 (2026-08-29)
   纯增量 CSS，不改动任何既有样式/结构，可整体删除回滚。
   ============================================================ */

/* ---------- 1) 全局基础 ---------- */
html{scroll-behavior:smooth}
body{-webkit-tap-highlight-color:transparent}

/* 尊重用户减弱动效偏好 */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important;scroll-behavior:auto!important}
}

/* ---------- 2) 导航强化：吸附+滚动状态 ---------- */
.yxx-scrolled{box-shadow:0 6px 30px rgba(10,50,100,.1)}
nav{transition:box-shadow .35s ease,background .35s ease}

/* 导航链接 hover 发光 + active 跟随滚动 */
.nav-links a:not(.cta){font-weight:600}
.nav-links a:not(.cta).yxx-active{color:var(--green,#0084ff)}
.nav-links a:not(.cta).yxx-active::after{width:100%;background:var(--green,#0084ff)}

/* ---------- 3) 统一水波纹点击反馈 ---------- */
.yxx-ripple{position:relative;overflow:hidden}
.yxx-ripple-y{position:absolute;border-radius:50%;background:rgba(255,255,255,.55);transform:scale(0);animation:yxxRipple .6s ease-out forwards;pointer-events:none;mix-blend-mode:overlay}
.yxx-ripple-dark .yxx-ripple-y{background:rgba(13,59,140,.18)}
@keyframes yxxRipple{to{transform:scale(2.6);opacity:0}}

/* ---------- 4) 入场动画（滚动显现，带交错延迟） ---------- */
.yxx-reveal{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.22,.61,.36,1),transform .7s cubic-bezier(.22,.61,.36,1);will-change:opacity,transform}
.yxx-reveal.yxx-in{opacity:1;transform:none}
.yxx-reveal[data-d="1"]{transition-delay:.08s}
.yxx-reveal[data-d="2"]{transition-delay:.16s}
.yxx-reveal[data-d="3"]{transition-delay:.24s}
.yxx-reveal[data-d="4"]{transition-delay:.32s}
.yxx-reveal[data-d="5"]{transition-delay:.40s}

/* 标题渐显下划线描边 */
.yxx-title{position:relative;display:inline-block}
.yxx-title::after{content:"";position:absolute;left:0;bottom:-6px;height:3px;border-radius:3px;background:linear-gradient(90deg,#2a6de0,#f0650f);width:0;transition:width .7s cubic-bezier(.22,.61,.36,1)}
.yxx-title.yxx-in::after{width:40px}

/* ---------- 5) 返回顶部按钮 ---------- */
.yxx-totop{position:fixed;right:22px;bottom:96px;z-index:180;width:46px;height:46px;border-radius:50%;border:none;background:#fff;color:#0d3b8c;font-size:19px;cursor:pointer;box-shadow:0 8px 24px rgba(13,59,140,.28);opacity:0;visibility:hidden;transform:translateY(14px) scale(.9);transition:all .3s cubic-bezier(.22,.61,.36,1)}
.yxx-totop.show{opacity:1;visibility:visible;transform:none}
.yxx-totop:hover{transform:translateY(-3px);background:linear-gradient(135deg,#2a6de0,#0d3b8c);color:#fff}
@keyframes yxxPulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.7);opacity:0}}

/* ---------- 6) Hero 主视觉：鼠标视差容器 ---------- */
.yxx-hero-parallax{transition:transform .3s ease-out}
.yxx-float-blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:.4;pointer-events:none;z-index:-1 !important}
.hero .hero-left,.hero .hero-deal,.hero .hero-wrap{position:relative;z-index:1;isolation:isolate}

/* ---------- 7) 品牌卡片：3D 倾斜 + 详情浮层 ---------- */
.yxx-tilt{transform-style:preserve-3d;transition:transform .25s ease,box-shadow .3s ease}
.yxx-tilt:hover{box-shadow:0 26px 60px rgba(13,59,140,.18)!important}
.yxx-tilt-persp{perspective:1000px}
.yxx-view-more{position:absolute;left:0;right:0;bottom:0;padding:14px;color:#fff;font-weight:800;font-size:13px;text-align:center;letter-spacing:.06em;text-decoration:none;display:block;cursor:pointer;background:linear-gradient(135deg,#2a6de0,#0d3b8c);border-radius:0 0 21px 21px;opacity:0;transform:translateY(100%);transition:all .35s cubic-bezier(.22,.61,.36,1)}
.yxx-view-more:hover{color:#fff;background:linear-gradient(135deg,#1f5ac0,#09307a)}
.yxx-tilt:hover .yxx-view-more{opacity:1;transform:none}

/* 卡片入场轻微上浮（配合 reveal） */
.brand-card,.activity-card,.deal-card{will-change:transform}

/* ---------- 8) 解决方案流程：连接线动态点亮 ---------- */
.yxx-flow-card{transition:transform .35s cubic-bezier(.22,.61,.36,1),box-shadow .35s ease}
.yxx-flow-card:hover{transform:translateY(-6px) scale(1.02)}
.yxx-flow-line{position:relative}
.yxx-flow-line::after{content:"";position:absolute;top:50%;left:100%;width:calc(100% - 8px);height:2px;transform:translateY(-50%);background:linear-gradient(90deg,transparent,#cfe3ff);pointer-events:none}
.yxx-flow-move{position:absolute;top:calc(50% - 3px);left:0;width:6px;height:6px;border-radius:50%;background:#f0650f;opacity:0}
.yxx-flow-card:hover ~ .yxx-flow-move,.yxx-flow-line:hover .yxx-flow-move{opacity:1;animation:yxxFlowDot 1.1s linear infinite}
@keyframes yxxFlowDot{0%{left:0;opacity:0}15%{opacity:1}85%{opacity:1}100%{left:calc(100% - 6px);opacity:0}}

/* ---------- 9) 倒计时：数字呼吸 + 分隔符闪动 ---------- */
.yxx-cd-num{transition:transform .2s,box-shadow .2s,background .2s}
.yxx-cd-unit:hover .yxx-cd-num{transform:translateY(-3px);box-shadow:0 8px 18px rgba(240,101,15,.25)}
.yxx-cd-sep{animation:yxxBlink 1s steps(1) infinite}
@keyframes yxxBlink{50%{opacity:.25}}

/* ---------- 10) 品牌筛选按钮 + 促销入口：拖影高亮 ---------- */
.yxx-btn-shadow{transition:transform .25s,box-shadow .25s,color .25s}
.yxx-btn-shadow:hover{transform:translateY(-2px)}

/* ---------- 11) 联系人卡片：入场 + hover 微动 ---------- */
.yxx-person-card{transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s ease}
.yxx-person-card:hover{transform:translateY(-5px)}
.yxx-person-card:hover img{transform:scale(1.05);transition:transform .3s}
.yxx-person-card img{transition:transform .3s}

/* ---------- 12) 联系我们：输入聚焦发光 + 表单悬浮 ---------- */
/* 联系信息块：hover 左移提示 */
.yxx-info-hover{transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;position:relative}
.yxx-info-hover:hover{transform:translateX(6px);border-color:#0084ff!important;box-shadow:0 8px 22px rgba(0,80,160,.1)}
.yxx-form-wrap{transition:transform .35s cubic-bezier(.22,.61,.36,1),box-shadow .35s ease}
.yxx-form-wrap:hover{transform:translateY(-4px)}
.yxx-field:focus{outline:none;border-color:#0084ff!important;box-shadow:0 0 0 3px rgba(0,132,255,.18),0 8px 20px rgba(0,80,160,.08)!important;background:#fff!important}
.yxx-btn-send{position:relative;overflow:hidden}
.yxx-btn-send.sent{background:linear-gradient(135deg,#0f9d58,#0d8a4f)!important}
.yxx-tonotify{position:fixed;left:50%;bottom:34px;transform:translate(-50%,30px);z-index:9999;background:#0d3b8c;color:#fff;padding:13px 26px;border-radius:999px;font-size:14px;font-weight:700;box-shadow:0 14px 34px rgba(13,59,140,.35);opacity:0;visibility:hidden;transition:all .4s cubic-bezier(.22,.61,.36,1)}
.yxx-tonotify.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

/* ---------- 13) 合作伙伴卡片：入场交错 + 选中脉冲 ---------- */
.yxx-pcard-enter{animation:yxxCardIn .5s cubic-bezier(.22,.61,.36,1) both}
@keyframes yxxCardIn{from{opacity:0;transform:translateY(16px) scale(.96)}to{opacity:1;transform:none}}
.partner-card.act.yxx-bump{animation:yxxBump .5s ease}
@keyframes yxxBump{0%{transform:scale(1)}40%{transform:scale(1.06)}100%{transform:scale(1)}}

/* 地图提示呼吸点 */
.yxx-map-pulse::after{content:"";position:absolute;right:14px;top:14px;width:10px;height:10px;border-radius:50%;background:#f0650f;box-shadow:0 0 0 0 rgba(240,101,15,.5);animation:yxxDotPulse 2s infinite}
@keyframes yxxDotPulse{0%{box-shadow:0 0 0 0 rgba(240,101,15,.5)}70%{box-shadow:0 0 0 10px rgba(240,101,15,0)}100%{box-shadow:0 0 0 0 rgba(240,101,15,0)}}

/* ---------- 14) 页脚微动 ---------- */
footer a{transition:color .25s,opacity .25s}
footer a:hover{opacity:.8}

/* ---------- 15) 移动端 Hover 熔断 ---------- */
@media (hover:none){
  .yxx-tilt:hover{transform:none}
  .yxx-view-more{display:none}
}

/* ===== activities 页专用 ===== */
/* 筛选按钮滑动高亮 */
.yxx-chip{position:relative;overflow:hidden}
.yxx-chip::before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent,rgba(255,255,255,.5),transparent);transform:translateX(-120%);transition:transform .6s ease}
.yxx-chip:hover::before{transform:translateX(120%)}
/* 灯箱箭头 */
.yxx-lb-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:10;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.14);color:#fff;font-size:22px;cursor:pointer;transition:background .25s,transform .25s;display:grid;place-items:center}
.yxx-lb-arrow:hover{background:rgba(255,255,255,.32);transform:translateY(-50%) scale(1.1)}
.yxx-lb-prev{left:-58px}
.yxx-lb-next{right:-58px}
@media(max-width:760px){.yxx-lb-prev{left:-8px}.yxx-lb-next{right:-8px}}
/* 灯箱放大动画 */
.yxx-lb-zoom img{animation:yxxLbZoom .35s ease}
@keyframes yxxLbZoom{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}

/* ===== 移动端标题与间距修复 ===== */
/* 中文标题(h2) 保持 block 独占一行，放在英文 kicker 正下方，不做 inline-block 跟随 */
.section-head h2{display:block;margin-top:10px}
/* 英文 kicker(带呼吸灯) 与中文标题上下分明：kicker 独占一行 */
.section-head .kicker{display:flex;width:100%}
/* 品牌区块与上方 hero/其他模块的呼吸间距 */
#brands{margin-top:18px}
/* 其他 section 统一上下呼吸间距 */
section{margin-bottom:6px}
/* 移动端进一步拉开 */
@media(max-width:850px){
  #brands{margin-top:34px}
  .section-head{margin-bottom:30px}
}
