/* 全站通知条：取自首页炫彩渐变背景的方位配色
   成功 = 左侧（紫 → 绿） 失败 = 右侧（橙 → 红） 警告 = 下方（洋红 → 橙） */
.alert {
  border: 0 !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  text-align: center;
}
.alert a { color: #fff; text-decoration: underline; }

/* 成功：左侧 紫 → 青绿 */
.alert-success {
  background: linear-gradient(120deg, #7637d6 0%, #4f46c8 35%, #2ea96e 100%) !important;
}
/* 失败：右侧 橙 → 红 */
.alert-danger, .alert-error {
  background: linear-gradient(120deg, #e8721f 0%, #d6403a 60%, #b81f4d 100%) !important;
}
/* 警告：下方 洋红 → 橙 */
.alert-warning {
  background: linear-gradient(120deg, #c92663 0%, #d6553f 55%, #e08b2a 100%) !important;
  color: #fff !important;
}
/* 信息：蓝 → 紫（中部过渡色） */
.alert-info {
  background: linear-gradient(120deg, #3478f6 0%, #6a5acd 100%) !important;
}
/* bootstrap 关闭按钮在深色渐变上反白 */
.alert .btn-close { filter: invert(1) grayscale(1); opacity: .8; }

/* 画廊歌曲：悬停播放按钮 + 底部播放器 */
.elz-song-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: 0;
  /* 默认：半透明深色按钮，提示可播放 */
  background: rgba(0, 0, 0, .42); color: #fff;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  font-size: 39px; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: background .25s, color .25s, box-shadow .25s;
}
/* 鼠标划过卡片：同位同尺寸变成白色按钮，刚好完整遮住深色按钮 */
*:hover > .elz-song-play,
.portfolio-box:hover .elz-song-play,
.portfolio-item:hover .elz-song-play,
.masonry-item:hover .elz-song-play,
.hoverbox-6:hover .elz-song-play,
.elz-song-play:hover {
  background: #fff; color: #1c1c1e;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
/* 播放三角视觉重心偏左，向右微调让它在圆内居中 */
.elz-song-play i { line-height: 1; margin-left: 5px; }
body.se-editing .elz-song-play { display: none; }  /* 编辑模式隐藏，避免干扰 */

/* 歌曲卡片右上角播放量角标 */
.elz-play-count {
  position: absolute; top: 8px; right: 8px; z-index: 6;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 12px; line-height: 1; color: #fff;
  background: rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  pointer-events: none;
}
.elz-play-count i { font-size: 13px; }

.elz-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
  background: #1c1c1e; color: #fff;
  display: none; align-items: center; gap: 14px;
  padding: 10px 18px; box-shadow: 0 -4px 24px rgba(0, 0, 0, .4);
  flex-wrap: wrap;
}
.elz-player.show { display: flex; }
.elz-player-cover {
  width: 48px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: #2a2a2c;
}
.elz-player-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 歌名区按内容自适应宽度（短则窄、长则宽，最多占 32%），进度条填满剩余空间 */
.elz-player-meta { display: flex; flex-direction: column; min-width: 0; flex: 0 1 auto; max-width: 32%; }
.elz-player-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elz-player-artist { font-size: 13px; color: #9aa0a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.elz-player-seekwrap { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; font-size: 12px; color: #9aa0a6; }
.elz-player-seekwrap .elz-cur, .elz-player-seekwrap .elz-dur { flex: none; line-height: 1; }
/* 自绘进度条：填充右沿与滑块中心同一百分比，绝对对齐；整体垂直居中 */
.elz-seekbar {
  position: relative; flex: 1; height: 5px; border-radius: 3px;
  background: #555; cursor: pointer; align-self: center;
}
.elz-seek-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: #3478f6; border-radius: 3px; pointer-events: none;
}
.elz-seek-thumb {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px;
  border-radius: 50%; background: #3478f6; transform: translate(-50%, -50%);
  pointer-events: none;
}
.elz-player-toggle, .elz-player-close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #2a2a2c; color: #fff; font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.elz-player-toggle { background: #3478f6; }
.elz-player-toggle:hover { background: #2f6ad8; }
.elz-player-close:hover { background: #444; }
.elz-player-audio { display: none; }
@media (max-width: 600px) {
  .elz-player { gap: 8px 10px; padding: 10px 12px; }
  /* 移动端两行：上行 封面+文字+播放/关闭(右)，下行 进度条独占整行 */
  .elz-player-cover { order: 0; }
  .elz-player-meta { flex: 1 1 auto; max-width: none; order: 1; }
  .elz-player-toggle { order: 2; }
  .elz-player-close { order: 3; }
  .elz-player-seekwrap { order: 4; flex: 0 0 100%; width: 100%; }
  .elz-player-name { white-space: nowrap; }
}

/* 自建视频弹窗 */
.elz-video-overlay {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0, 0, 0, .9);
  display: flex; align-items: center; justify-content: center;
}
.elz-video-box {
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .6);
}
.elz-video-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: 0; color: #fff; font-size: 40px;
  line-height: 1; cursor: pointer;
}

/* 滚动文字（marquee）：每条保持单行不换行并垂直居中，
   避免移动端因换行或混排字号（如粘贴带入的 font-size）而上下错位。 */
.sliding-text .swiper-slide,
.sliding-text-reverse .swiper-slide {
  display: flex;
  align-items: center;
}
.sliding-text .swiper-slide h2,
.sliding-text-reverse .swiper-slide h2 {
  white-space: nowrap;
}

/* 移动端禁止双击放大（保留单指滚动/点击）；捏合放大由 viewport 与 JS 兜底禁用 */
html { touch-action: manipulation; }

/* 移动端横向溢出修复：模板只给 body 设了 overflow-x:hidden，但移动端常是 html 在滚动，
   导致装饰圆/shape 等绝对定位元素溢出时右侧能滑出空白。给 html 也加上并限宽。 */
html, body { overflow-x: hidden; max-width: 100%; }
body { position: relative; }

/* 登录/退出等消息：顶部居中浮动提示卡（任意页面都能显示，几秒后自动消失） */
.elz-flash {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100002;
  width: min(92%, 560px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.elz-flash .alert {
  margin: 0;
  pointer-events: auto;
  transition: opacity .5s, transform .5s;
}
.elz-flash .alert.elz-hide { opacity: 0; transform: translateY(-10px); }

/* 页脚移动端/平板优化：所有文字与社交图标统一居中（桌面端仍保持左右分栏） */
@media (max-width: 991.98px) {
  footer .text-md-start,
  footer .text-md-end,
  footer .col-12 {
    text-align: center !important;
  }
  /* 行内列表（导航链接、地址/邮箱、社交圆形图标）去掉默认缩进，靠上面的 text-align 居中
     —— list-inline 的 li 是 inline-block，text-align:center 即可对齐，且保留破折号分隔符 */
  footer ul {
    padding-left: 0;
  }
}

/* 客户 / 品牌 logo：统一固定高度、居中、等比缩放（不同尺寸的 logo 看起来一致） */
.client-box {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 150px;
}
.client-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}
.client-box img {
  max-height: 140px !important;
  max-width: 100% !important;
  width: auto !important;
  object-fit: contain;
}

/* 首页 Hero 轮播：内容在整屏高度上垂直居中 */
#elz-hero .section-fullscreen {
  height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#elz-hero .section-fullscreen > div {        /* .section-xl.bg-dark-03 收缩到内容高度并被居中 */
  width: 100%;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;        /* 去掉中间的深色横条；整屏压暗由 bg-overlay 提供 */
  position: relative;
  z-index: 1;                                /* 内容浮在整屏蒙版之上 */
}
#elz-hero .section-fullscreen .container { width: 100%; }

/* 首页 Hero 轮播：初始化前限制高度，避免多页全屏内容竖排闪烁 */
#elz-hero:not(.owl-loaded) {
  height: 100vh;
  overflow: hidden;
}
#elz-hero:not(.owl-loaded) > div:not(:first-child) { display: none; }

/* ---------- Logo 自动变色 ----------
   浅色头部 → 黑色剪影；transparent-light（覆盖在深色大图上的透明头部）→ 白色剪影。
   复用模板自身的头部类约定。 */
.header .header-logo img.elz-logo-auto {
  filter: brightness(0);
  transition: filter .3s;
}
.header.transparent-light .header-logo img.elz-logo-auto {
  filter: brightness(0) invert(1);
}
/* transparent-dark：覆盖在浅色大图上的透明头部，保持黑色 */
.header.transparent-dark .header-logo img.elz-logo-auto {
  filter: brightness(0);
}

/* 页眉右侧图标：任意用户都垂直居中对齐 + 图标间距一致 */
.header-menu-extra ul.list-inline-sm { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.header-menu-extra ul.list-inline-sm > li { margin: 0; padding: 0; display: inline-flex; align-items: center; }
.header-menu-extra ul.list-inline-sm > li > a { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.header-menu-extra ul.list-inline-sm > li > a > i { font-size: 18px; line-height: 1; vertical-align: middle; }


/* 页眉功能入口：除微信/邮件/电话外全部收进「齿轮」，点开为半透明圆角下拉(图标+文字)，桌面/移动端一致 */
.hx-tools { position: relative; display: inline-flex; align-items: center; }
.header-menu-extra ul.list-inline-sm > li > a.hx-gear { display: inline-flex; align-items: center; }
.hx-gear > i { font-size: 18px; line-height: 1; }
.hx-drop { display: none; position: absolute; right: 0; top: calc(100% + 12px); list-style: none;
  flex-direction: column; align-items: stretch; gap: 2px; width: max-content; max-width: 72vw; padding: 6px; margin: 0;
  background: rgba(28,32,38,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28); z-index: 99999; }
.hx-tools.hx-open .hx-drop { display: flex; }
.hx-drop > li { margin: 0; padding: 0; }
.hx-drop > li > a { display: flex; align-items: center; gap: 12px;
  border-radius: 10px; color: #fff !important; white-space: nowrap; font-size: 14px; padding: 10px 26px 10px 16px; }
.hx-drop > li > a > i { font-size: 17px; width: 20px; text-align: center; }
.hx-drop > li > a:hover, .hx-drop > li > a:active { background: rgba(255,255,255,.14); }
.hx-drop .hx-label { display: inline; }

/* PC 端：主导航自带二级菜单改用与齿轮菜单一致的半透明玻璃质感 */
@media (min-width: 992px) {
  .header .header-menu .nav .nav-item .nav-dropdown,
  .header .header-menu .nav .nav-item .nav-dropdown .nav-dropdown-item .nav-subdropdown {
    background: rgba(28,32,38,.55) !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.28);
    padding: 6px;
  }
  .header .header-menu .nav .nav-item .nav-dropdown .nav-dropdown-item { padding: 0; }
  .header .header-menu .nav .nav-item .nav-dropdown a:not([class^='button']):not([class^="link-social"]),
  .header .header-menu .nav .nav-item .nav-dropdown .nav-dropdown-link,
  .header .header-menu .nav .nav-item .nav-dropdown .nav-subdropdown-link { color: #fff; }
  .header .header-menu .nav .nav-item .nav-dropdown .nav-dropdown-item .nav-dropdown-link,
  .header .header-menu .nav .nav-item .nav-dropdown .nav-subdropdown .nav-subdropdown-item .nav-subdropdown-link {
    border-radius: 10px; padding: 10px 16px;
  }
  .header .header-menu .nav .nav-item .nav-dropdown .nav-dropdown-item .nav-dropdown-link:hover,
  .header .header-menu .nav .nav-item .nav-dropdown a:not([class^='button']):not([class^="link-social"]):hover,
  .header .header-menu .nav .nav-item .nav-dropdown .nav-subdropdown .nav-subdropdown-item .nav-subdropdown-link:hover {
    background: rgba(255,255,255,.14); color: #fff; padding: 10px 16px;
  }
}


/* 音乐播放器弹出时，回到顶部按钮上移避免被遮挡 */
.scrolltotop {
  transition: bottom 0.2s ease, opacity 0.12s ease-out, transform 0.12s ease-out, visibility 0.12s ease-out;
}
:root:has(.elz-player.show) .scrolltotop {
  bottom: calc(20px + var(--player-h, 68px));
}

/* 头部品牌文字（未上传 Logo 图、用站点名称文字时）→ 套用模板的标题字体与颜色，
   让 inRadium 这类文字看起来像个 logo，而不是浏览器默认字体。Poppins/#151515 与模板 h1-h6 一致。 */
.header .navbar-brand,
.header .navbar-brand:hover,
.header .navbar-brand:focus {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: #151515;
  text-decoration: none;
}

/* 首页 hero 装饰：4 个原圆 → 4 簇会动的声波涟漪（扩散 + 淡出循环）。
   四色有深浅：蓝 / 灰青 / 灰 / 近黑，去掉原模板的粉橙。概念 1 + 动画。不改原 HTML。 */
.hero-area { position: relative; overflow: hidden; }
.hero-area .container { position: relative; z-index: 2; }

.hero-area .main__circle,
.hero-area .main__circle2,
.hero-area .main__circle3,
.hero-area .main__circle4 { background: transparent !important; z-index: 0 !important; }

.hero-area .main__circle  { width:460px!important; height:460px!important; top:50%!important; right:30px!important; left:auto!important; bottom:auto!important; transform:translateY(-50%); color:#4A82B4; }
.hero-area .main__circle3 { width:320px!important; height:320px!important; top:-110px!important; left:-110px!important; right:auto!important; color:#4F8392; }
.hero-area .main__circle2 { width:200px!important; height:200px!important; bottom:-50px!important; right:calc(50% - 230px)!important; top:auto!important; color:#818D93; }
.hero-area .main__circle4 { width:150px!important; height:150px!important; top:42%!important; left:18px!important; color:#232E34; }

.hero-area .main__circle::before,  .hero-area .main__circle::after,
.hero-area .main__circle2::before, .hero-area .main__circle2::after,
.hero-area .main__circle3::before, .hero-area .main__circle3::after,
.hero-area .main__circle4::before, .hero-area .main__circle4::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor;
  animation: inr-ripple 3.4s ease-out infinite;
}
.hero-area .main__circle::after,
.hero-area .main__circle2::after,
.hero-area .main__circle3::after,
.hero-area .main__circle4::after { animation-delay: 1.7s; }

@keyframes inr-ripple {
  0%   { transform: scale(0.2); opacity: 0; }
  18%  { opacity: 0.55; }
  100% { transform: scale(1);   opacity: 0; }
}

/* plugin 图左上的粉圆 .image-bg-shape → 也变涟漪（青色，像声音从插件发出） */
.hero-area .app-image .image-bg-shape {
  background: transparent !important;
  width: 180px !important; height: 180px !important;
  top: -60px !important; left: -60px !important;
  z-index: -1 !important;
  color: #5BB8D4;
}
.hero-area .app-image .image-bg-shape::before,
.hero-area .app-image .image-bg-shape::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid currentColor;
  animation: inr-ripple 3.4s ease-out infinite;
}
.hero-area .app-image .image-bg-shape::after { animation-delay: 1.7s; }

/* 修复 ①：上传的插件截图自带圆角 + 四周留白；模板给 .app-image 加的 box-shadow
   会沿「图片矩形外缘」(比截图里那张卡片大一圈)画出一圈淡淡的圆角光晕 ——
   就是看到的“半透明圆角外框”，且与截图自带圆角错位。去掉这圈外框，让截图自身圆角干净呈现。
   不要 overflow:hidden（会裁掉左上角的 .image-bg-shape 涟漪装饰）。 */
.hero-area .app-image { box-shadow: none !important; }
.hero-area .app-image img { display: block; max-width: 100%; height: auto; border-radius: 16px; }

/* ===== 全站图片框统一圆角 16px =====
   覆盖所有 section 内的内容图片(关于/特性/截图/团队/博客/推荐/视频等)，全站一个值。
   排除：装饰 shape、各类 Logo（保持方/原样）；圆形头像由更高优先级的 50% 规则保留不受影响。 */
section img,
.team-image img,
.blog-single .post-thumbnils,
.blog-single .post-thumbnils img { border-radius: 16px; }
section img[src*="shape"],
.single-logo img, .client-logo img, .logo img,
.footer-logo img, .brand-logo img, .navbar-brand img { border-radius: 0 !important; }

/* 修复 ②：首页头部用的是原模板（非 .others-pages、顶部未 sticky），
   模板 .button .signin 默认 color:#fff（为深色 hero 设计），可我们的 hero 是浅底，
   于是右上角“用户名/账号图标”是白字看不见。强制深色，hover 走品牌青。 */
.header .button .signin,
.header .button .signin.hx-gear,
.header .button .signin.hx-gear > i { color: #151515; }
.header .button .signin:hover,
.header .button .signin.hx-gear:hover,
.header .button .signin.hx-gear:hover > i { color: #2C5466; }

/* 「Logo 自动变色」开关：首屏深色大图上的透明头部，文字（站点名/导航/账号/Logo）转白；
   下滑头部变白底(.sticky)时不应用，自动恢复深色，避免白字白底。
   .elz-hdr-light 由 render.py 在「开关开 + 首屏有背景图」时加到 .header 上。 */
/* 顶栏元素（品牌名/账号/Logo/汉堡）始终白 —— 它们在深色头部条上 */
.header.elz-hdr-light:not(.sticky) .navbar-brand,
.header.elz-hdr-light:not(.sticky) .navbar-brand:hover,
.header.elz-hdr-light:not(.sticky) .navbar-brand:focus,
.header.elz-hdr-light:not(.sticky) .button .signin,
.header.elz-hdr-light:not(.sticky) .button .signin > i,
.header.elz-hdr-light:not(.sticky) .button .signin.hx-gear,
.header.elz-hdr-light:not(.sticky) .button .signin.hx-gear > i { color: #fff !important; }
.header.elz-hdr-light:not(.sticky) .header-logo img.elz-logo-auto,
.header.elz-hdr-light:not(.sticky) .navbar-brand img.elz-logo-auto { filter: brightness(0) invert(1); }
.header.elz-hdr-light:not(.sticky) .mobile-menu-btn .toggler-icon { background-color: #fff !important; }
/* 导航链接仅【桌面端】变白：桌面端它们浮在深色头部条上；
   移动端折叠菜单是白色面板，链接需保持深色（否则白底白字看不见）。 */
@media (min-width: 992px) {
  .header.elz-hdr-light:not(.sticky) #nav > li > a,
  .header.elz-hdr-light:not(.sticky) #nav > li > .dd-menu { color: #fff !important; }
}

/* ===== 全站蓝色按钮 → 自适应幽灵按钮（透明底 + 描边）=====
   命中主 CTA(.button .btn)与页脚订阅按钮(.sub-btn)；橙色变体 .btn-alt/.alt 保持不变。
   · 浅色底(默认)：黑色描边 + 深字，hover 填充 30% 半透明黑（同描边色）。
   · 深色底(首屏深色大图 / .about / .bg-overlay)：白描边 + 白字，hover 填充 30% 半透明白（同描边色）。 */

/* —— 默认：浅色背景区（黑边 → hover 黑 30%）—— */
.button .btn:not(.btn-alt):not(.alt),
.footer .newsletter-form .button .sub-btn {
  background-color: transparent !important;
  color: #151515 !important;
  border: 2px solid #151515 !important;
}
.button .btn:not(.btn-alt):not(.alt):hover,
.button .btn:not(.btn-alt):not(.alt):focus,
.footer .newsletter-form .button .sub-btn:hover {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #151515 !important;
  border-color: #151515 !important;
}

/* —— 深色背景区：白描边 → hover 白 30%（同描边色）—— */
.hero-area.has-hero-bg .button .btn:not(.btn-alt):not(.alt),
.about .button .btn:not(.btn-alt):not(.alt),
.bg-overlay .button .btn:not(.btn-alt):not(.alt),
.bg-image .button .btn:not(.btn-alt):not(.alt) {
  color: #fff !important;
  border-color: #fff !important;
}
.hero-area.has-hero-bg .button .btn:not(.btn-alt):not(.alt):hover,
.hero-area.has-hero-bg .button .btn:not(.btn-alt):not(.alt):focus,
.about .button .btn:not(.btn-alt):not(.alt):hover,
.about .button .btn:not(.btn-alt):not(.alt):focus,
.bg-overlay .button .btn:not(.btn-alt):not(.alt):hover,
.bg-image .button .btn:not(.btn-alt):not(.alt):hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  border-color: #fff !important;
}

/* 页脚品牌文字（未传 Logo、用站点名称文字时）→ 套模板标题字体，白色页脚上用深色 */
.footer .logo .elz-footer-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: #151515;
  display: inline-block;
}
