@CHARSET "UTF-8";
/* ============================================================
   V-Ran 蔚然远行 - 首页交互效果样式
   依赖: chem-home.css / chem-shop.css / Bootstrap 3 / FontAwesome 4
   配色: 帆船青 #1E9FD8 · 文字蓝 #1B5C94
   ------------------------------------------------------------
   安全说明: 所有"初始隐藏"样式都挂在 html.vr-js 之下,
   该 class 由内联脚本在最早期添加。若 JS 未运行, 元素保持
   默认可见状态, 不会出现内容消失的白屏问题。
   ============================================================ */

/* ============ 1. 顶部阅读进度条 ============ */
.vr-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2000;
    background: linear-gradient(90deg, #1b5c94, #1e9fd8, #6fd0ff);
    box-shadow: 0 0 8px rgba(30, 159, 216, .6);
    transition: width .12s linear;
    pointer-events: none;
}

/* ============ 2. 导航栏滚动收缩 ============ */
.navbar.vr-nav-scrolled {
    box-shadow: 0 2px 14px rgba(20, 60, 100, .16);
    transition: box-shadow .3s ease;
}

/* 滚动后整条导航一起收窄: 导航条 86 → 74px, logo 72 → 60px, 菜单 padding 33 → 27px */
.navbar.vr-nav-scrolled .navbar-brand-logo {
    height: 74px;
    transition: height .3s ease;
}

.navbar.vr-nav-scrolled .navbar-brand-logo img {
    height: 60px;
    transition: height .3s ease;
}

.navbar.vr-nav-scrolled #main-menu > li > a,
.navbar.vr-nav-scrolled #main-menu-user > li > a {
    padding-top: 27px;
    padding-bottom: 27px;
    transition: color .25s ease, padding .3s ease;
}

.navbar-brand-logo,
.navbar-brand-logo img {
    transition: height .3s ease;
}

/* ============ 3. 滚动进场动画 ============ */
html.vr-js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
    transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

html.vr-js [data-reveal="left"] {
    transform: translateX(-30px);
}

html.vr-js [data-reveal="right"] {
    transform: translateX(30px);
}

html.vr-js [data-reveal="zoom"] {
    transform: scale(.94);
}

html.vr-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ============ 4. Hero 鼠标视差 ============ */
.vr-hero {
    transition: background-position .2s ease;
}

.vr-hero-inner,
.vr-hero .vr-hero-deco {
    will-change: transform;
}

/* ============ 5. Hero 快速搜索框 ============ */
.vr-hero-search {
    margin-top: 26px;
    max-width: 560px;
}

.vr-hero-search-form {
    display: flex;
    background: rgba(255, 255, 255, .96);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(8, 40, 70, .22);
    transition: box-shadow .25s ease, transform .25s ease;
}

.vr-hero-search-form.is-focus {
    box-shadow: 0 10px 30px rgba(8, 40, 70, .32);
    transform: translateY(-2px);
}

.vr-hero-search-form .vr-search-icon {
    flex: 0 0 46px;
    text-align: center;
    line-height: 48px;
    font-size: 17px;
    color: #1b5c94;
}

.vr-hero-search-form input {
    flex: 1;
    height: 48px;
    border: 0;
    outline: 0;
    padding: 0 6px;
    font-size: 15px;
    color: #22303e;
    background: transparent;
}

.vr-hero-search-form input::-webkit-input-placeholder {
    color: #a8b0b8;
}

.vr-hero-search-form button {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 26px;
    border: 0;
    background: #1e9fd8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.vr-hero-search-form button:hover {
    background: #178bc0;
}

.vr-hero-search-tips {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .74);
}

.vr-hero-search-tips b {
    font-weight: 600;
}

.vr-hero-search-tips .vr-tip-item {
    display: inline-block;
    margin-right: 10px;
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.vr-hero-search-tips .vr-tip-item:hover {
    background: rgba(255, 255, 255, .9);
    color: #14486e;
}

/* 空关键词时的抖动提示 */
@keyframes vr-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(2px); }
}

.vr-hero-search-form.vr-shake {
    animation: vr-shake .42s ease;
}

/* ============ 6. 业务卡片 hover 增强 ============ */
/* 基础外观在 chem-home.css, 这里只放动效 */
.vr-biz-card .vr-biz-icon .fa {
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), background .3s ease, color .3s ease;
}

.vr-biz-card:hover .vr-biz-icon .fa {
    transform: translateY(-4px) rotate(-8deg) scale(1.06);
    background: linear-gradient(135deg, #1e9fd8, #1b5c94);
    color: #fff;
}

.vr-biz-card:hover {
    transform: translateY(-6px);
    border-color: #cfe6f5;
    box-shadow: 0 16px 38px rgba(27, 92, 148, .14);
}

/* ============ 7. 能力优势项 图标弹入 ============ */
.vr-adv-item .fa {
    display: inline-block;
    transition: transform .3s ease;
}

.vr-adv-item:hover .fa {
    transform: translateY(-5px) scale(1.18);
}

@keyframes vr-pop {
    0% { transform: scale(.3); opacity: 0; }
    60% { transform: scale(1.22); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

html.vr-js .vr-adv-item.is-visible .fa {
    animation: vr-pop .55s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* ============ 8. 产品卡片交互增强 ============ */
.chem-card {
    overflow: hidden;
}

.chem-card-thumb img {
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.chem-card:hover .chem-card-thumb img {
    transform: scale(1.09);
}

/* 光扫效果 */
.vr-home-products .chem-card:after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    transition: left .65s ease;
    pointer-events: none;
}

.vr-home-products .chem-card:hover:after {
    left: 130%;
}

/* ============ 9. 定制流程 步骤依次点亮 ============ */
.vr-flow .vr-step-num {
    transition: background .4s ease, color .4s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.vr-flow li.is-visible .vr-step-num {
    background: #1e9fd8;
    color: #fff;
    transform: scale(1.06);
}

/* 连接线填充动画 */
.vr-flow li:not(:last-child):after {
    background: #d8ecf8;
    background-image: linear-gradient(90deg, #1e9fd8, #6fd0ff);
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: background-size .8s ease;
}

.vr-flow li.vr-line-done:after {
    background-size: 100% 100%;
}

/* ============ 10. 返回顶部按钮增强 ============ */
#backtotop {
    transition: transform .25s ease, background .25s ease, opacity .25s ease;
}

#backtotop:hover {
    transform: translateY(-4px) scale(1.08);
}

/* ============ 11. 减少动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
    html.vr-js [data-reveal],
    html.vr-js [data-reveal].is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    html.vr-js .vr-adv-item.is-visible .fa {
        animation: none !important;
    }

    .vr-hero-mol-spin {
        animation: none !important;
    }

    .chem-card-thumb img,
    .vr-biz-card,
    .vr-biz-card .vr-biz-icon .fa,
    .vr-biz-watermark {
        transition: none !important;
    }
}

/* ============ 12. 移动端：关闭视差与重动画 ============ */
@media (max-width: 767px) {
    .vr-hero-search {
        max-width: 100%;
    }

    .vr-hero-search-form button {
        padding: 0 16px;
    }

    .vr-hero-search-tips .vr-tip-item {
        margin-bottom: 6px;
    }
}
