/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* ================================================== */
/*        响应式广告样式 (PC端和移动端)        */
/* ================================================== */

/* PC端样式 (屏幕宽度 > 768px) */
#hongbao0.wrapper {
    position: fixed;
    z-index: 9999;
    background: none !important;
    width: 800px; /* PC端广告容器宽度 */
    height: auto;
    bottom: 20px;
    right: 480px;
    top: auto;
    left: auto;
    transform: none;
}

/* 用于包裹两张广告图的容器 */
.ad-container {
    display: flex;
    flex-direction: column; /* 让图片垂直排列 */
    gap: 10px;             /* 图片之间的间距 */
    /* 新增：应用跳动动画 */
    animation: ad-jump 1.5s infinite ease-in-out;
}

/* 应用于每张广告图的链接和图片 */
.ad-container .ad-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.custom-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10000;
    width: 25px;
    height: 25px;
    line-height: 23px;
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
}

.custom-close-btn:hover {
    background-color: rgba(0, 0, 0, 1);
}

/* 移动端样式 (屏幕宽度 <= 768px) */
@media (max-width: 768px) {
    #hongbao0.wrapper {
        width: auto; /* 在移动端，宽度自适应 */
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .custom-close-btn {
        /* 在移动端，将关闭按钮移到图片内部右上角，防止超出屏幕 */
        top: 10px;
        right: 10px;
    }
}

/* 新增：定义广告跳动动画的@keyframes */
@keyframes ad-jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px); /* 控制跳动的高度 */
    }
}
/* --- Auth Buttons --- */
/* Top initial position */
 .auth-buttons-wrapper.top-position {
   position: relative;
   display: flex;
   gap: 20px;
   justify-content: center;
   align-items: center;
   z-index: 9999;

   /* 添加背景色 */
   background-color: rgba(24, 25, 34, 0.95); /* 半透明白色背景 */
   padding: 20px 0px; /* 内边距 */
   border-radius: 0px; /* 圆角 */
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
   backdrop-filter: blur(10px); /* 背景模糊效果 */
   border: 1px solid rgba(255, 255, 255, 0.2); /* 边框 */
 }

/* 滚动后固定在顶部的样式 (已修正) */
.auth-buttons-wrapper.fixed-top {
  position: fixed;
  top: 0; /* <-- 核心修改点 */
  left: 0;
  width: 100%;
  margin: 0;
  z-index: 9999;

  /* 保持与初始状态一致的外观 */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: rgba(24, 25, 34, 0.95);
  padding: 20px 0px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 仅保留底部边框 */
}

 /* Button basic animation style */
 .auth-button {
   font-weight: bold;
   text-decoration: none;
   animation: bounce 1.5s infinite, gradientShift 5s ease infinite;
   transition: all 0.3s ease;
   display: inline-block;
 }

 /* Login button style */
 .login-button {
   padding: 14px 60px;
   font-size: 16px;
   border-radius: 20px;
   color: #fff;
   background: linear-gradient(270deg, #00c6ff, #0072ff);
   background-size: 300% 300%;
   border: none;
 }

 /* Sign up button style */
 .register-button {
   padding: 14px 26px;
   font-size: 16px;
   border-radius: 30px;
   color: #fff;
   background: linear-gradient(270deg, #ff4e50, #f9d423);
   background-size: 300% 300%;
   border: none;
 }

 /* Animation: Jump */
 @keyframes bounce {
   0%, 100% { transform: translateY(0); }
   50% { transform: translateY(-6px); }
 }

 /* Animation: Fade */
 @keyframes gradientShift {
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
 }
 /* ================================================== */
/*        响应式广告样式 (PC端和移动端)        */
/* ================================================== */

/* PC端样式 (屏幕宽度 > 768px) */
#hongbao0.wrapper {
    position: fixed;
    z-index: 9999;
    background: none !important;
    width: 800px; /* PC端广告容器宽度 */
    height: auto;
    bottom: 20px;
    right: 480px;
    top: auto;
    left: auto;
    transform: none;
}

/* 用于包裹两张广告图的容器 */
.ad-container {
    display: flex;
    flex-direction: column; /* 让图片垂直排列 */
    gap: 10px;             /* 图片之间的间距 */
    /* 新增：应用跳动动画 */
    animation: ad-jump 1.5s infinite ease-in-out;
}

/* 应用于每张广告图的链接和图片 */
.ad-container .ad-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.custom-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10000;
    width: 25px;
    height: 25px;
    line-height: 23px;
    font-size: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    text-align: center;
}

.custom-close-btn:hover {
    background-color: rgba(0, 0, 0, 1);
}

/* 移动端样式 (屏幕宽度 <= 768px) */
@media (max-width: 768px) {
    #hongbao0.wrapper {
        width: auto; /* 在移动端，宽度自适应 */
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .custom-close-btn {
        /* 在移动端，将关闭按钮移到图片内部右上角，防止超出屏幕 */
        top: 10px;
        right: 10px;
    }
}

/* 新增：定义广告跳动动画的@keyframes */
@keyframes ad-jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px); /* 控制跳动的高度 */
    }
}

/* --- Auth Buttons --- */
/* Top initial position */
 .auth-buttons-wrapper.top-position {
   position: relative;
   display: flex;
   gap: 20px;
   justify-content: center;
   align-items: center;
   z-index: 9999;
   flex-wrap: wrap;

   /* 添加背景色 */
   background-color: rgba(24, 25, 34, 0.95); /* 半透明白色背景 */
   padding: 20px 0px; /* 内边距 */
   border-radius: 0px; /* 圆角 */
   box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
   backdrop-filter: blur(10px); /* 背景模糊效果 */
   border: 1px solid rgba(255, 255, 255, 0.2); /* 边框 */
 }

/* 滚动后固定在顶部的样式 (已修正) */
.auth-buttons-wrapper.fixed-top {
  position: fixed;
  top: 0; /* <-- 核心修改点 */
  left: 0;
  width: 100%;
  margin: 0;
  z-index: 9999;

  /* 保持与初始状态一致的外观 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background-color: rgba(24, 25, 34, 0.95);
  padding: 20px 0px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 仅保留底部边框 */
}

 /* Button basic animation style */
 .auth-button {
   font-weight: bold;
   text-decoration: none;
   animation: bounce 1.5s infinite, gradientShift 5s ease infinite;
   transition: all 0.3s ease;
   display: inline-block;
 }

 /* Login button style */
 .login-button {
   padding: 14px 10px;
   font-size: 16px;
   border-radius: 20px;
   color: #fff;
   background: linear-gradient(270deg, #00c6ff, #0072ff);
   background-size: 300% 300%;
   border: none;
 }

 /* Sign up button style */
 .register-button {
   padding: 14px 26px;
   font-size: 16px;
   border-radius: 30px;
   color: #fff;
   background: linear-gradient(270deg, #ff4e50, #f9d423);
   background-size: 300% 300%;
   border: none;
 }

 /* Animation: Jump */
 @keyframes bounce {
   0%, 100% { transform: translateY(0); }
   50% { transform: translateY(-6px); }
 }

 /* Animation: Fade */
 @keyframes gradientShift {
   0% { background-position: 0% 50%; }
   50% { background-position: 100% 50%; }
   100% { background-position: 0% 50%; }
 }