/*
Theme Name: DX Old Style
Theme URI: https://www.ycdxhb.com/
Description: 还原百拓建站系统旧站风格，保留WordPress后台管理功能
Author: AI Assistant
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: dx-oldstyle
*/

/* ========== 重置基础样式 ========== */
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
dl, dt, dd, ul, ol, li,
pre, fieldset, lengend, button, input, textarea,
th, td { margin: 0; padding: 0; }

body { font-family: "Microsoft Yahei", "PingFang SC", sans-serif; color: #444; font-size: 14px; line-height: 1.6; background: #fff; }

h1 { font-size: 18px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
h4, h5, h6 { font-size: 100%; }

ul, ol, li { list-style: none; }

a { text-decoration: none; color: #444; word-wrap: break-word; }
a:hover { text-decoration: none; color: #e20113; }

img { border: none; max-width: 100%; height: auto; }

table { border-collapse: collapse; border-spacing: 0; }

input, textarea { outline: none; }
textarea { resize: none; }

em { font-style: normal; }

.left { float: left; }
.right { float: right; }
.clear { clear: both; height: 0; }
.clearfix:after { content: "."; display: block; height: 0; visibility: hidden; clear: both; }

/* ========== 页面整体布局 ========== */
.dx-container { width: 1200px; margin: 0 auto; }

/* ========== 顶部公告条 ========== */
.toparea { background: #035bbc; color: #fff; font-size: 13px; }
.toparea .dx-container { padding: 8px 0; }
.toparea ul { overflow: hidden; }
.toparea li { float: left; }
.toparea li:last-child { float: right; }
.toparea a { color: #fff; }
.toparea a:hover { color: #ffeb3b; }

/* ========== 头部区域 ========== */
.heading { padding: 20px 0; overflow: hidden; }
.heading .logo { float: left; }
.heading .logo p { font-size: 28px; font-weight: bold; color: #035bbc; line-height: 1.2; }
.heading .logo span { font-size: 12px; color: #888; }
.heading .tel { float: right; text-align: right; padding-top: 5px; }
.heading .tel span { font-size: 14px; color: #666; }
.heading .tel p { font-size: 28px; color: #f30003; font-weight: bold; }

/* ========== 导航栏 ========== */
.nav { background: #035bbc; }
.nav ul { overflow: hidden; }
.nav li { float: left; }
.nav li a { display: block; padding: 0 30px; height: 50px; line-height: 50px; color: #fff; font-size: 15px; transition: all 0.3s; }
.nav li a:hover, .nav li a.nav_on { background: #0065b0; color: #fff; }
.nav li a img { vertical-align: middle; margin-right: 5px; margin-top: -3px; }

/* ========== Banner区域 ========== */
.dx-banner { position: relative; overflow: hidden; }
.dx-banner img { width: 100%; height: auto; display: block; }

/* ========== 首页主体布局 ========== */
.g_pp { width: 1200px; margin: 27px auto; overflow: hidden; }

/* 左侧边栏 */
.g_pp .left { background: #035bbc; width: 240px; float: left; }
.g_pp .left .cate { width: 200px; margin: 0 auto; padding-top: 15px; }
.g_pp .left .cate .lb a { display: block; width: 200px; height: 46px; line-height: 36px; text-indent: 33px; font-size: 15px; color: #222; background: #fff; margin-bottom: 5px; border-radius: 3px; transition: all 0.2s; }
.g_pp .left .cate .lb a:hover { background: #f30003; color: #fff; }

.g_pp .left .leteld { width: 240px; background: #0051a3; margin-top: 15px; padding-bottom: 20px; }
.g_pp .left .tel { width: 180px; height: 60px; padding: 20px 0 0 60px; color: #fff; }
.g_pp .left .tel b { display: block; font-size: 21px; color: #fff; }
.g_pp .left .cont { width: 200px; padding: 0 20px; }
.g_pp .left .cont, .g_pp .left .cont * { font-size: 14px; color: #fff; line-height: 25px; }

/* 右侧主内容区 */
.g_pp .m_pp { float: right; width: 940px; }

/* 标题栏 */
.m_pp .cptitin { width: 100%; height: 50px; border-bottom: 1px solid #035bbc; margin-bottom: 25px; }
.m_pp .cptitin p { display: inline-block; line-height: 50px; float: left; background: #035bbc; padding: 0 38px; font-size: 22px; color: #fff; }
.m_pp .cptitin a { display: inline-block; float: right; line-height: 50px; color: #999; font-size: 14px; }

/* 产品列表网格 */
.m_pp .cplieb { width: 940px; overflow: hidden; }
.m_pp .cplieb dl { width: 285px; float: left; margin: 0 14px 20px 14px; }
.m_pp .cplieb dt { width: 287px; height: 220px; }
.m_pp .cplieb dt a { border: solid 1px #CCC; width: 285px; height: 218px; display: block; overflow: hidden; }
.m_pp .cplieb dt img { width: 285px; height: 218px; display: block; transition: all 0.3s linear 0s; object-fit: cover; }
.m_pp .cplieb dt:hover img { transform: scale(1.1); }
.m_pp .cplieb dd { background: #fff; padding-top: 10px; }
.m_pp .cplieb h3 { text-align: center; overflow: hidden; }
.m_pp .cplieb h3 a { font-size: 16px; font-weight: 500; line-height: 25px; }
.m_pp .cplieb p { padding: 0 15px; font-size: 14px; line-height: 24px; color: #666666; text-align: center; }
.m_pp .cplieb p a { color: #d3081e; }

/* ========== 产品分类页列表 ========== */
.product-list { width: 100%; overflow: hidden; }
.product-list .item { width: 285px; float: left; margin: 0 14px 20px 14px; }
.product-list .item .imgbox { width: 287px; height: 220px; border: solid 1px #CCC; overflow: hidden; }
.product-list .item .imgbox img { width: 285px; height: 218px; display: block; transition: all 0.3s linear; object-fit: cover; }
.product-list .item .imgbox:hover img { transform: scale(1.1); }
.product-list .item h3 { text-align: center; padding: 10px 0; font-size: 16px; font-weight: 500; }
.product-list .item h3 a { color: #444; }
.product-list .item h3 a:hover { color: #e20113; }

/* ========== 产品详情页 ========== */
.product-detail { overflow: hidden; }
.product-detail .pd-left { float: left; width: 400px; }
.product-detail .pd-left .bigimg { width: 400px; height: 300px; border: 1px solid #ccc; overflow: hidden; text-align: center; }
.product-detail .pd-left .bigimg img { max-width: 100%; max-height: 100%; }
.product-detail .pd-right { float: right; width: 500px; }
.product-detail .pd-right h1 { font-size: 22px; color: #333; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #035bbc; }
.product-detail .pd-right .meta { font-size: 14px; color: #666; line-height: 2; }
.product-detail .pd-right .meta strong { color: #333; }
.product-detail .content { clear: both; padding-top: 30px; }
.product-detail .content h2 { font-size: 18px; color: #035bbc; margin: 20px 0 10px; padding-left: 10px; border-left: 4px solid #035bbc; }
.product-detail .content p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 10px; }

/* ========== 分页 ========== */
.dx-pagination { text-align: center; padding: 20px 0; }
.dx-pagination a, .dx-pagination span { display: inline-block; padding: 5px 12px; margin: 0 3px; border: 1px solid #ccc; color: #444; }
.dx-pagination a:hover { background: #035bbc; color: #fff; border-color: #035bbc; }
.dx-pagination span.current { background: #035bbc; color: #fff; border-color: #035bbc; }

/* ========== 底部区域 ========== */
.footer { background: #2a2c2f; color: #999; padding: 30px 0; margin-top: 30px; }
.footer .dx-container { overflow: hidden; }
.footer .ft-left { float: left; width: 600px; }
.footer .ft-left p { line-height: 2; font-size: 14px; }
.footer .ft-right { float: right; width: 400px; text-align: right; }
.footer .ft-right p { font-size: 24px; color: #f30003; font-weight: bold; }
.footer .ft-right span { font-size: 14px; color: #999; }
.footer .copyright { text-align: center; padding-top: 20px; margin-top: 20px; border-top: 1px solid #444; font-size: 13px; color: #777; }

/* ========== 面包屑导航 ========== */
.dx-breadcrumb { padding: 15px 0; font-size: 14px; color: #666; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.dx-breadcrumb a { color: #035bbc; }
.dx-breadcrumb a:hover { color: #e20113; }

/* ========== 通用内容页 ========== */
.dx-content { padding: 20px 0; }
.dx-content h1 { font-size: 24px; color: #333; margin-bottom: 20px; }
.dx-content h2 { font-size: 18px; color: #035bbc; margin: 20px 0 10px; padding-left: 10px; border-left: 4px solid #035bbc; }
.dx-content p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 10px; }
.dx-content img { max-width: 100%; height: auto; }

/* ========== 侧边栏通用 ========== */
.dx-sidebar { width: 240px; float: left; }
.dx-sidebar .widget { background: #f5f5f5; margin-bottom: 20px; }
.dx-sidebar .widget-title { background: #035bbc; color: #fff; padding: 12px 20px; font-size: 16px; }
.dx-sidebar .widget-content { padding: 15px; }
.dx-sidebar .widget-content ul li { padding: 8px 0; border-bottom: 1px solid #eee; }
.dx-sidebar .widget-content ul li a { color: #444; font-size: 14px; }
.dx-sidebar .widget-content ul li a:hover { color: #e20113; }

/* ========== 响应式 ========== */
@media (max-width: 1240px) {
    .dx-container { width: 100%; padding: 0 15px; box-sizing: border-box; }
    .g_pp { width: 100%; }
    .g_pp .left { width: 200px; }
    .g_pp .m_pp { width: calc(100% - 220px); }
    .m_pp .cplieb dl { width: calc(33.33% - 28px); }
    .m_pp .cplieb dt, .m_pp .cplieb dt a, .m_pp .cplieb dt img { width: 100%; }
}

@media (max-width: 768px) {
    .g_pp .left, .g_pp .m_pp { float: none; width: 100%; }
    .m_pp .cplieb dl { width: calc(50% - 28px); }
    .heading .logo p { font-size: 20px; }
    .heading .tel p { font-size: 20px; }
    .nav li a { padding: 0 15px; font-size: 14px; }
}

/* ========== Banner轮播图 ========== */
.dx-banner { position: relative; width: 100%; height: 450px; overflow: hidden; background: #eee; }
.banner-slider { position: relative; width: 100%; height: 100%; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 10; }
.banner-dots span { display: inline-block; width: 12px; height: 12px; margin: 0 5px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.banner-dots span.active { background: #035bbc; }

/* ========== 四大优势 ========== */
.advantage-section { background: #f5f5f5; padding: 50px 0; }
.advantage-section .main_title { text-align: center; margin-bottom: 40px; }
.advantage-section .main_title p { font-size: 28px; color: #333; margin-bottom: 8px; }
.advantage-section .main_title p span { color: #035bbc; font-weight: bold; }
.advantage-section .main_title em { font-size: 14px; color: #999; }
.advantage-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.adv-item { display: flex; width: calc(50% - 10px); background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.adv-img { width: 180px; flex-shrink: 0; margin-right: 20px; }
.adv-img img { width: 100%; height: auto; border-radius: 3px; }
.adv-text { flex: 1; }
.adv-num { font-size: 36px; color: #035bbc; font-weight: bold; line-height: 1; margin-bottom: 10px; }
.adv-title { margin-bottom: 10px; }
.adv-title p { font-size: 12px; color: #999; text-transform: uppercase; }
.adv-title b { font-size: 18px; color: #333; }
.adv-text > p { font-size: 14px; color: #666; line-height: 1.6; }

/* ========== 新闻动态 ========== */
.news-section { background: #fff; padding: 40px 0; }
.news-section .cptitin { margin-bottom: 20px; }
.news-list { overflow: hidden; }
.news-list dl { display: flex; align-items: flex-start; padding: 15px 0; border-bottom: 1px dashed #eee; }
.news-list dd { flex: 1; padding-right: 20px; }
.news-list dd h3 { font-size: 16px; margin-bottom: 8px; }
.news-list dd h3 a { color: #333; }
.news-list dd h3 a:hover { color: #e20113; }
.news-list dd p { font-size: 14px; color: #999; line-height: 1.6; }
.news-list dt { width: 60px; text-align: center; flex-shrink: 0; }
.news-list dt b { display: block; font-size: 28px; color: #035bbc; line-height: 1; }
.news-list dt span { font-size: 12px; color: #999; }

/* ========== 左侧分类标题 ========== */
.cate-title { background: #035bbc; color: #fff; padding: 15px 20px; font-size: 16px; font-weight: bold; }
.g_pp .left .cate { padding-top: 0; }
.g_pp .left .cate .lb a { display: block; width: 200px; height: 46px; line-height: 36px; text-indent: 33px; font-size: 15px; color: #222; background: #fff; margin-bottom: 5px; border-radius: 3px; transition: all 0.2s; }
.g_pp .left .cate .lb a:hover { background: #f30003; color: #fff; }


/* ========== 案例展示 ========== */
.case-section { background: #fff; padding: 40px 0; }
.case-section .main_title { text-align: center; margin-bottom: 40px; }
.case-section .main_title p { font-size: 28px; color: #333; margin-bottom: 8px; }
.case-section .main_title p span { color: #035bbc; font-weight: bold; }
.case-section .main_title em { font-size: 14px; color: #999; }
.case-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.case-item { display: block; width: calc(25% - 12px); text-align: center; }
.case-item img { width: 100%; height: 150px; object-fit: cover; border-radius: 3px; margin-bottom: 8px; }
.case-item span { display: block; font-size: 13px; color: #333; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-item:hover span { color: #035bbc; }

/* ========== 关于登翔 ========== */
.about-section { background: #f5f5f5; padding: 50px 0; }
.about-wrap { display: flex; align-items: center; gap: 40px; }
.about-text { flex: 1; }
.about-text h4 { margin-bottom: 15px; }
.about-text h4 b { display: block; font-size: 22px; color: #333; }
.about-text h4 em { font-size: 13px; color: #999; font-style: normal; }
.about-text p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 20px; }
.about-more { display: inline-block; padding: 8px 25px; background: #035bbc; color: #fff; border-radius: 3px; font-size: 14px; }
.about-more:hover { background: #024a9a; color: #fff; }
.about-img { width: 400px; flex-shrink: 0; }
.about-img img { width: 100%; height: auto; border-radius: 5px; }

@media (max-width: 768px) {
    .about-wrap { flex-direction: column; }
    .about-img { width: 100%; }
    .case-item { width: calc(50% - 8px); }
}
