/* BYDKEY 公共样式 - 导航栏 + 页脚 + 悬浮按钮 */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: #f9f9f9; color: #333; line-height: 1.6; position: relative; overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 导航栏 */
.BYDkey_header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.3s ease; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.BYDkeyheader { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.BYDkeylogo img { height: 45px; width: auto; }
.BYDkey_nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }
.BYDkey_nav a { text-decoration: none; color: #333; font-weight: 600; font-size: 14px; transition: color 0.3s; position: relative; }
.BYDkey_nav a:hover { color: #1565C0; }
.BYDkey_nav .now a { color: #1565C0; }
.nav-wechat { background: #07c160; color: white !important; padding: 8px 16px; border-radius: 20px; font-size: 13px !important; display: flex; align-items: center; gap: 6px; }
.nav-wechat:hover { background: #06ad56; }
.navbtn { display: none; cursor: pointer; font-size: 24px; color: #333; }
.BYDkey_navph { display: none; position: fixed; top: 80px; left: 0; right: 0; background: white; box-shadow: 0 5px 20px rgba(0,0,0,0.1); z-index: 999; transform: translateX(-100%); transition: transform 0.3s; }
.BYDkey_navph.active { display: block; transform: translateX(0); }
.BYDkey_navph ul { list-style: none; padding: 20px; }
.BYDkey_navph li { padding: 15px 0; border-bottom: 1px solid #eee; }
.BYDkey_navph a { color: #333; text-decoration: none; font-size: 16px; display: block; }
.BYDkey_navph .nav-wechat-mobile { background: #07c160; color: white !important; padding: 12px; border-radius: 8px; text-align: center; margin-top: 10px; }

/* 页脚 */
.BYDkeyfooter { background: #1a1a1a; color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.BYDkeyfootertm { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; }
.BYDkeyfootertm h2 { color: white; font-size: 17px; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.BYDkeyfootertm h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 2px; background: #1565C0; }
.BYDkeyfootertm a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 7px 0; transition: color 0.3s; font-size: 13px; }
.BYDkeyfootertm a:hover { color: white; }
.footer-contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.footer-contact i { color: #1565C0; width: 18px; font-size: 14px; }
.BYDkeyfooterb { background: #111; padding: 18px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 40px; }
.BYDkeyfooterb a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* 悬浮按钮 */
.BYDkeyfloat { position: fixed; bottom: 25px; left: 25px; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.float-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-width: 55px; height: 44px; background: #1565C0; color: white; border-radius: 22px; font-size: 14px; font-weight: 600; box-shadow: 0 5px 20px rgba(21,101,192,0.4); transition: all 0.3s; cursor: pointer; text-decoration: none; padding: 0 14px; white-space: nowrap; }
.float-btn:hover { transform: scale(1.05) translateY(-3px); background: #0d47a1; }
.float-btn i { font-size: 16px; }
.float-btn.wechat { background: #07c160; }
.float-btn.wechat:hover { background: #06ad56; }
.float-btn.video { background: #ff6b6b; }
.float-btn.video:hover { background: #ff5252; }

/* 浮窗视频弹窗 */
.float-video-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; justify-content: center; align-items: center; }
.float-video-modal.active { display: flex; }
.float-video-content { position: relative; max-width: 90%; max-height: 90%; }
.float-video-close { position: absolute; top: -40px; right: 0; color: white; font-size: 30px; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.float-video-player { max-width: 100%; max-height: 80vh; border-radius: 8px; }

/* COZE 关闭按钮 */
.coze-window-close { position: fixed; top: 80px !important; right: 20px !important; width: 36px; height: 36px; background: #ff4444; color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 10001; font-size: 20px; font-weight: bold; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: all 0.3s; }
.coze-window-close.show { display: flex; }
.coze-window-close:hover { background: #cc0000; transform: scale(1.1); }

/* 响应式 */
@media screen and (max-width: 1024px) {
    .BYDkeyfootertm { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 768px) {
    .BYDkey_nav { display: none; }
    .navbtn { display: block; }
}
@media screen and (max-width: 768px) {
    .BYDkeyfootertm {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 15px !important;
        padding: 25px 15px !important;
    }
    .BYDkeyfootertm > div { width: 100% !important; margin: 0 !important; }
    .BYDkeyfootertm h2 { font-size: 15px !important; margin-bottom: 10px !important; }
    .BYDkeyfootertm p { font-size: 13px !important; margin-bottom: 6px !important; }
    .BYDkeyfootertm .footer-contact p { font-size: 12px !important; }
    .BYDkeyfootertm img { max-width: 80px !important; margin-top: 10px !important; }
    .BYDkeyfootertm > div:last-child {
        grid-column: 1 / -1;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 15px;
        margin-top: 5px;
    }
    .BYDkeyfootertm > div:last-child .footer-contact {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px;
    }
    .BYDkeyfootertm > div:last-child img { margin: 10px auto 0; }
}
