/* =====================================================================
   home.css —— 全球中小企业联盟 首页改版 v3
   官网 style_cn.css 先加载，本文件只做新增与必要覆盖。
   色板全部取自官网：
   深海蓝 #1c3f52 · 次级蓝 #305062 · 墨金 #806411 · 强调橙 #ed4b00
   浅灰底 #ebf0f3 · 中灰底 #dbe2e6 · 分隔线 #d3d8da · 正文 #5b5b5b
   不使用 CSS 变量、不使用 flex gap，兼容旧版 Safari / Android / IE11。
   ===================================================================== */

/* ---------- 0. 页面基底 ---------- */
html, body { background: #fff; }

/* ---------- 1. 区块骨架 ---------- */
.mk-section { position: relative; padding-bottom: 70px; }
.mk-section--white { background: #fff; }
.mk-section--grey1 { background: #ebf0f3; }
.mk-section--grey2 { background: #dbe2e6; }
.mk-inner { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.mk-inner--narrow { max-width: 1076px; padding: 0 20px; }

/* 区块大标题：沿用官网 h3.kaf-prominent-header-light 规格（260% / 居中 / #787878） */
.mk-h { text-align: center; font-size: 260%; font-weight: bold; color: #787878; padding: 50px 0 16px; line-height: 1.2; }
.mk-h-sub { display: block; padding-top: 14px; font-size: 12px; font-weight: normal; letter-spacing: .34em; text-indent: .34em; color: #806411; }
.mk-h-sub:before, .mk-h-sub:after {
    content: ""; display: inline-block; width: 26px; height: 1px;
    margin: 0 12px 3px; background: #806411; opacity: .45; vertical-align: middle;
}

/* 「查看更多」按钮 */
.mk-more { text-align: center; padding-top: 36px; }
.mk-more a {
    display: inline-block; padding: 13px 36px; border: 1px solid #1c3f52;
    color: #1c3f52; font-size: 15px; letter-spacing: .1em; text-decoration: none;
    transition: background .25s, color .25s;
}
.mk-more a em { font-style: normal; padding-left: 9px; }
.mk-more a:hover { background: #1c3f52; color: #fff; }

/* ---------- 2. Banner：三个并列（配图＋会议名称，不可点击跳转） ---------- */
#sec-banner { background: #1c3f52; padding-bottom: 0; }
.banner-row { display: flex; height: 470px; align-items: stretch; }
.banner-row__item {
    position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor:pointer; color: #fff;
    display: flex; align-items: center; justify-content: center; padding: 26px 24px;
    background-color: #305062; background-size: cover; background-position: center 44%;
    transition: flex-grow .55s cubic-bezier(.22, .75, .2, 1);
    word-break: break-word;
    border-top: 1px solid #82A0A3;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
}
.banner-row__item:focus-visible{ outline:3px solid #ed4b00; outline-offset:-4px; }  /* 键盘 Tab 可见 */
@media (hover:none){                         /* 触屏：点完别把"加宽"效果粘在卡片上 */
.banner-row:hover .banner-row__item,
.banner-row .banner-row__item:hover{ flex-grow:1; }
}
.banner-row__item + .banner-row__item { border-left: 1px solid rgba(255, 255, 255, .16); }
/* 整体压暗，保证白字在任何配图上都可读 */
.banner-row__item:before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(9,25,34,.42) 0%, rgba(9,25,34,.68) 100%);
}
.banner-row__title {
    position: relative; z-index: 1; text-align: center;
    font-size: 250%; font-weight: bold; line-height: 1.45; letter-spacing: .04em;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
/* 名称背后再加一层柔光暗板：配图是明亮舞台灯光时白字对比度依旧达标 */
.banner-row__title:before {
    content: ""; position: absolute; z-index: -1;
    left: -30%; right: -30%; top: -130%; bottom: -130%;
   background: radial-gradient(ellipse at center, rgba(9,25,34,.62) 0%, rgba(9,25,34,.34) 44%, rgba(9,25,34,0) 74%);
}
/* 悬停该张平滑加宽突出，纯浏览效果，无跳转、无手型光标 */
.banner-row:hover .banner-row__item { flex-grow: .86; }
.banner-row .banner-row__item:hover { flex-grow: 1.9; }

/* 给遮罩加上过渡，和宽度动画同步 */
.banner-row__item:before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(9,25,34,.12) 0%, rgba(9,25,34,.38) 100%);
  transition: background .55s cubic-bezier(.22, .75, .2, 1); /* 新增过渡 */
}

/* hover 当前item，遮罩减淡 → 背景图变亮 */
.banner-row__item:hover::before {
  background: linear-gradient(180deg, rgba(9,25,34,.04) 0%, rgba(9,25,34,.14) 100%);
}


/* ---------- 3. 世界领袖演讲团（复用官网 .leadV2-list 结构，改为每行 4 个） ---------- */
.home-speakers { font-size: 0; text-align: center; padding-top: 12px; }
.home-speakers li {
    display: inline-block; vertical-align: top; width: 25%; margin: 0; padding: 0 14px 36px;
    text-align: center; font-size: 16px; letter-spacing: normal; word-spacing: normal;
}
.home-speakers li img {
    display: block; margin: 0 auto; width: 160px; max-width: 100%; height: 187px; padding: 0;
    object-fit: cover; object-position: center 18%;
    border: 1px solid #d3d8da; box-shadow: 0 5px 18px rgba(28,63,82,.10);
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.home-speakers li p { padding: 17px 0 5px; font-size: 17px; font-weight: bold; color: #1c3f52; text-align: center; line-height: 1.45; }
.home-speakers li span { display: block; padding: 0; font-size: 13px; color: #5b5b5b; text-align: center; line-height: 1.6; }
.home-speakers li:hover img { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(28,63,82,.20); }

/* ---------- 4. 精彩瞬间：自动横向无缝滚动 ---------- */
.moments-wrapper-list { overflow: hidden; }
#JS_moments_hor {
    display: flex; flex-wrap: nowrap;
    -webkit-animation: moments-marquee 40s linear infinite;
    animation: moments-marquee 40s linear infinite;   /* 40s 为兜底，js/main.js 按实际宽度重算 */
    will-change: transform;
}
#JS_moments_hor > li { float: none; flex: 0 0 auto; display: flex; flex-direction: column; }
@-webkit-keyframes moments-marquee {
    from { -webkit-transform: translate3d(0, 0, 0); }
    to   { -webkit-transform: translate3d(-50%, 0, 0); }
}
@keyframes moments-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }       /* -50% = 单份宽度，与起点重合 → 无缝 */
}
.moments-wrapper:hover #JS_moments_hor { -webkit-animation-play-state: paused; animation-play-state: paused; }
#JS_moments_hor:active { -webkit-animation-play-state: paused; animation-play-state: paused; }
#JS_moments_hor.moments-idle { -webkit-animation-play-state: paused; animation-play-state: paused; }
#JS_moments_hor.moments-static { -webkit-animation: none; animation: none; }
#JS_before, #JS_after { display: none !important; }

/* ---------- 5. 联盟重要新闻 ---------- */
.home-news { counter-reset: mknews; border-top: 1px solid #d3d8da; }
.home-news li { border-bottom: 1px solid #d3d8da; }
.home-news li a {
    display: flex; align-items: center; padding: 18px 16px 18px 2px;
    color: #5b5b5b; text-decoration: none;
    transition: background .25s, padding .25s, box-shadow .25s;
}
.home-news li a:hover { background: #fff; padding-left: 16px; box-shadow: 0 6px 18px rgba(28,63,82,.07); }
.home-news li a:before {
    counter-increment: mknews; content: counter(mknews, decimal-leading-zero);
    flex: 0 0 auto; width: 26px; margin-right: 18px;
    font-size: 13px; color: #806411; opacity: .7; letter-spacing: .04em;
}
.home-news__date {
    flex: 0 0 auto; width: 112px; margin-right: 18px; padding-right: 18px;
    font-size: 14px; color: #888; letter-spacing: .03em; text-align: center;
    border-right: 1px solid #d3d8da;
}
.home-news__title {
    flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 1.6; color: #5b5b5b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .25s;
}
.home-news li a:hover .home-news__title { color: #1c3f52; }
.home-news__arr {
    flex: 0 0 auto; margin-left: 16px; font-style: normal; font-size: 20px; color: #806411;
    opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s;
}
.home-news li a:hover .home-news__arr { opacity: 1; transform: none; }

/* ---------- 6. 响应式 ---------- */
@media screen and (max-width: 1400px) {
    .banner-row { height: 420px; }
    .moments-wrapper, .moments-wrapper-list { overflow: hidden; width: 100%; }
    .mk-inner { padding: 0 26px; }
    .home-speakers li { padding: 0 10px 32px; }
}

@media screen and (max-width: 1200px) {
    /* Banner：三列保留但取消手风琴 */
    .banner-row { height: 360px; }
    .banner-row:hover .banner-row__item, .banner-row .banner-row__item:hover { flex-grow: 1; }
    .banner-row__title { font-size: 200%; }
    .mk-h { font-size: 210%; padding: 42px 0 14px; }
    .mk-section { padding-bottom: 54px; }
    .home-speakers li { width: 33.333%; padding-bottom: 30px; }
    .home-news__title { font-size: 16px; }
}

@media screen and (max-width: 900px) {
    .home-speakers li { width: 50%; }
}

@media screen and (max-width: 760px) {
    /* Banner：单列纵向堆叠 */
    .banner-row { flex-wrap: wrap; height: auto; }
    .banner-row__item { flex: 0 0 100%; height: 230px; padding: 22px 18px; }
    .banner-row:hover .banner-row__item, .banner-row .banner-row__item:hover { flex-basis: 100%; }
    .banner-row__title { font-size: 200%; }
    .mk-inner, .mk-inner--narrow { padding: 0 16px; }
    .mk-h { font-size: 175%; }
    .mk-h-sub { letter-spacing: .22em; text-indent: .22em; }
    .home-speakers li p { font-size: 16px; }
    .home-speakers li img { width: 136px; height: 159px; }
    /* 手机上新闻标题不截断，改为整行换行显示 */
    .home-news li a { align-items: flex-start; padding: 15px 12px 15px 2px; }
    .home-news li a:hover { padding-left: 8px; }
    .home-news__date { width: 88px; padding-right: 12px; font-size: 13px; }
    .home-news__title { white-space: normal; font-size: 15px; line-height: 1.7; }
    .home-news__arr { display: none; }
}

/* 系统「减少动态效果」时，精彩瞬间静止并退回手动拖动 */
@media (prefers-reduced-motion: reduce) {
    #JS_moments_hor { -webkit-animation: none; animation: none; }
    .moments-wrapper-list { overflow-x: auto; }
    .banner-row__item, .home-speakers li img { transition: none; }
}
@-webkit-keyframes showmenukey { 0% { height: 0; } 100% { height: 500px; } }
@keyframes showmenukey { 0% { height: 0; } 100% { height: 500px; } }