@charset "utf-8";
/* ============================================
   TRDDQ 企业官网主题 - 参照北京特瑞迪电气官网
   ============================================ */

/* === 基础重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; font-size: 14px; color: #333; background: #fff; }
a { text-decoration: none; color: #333; transition: color 0.3s; }
a:hover { color: #ff7800; text-decoration: none; }
ul, ol { list-style: none; }
img { border: 0; max-width: 100%; }
.clear { clear: both; }

/* === 通用布局 === */
.w1200 { width: 1200px; margin: 0 auto; }
.ov { overflow: hidden; }
.fl { float: left; }
.fr { float: right; }
.cff { color: #fff !important; }

/* === 顶部欢迎栏 === */
.header { background: #f5f5f5; border-bottom: 1px solid #e5e5e5; height: 36px; line-height: 36px; font-size: 12px; color: #999; }
.header p { margin: 0; }
.header .fr a { padding: 0 10px; color: #999; border-left: 1px solid #ddd; }
.header .fr a:first-child { border-left: none; }
.header .fr a:hover { color: #ff7800; }
.header .fr a.header-phone { color: #ff7800; font-weight: bold; }
.header .fr a.header-phone:hover { color: #e56a00; }
.header .fr a.header-email { color: #035eb2; font-weight: bold; }
.header .fr a.header-email:hover { color: #ff7800; }

/* === Logo区域 === */
.logo { margin: 0 auto; text-align: center; }
.logo img { display: block; }

/* === 导航栏 === */
.nav { background: #035eb2; height: 50px; line-height: 50px; }
.menu { display: flex; }
.menu li { flex: 1; text-align: center; }
.menu li a { display: block; color: #fff; font-size: 16px; height: 50px; line-height: 50px; transition: background 0.3s; }
.menu li a:hover, .menu li a.current { background: #ff7800; color: #fff; }

/* === Banner轮播 === */
.banner { width: 100%; position: relative; overflow: hidden; }
.banner-slider { position: relative; width: 100%; height: 510px; }
.banner-slides { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-position: center top; background-repeat: no-repeat; background-size: cover; opacity: 0; transition: opacity 0.8s ease-in-out; }
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.banner-dots .dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
.banner-dots .dot.active { background: #ffb400; transform: scale(1.2); }
.banner-prev, .banner-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 50px; height: 60px; line-height: 60px; text-align: center; font-size: 22px; color: #fff; background: rgba(0,0,0,0.3); cursor: pointer; opacity: 0; transition: opacity 0.3s; border-radius: 4px; text-decoration: none; }
.banner-prev { left: 30px; }
.banner-next { right: 30px; }
.banner-slider:hover .banner-prev, .banner-slider:hover .banner-next { opacity: 1; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.6); color: #fff; }

/* === 公共标题 === */
.com_tit { text-align: center; margin-bottom: 30px; }
.com_tit h1 { font-size: 30px; font-weight: bold; }
.com_tit h1 span { color: #ff7800; padding-left: 5px; }
.com_tit h1.cff { color: #fff; }
.com_tit h1.cff span { color: #ffb400; }
.line { width: 100%; height: 3px; background: linear-gradient(to right, transparent, #ff7200, transparent); margin: 15px 0; }
.line.cff { background: linear-gradient(to right, transparent, #ffb400, transparent); }

/* === 公司简介 === */
.about { margin: 40px auto; padding: 20px 0; }
.com_img { width: 430px; }
.com_img img { width: 100%; border-radius: 4px; }
.com_txt { width: 730px; }
.com_txt p { text-indent: 2em; line-height: 28px; color: #666; }
.com_more { display: block; float: right; width: 95px; height: 40px; line-height: 40px; text-align: center; color: #fff; background: #ff7800; margin-top: 15px; border-radius: 3px; transition: background 0.3s; }
.com_more:hover { background: #e56a00; color: #fff; }

/* === 产品分类区 === */
.cpfl { width: 100%; background: #1a2a3a; padding: 40px 0; }
.cpfl .com_tit h1 { color: #fff; }
.cp_con { text-align: center; }
.cp_con img { max-width: 1070px; width: 100%; }

/* === 产品展示 === */
.product { margin: 40px auto; }
.pic_text_left { width: 240px; }
.pro_title { background: #035eb2; height: 60px; line-height: 60px; text-align: center; font-size: 18px; color: #fff; font-weight: bold; border-radius: 4px 4px 0 0; }
.pro_sort { background: #f2f2f2; border: 2px solid #035eb2; border-top: 0; padding: 15px 10px; border-radius: 0 0 4px 4px; }
.pro_sort .name { display: block; margin-bottom: 15px; line-height: 36px; text-align: center; }
.pro_sort .name a { display: block; background: #fff; border: 1px solid #d9d9d9; border-radius: 3px; transition: all 0.3s; }
.pro_sort .name a:hover, .pro_sort .name a.current { background: #bdc9d7; color: #333; }
.pro_cmd_box { width: 940px; }
.pro_cmd_box_tit { margin: 0 0 18px; border-bottom: 2px solid #035eb2; overflow: hidden; }
.more a { display: block; float: right; line-height: 24px; width: 72px; height: 24px; text-align: center; background: #a7b6ca; color: #fff; border-radius: 3px; transition: background 0.3s; }
.more a:hover { background: #035eb2; }
.pro_cmd_box .title_more { padding: 0 0 12px; font-size: 16px; font-weight: bold; color: #0e66b8; }
.product .tplb_list { overflow: hidden; }
.product .tplb_list li { float: left; text-align: center; padding: 0 8px; margin-bottom: 15px; }
.product .tplb_list li img { border: 1px solid #d9d9d9; width: 215px; height: 170px; object-fit: cover; transition: border-color 0.3s; }
.product .tplb_list li img:hover { border-color: #035eb2; }
.product .tplb_list li .txt { margin: 10px 10px 8px; }
.product .tplb_list li .txt a { color: #333; }
.product .tplb_list li .txt a:hover { color: #ff7800; }

/* === 新闻动态区 === */
.container_news { width: 100%; background: #1a2a3a; padding: 40px 0; }
.news { margin-bottom: 30px; overflow: hidden; }
.news_gs { width: 550px; }
.news_tit { width: 120px; height: 38px; line-height: 38px; text-align: center; background: #bdc9d7; font-weight: bold; border-radius: 3px; }
.news_con { margin-top: 10px; }
.news_con li { position: relative; padding-left: 15px; }
.news_con li::before { content: '▪'; position: absolute; left: 0; color: #ff7800; }
.news_con li a { line-height: 36px; color: #fff; transition: color 0.3s; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
.news_con li a:hover { color: #ffb400; }
.news_con li span { float: right; line-height: 36px; color: rgba(255,255,255,0.6); font-size: 13px; }
.news_con a.fr { display: block; width: 72px; height: 30px; line-height: 30px; text-align: center; background: #a7b6ca; color: #fff; margin-top: 10px; border-radius: 3px; transition: background 0.3s; }
.news_con a.fr:hover { background: #035eb2; }

/* === 友情链接 === */
.friendlink { text-align: center; padding: 30px 0; color: #999; }
.friendlink a { padding: 0 10px; color: #666; }
.friendlink a:hover { color: #ff7800; }

/* === 底部 === */
.footer { width: 100%; background: #1a2a3a; padding: 30px 0; }
.footer .w1200 { text-align: center; }
.f_nav { margin-bottom: 20px; }
.f_nav a { font-size: 16px; padding: 0 20px; color: #fff; transition: color 0.3s; }
.f_nav a:hover { color: #ffb400; }
.copy { padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.15); }
.copy p { line-height: 28px; color: rgba(255,255,255,0.7); }
.copy p span { padding: 0 10px; }
.copy p a { color: rgba(255,255,255,0.7); }
.copy p a:hover { color: #fff; }

/* ============================================
   内页通用样式
   ============================================ */

/* === 面包屑导航 === */
.location { border: 1px solid #d9d9d9; padding: 8px 12px 8px 38px; margin: 0 0 15px; position: relative; font-size: 13px; color: #666; border-radius: 3px; }
.location::before { content: '🏠'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.location a { color: #035eb2; }
.location a:hover { color: #ff7800; }

/* === 内页布局 === */
.contain { padding: 20px 0; }
.left { width: 220px; float: left; }
.right { float: right; width: 960px; padding: 20px; border: 1px solid #d9d9d9; border-radius: 4px; min-height: 400px; }

/* === 左侧分类栏 === */
.pro_sort_box { margin-bottom: 15px; }
.pro_sort_box .title_more { text-align: center; background: #035eb2; height: 60px; line-height: 60px; font-size: 16px; color: #fff; font-weight: bold; border-radius: 4px 4px 0 0; }
.b-box { border: 1px solid #d9d9d9; margin-bottom: 15px; border-radius: 4px; overflow: hidden; }
.b-box .title_more2 { background: #f1f1f1; line-height: 36px; font-size: 14px; font-weight: bold; color: #333; padding: 0 15px; border-bottom: 1px solid #d9d9d9; }
.b-box .list_news2 { padding: 0 16px 16px; }
.list_news2 li .wrap { border-bottom: 1px dotted #b2b2b2; margin: 0; }
.list_news2 li .wrap .topic { padding: 12px 0; display: block; position: relative; padding-left: 12px; }
.list_news2 li .wrap .topic::before { content: '▸'; position: absolute; left: 0; color: #035eb2; }
.list_news2 li a { color: #333; }
.list_news2 li a:hover { color: #005c9b; }

/* 左侧产品列表 */
.left .tplb_list { padding: 16px 8px 0; overflow: hidden; }
.left .tplb_list li { margin-bottom: 10px; }
.left .tplb_list li .pic { text-align: center; }
.left .tplb_list li .pic img { width: 185px; height: 185px; object-fit: cover; border: 1px solid #d9d9d9; transition: border-color 0.3s; }
.left .tplb_list li .pic img:hover { border-color: #035eb2; }
.left .tplb_list li .txt { line-height: 32px; text-align: center; }
.left .tplb_list li .txt a { color: #000; }
.left .tplb_list li .txt a:hover { color: #ff7800; }

/* === 右侧内容区 === */
.right .intro { padding: 0 20px; line-height: 28px; color: #666; }
.right .intro p { text-indent: 2em; margin-bottom: 15px; }
.right .intro img { max-width: 100%; margin: 10px 0; }

/* 右侧产品列表 */
.right .tplb_list { padding: 0 10px; overflow: hidden; }
.right .tplb_list li { float: left; border: 1px solid #ccc; margin-right: 12px; margin-bottom: 15px; border-radius: 4px; overflow: hidden; transition: all 0.3s; }
.right .tplb_list li:hover { border-color: #035eb2; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.right .tplb_list li .pic_list_li { margin: 5px; }
.right .tplb_list li .pic img { width: 200px; height: 160px; object-fit: cover; }
.right .tplb_list li .txt { text-align: center; line-height: 40px; background: #f8f8f8; }
.right .tplb_list li .txt a { color: #333; }
.right .tplb_list li .txt a:hover { color: #ff7800; }

/* 右侧新闻列表 */
.right .list_news3 li .wrap { margin: 0 20px; border-bottom: 1px dotted #b2b2b2; overflow: hidden; }
.right .list_news3 li .wrap .topic { padding: 13px; display: block; position: relative; padding-left: 20px; }
.right .list_news3 li .wrap .topic::before { content: '▸'; position: absolute; left: 5px; color: #035eb2; }
.right .list_news3 li .wrap .topic b { font-weight: normal; }
.right .list_news3 li .wrap .topic a { color: #333; }
.right .list_news3 li .wrap .topic a:hover { color: #005c9b; }
.date { float: right; padding: 10px 0; color: #999; font-size: 13px; }

/* === 文章详情 === */
.display_title { padding: 0 0 20px; text-align: center; }
.display_title h1 { margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px dotted #ccc; font-size: 22px; color: #333; }
.display_title .article_info { color: #999; font-size: 13px; }
.display_title .article_info span { padding: 0 10px; }
.display_article { line-height: 2; padding: 0 20px; color: #555; }
.display_article img { max-width: 100%; margin: 10px 0; }
.display_article p { margin-bottom: 15px; text-indent: 2em; }
.page_up_dn { padding: 20px; overflow: hidden; border-top: 1px dotted #ccc; margin-top: 20px; }
.page_up_dn li { float: left; width: 50%; }
.page_up_dn li a { color: #035eb2; }
.page_up_dn li a:hover { color: #ff7800; }

/* === 联系我们 === */
.contact_info { padding: 20px; }
.contact_info .item { padding: 12px 0; border-bottom: 1px dotted #e5e5e5; overflow: hidden; }
.contact_info .item:last-child { border-bottom: none; }
.contact_info .item .label { font-weight: bold; color: #333; width: 100px; float: left; }
.contact_info .item .value { color: #666; margin-left: 110px; line-height: 24px; }
.contact_map { margin-top: 20px; border: 1px solid #d9d9d9; border-radius: 4px; overflow: hidden; }

/* === 分页 === */
.page { margin: 20px auto; overflow: hidden; padding: 20px; text-align: center; }
.page .pageinfo { line-height: 17px; padding: 12px 10px; color: #555; display: inline-block; }
.page .pageinfo strong { color: #005c9b; margin: 0 5px; }
.page li { display: inline-block; line-height: 17px; margin-right: 6px; border: 1px solid #e9e9e9; padding: 4px 10px; border-radius: 3px; }
.page li.thisclass { background-color: #005c9b; }
.page li.thisclass a { color: #fff; }
.page li a { color: #555; }
.page li a:hover { background-color: #005c9b; color: #fff; }
.page li:hover { background-color: #005c9b; }
.page li:hover a { color: #fff; }

/* === 页面内横幅 === */
.page_banner { width: 100%; height: 200px; background: linear-gradient(135deg, #035eb2, #1a2a3a); display: flex; align-items: center; justify-content: center; }
.page_banner h1 { color: #fff; font-size: 32px; font-weight: bold; letter-spacing: 2px; }

/* === 无数据提示 === */
.no-data { text-align: center; padding: 60px 0; color: #999; font-size: 16px; }

/* === 响应式 === */
@media (max-width: 1220px) {
    .w1200 { width: 96%; }
    .com_img { width: 35%; }
    .com_txt { width: 62%; }
    .pic_text_left { width: 200px; }
    .pro_cmd_box { width: calc(100% - 220px); }
    .news_gs { width: 48%; }
    .left { width: 200px; }
    .right { width: calc(100% - 220px); }
}
@media (max-width: 768px) {
    .menu { flex-wrap: wrap; }
    .menu li { flex: none; width: 33.33%; }
    .com_img, .com_txt { width: 100%; float: none; }
    .com_img { margin-bottom: 20px; }
    .pic_text_left { width: 100%; float: none; margin-bottom: 20px; }
    .pro_cmd_box { width: 100%; float: none; }
    .news_gs { width: 100%; float: none; margin-bottom: 20px; }
    .left { width: 100%; float: none; margin-bottom: 20px; }
    .right { width: 100%; float: none; }
    .product .tplb_list li img { width: 150px; height: 120px; }
    .banner-contact-card { top: 10px; right: 10px; margin-right: 0; padding: 6px 14px; gap: 0; }
    .banner-contact-card .item-divider { margin: 0 10px; height: 20px; }
    .banner-contact-card .phone-link { font-size: 14px; }
    .banner-contact-card .email-link { font-size: 12px; }
    .banner-contact-card .icon-circle { width: 28px; height: 28px; }
    .banner-contact-card .card-item.addr-item { display: none; }
}

/* === 全站导航栏下方悬浮联系挂载区 === */
.nav-contact-wrap {
    position: relative;
    width: 100%;
    height: 0;
    z-index: 100;
}

/* === 全站通用悬浮联系卡片（商务轻奢质感） === */
.banner-contact-card {
    position: absolute;
    top: 22px;
    right: 50%;
    margin-right: -600px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 8px 22px;
    box-shadow: 0 8px 24px rgba(0, 32, 64, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.banner-contact-card:hover {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 32, 64, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.banner-contact-card .card-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.banner-contact-card .icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.banner-contact-card .card-item:hover .icon-circle {
    transform: scale(1.08);
}
.banner-contact-card .phone-icon {
    background: linear-gradient(135deg, #ff8c2b 0%, #ff6200 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(255, 98, 0, 0.3);
}
.banner-contact-card .email-icon {
    background: linear-gradient(135deg, #1f7ce4 0%, #035eb2 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(3, 94, 178, 0.28);
}
.banner-contact-card .addr-icon {
    background: #f0f4f8;
    color: #4a5568;
}
.banner-contact-card .item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}
.banner-contact-card .item-sub {
    font-size: 11px;
    color: #8c9ba5;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.banner-contact-card .item-val {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}
.banner-contact-card .phone-link {
    color: #ff6200;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.banner-contact-card .phone-link:hover {
    color: #e55800;
    text-decoration: underline;
}
.banner-contact-card .email-link {
    color: #035eb2;
}
.banner-contact-card .email-link:hover {
    color: #ff6200;
    text-decoration: underline;
}
.banner-contact-card .addr-txt {
    color: #555;
    font-size: 12px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.banner-contact-card .item-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0 16px;
}

/* 滚动吸附固定状态 */
.banner-contact-card.is-fixed {
    position: fixed;
    top: 15px;
    right: 50%;
    margin-right: -600px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 32, 64, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 1);
    animation: contactCardSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contactCardSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1220px) {
    .banner-contact-card,
    .banner-contact-card.is-fixed {
        right: 20px;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .banner-contact-card.is-fixed {
        top: 10px;
        right: 10px;
    }
}
