/* ========== 全局样式重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== 导航栏样式 - 菜单字加大 ========== */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-wrap {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.nav-logo img {
    width: auto;
    height: 52px;
    margin-right: 12px;
    background: transparent !important;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #387ed3;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-list li a.active {
    color: #387ed3;
    font-weight: 600;
}

.nav-list li a:hover {
    color: #387ed3;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
    transition: width 0.3s ease;
}

.nav-list li a.active::after,
.nav-list li a:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    width: 240px;
    padding: 16px 0;
    display: none;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown li {
    padding: 0;
}

.nav-dropdown li a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-list li:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a:hover {
    color: #387ed3;
    background: #f8f9fa;
    border-left-color: #387ed3;
    padding-left: 30px;
}

/* ========== 轮播图区域 ========== */
.carousel-container {
    width: 100%;
    height: 0;
    padding-bottom: 41.67%;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#carousel-item-1 {
    background-image: url('img/1.png');
}

#carousel-item-2 {
    background-image: url('img/2.png');
}

#carousel-item-3 {
    background-image: url('img/3.png');
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.carousel-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 50;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.carousel-info .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent !important;
    padding: 0 !important;
}

.carousel-info .logo img {
    width: auto;
    height: 70px;
    background: transparent !important;
    padding: 0 !important;
    object-fit: contain;
}

/* ========== 解决方案横幅 - 缩短上下边距 ========== */
.solution-banner {
    background: linear-gradient(135deg, #387ed3 0%, #5a9ee0 100%);
    padding: 40px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 0 0 30px;
}

.solution-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 1;
}

.solution-banner h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 关于我们区域 - 缩短内边距 ========== */
.about-section {
    padding: 50px 0;
    background: #F7FBFF;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
    z-index: 1;
}

