/*
Theme Name: 二次元三次元自动化设备中文站
Theme URI: shturl.cc/z7S9jntbN
Author: Custom Developer
Author URI: shturl.cc/z7S9jntbN
Description: 二次元三次元测量设备企业官网，含新闻中心、行业新闻、公司新闻、培训班开课、在线报名中心，自适应企业官网模板
Version: 3.0
Text Domain: 3d2d-cn
License: GPLv2 or later
*/
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:"Microsoft Yahei",sans-serif;font-size:14px;color:#333;background:#f6f7f9;line-height:1.8;}
a{text-decoration:none;color:#0666b8;transition:all 0.3s;}
a:hover{color:#044b88;}
ul,ol{list-style:none;}
img{max-width:100%;height:auto;}
.container{width:1200px;margin:0 auto;padding:0 15px;}
.clearfix{clear:both;}

/* 头部导航 */
.header{background:#10243f;position:fixed;width:100%;top:0;z-index:999;box-shadow:0 2px 10px rgba(0,0,0,0.1);}
.header .logo{float:left;padding:15px 0;}
.header .logo h1{font-size:24px;color:#fff;font-weight:bold;}
.header .nav{float:right;}
.header .nav li{float:left;line-height:70px;padding:0 16px;position:relative;}
.header .nav li a{color:#fff;font-size:15px;}
.header .nav li a:hover,.header .nav li.current a{color:#409eff;}

/* 轮播Banner */
.banner{width:100%;height:500px;background:#10243f url() center no-repeat;background-size:cover;display:flex;align-items:center;color:#fff;margin-top:70px;}
.banner-text{max-width:1200px;margin:0 auto;padding:0 15px;}
.banner-text h2{font-size:42px;margin-bottom:20px;font-weight:bold;line-height:1.3;}
.banner-text p{font-size:18px;margin-bottom:30px;opacity:0.95;line-height:1.9;}
.banner-btn a{display:inline-block;background:#409eff;color:#fff;padding:12px 30px;border-radius:4px;margin-right:15px;font-size:16px;}
.banner-btn a:hover{background:#0666b8;}

/* 通用区块 */
.section{padding:80px 0;background:#fff;}
.section-title{text-align:center;margin-bottom:50px;}
.section-title h3{font-size:32px;color:#10243f;margin-bottom:15px;position:relative;padding-bottom:15px;}
.section-title h3:after{content:'';width:80px;height:3px;background:#409eff;position:absolute;left:50%;bottom:0;transform:translateX(-50%);}
.section-title p{color:#666;font-size:16px;max-width:800px;margin:0 auto;}

/* 优势列表 */
.advantage-list{display:flex;flex-wrap:wrap;justify-content:space-between;}
.advantage-item{width:23%;background:#f8f9fa;padding:30px 20px;border-radius:6px;text-align:center;transition:0.3s;margin-bottom:20px;}
.advantage-item:hover{box-shadow:0 5px 20px rgba(0,0,0,0.08);transform:translateY(-5px);}
.advantage-item h4{font-size:18px;color:#10243f;margin-bottom:15px;}
.advantage-item p{color:#666;line-height:1.8;}

/* 产品列表 */
.product-list{display:flex;flex-wrap:wrap;justify-content:space-between;}
.product-item{width:32%;background:#fff;border:1px solid #eee;border-radius:6px;overflow:hidden;margin-bottom:30px;transition:0.3s;}
.product-item:hover{box-shadow:0 8px 25px rgba(0,0,0,0.06);}
.product-item-img{height:220px;overflow:hidden;}
.product-item-img img{width:100%;height:100%;object-fit:cover;transition:0.5s;}
.product-item:hover .product-item-img img{transform:scale(1.05);}
.product-item-text{padding:25px;}
.product-item-text h4{font-size:18px;color:#10243f;margin-bottom:12px;}
.product-item-text p{color:#666;margin-bottom:20px;}
.product-item-text a{color:#409eff;font-weight:bold;}

/* 面包屑 */
.breadcrumb{padding:20px 0;background:#f5f7fa;font-size:14px;color:#666;}
.breadcrumb a{color:#409eff;}

/* 新闻列表 */
.news-list .news-item{padding:20px 0;border-bottom:1px solid #eee;}
.news-item h4{font-size:18px;margin-bottom:8px;}
.news-item .meta{color:#999;font-size:13px;margin-bottom:10px;}
.news-item p{color:#666;margin-bottom:10px;}

/* 表单通用样式 */
.contact-form input,.contact-form textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:4px;
    font-size:14px;
}
.contact-form button{
    background:#409eff;
    color:#fff;
    border:none;
    padding:12px 30px;
    border-radius:4px;
    cursor:pointer;
    font-size:16px;
}
.contact-form button:hover{
    background:#0666b8;
}

/* 底部 */
.footer{background:#10243f;color:#fff;padding:60px 0 30px;}
.footer-box{display:flex;flex-wrap:wrap;justify-content:space-between;}
.footer-item{width:24%;margin-bottom:30px;}
.footer-item h4{font-size:18px;margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid #273b57;}
.footer-item p,.footer-item li{color:#b0bacc;margin-bottom:10px;}
.footer-item li a{color:#b0bacc;}
.footer-item li a:hover{color:#409eff;}
.copyright{text-align:center;padding-top:30px;margin-top:30px;border-top:1px solid #273b57;color:#8892a3;font-size:13px;}

/* 404页面 */
.page-404{text-align:center;padding:120px 0;}
.page-404 h3{font-size:36px;color:#10243f;margin-bottom:20px;}
.page-404 p{font-size:16px;color:#666;margin-bottom:30px;}
.page-404 a{background:#409eff;color:#fff;padding:12px 30px;border-radius:4px;}

/* 自适应移动端 */
@media(max-width:1200px){
    .container{width:100%;}
    .advantage-item{width:48%;}
    .product-item{width:48%;}
    .footer-item{width:48%;}
}
@media(max-width:768px){
    .header .logo{width:100%;text-align:center;float:none;}
    .header .nav{width:100%;float:none;text-align:center;}
    .header .nav li{float:none;display:inline-block;line-height:50px;}
    .banner{height:auto;padding:100px 0;margin-top:120px;}
    .banner-text h2{font-size:28px;}
    .section{padding:50px 0;}
}