/* ============================================================
   layout.css  —  全站共享布局样式（_Layout.cshtml 顶部栏 /
   城市选择器 / 搜索框 / 在线咨询悬浮窗）。从 _Layout 内联 <style> 抽出。
   ============================================================ */

/* ---------- 基础链接（覆盖 common.css 的 a:hover，全站统一） ---------- */
a { color: #666; }
a:hover { color: #2353C1; text-decoration: none; }

/* ---------- 顶部信息栏 ---------- */
.top {
    width: 100%;
    line-height: 27px;
    background: #e3e4e6;
    color: #000;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #e6e6e6;
}
.top .warp { width: 1190px; margin: 0 auto; }
.warp > .order { line-height: 40px; float: right; text-align: center; }
.warp > .fr { float: right; text-align: center; margin: 0 8px; }
.top > .warp > .tel { margin-left: 30px; }

/* ---------- 城市选择 ---------- */
.location {
    display: inline-block;
    cursor: pointer;
    padding: 5px;
    margin: 0 15px 0 0;
    box-sizing: border-box;
    border: 1px solid #eee;
    position: relative;
    z-index: 2;
}
#city { text-decoration: none; color: #7f7f7a; margin: 0 auto; }
.location:hover,
.location.activity {
    border-color: #d2d2d2;
    border-bottom: none;
    background-color: #fff;
}
.location-layer {
    width: 400px;
    min-height: 150px;
    position: absolute;
    border: 1px solid #d2d2d2;
    top: 37px;
    background-color: #fff;
    transition: all 1s;
    padding: 5px;
    display: none;
}
.location-layer.activity { display: block; }
.location-layer > .items > .item {
    margin: 0 4px;
    display: inline-block;
    color: #7f7f7a;
    text-decoration: none;
    padding: 2px 5px;
}
.location-layer > .items > .item:hover { background-color: #2353C1; color: #fff; }

/* ---------- 顶部搜索框 ---------- */
.search-form { float: right; width: 750px; height: 80px; }
.search-form img { max-width: 100%; }
.search-form .text {
    width: 320px;
    height: 36px;
    line-height: 36px;
    background-color: #fff;
    color: rgb(51, 51, 51);
    font-size: 12px;
    border-right: 0;
    border: 0 none;
}
.search-form .button {
    background: #2353C1;
    width: 65px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    line-height: 38px;
    letter-spacing: 2px;
    border-left: 1px solid #f45670;
    float: right;
    border: 0 none;
}

/* ---------- 动画 keyframes（在线咨询悬浮窗用） ---------- */
@keyframes breathe-img {
    0%   { transform: scale(1); }
    25%  { transform: scale(0.93); }
    50%  { border-color: 1px solid rgba(245, 86, 98, 0.7); transform: scale(0.87); }
    75%  { transform: scale(0.93); }
    to   { transform: scale(1); }
}
@keyframes mymove {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.05); }
    50%  { transform: scale(1.1); }
    75%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes animated-border {
    0%   { box-shadow: 0 0 0 0 rgba(240, 116, 116, 0.2); }
    100% { box-shadow: 0 0 0 12px rgba(4, 235, 54, 0); }
}

/* ---------- 在线咨询悬浮窗 ---------- */
.fix-box {
    position: fixed;
    top: 60%;
    transform: translateY(-50%);
    right: 8px;
    width: 76px;
    font-size: 14px;
    text-align: center;
    z-index: 998;
}
.fix-chat {
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
}
.fix-chat-box {
    position: relative;
    width: 100%;
    margin-right: 4px;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid #f5566282;
    animation: mymove 1s linear infinite, animated-border 1s linear infinite;
}
.fix-chat-img-box {
    width: 68px;
    height: 68px;
    margin: auto;
    border-radius: 50%;
    border: 2px solid #f55662;
    animation: breathe-img 1s linear infinite;
}
.fix-chat-img-box img { max-width: 100%; }
.fix-chat .fix-chat-text {
    position: absolute;
    left: 3px;
    bottom: 0;
    width: 70px;
    padding: 0 5px;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    height: 24px;
    line-height: 24px;
    border-radius: 4px;
    color: #fff;
    background-color: #f55662;
    box-shadow: 0px 3px 10px rgba(99, 102, 110, .16);
}

/* 遗留：旧小程客服浮窗已下线，隐藏其自带浮钮 */
#XiaoChengKFfloatbont { display: none; }