.about-container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-logo img {
    width: auto;
    height: 70px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    background: transparent !important;
    object-fit: contain;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.about-container h2 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-title {
    font-size: 36px;
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

.about-content {
    text-align: justify;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-btn {
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(56,126,211,0.3);
    position: relative;
    overflow: hidden;
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.about-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(56,126,211,0.4);
}

.about-btn:hover::before {
    left: 100%;
}

/* ========== 产品分类区域 - 添加卡片链接样式，缩短内边距 ========== */
.product-section {
    padding: 40px 0;
    background: #F7FBFF;
}

.product-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.product-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: calc(25% - 25px);
    transition: transform 0.3s ease;
}

.product-item-link:hover {
    transform: translateY(-5px);
}

.product-item {
    width: 100%;
    text-align: center;
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(56,126,211,0.15);
    border-color: #e0eeff;
}

.product-item img {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
    border-radius: 12px;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-item:hover img {
    transform: scale(1.03);
}

.product-item h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.product-btn {
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    cursor: pointer;
    margin: 35px auto 0;
    display: block;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(56,126,211,0.25);
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(56,126,211,0.4);
}

/* ========== 作品集区域 - 缩短内边距 ========== */
.gallery-section {
    padding: 40px 0;
    background: #F7FBFF;
}

.gallery-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.gallery-item {
    width: calc(25% - 25px);
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(56,126,211,0.15);
    border-color: #e0eeff;
}

.gallery-item img {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
    border-radius: 12px;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-item a {
    font-size: 13px;
    color: #387ed3;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 18px;
    border: 2px solid #387ed3;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.gallery-item a:hover {
    background: #387ed3;
    color: white;
    transform: translateY(-2px);
}

.gallery-btn {
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    cursor: pointer;
    margin: 35px auto 0;
    display: block;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(56,126,211,0.25);
}

.gallery-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(56,126,211,0.4);
}

/* ========== 页脚样式 ========== */
.footer {
    background: linear-gradient(135deg, #112e4d 0%, #1a365d 100%);
    color: white;
    padding: 40px 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #387ed3, #5a9ee0);
}

.footer-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.footer-left {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: auto;
    height: 55px;
    margin-right: 15px;
    background: transparent !important;
    padding: 0 !important;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-slogan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
    font-weight: 500;
}

.footer-company {
    font-size: 20px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-nav {
    font-size: 14px;
    margin-top: 15px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.footer-middle {
    flex: 1;
    min-width: 220px;
}

.footer-middle p {
    font-size: 14px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.footer-middle p::before {
    content: '•';
    color: #5a9ee0;
    margin-right: 8px;
    font-size: 16px;
}

.footer-right {
    flex: 0 0 auto;
    text-align: center;
}

.footer-right img {
    width: auto;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px;
    background: white;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.footer-right img:hover {
    transform: scale(1.05);
}

.footer-right p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    letter-spacing: 1px;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== 响应式适配 ========== */
@media (max-width: 1024px) {
    .nav-list {
        gap: 35px;
    }
    .nav-list li a {
        font-size: 17px;
    }
    .nav-logo img {
        height: 48px;
    }
    .product-item-link {
        width: calc(50% - 25px);
    }
    .gallery-item {
        width: calc(50% - 25px);
    }
    .carousel-container {
        padding-bottom: 45%;
    }
    .about-title {
        font-size: 32px;
    }
    .product-item img,
    .gallery-item img {
        height: 160px;
        width: 160px;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        gap: 15px;
    }
    .nav-logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .nav-logo img {
        height: 45px;
    }
    .logo-text {
        font-size: 20px;
    }
    .nav-list {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .nav-list li a {
        font-size: 16px;
    }
    .nav-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 10px;
    }
    .nav-dropdown li a {
        font-size: 15px;
    }
    .product-item-link {
        width: calc(50% - 20px);
    }
    .gallery-item {
        width: calc(50% - 20px);
    }
    .product-item img,
    .gallery-item img {
        height: 140px;
        width: 140px;
    }
    .carousel-container {
        padding-bottom: 50%;
        margin-top: 70px;
    }
    .carousel-info .logo img {
        height: 50px;
    }
    .about-title {
        font-size: 28px;
    }
    .about-logo img {
        height: 65px;
    }
    .solution-banner {
        padding: 30px 0;
    }
    .solution-banner h2 {
        font-size: 24px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 20px;
    }
    .prev-btn {
        left: 20px;
    }
    .next-btn {
        right: 20px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    .footer-logo {
        justify-content: center;
        flex-direction: column;
    }
    .footer-logo img {
        margin-right: 0;
        margin-bottom: 12px;
        height: 55px;
    }
    .footer-middle p {
        justify-content: center;
    }
    .footer-right img {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .nav-list {
        gap: 15px;
    }
    .nav-list li a {
        font-size: 15px;
    }
    .nav-logo img {
        height: 40px;
    }
    .logo-text {
        font-size: 18px;
    }
    .product-item-link {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .gallery-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .product-item img,
    .gallery-item img {
        height: 130px;
        width: 130px;
        padding: 8px;
    }
    .carousel-container {
        padding-bottom: 60%;
    }
    .carousel-info .logo img {
        height: 45px;
    }
    .about-title {
        font-size: 24px;
    }
    .about-logo img {
        height: 60px;
    }
    .solution-banner {
        padding: 25px 0;
        margin-bottom: 20px;
    }
    .solution-banner h2 {
        font-size: 22px;
    }
    .carousel-btn {
        padding: 8px 12px;
        font-size: 18px;
        width: 35px;
        height: 35px;
    }
    .prev-btn {
        left: 15px;
    }
    .next-btn {
        right: 15px;
    }
    .about-btn,
    .product-btn,
    .gallery-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    .footer-logo img {
        height: 50px;
    }
    .footer-right img {
        height: 65px;
    }
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #387ed3, #5a9ee0);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2c66b0, #4a8ac0);
}
/* ========== 作品集卡片链接样式 ========== */
.gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: calc(25% - 25px);
    transition: transform 0.3s ease;
}

.gallery-item-link:hover {
    transform: translateY(-5px);
}

.gallery-item {
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(56,126,211,0.15);
    border-color: #e0eeff;
}

.gallery-item img {
    width: 160px;
    height: 160px;
    margin-bottom: 15px;
    border-radius: 12px;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-read-more {
    font-size: 13px;
    color: #387ed3;
    font-weight: 600;
    padding: 6px 18px;
    border: 2px solid #387ed3;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.gallery-item:hover .gallery-read-more {
    background: #387ed3;
    color: white;
    transform: translateY(-2px);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .gallery-item-link {
        width: calc(50% - 25px);
    }
}

@media (max-width: 768px) {
    .gallery-item-link {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .gallery-item-link {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}