/* ====================== 全局基础重置 ====================== */
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:"Microsoft Yahei",sans-serif;color:#333;}
.container{max-width:1200px;margin:0 auto;padding:0 15px;}
.bg-light{background:#f7f7f7;}
.py-4{padding:40px 0;}
.py-5{padding:60px 0;}

/* ====================== 栅格布局类（案例、新闻等页面使用） ====================== */
.row{display:flex;flex-wrap:wrap;margin:0 -15px;}
.col-lg-4{width:33.333%;padding:0 15px;}
.col-lg-3{width:25%;padding:0 15px;}
.col-md-6{width:50%;padding:0 15px;}

/* ====================== 通用模块样式 ====================== */
.hero-text{padding:60px 0;text-align:center;color:#666;line-height:2.2;}
.section-title{text-align:center;margin-bottom:40px;}
.section-title h2{font-size:28px;color:#222;}
.section-title p{color:#888;letter-spacing:2px;}

/* ====================== 案例模块 ====================== */
.case-item img{width:100%;height:260px;object-fit:cover;}

/* ====================== 关于我们-统计数字 ====================== */
.stat-wrap{display:flex;justify-content:space-around;text-align:center;margin-top:30px;}
.stat-item .num{font-size:32px;font-weight:bold;color:#222;}

/* ====================== 新闻列表模块 ====================== */
.news-item{display:flex;gap:16px;margin-bottom:24px;}
.news-item img{width:180px;height:120px;object-fit:cover;}
.news-date{color:#999;font-size:13px;}

/* ====================== 合作伙伴模块 ====================== */
.partner-list{display:flex;flex-wrap:wrap;justify-content:center;gap:30px;padding:30px 0;}
.partner-item{width:80px;height:80px;background:#eee;display:flex;align-items:center;justify-content:center;}
.partner-item img{max-width:100%;max-height:100%;}

/* ====================== 页脚footer ====================== */
.footer{background:#222;color:#aaa;padding:30px 0;text-align:center;}

/* ====================== 头部导航LOGO ====================== */
.header{
    background:#ffffff;
    box-shadow:0 1px 4px rgba(0,0,0,0.1);
    position:sticky;
    top:0;
    z-index:99;
}
.header-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:64px;
}
.logo a{
    font-size:22px;
    font-weight:bold;
    color:#222;
    text-decoration:none;
}
.nav a{
    display:inline-block;
    padding:0 14px;
    color:#444;
    text-decoration:none;
    font-size:15px;
    line-height:64px;
}
.nav a:hover{
    color:#2b74d9;
}

/* ====================== 首页轮播banner ====================== */
.banner-wrap{
    position:relative;
    height:420px;
    overflow:hidden;
}
.banner{
    display:flex;
    height:100%;
    transition: transform 0.6s ease;
}
.banner-item{
    min-width:100%;
    position:relative;
}
.banner-item img{
    width:100%;
    height:100%;
    object-fit:cover;
}
/* banner标题文字：从下往上滑入动画 */
.banner-text{
    position:absolute;
    left:50%;
    top:40%;
    transform: translate(-50%, 80px);
    color:#fff;
    text-align:center;
    opacity:0;
    transition: all 0.8s ease;
}
.banner-text h2{
    text-shadow:2px 2px 6px rgba(0,0,0,.6);
    font-size:42px;
    margin-bottom:16px;
    font-weight:bold;
}
.banner-text p{
    font-size:20px;
}
.banner-text.show{
    opacity:1;
    transform: translate(-50%, 0);
}

/* banner左右箭头，悬浮显示 */
.banner-btn{
    position:absolute;
    top:50%;
    width:40px;
    height:40px;
    background:rgba(0,0,0,0.4);
    color:#fff;
    cursor:pointer;
    margin-top:-20px;
    z-index:10;
    opacity:0;
    visibility:hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.banner-wrap:hover .banner-btn{
    opacity:1;
    visibility:visible;
}
.prev{left:20px;}
.next{right:20px;}

/* banner轮播圆点 */
.banner-dot{
    position:absolute;
    bottom:20px;
    width:100%;
    text-align:center;
    z-index:10;
}
.banner-dot .dot{
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,0.4);
    margin:0 6px;
    cursor:pointer;
    transition:all 0.3s ease;
}
.banner-dot .dot.active{
    width:28px;
    border-radius:6px;
    background:#ffffff;
}

/* ====================== 创意产品横向滚动模块 ====================== */
/* 产品外层容器，用于放置箭头 */
.product-wrap{
    position:relative;
    overflow:visible;
    padding:0 50px;
}
/* 外层容器：允许hover放大向外溢出 */
.product-outer{
    overflow:visible;
}
/* 视口层：⭐overflow:hidden，裁切多余卡片，严格只看到4张完整卡片 */
.product-viewport{
    overflow:hidden;
    width:calc(220px * 4 + 24px * 3);
    margin:0 auto;
}
/* 滚动盒子，JS控制translateX位移实现滑动 */
.product-scroll{
    display:flex;
    gap:24px;
    flex-wrap:nowrap;
    transition:transform 0.4s ease;
    padding:0;
}
/* 产品卡片：固定宽度、边框；取消卡片整体放大 */
.product-item{
    flex:0 0 220px;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    border:1px solid #e5e5e5;
    transition: border-color 0.25s ease;
}
/* 图片增加过渡动画，hover时仅图片放大 */
.product-item img{
    width:100%;
    height:200px;
    object-fit:cover;
    transition: transform 0.25s ease;
}
/* 鼠标悬浮，仅图片放大 */
.product-item:hover img{
    transform: scale(1.04);
}
/* hover仅改变边框颜色，卡片本身不放大 */
.product-item:hover{
    border-color:#2b74d9;
}
.pro-title{
    padding:12px;
    text-align:center;
    font-size:16px;
}

/* 产品左右切换箭头 */
.pro-btn{
    position:absolute;
    top:50%;
    width:36px;
    height:36px;
    background:#2b74d9;
    border-radius:50%;
    cursor:pointer;
    margin-top:-18px;
    z-index:8;
    display:none;
    color:#fff;
    font-size:18px;
    user-select:none;
}
.pro-btn.show{
    display:grid;
    place-items:center;
}
.pro-prev{
    left:10px;
}
.pro-prev::before{
    content:"‹";
}
.pro-next{
    right:10px;
}
.pro-next::before{
    content:"›";
}
.pro-btn:hover{
    background:#1f62bc;
}
