/* =====================================================================
 * [PBCS PATCH] comm/foot.html 专用现代样式 — comm-foot-modern.css
 * ---------------------------------------------------------------------
 * 背景：foot.html 之前是 Bootstrap 4 默认 bg-light + text-secondary
 *       + 浅灰边线，视觉陈旧；aoyun.css 的 .online 侧边栏是
 *       亮蓝 #27a8e1（与全站紫蓝主色不协调）。
 * 改成与 home-modern / about-modern 一致的深紫蓝渐变风格。
 *
 * 关键设计：
 *   - 深紫蓝渐变背景（深于首页 banner，区分主区）
 *   - 4 栏：5fr 2fr 2fr 3fr（公司信息 / 站点导航 / 联系方式 / 二维码）
 *   - 白色文字 + 半透明 hover
 *   - 移动端底栏：原 bg-info 改为紫蓝渐变
 *   - 在线客服：原亮蓝改紫蓝，hover 弹出卡片样式重做
 *   - 命名空间：所有 class 加 .pbcs-foot 前缀
 *
 * 引用：head.html link 引入（comm/foot.html 不在 head 中，自己在
 *       foot.html 头部 <link>，避免改 head.html 影响全站）
 *       实际方案：head.html 已经 link home-modern.css，复用变量；
 *       comm-foot-modern.css 加 .pbcs-foot 前缀独立 class。
 * ===================================================================== */

/* =====================================================================
 * 主 Footer — 深紫蓝渐变 + 4 栏布局
 * ===================================================================== */
.pbcs-foot {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #1e1856 100%);
    color: rgba(255, 255, 255, .85);
    padding: 64px 0 0;
    margin-top: 60px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.7;
}
/* 装饰光斑（左上 + 右下两个 blur 圆形） */
.pbcs-foot::before,
.pbcs-foot::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.pbcs-foot::before {
    top: -80px; left: -60px;
    width: 240px; height: 240px;
    background: rgba(102, 126, 234, .35);
}
.pbcs-foot::after {
    bottom: -100px; right: -80px;
    width: 280px; height: 280px;
    background: rgba(118, 75, 162, .4);
}
.pbcs-foot > * { position: relative; z-index: 1; }

/* 4 栏容器（最大宽度与 home/about 一致：1320px） */
.pbcs-foot-wrap {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.pbcs-foot-grid {
    display: grid;
    grid-template-columns: 5fr 2fr 2fr 5fr;
    gap: 40px;
    padding-bottom: 50px;
}
@media (max-width: 991.98px) {
    .pbcs-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 575.98px) {
    .pbcs-foot-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
}

/* 4 个 col 通用：标题 + 装饰横线 */
.pbcs-foot-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: .5px;
}
.pbcs-foot-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: #ff6b35;
    border-radius: 2px;
}

/* =====================================================================
 * Col 1：公司信息
 * ===================================================================== */
.pbcs-foot-info .logo {
    height: 44px;
    margin-bottom: 16px;
    background: #fff;
    padding: 4px 10px;
    border-radius: 6px;
}
.pbcs-foot-info .name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}
.pbcs-foot-info .desc {
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 18px;
}
.pbcs-foot-info .meta {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pbcs-foot-info .meta li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}
.pbcs-foot-info .meta li:last-child { margin-bottom: 0; }
.pbcs-foot-info .meta i {
    color: #ff6b35;
    margin-top: 5px;
    font-size: 11px;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}
.pbcs-foot-info .meta a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    transition: color .2s;
    word-break: break-all;
}
.pbcs-foot-info .meta a:hover { color: #fff; }

/* =====================================================================
 * Col 2：站点导航
 * ===================================================================== */
.pbcs-foot-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pbcs-foot-nav li {
    margin-bottom: 10px;
}
.pbcs-foot-nav li:last-child { margin-bottom: 0; }
.pbcs-foot-nav a {
    color: rgba(255, 255, 255, .65);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s, padding-left .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pbcs-foot-nav a::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #ff6b35;
    border-radius: 50%;
    opacity: .5;
    transition: opacity .2s, transform .2s;
}
.pbcs-foot-nav a:hover {
    color: #fff;
    padding-left: 4px;
}
.pbcs-foot-nav a:hover::before {
    opacity: 1;
    transform: scale(1.4);
}

/* =====================================================================
 * Col 3：联系方式
 * ===================================================================== */
.pbcs-foot-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pbcs-foot-contact li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}
.pbcs-foot-contact li:last-child { margin-bottom: 0; }
.pbcs-foot-contact .icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.pbcs-foot-contact li:hover .icon-wrap {
    background: #ff6b35;
    color: #fff;
}
.pbcs-foot-contact .value {
    flex: 1;
    min-width: 0;
}
.pbcs-foot-contact a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}
.pbcs-foot-contact a:hover { color: #fff; }

/* =====================================================================
 * Col 4：关注我们（2 个二维码卡片）
 * ===================================================================== */
.pbcs-foot-qr {
    display: flex;
    gap: 14px;
}
.pbcs-foot-qr-card {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 14px 10px 12px;
    transition: background .2s, transform .2s;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(255, 255, 255, .08);
}
.pbcs-foot-qr-card:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
    text-decoration: none;
}
.pbcs-foot-qr-card .img-wrap {
    background: #fff;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pbcs-foot-qr-card img {
    max-width: 100%;
    height: auto;
    display: block;
}
.pbcs-foot-qr-card .label {
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}
.pbcs-foot-qr-card .sub {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    margin-top: 2px;
}

/* =====================================================================
 * 版权栏
 * ===================================================================== */
