/* Footer Styles - Extracted from zy-site-config.php */

.zy-footer { background: #3d2817; padding: 0; color: #C9A96E; font-size: 12px; position: relative; }
    /* 上面4列：浅色背景，占满全宽 */
    .zy-footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 20px 40px; background: #f5f0e8; position: relative; z-index: 2; }
    .zy-footer-col { text-align: center; }
    .zy-footer-col h4 { color: #5a3e1b; font-size: 13px; margin-bottom: 8px; letter-spacing: 0.5px; }
    .zy-footer-col p, .zy-footer-col a { color: #6b5335; font-size: 11px; line-height: 1.8; text-decoration: none; }
    .zy-footer-col a:hover { color: #8B6914; }
    /* 下面社交媒体+地址+版权：深色背景 */
    .zy-social-matrix { padding: 20px 40px 0; text-align: center; background: #3d2817; position: relative; }
    .zy-social-wrapper { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
    .zy-social-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-decoration: none; }
    .zy-social-item span { font-size: 11px; color: #C9A96E; font-weight: bold; }
    .zy-social-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff !important; font-weight: bold; line-height: 1; }
    .zy-social-btn svg { width: 30px; height: 30px; }
    .zy-social-btn.video { background: #07C160 !important; }
    .zy-social-btn.weibo { background: #E6162D !important; }
    .zy-social-btn.zhihu { background: #0084FF !important; }
    .zy-social-btn.baijia { background: #2932E1 !important; }
    .zy-social-btn.bilibili { background: #FB7299 !important; }
    .zy-social-btn.xiaohongshu { background: #FE2C55 !important; }
    .zy-social-btn.kuaishou { background: #FF8000 !important; }
    .zy-social-btn.douyin { background: #000 !important; }
    .zy-social-btn.toutiao { background: #FF6B00 !important; }
    .zy-social-btn.wechat-add { background: #07C160 !important; }
    .zy-footer-middle { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
    .zy-amap-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; background: #07C160; color: #fff; border-radius: 4px; font-size: 12px; text-decoration: none; }
    .zy-amap-btn:hover { background: #06ad56; color: #fff; }
    .zy-qr-wrap { text-align: center; }
    .zy-qr-img { width: 70px; height: 70px; border-radius: 6px; border: 1px solid #e8d5c4; }
    .zy-qr-wrap p { font-size: 10px; color: #888; margin-top: 3px; }
    .zy-address { color: #C9A96E; font-size: 11px; margin: 8px auto; text-align: center; white-space: normal; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
    .zy-address a { color: #07C160; text-decoration: none; }
    .zy-amap-inline { margin: 0 4px; color: #fff !important; }
    /* 宽屏：社交媒体、高德、二维码在一行 */
    @media (min-width: 1024px) {
        .zy-social-matrix { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
        .zy-social-wrapper { margin-bottom: 0; }
        .zy-footer-middle { margin: 0; }
        .zy-address { width: 100%; margin-top: 12px; }
    }
    .zy-footer-bottom { text-align: center; border-top: none; padding: 0 40px 14px; background: #3d2817; }
    .zy-footer-bottom p { color: #C9A96E; font-size: 11px; margin: 3px 0; text-align: center; }
    .zy-footer-bottom a { color: #C9A96E; text-decoration: none; margin: 0 4px; }
    .zy-footer-bottom a:hover { color: #FFD700; }
    @media (max-width: 768px) {
        /* ===== 主流移动端footer设计：社交媒体引导 + 一键拨号 ===== */
        
        /* 隐藏第1、3、4列（公司信息、产品分类、快速链接） */
        .zy-footer-top { 
            padding: 0; 
            gap: 0; 
            grid-template-columns: 1fr; 
            background: #3d2817;
        }
        .zy-footer-col:nth-child(1),
        .zy-footer-col:nth-child(3),
        .zy-footer-col:nth-child(4) {
            display: none !important;
        }
        /* 联系方式列 - 业务热线改成大按钮 */
        .zy-footer-col:nth-child(2) {
            text-align: center;
            border-bottom: none;
            padding: 0 16px 20px;
            background: #3d2817;
        }
        .zy-footer-col:nth-child(2) h4 {
            display: none;
        }
        /* 业务热线 - 全宽大按钮样式 */
        .zy-footer-col:nth-child(2) p:first-of-type {
            display: block !important;
            background: linear-gradient(135deg, #C9A96E, #B8956A);
            color: #2d1810 !important;
            font-size: 15px !important;
            font-weight: bold !important;
            padding: 12px 16px !important;
            border-radius: 10px !important;
            margin: 0 !important;
            box-shadow: 0 4px 12px rgba(201,169,110,0.3);
            letter-spacing: 0.5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* 隐藏技术热线和邮箱 */
        .zy-footer-col:nth-child(2) p:nth-of-type(2),
        .zy-footer-col:nth-child(2) p:nth-of-type(3) {
            display: none !important;
        }
        
        /* 社交媒体矩阵 - 核心引导区 */
        .zy-social-matrix { 
            padding: 28px 16px 20px; 
            background: #3d2817;
            border-top: 1px solid rgba(201,169,110,0.15);
        }
        /* 主引导语 */
        .zy-social-matrix::before {
            content: "关注我们 看更多产品案例";
            display: block;
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            color: #C9A96E;
            margin-bottom: 6px;
            letter-spacing: 1px;
        }
        /* 副标题 */
        .zy-social-matrix::after {
            content: "抖音 · 视频号 · 小红书 · 快手 同步更新";
            display: block;
            text-align: center;
            font-size: 12px;
            color: #8B7355;
            margin-bottom: 20px;
        }
        .zy-social-wrapper { 
            gap: 16px; 
            justify-content: center;
            flex-wrap: wrap;
            padding-bottom: 0;
            overflow-x: visible;
            margin-bottom: 0;
        }
        .zy-social-item { flex-shrink: 0; }
        .zy-social-btn { 
            width: 56px; 
            height: 56px; 
            font-size: 22px; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: transform 0.2s;
        }
        .zy-social-btn:active {
            transform: scale(0.92);
        }
        .zy-social-btn svg { width: 28px; height: 28px; }
        .zy-social-item span { font-size: 11px; color: #C9A96E; margin-top: 4px; }
        
        /* 恢复中间区域（高德地图、二维码）和地址显示（之前被误隐藏） */
        .zy-footer-middle { display: flex !important; }
        .zy-address { display: flex !important; }
        
        /* 底部版权精简 */
        .zy-footer-bottom { 
            padding: 12px 16px 16px; 
            background: #3d2817;
            border-top: 1px solid rgba(201,169,110,0.15);
        }
        .zy-footer-bottom p { 
            font-size: 10px; 
            line-height: 1.6;
            text-align: center;
            color: #8B7355;
        }
        .zy-footer-bottom a { color: #8B7355; font-size: 10px; }
    }