/* ===================== 全局重置 & 基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* 全局色彩变量，统一配色，后期一键换色 */
    --color-primary: #168849;
    --color-primary-dark: #0f6b39;
    --color-primary-light: #e6f4ec;
    --color-text-main: #333333;
    --color-text-gray: #666666;
    --color-text-light: #b2c9bd;
    --color-white: #ffffff;
    --color-bg: #f7faf8;
    --color-border: #e8f3ed;
    --shadow-sm: 0 2px 8px rgba(22, 136, 73, 0.1);
    --shadow-md: 0 4px 12px rgba(22, 136, 73, 0.25);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s ease;
}
html {
    scroll-behavior: smooth; /* 全局平滑滚动 */
}
body {
    font-family: "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
button, input {
    outline: none;
    border: none;
    background: none;
    font-family: inherit;
}

/* 全局科技网格背景 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background-image: radial-gradient(var(--color-primary) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}

/* 公共容器 */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================== 顶部通栏 ===================== */
.top-bar {
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-size: 14px;
    padding: 10px 0;
}
.top-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-left span {
    margin-right: 24px;
    display: inline-block;
}
.top-right a {
    color: var(--color-white);
    transition: var(--transition);
}
.top-right a:hover {
    color: var(--color-primary-light);
}

/* ===================== 导航头部 ===================== */
/* ===================== 导航头部 ===================== */
header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

/* Logo 容器加宽，适配宽版Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    max-width: 380px;
    min-width: 280px;
}

/* 适配宽版Logo的尺寸 */
.logo-icon {
    width: 140px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    /* 保持图片完整，不拉伸 */
    object-fit: contain;
    object-position: center left;
    image-rendering: crisp-edges;
}

.logo-text h2 {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--color-primary-dark);
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 600;
}
.logo-text p {
    font-size: clamp(11px, 1.1vw, 13px);
    color: var(--color-text-gray);
    line-height: 1.2;
    white-space: nowrap;
}

/* 导航菜单和移动端代码保持不变，仅修改Logo部分 */

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}
.nav-menu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* 导航右侧按钮组 */
.nav-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
#tipsBox, #btnBox {
    z-index: 1;
}

/* 按钮通用样式 */
.btn {
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 10;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #22aa5f);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 136, 73, 0.3);
}
.btn-outline {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--color-primary-light);
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-text-main);
    transition: var(--transition);
}
.mobile-nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    z-index: 998;
}
.mobile-nav.active {
    display: block;
}
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav a.active {
    color: var(--color-primary);
}

/* ===================== 首屏Banner ===================== */
.banner {
    min-height: 580px;
    height: auto;
    background: linear-gradient(110deg, rgba(15, 107, 57, 0.93), rgba(22, 136, 73, 0.86)), url("https://img1.baidu.com/it/u=3272166121,3045544561&fm=253&fmt=auto");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}
/* 动态线条动画 */
.banner-line-1, .banner-line-2 {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: lineMove 8s infinite linear;
}
@keyframes lineMove {
    0% {transform: translateY(-20px) translateX(-100px); opacity: 0;}
    50% {opacity: 1;}
    100% {transform: translateY(20px) translateX(100px); opacity: 0;}
}
.banner-content {
    color: var(--color-white);
    width: 55%;
}
.banner-content h1 {
    font-size: 46px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
}
.banner-content p {
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 36px;
}
.banner-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.banner-buttons .btn-primary {
    padding: 15px 36px;
    font-size: 17px;
}
.banner-buttons .btn-outline {
    padding: 13px 30px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.banner-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}
