/* -------------------------------------------
   自定义邮箱按钮样式 (sales@voyager-x.net) 
   ------------------------------------------- */
.contact-button-email {
    /* 核心显示设置 */
    display: inline-block; /* 允许设置宽度和高度，以及边距 */
    padding: 15px 30px; /* 上下左右的内边距，让按钮更大 */
    margin: 20px 0; /* 上下外边距，让按钮与其他内容有间隙 */
    
    /* 颜色和边框 */
    background-color: #3498DB; /* 按钮背景色：醒目的蓝色 */
    color: #FFFFFF !important; /* 文字颜色：白色 (!important 确保覆盖主题颜色) */
    border: none; /* 去掉边框 */
    border-radius: 8px; /* 轻微圆角 */
    
    /* 字体设置 */
    font-size: 20px; /* 字体大小：更大，更显眼 */
    font-weight: 700; /* 字体加粗 */
    text-decoration: none; /* 去掉链接默认的下划线 */
    line-height: 1; /* 行高，确保文字垂直居中 */

    /* 动画效果 */
    transition: background-color 0.3s ease;
}

/* 鼠标悬停时的样式 (提升用户体验) */
.contact-button-email:hover {
    background-color: #2980B9; /* 鼠标移上去颜色变深一点 */
    color: #FFFFFF !important; /* 保持白色文字 */
    cursor: pointer; /* 确保显示手型光标 */
}



/* -------------------------------------------
   1. 整体列表布局 (可选: 去掉点，调整间距)
   ------------------------------------------- */
.brand-link-list {
    list-style: none; /* 去掉列表默认的项目符号 */
    padding: 0;      /* 去掉默认左侧内边距 */
    display: flex;   /* 使用 Flexbox 使链接并排显示 */
    flex-wrap: wrap; /* 空间不够时允许换行 */
    gap: 20px;       /* 按钮之间的间距 */
    margin: 30px 0;  /* 列表上下外边距 */
}

/* 确保列表项本身也支持按钮布局 */
.brand-link-list li {
    flex-grow: 1; /* 让每个按钮尝试占据更多可用空间 */
    text-align: center; /* 按钮文字居中 */
}

/* -------------------------------------------
   2. 品牌链接按钮核心样式 (brand-link-button)
   ------------------------------------------- */
.brand-link-button {
    /* 核心显示设置 */
    display: block; /* 核心区别：让链接占据整个 li 空间 */
    padding: 15px 25px; /* 内边距，使按钮大小适中 */
    width: 100%; /* 继承 li 的宽度 */
    
    /* 颜色和边框：使用醒目的配色 */
    background-color: #E74C3C; /* 按钮背景色：醒目的红色（与您的蓝色区分） */
    color: #FFFFFF !important; /* 文字颜色：白色 */
    border: 2px solid #C0392B; /* 增加边框，提升立体感 */
    border-radius: 6px; /* 适度的圆角 */
    
    /* 字体设置 */
    font-size: 18px; /* 字体大小 */
    font-weight: 600; /* 字体加粗 */
    text-decoration: none; /* 去掉链接默认下划线 */
    line-height: 1.2; /* 行高 */
    
    /* 动画效果 */
    transition: all 0.3s ease;
}

/* -------------------------------------------
   3. 鼠标悬停时的样式 (Hover 效果)
   ------------------------------------------- */
.brand-link-button:hover {
    /* 悬停时颜色和阴影变化，强调交互 */
    background-color: #C0392B; /* 鼠标移上去颜色变深 */
    color: #FFFFFF !important; /* 保持白色文字 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 增加阴影，浮动感 */
    transform: translateY(-2px); /* 向上轻微移动，更具活力 */
    cursor: pointer; /* 确保显示手型光标 */
}




/* 模态框背景 - 覆盖整个屏幕 */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    z-index: 9999; /* 确保它在其他元素之上 */
}

/* 模态框内容区域 */
.custom-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px; /* 控制弹窗宽度 */
}

/* 模态框头部和底部样式 */
.custom-modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
}
.custom-modal-footer {
    padding-top: 15px;
    text-align: right;
}

/* OK 按钮样式 - 模仿您的图片 */
.custom-modal-btn-ok {
    background-color: #007bff; /* 蓝色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.custom-modal-btn-ok:hover {
    background-color: #0056b3;
}
/* 确保新按钮显示为橘黄色 */
.voyager-x-shop-btn {
    /* 覆盖背景颜色为橘黄色 */
    background-color: #f77a32 !important; 
    color: white !important; 
    
    /* 关键修改 1: 限制最大宽度，让它看起来更像按钮 */
    max-width: 300px; /* 您可以根据需要调整这个像素值 */
    
    /* 关键修改 2: 改变显示模式，使其能够设置宽度和居中 */
    display: block !important; 
    
    /* 关键修改 3: 居中对齐 */
    margin: 30px auto !important; /* 上下边距30px，左右自动（居中） */

    /* 继承原有的样式，如果它们被删除，请手动添加： */
    padding: 15px 30px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-size: 18px; 
    font-weight: bold; 
    cursor: pointer; 
    text-align: center; /* 确保按钮内的文字居中 */
}

/* 悬停效果保持不变 */
.voyager-x-shop-btn:hover {
    background-color: #e56d2a !important; 
}

/* --------------------------------------
   1. 定义关键帧动画： 'button-breathing'
   -------------------------------------- */
@keyframes button-breathing {
    0% {
        /* 在动画开始和结束时，按钮处于正常大小 */
        transform: scale(1);
        /* 浅色阴影，模拟“呼气” */
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.4);
    }
    50% {
        /* 在动画中间，按钮稍微放大，产生“吸气”效果 */
        transform: scale(1.03); 
        /* 加深阴影，模拟“发光”和起伏 */
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
    }
    100% {
        /* 返回到初始状态 */
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 107, 0, 0.4);
    }
}

/* --------------------------------------
   2. 应用动画到按钮 (使用您的特定类名)
   -------------------------------------- */
.voyager-x-shop-btn {
    /* 确保动画不会被其他 CSS 属性覆盖，如果有必要可以添加 !important，但尽量避免 */

    /* 应用动画名称 */
    animation-name: button-breathing;
    /* 动画完成一次的时间（1 秒）*/
    animation-duration: 1s;
    /* 动画的速度曲线（平滑）*/
    animation-timing-function: ease-in-out;
    /* 动画无限次重复 */
    animation-iteration-count: infinite;
}
/* --- 呼吸动画的关键帧定义 --- */
@keyframes breath {
  0% {
    transform: scale(1);       /* 保持原大小 */
    opacity: 1;                /* 完全不透明 */
  }
  50% {
    transform: scale(1.015);   /* 稍微放大 1.5% */
    opacity: 0.95;             /* 稍微变淡 */
  }
  100% {
    transform: scale(1);       /* 恢复原大小 */
    opacity: 1;                /* 恢复完全不透明 */
  }
}

/* --- 将动画应用到标题的自定义类上 --- */
.breathing-novelty-title {
  /* 启动动画：名称为 breath，周期 2.5 秒，无限循环，交替方向，平滑过渡 */
  animation: breath 2.5s infinite alternate ease-in-out;
  
  /* 确保缩放操作是基于中心点进行的，防止动画时位置偏移 */
  transform-origin: center center; 
}