.pbcs-foot-copyright {
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .18);
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
    text-align: center;
    padding: 18px 15px;
    line-height: 1.7;
}
.pbcs-foot-copyright .copy-text {
    margin: 0 0 6px;
}
.pbcs-foot-copyright a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    margin: 0 4px;
    transition: color .2s;
}
.pbcs-foot-copyright a:hover { color: #fff; }
.pbcs-foot-copyright .sep {
    color: rgba(255, 255, 255, .3);
    margin: 0 6px;
}

/* =====================================================================
 * 移动端底栏 — 原 bg-info 改为紫蓝渐变
 * ===================================================================== */
.pbcs-foot-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .18);
    display: flex;
}
.pbcs-foot-mobile a {
    flex: 1;
    color: #fff !important;
    padding: 10px 0;
    text-align: center;
    text-decoration: none !important;
    font-size: 12px;
    transition: background .2s;
    border-right: 1px solid rgba(255, 255, 255, .15);
}
.pbcs-foot-mobile a:last-child { border-right: 0; }
.pbcs-foot-mobile a:hover,
.pbcs-foot-mobile a:active { background: rgba(255, 255, 255, .12); }
.pbcs-foot-mobile i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

/* 占位 div（让 footer 内容不被 fixed bottom 遮挡） */
.pbcs-foot-mobile-placeholder {
    height: 60px;
    display: block;
}

/* =====================================================================
 * 在线客服侧栏 — 紫蓝主题
 * 原 .online 在 aoyun.css（亮蓝 #27a8e1），这里独立 .pbcs-foot-online
 * 保留 hover 弹出卡片的行为，视觉与 footer 一致
 * ===================================================================== */
.pbcs-foot-online {
    position: fixed;
    bottom: 120px;
    right: 12px;
    z-index: 997;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
@media (max-width: 991.98px) {
    /* 移动端隐藏：原 .online 也有 d-none d-lg-block，行为一致 */
    .pbcs-foot-online { display: none; }
}

.pbcs-foot-online-item {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    border: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.pbcs-foot-online-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
    line-height: 1;
}
.pbcs-foot-online-item span {
    font-size: 10px;
    line-height: 1;
}
.pbcs-foot-online-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, .4);
}
.pbcs-foot-online-item:hover a { color: #fff; }

/* 弹出卡片（QQ / 微信 / 免费通话）
 * [PBCS PATCH 2026-08-01 v2] 修 hover 子菜单无法选中 bug
 *   之前：right: 68px → 子菜单与父按钮之间有 12px gap（68 - 56）
 *         鼠标从父按钮左移到子菜单时要先穿越 12px 空白
 *         一离开父元素 :hover 立即失效 → 子菜单 display:none → 鼠标永远到不了
 *   现在：right: 100% → 子菜单紧贴父按钮左边界（gap=0）
 *         视觉上保留 12px 间隔用 ::before 隐形桥接（可 hover 的 padding 区域）
 *         + .pbcs-foot-online-pop:hover 也保持 display: block（双重保险）
 */
.pbcs-foot-online-pop {
    position: absolute;
    right: 100%;
    margin-right: 12px;          /* 视觉 gap（看起来） */
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    padding: 18px;
    width: 200px;
    display: none;
    color: #212529;
    text-align: left;
    border: 1px solid #e9ecef;
    z-index: 10;
}
/* 隐形桥接：子菜单的右边（朝父按钮那一侧）扩展 12px hover 区域
 *   视觉上不可见，但鼠标经过这里时仍然算在子菜单的 box 内
 *   → 配合 right:100% + margin-right:12px，hover 区域连续，鼠标不会断档
 */
.pbcs-foot-online-pop::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 12px;
    height: 100%;
    /* transparent 默认 transparent，不可见 */
}
.pbcs-foot-online-pop::after {
    content: '';
    position: absolute;
    right: -6px; top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    border-top: 1px solid #e9ecef;
}
/* 触发器：父按钮 hover 显示 + 子菜单本身 hover 也保持显示
 *   之前只有父按钮 hover → 鼠标一离开就消失
 *   现在加 .pbcs-foot-online-pop:hover 自身维持 → 鼠标在子菜单内稳定
 */
.pbcs-foot-online-item:hover .pbcs-foot-online-pop,
.pbcs-foot-online-pop:hover {
    display: block;
}

.pbcs-foot-online-pop h5 {
    font-size: 14px;
    margin: 0 0 12px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}
.pbcs-foot-online-pop h5 i { color: #667eea; font-size: 16px; }

.pbcs-foot-online-pop p {
    font-size: 12px;
    color: #6c757d;
    margin: 0 0 6px;
    line-height: 1.5;
}
.pbcs-foot-online-pop .qq-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
}
.pbcs-foot-online-pop .qq-row:hover { background: #e9ecef; }
.pbcs-foot-online-pop .qq-row img {
    width: 36px; height: 36px;
    border-radius: 4px;
}
.pbcs-foot-online-pop .qq-row span {
    font-size: 12px;
    color: #212529;
}
.pbcs-foot-online-pop input {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 8px;
    outline: 0;
    transition: border-color .2s;
}
.pbcs-foot-online-pop input:focus { border-color: #667eea; }
.pbcs-foot-online-pop button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 9px 0;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity .2s;
}
.pbcs-foot-online-pop button:hover { opacity: .9; }
.pbcs-foot-online-pop .qr-img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
}
.pbcs-foot-online-pop .qr-tip {
    text-align: center;
    font-size: 11px;
    color: #6c757d;
    margin: 0;
}
