/*
 * 自定义样式文件
 * 用户可在此添加自定义CSS，不会被主题更新覆盖
 * 主题已自动加载此文件（如果存在）
 */

/* 示例：修改主题主色调 */
/*
:root {
    --qs-primary: #2c5f8a;
    --qs-primary-dark: #1e4566;
}
*/

/* 示例：修改导航高度 */
/*
.header-inner {
    height: 90px;
}
*/

/* 示例：修改首页横幅高度 */
/*
.hero-section {
    min-height: 600px;
}
*/

/* ========================================
   Slider Revolution 按钮样式还原
   原主题 .rs-button / .rs-btn 样式
   ======================================== */

/* 按钮容器 */
.rs-button {
    display: inline-block;
    margin: 0 15px 0 0;
    vertical-align: middle;
}

.rs-button:last-child {
    margin-right: 0;
}

/* 按钮基础样式 */
.rs-btn,
.rs-btn:visited {
    display: inline-block;
    position: relative;
    background: #e85a1a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 30px;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    overflow: hidden;
}

.rs-btn:hover,
.rs-btn:focus {
    background: #c94a10;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 90, 26, 0.35);
}

/* 按钮文字和箭头布局 */
.rs-btn span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* 箭头容器 - 动画效果 */
.rs-btn em {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    overflow: hidden;
    font-style: normal;
}

/* 两个箭头图片 - 上下排列，hover时滑动切换 */
.rs-btn em img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.35s ease;
    -webkit-transition: transform 0.35s ease;
}

.rs-btn em img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

.rs-btn em img:last-child {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    -webkit-transform: translateY(100%);
}

/* hover时箭头滑动切换 */
.rs-btn:hover em img:first-child {
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%);
}

.rs-btn:hover em img:last-child {
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

/* 特定按钮修饰类 automation-btn-2 */
.rs-btn.automation-btn-2 {
    background: #e85a1a;
}

.rs-btn.automation-btn-2:hover {
    background: #c94a10;
}

/* 如果没有箭头图片，用CSS箭头代替 */
.rs-btn.no-arrow em {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .rs-button {
        display: block;
        margin: 0 0 12px 0;
    }
    .rs-btn,
    .rs-btn:visited {
        display: block;
        text-align: center;
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* Slider Revolution 幻灯片内按钮覆盖层调整 */
.tp-caption .rs-button,
.rs-layer .rs-button {
    margin: 0;
}

.tp-caption .rs-btn,
.rs-layer .rs-btn {
    font-family: inherit;
}