/* 二维码卡片 */
.banner-qrcode {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.banner-qrcode img {
    width: 140px;
    height: 140px;
    background: #eee;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    object-fit: cover;
}
.banner-qrcode p {
    font-size: 15px;
    color: var(--color-text-main);
    font-weight: 500;
}

/* ===================== 通用标题 ===================== */
.common-title {
    text-align: center;
    margin-bottom: 55px;
}
.common-title h3 {
    font-size: 32px;
    color: var(--color-primary-dark);
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}
.common-title h3::after {
    content: '';
    width: 70px;
    height: 3px;
    background: var(--color-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
}
.common-title p {
    color: var(--color-text-gray);
    margin-top: 15px;
    font-size: 15px;
}

/* ===================== 核心业务板块 ===================== */
.business-section {
    padding: 70px 0;
    background: var(--color-white);
}
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.business-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(22, 136, 73, 0.12);
}
/* 图片容器 统一铺满、无留白、不变形 */
.card-img {
    width: 100%;
    height: 220px;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-img img {
     width: 100%;
     height: 100%;
     object-fit: contain; /* 保持图片比例，不拉伸 */
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.business-card:hover .card-img img {
    transform: scale(1.05); /* 图片hover微放大，提升质感 */
}
.card-img i {
    font-size: 64px;
    color: var(--color-primary);
    transition: var(--transition);
}
.business-card:hover .card-img i {
    transform: scale(1.1);
}
/* 卡片内容 间距/行高极致优化 */
.card-content {
    padding: 30px;
}
.card-content h4 {
    font-size: 20px;
    color: var(--color-primary-dark);
    margin-bottom: 14px;
    font-weight: 600;
}
.card-content p {
    color: var(--color-text-gray);
    line-height: 1.8;
    font-size: 14.5px;
    margin-bottom: 24px;
}
.card-content a {
    color: var(--color-primary);
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}
.card-content a:hover {
    padding-left: 8px;
}

/* ===================== 悬浮侧边按钮 ===================== */
.float-tool {
    position: fixed;
    right: 25px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 998;
}
.float-item {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.float-item:hover {
    transform: scale(1.1);
    background: var(--color-primary-dark);
}

/* ===================== 页脚 ===================== */
footer {
    background: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 60px 0 30px;
}
.footer-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 45px;
}
.footer-col h4 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1b5e36;
}
.footer-col a {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-size: 14px;
    transition: var(--transition);
}
.footer-col a:hover {
    color: var(--color-white);
    padding-left: 4px;
}
.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #1b5e36;
    font-size: 14px;
}
.copyright a {
    color: var(--color-text-light);
}
.copyright a:hover {
    color: var(--color-white);
}

/* ===================== 响应式适配（全尺寸断点） ===================== */
/* 大屏缩小：1200px ~ 993px */
@media screen and (max-width: 1200px) and (min-width: 993px) {
    .nav-menu {gap: 20px;}
    .nav-menu a {font-size: 14px;}
    .business-grid {grid-template-columns: repeat(2, 1fr);}
}

/* 平板：992px 及以下 */
@media screen and (max-width: 992px) {
    .nav-menu, .nav-btn-group {display: none;}
    .hamburger {display: flex;}
    .banner-content {width: 100%;}
    .banner-content h1 {font-size: 34px;}
    .banner-qrcode {display: none;}
    .business-grid {grid-template-columns: repeat(2, 1fr);}
    .footer-wrap {grid-template-columns: repeat(2, 1fr);}

    .logo {
        max-width: 280px;
        min-width: 200px;
    }
    .logo-icon {
        width: 64px;
        height: 64px;
    }
    .mobile-nav {
        top: 90px;
    }
}

/* 大屏手机：768px 及以下 */
@media (max-width: 768px) {
    .logo {
        gap: 8px;
        max-width: 200px;
    }
    .logo-icon {
        width: 52px;
        height: 52px;
    }
    .logo-text h2 {
        font-size: 16px;
    }
    .logo-text p {
        font-size: 11px;
    }
    .banner-content h1 {font-size: 28px;}
    .banner-content p {font-size: 15px;}
    .card-img {height: 200px;}
    .card-img i {font-size: 56px;}
    .card-content {padding: 25px;}
    .banner-buttons {gap: 15px;}
}

/* 小屏手机：576px 及以下 */
@media screen and (max-width: 576px) {
    .container {width: 95%;}
    .top-left span, .top-right a {margin-right: 12px; margin-left: 12px; font-size: 13px;}
    .business-grid,
    .footer-wrap {grid-template-columns: 1fr;}
    .footer-wrap {gap: 30px;}
    .float-tool {right: 15px; bottom: 20px;}
    .banner-buttons .btn-primary,
    .banner-buttons .btn-outline {width: 100%; text-align: center;}
    .common-title h3 {font-size: 26px;}
    .banner {padding: 40px 0; min-height: auto;}
}