/* 改造后完整index.css外层包裹 */
.new-page {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: "Microsoft YaHei", sans-serif;
    }
}
ul, li { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
:root {
    --main: #165DFF;
    --secondary: #36CFC9;
    --orange: #FF7D00;
    --gray-bg: #F2F5FA;
    --dark: #1D2129;
    --light-gray: #86909C;
    --border-gray: #E5E6EB;
    --footer-dark: #0F2847;
}
.wrap {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    float: none !important; /* 屏蔽老浮动class */
    clear: both;
}
.top-bar {
    background: var(--main);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}
/* 头部导航 弹性布局 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(22, 93, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    float: none !important;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--main);
}
.logo small {
    display: block;
    font-size: 12px;
    color: var(--light-gray);
}
/* ========== 新增logo自适应样式 ========== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 160px;
    height: auto;
    object-fit: contain !important;
}
/* 移动端logo缩小 */
@media (max-width: 768px) {
    .logo-img {
        width: 120px;
    }
}
/* PC导航弹性 */
.nav-pc ul {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.nav-pc a {
    font-size: 16px;
    color: var(--dark);
    padding: 8px 0;
    position: relative;
    transition: 0.3s;
}
.nav-pc a:hover { color: var(--orange); }
.nav-pc a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: 0.3s;
}
.nav-pc a:hover::after { width: 100%; }
/* 汉堡菜单 */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
}
.hamburger span {
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--main);
    left: 5px;
    transition: 0.3s;
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 18px; }
.hamburger span:nth-child(3) { top: 26px; }
/* 移动端侧边导航 */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(22, 93, 255, 0.96);
    transition: 0.4s;
    z-index: 998;
}
.mobile-nav.active { left: 0; }
.mobile-nav ul {
    padding: 40px 20px;
}
.mobile-nav li {
    margin: 22px 0;
    text-align: center;
}
.mobile-nav a {
    color: #fff;
    font-size: 18px;
    display: block;
    padding: 10px;
}
/* Banner 通用无缝轮播（任意图片数量） */
/* 首页banner容器 #home */
#home.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2732 / 1534;
    background: #0f58d1;
}
.banner-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}
.banner-item {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-item img {
    height: 100%;
    /* 手机端铺满裁切，视觉饱满 */
    object-fit: cover;
    object-position: center;
}

/* PC大屏专属修复：宽度足够时完整显示整张图，不裁切 */
@media screen and (min-width: 1200px) {
    #home.banner {
        /* 取消固定比例，高度随图片自适应 */
        aspect-ratio: unset;
        max-height: 650px;
    }
    .banner-item img {
        width: 100%;
        height: auto;
        object-fit: contain; /* PC完整展示整张图片，无裁切 */
    }
}

/* 左右切换按钮样式 */
.banner-prev, .banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(22,93,255,0.65);
    color: #fff;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    z-index: 9;
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }
.banner-prev:hover, .banner-next:hover {
    background: #165DFF;
}
/* 移动端缩小按钮 */
@media (max-width:768px) {
    .banner-prev,.banner-next {
        width:32px;height:32px;font-size:14px;
    }
}
/* 通用板块标题 */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
}
.section-title h2 {
    font-size: 30px;
    color: var(--main);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--orange);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}
.section-title p {
    color: var(--light-gray);
    margin-top: 10px;
}
/* 公司介绍 弹性网格自适应 */
.about {
    padding: 40px 0;
    background: #fff;
}
.about-wrap-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h3 {
    font-size: 22px;
    color: var(--main);
    margin-bottom: 15px;
}
.about-text p {
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 12px;
    text-indent: 2em;
}
/* 全部图片改为img标签 */
.about-img-box img {
    width: 100%;
    height: 320px;
    border-radius: 6px;
}
/* 产品分类按钮样式 */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
}
.category-item a {
    display: block;
    padding: 14px 32px;
    border: 1px solid var(--main);
    color: var(--main);
    border-radius: 4px;
    transition: 0.3s;
    font-size: 16px;
}
.category-item a:hover {
    background: var(--main);
    color: #fff;
}
/* 产品中心 竖向滚动 */
.product {
    background: var(--gray-bg);
    padding: 40px 0;
}
.product-scroll-box {
    height: 420px;
    overflow: hidden;
    position: relative;
}
.product-wrap-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    animation: productUp 30s linear infinite;
}
.product-card {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.product-img-box img {
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
    border-radius: 4px;
}
.product-card h4 {
    color: var(--main);
    margin-bottom: 8px;
}
.product-card p {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.6;
}
@keyframes productUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
/* 客户案例横向滚动 */
.case {
    padding: 40px 0;
    background: #fff;
}
.case-scroll-box {
    overflow: hidden;
}
.case-wrap-box {
    display: flex;
    width: 200%;
    animation: caseLoop 35s linear infinite;
    gap: 30px;
}
.case-item {
    min-width: 220px;
    height: 160px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    overflow: hidden;
}
.case-item img {
    width: 100%;
    height: 100%;
}
@keyframes caseLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* 新闻中心 弹性自适应列 */
.news {
    background: var(--gray-bg);
    padding: 40px 0;
}
.news-list-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.news-card {
    background: #fff;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.news-img-box img {
    width: 100%;
    height: 160px;
}
.news-text {
    padding: 15px;
}
.news-text h4 {
    color: var(--dark);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-text .date {
    font-size: 12px;
    color: var(--light-gray);
    margin-bottom: 8px;
}
.news-text p {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 联系我们弹性双栏 */
.contact {
    padding: 40px 0;
    background: #fff;
}
.contact-wrap-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info h3 {
    color: var(--main);
    margin-bottom: 20px;
    font-size: 22px;
}
.contact-info li {
    margin: 15px 0;
    font-size: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info li i {
    color: var(--orange);
    width: 24px;
}
.msg-form {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: 8px;
}
.msg-form h3 {
    color: var(--main);
    margin-bottom: 20px;
    font-size: 22px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.form-item input,
.form-item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}
.form-item textarea {
    height: 100px;
    resize: none;
    grid-column: 1 / -1;
}
.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--orange);
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover {
    background: #e06a00;
}
/* 底部弹性自适应 */
footer {
    background: var(--footer-dark);
    color: #ccc;
    padding: 50px 0 20px;
}
.footer-top-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 50px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}
.footer-col li {
    margin: 10px 0;
}
.footer-col a {
    color: #ccc;
    transition: 0.3s;
}
.footer-col a:hover {
    color: var(--orange);
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #233b61;
    font-size: 14px;
    color: var(--light-gray);
}
/* 媒体查询 移动端弹性切换单列 */
@media (max-width: 768px) {
    .nav-pc { display: none; }
    .hamburger { display: block; }
    .header .wrap { min-height: 70px; }
    .about-wrap-box,
    .contact-wrap-box,
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-top-box {
        gap: 20px;
    }
    .section-title h2 { font-size: 24px; }
    .category-item a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

