/* ==========================================================================
   3DOTECH Footer Styles
   从 foot.html 内联样式提取而来 —— 消除内联样式以提升代码规范与可维护性
   ========================================================================== */

.ft3_footer {
    background: #111111;
    color: #cbd5e1;
    font-family: Arial, Helvetica, sans-serif;
    border-top: 1px solid #1f2937;
    padding: 60px 0 0 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    display: block;
}

.ft3_container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ft3_row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    box-sizing: border-box;
}

.ft3_col {
    padding: 0 15px 30px 15px;
    box-sizing: border-box;
}

.ft3_col_brand   { flex: 0 0 28.57%; max-width: 28.57%; }
.ft3_col_links   { flex: 0 0 21.43%; max-width: 21.43%; }
.ft3_col_contact { flex: 0 0 28.57%; max-width: 28.57%; }
.ft3_col_whatsapp{ flex: 0 0 21.43%; max-width: 21.43%; }

/* Logo */
.ft3_footer .ft3_logo-link {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}
.ft3_footer .ft3_logo-img {
    max-width: 180px;
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    border: none;
}

/* Site description */
.ft3_footer .ft3_desc {
    font-size: 13px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Column heading */
.ft3_col_title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #eb7619;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick links */
.ft3_link-list { display: block; width: 100%; }
.ft3_link-item { display: block; margin-bottom: 12px; }
.ft3_link-item a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}
.ft3_link-item a:hover,
.ft3_link-item a:focus { color: #eb7619; }

/* Contact info */
.ft3_contact-list { font-size: 13px; color: #94a3b8; line-height: 1.8; }
.ft3_contact-row {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.ft3_contact-label { color: #eb7619; font-weight: 600; flex-shrink: 0; }
.ft3_contact-row a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ft3_contact-row a:hover,
.ft3_contact-row a:focus { color: #eb7619; }

/* WhatsApp QR */
.ft3_qr-wrap { text-align: center; }
.ft3_qr-img {
    max-width: 140px;
    height: auto;
    border-radius: 6px;
    border: 2px solid #1f2937;
    display: inline-block;
}
.ft3_qr-caption {
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

/* Bottom bar */
.ft3_bottombar {
    margin-top: 30px;
    border-top: 1px solid #1f2937;
    background: #0a0a0a;
    padding: 22px 0;
    width: 100%;
    box-sizing: border-box;
}
.ft3_bottombar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ft3_copyright,
.ft3_bottombar-link {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}
.ft3_copyright { text-align: left; }
.ft3_bottombar-link {
    text-align: right;
    color: #64748b;
    text-decoration: none;
    font-family: monospace;
    transition: color 0.2s ease;
}
.ft3_bottombar-link:hover,
.ft3_bottombar-link:focus { color: #cbd5e1; }

/* ===== 移动端 sticker 底部导航 ===== */
.sticky-mob-nav { display: none; }
@media only screen and (max-width: 768px) {
    .sticky-mob-nav {
        display: block;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        background-color: #EB7619;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
        z-index: 9999;
    }
    .sticky-mob-row { display: flex; width: 100%; }
    .sticky-mob-item { flex: 1; border-right: 1px solid rgba(255, 255, 255, 0.25); }
    .sticky-mob-item:last-child { border-right: none; }
    .sticky-mob-item a {
        display: block;
        padding: 14px 0;
        text-align: center;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.5;
        text-decoration: none;
    }
    .sticky-mob-item a i { margin-right: 6px; font-size: 16px; }
    .sticky-mob-item a:hover {
        background-color: rgba(255, 255, 255, 0.12);
        color: #FFFFFF;
        text-decoration: none;
    }
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 1000px) {
    .ft3_col { flex: 0 0 50% !important; max-width: 50% !important; }
    .ft3_col_links,
    .ft3_col_whatsapp { border-top: 1px dashed #2d3748; padding-top: 25px !important; }
}
@media (max-width: 768px) {
    .ft3_row { flex-direction: column !important; }
    .ft3_col { flex: 0 0 100% !important; max-width: 100% !important; }
    .ft3_col_links,
    .ft3_col_contact,
    .ft3_col_whatsapp { border-top: 1px dashed #2d3748; padding-top: 25px !important; }
    .ft3_bottombar-inner { flex-direction: column !important; text-align: center !important; }
}

/* ==========================================================================
   从详情页内联样式提取的按钮工具类（product.html / news.html）
   消除内联 style，统一管理
   ========================================================================== */
.product-btn-center { text-align: center; }
.product-btn-center .ct_submit_btn {
    font-size: 18px;
    padding: 12px 35px;
    line-height: 1.5;
}

/* ==========================================================================
   多语言切换器样式（head_top 橙色背景内）
   注意：head_top 背景色为 #eb7619（橙），链接颜色必须与橙底形成高对比
   ========================================================================== */
.lang_switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
    margin-right: 18px;
    font-size: 13px;
}
.lang_link {
    color: rgba(255,255,255,0.8);          /* 半透明白，在橙底上清晰可读 */
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1.4;
    font-weight: 500;
}
.lang_link:hover,
.lang_link:focus {
    color: #ffffff;                         /* 悬停→纯白，保持高对比 */
    background: rgba(0,0,0,0.12);           /* 加深色半透明底，凸显悬停态 */
}
.lang_current {
    color: #ffffff;                         /* 当前语种→纯白加粗 */
    font-weight: 700;
    border-bottom: 2px solid #ffffff;       /* 白色下划线标识当前语种 */
}
.lang_sep { color: rgba(255,255,255,0.4); user-select: none; }
/* 搜索按钮与语言切换器并排时留间距 */
.head_right .btn--search { margin-left: 4px; }

/* ---- 手机端：隐藏欢迎语，语言切换器居中 ---- */
@media only screen and (max-width: 950px) {
    .head_top .head_left { display: none; }              /* 手机端隐藏欢迎文字 */
    .head_top .layout { text-align: center; }
    .head_top .head_right {
        float: none;
        display: inline-block;
    }
    .lang_switcher {
        margin-right: 0;                                   /* 搜索按钮已隐藏，无需右间距 */
        font-size: 12px;
        gap: 3px;
    }
    .lang_link { padding: 1px 3px; }
}

/* ==========================================================================
   首页 Hero 轮播图手机端修复
   问题：原 style.css 在 @media(768px) 里有 .slider_banner .swiper-slide img{min-height:160px}，
        与 width:100% + HTML width/height 属性冲突，导致图片被纵向拉伸变形（挤压难看）。
   修复：取消 min-height 拉伸，改用固定高度 + object-fit:cover 裁剪，
         既保留足够的视觉高度，又绝不变形（与 .category-banner 的处理方式一致）。
   ========================================================================== */
@media only screen and (max-width: 768px) {
    .slider_banner .swiper-slide img {
        min-height: 0;            /* 取消原 min-height:160px 的纵向拉伸 */
        height: 260px;            /* 手机端 hero 固定高度 */
        width: 100%;
        object-fit: cover;        /* 关键：覆盖裁剪，不拉伸 */
        object-position: center;  /* 居中裁剪，保留画面主体 */
    }
}
@media only screen and (max-width: 480px) {
    .slider_banner .swiper-slide img {
        height: 200px;            /* 更小屏幕略矮，避免占用过多首屏 */
    }
}

/* ==========================================================================
   手机端头部重构：[汉堡] [LOGO] [搜索] 同行排列
   替代原 common.js 生成的 25px 高 .mobile-head-items 细条
   ========================================================================== */
.m-header { display: none; } /* 桌面端隐藏 */
.m-nav-panel,
.m-nav-overlay { display: none; }

@media only screen and (max-width: 950px) {
    /* ---- 隐藏旧的手机端细条导航（common.js 生成）与默认居中 logo ---- */
    .mobile-head-items { display: none !important; }
    .web_head .head_layer .logo { display: none; } /* logo 已移入 m-header */

    /* ---- 手机端头部主行 ---- */
    .m-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        height: 56px;
        background: #ffffff;
        border-bottom: 1px solid #eee;
        position: relative;
        z-index: 100;
    }
    .m-logo {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .m-logo img {
        max-height: 38px;
        width: auto;
    }

    /* ---- 汉堡按钮（左侧） ---- */
    .m-nav-toggle {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .m-burger,
    .m-burger::before,
    .m-burger::after {
        content: "";
        display: block;
        width: 26px;
        height: 3px;
        background: #0c1c31;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    .m-burger { position: relative; }
    .m-burger::before { position: absolute; top: -8px; left: 0; }
    .m-burger::after  { position: absolute; top:  8px; left: 0; }
    /* 展开时汉堡变 X */
    .m-nav-toggle.is-open .m-burger { background: transparent; }
    .m-nav-toggle.is-open .m-burger::before { top: 0; transform: rotate(45deg); }
    .m-nav-toggle.is-open .m-burger::after  { top: 0; transform: rotate(-45deg); }

    /* ---- 搜索按钮（右侧） ---- */
    .m-search-toggle {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        color: #0c1c31;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .m-search-toggle:hover { color: #eb7619; }

    /* ---- 侧滑导航面板 ---- */
    .m-nav-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        padding: 16px 0;
    }
    .m-nav-panel.is-open { transform: translateX(0); }
    .m-nav-panel .head_nav { display: block !important; width: 100% !important; text-align: left !important; }
    .m-nav-panel .head_nav > li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #eee;
        line-height: 1.4 !important;
    }
    .m-nav-panel .head_nav > li > a {
        display: block;
        padding: 14px 20px;
        font-size: 15px;
        color: #0c1c31;
    }
    .m-nav-panel .head_nav > li > a:hover,
    .m-nav-panel .head_nav > li.active > a { color: #eb7619; }
    .m-nav-panel .head_nav > li:after { display: none; } /* 去掉桌面端的箭头伪元素 */
    .m-nav-panel .head_nav > li > ul {
        position: static !important;
        display: block !important;
        background: #f7f7f7;
        box-shadow: none;
    }
    .m-nav-panel .head_nav > li > ul li a { padding: 12px 36px; font-size: 14px; }
    .m-nav-panel .head_nav > li > ul ul { background: #efefef; }
    .m-nav-panel .head_nav > li > ul ul li a { padding-left: 52px; }

    .m-nav-panel .m-nav-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border: none;
        background: transparent;
        font-size: 24px;
        color: #999;
        cursor: pointer;
        line-height: 36px;
    }

    /* ---- 遮罩层 ---- */
    .m-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }
    .m-nav-overlay.is-open { opacity: 1; visibility: visible; }

    /* ---- 语言切换器在手机端适配（橙色顶栏内） ---- */
    .lang_switcher { font-size: 12px; gap: 4px; margin-right: 8px; }
    .lang_link { padding: 1px 3px; }

    /* body 滚动锁定（面板打开时由 JS 加 .m-nav-lock） */
    body.m-nav-lock { overflow: hidden; }
}

