/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

:root {
    --color-dark: #222222;
    --color-gray: #333333;
    --color-white: #ffffff;
    --color-orange: #ff7d00;
    --color-light: #f5f5f5;
    --color-card-bg: #fff9f4;
    --color-service-bg: #fff5ec;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-white);
    color: var(--color-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏 - 修复大屏拥堵 + 完美自适应 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-dark);
    z-index: 999;
    padding: 12px 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 20px;
}

.logo {
    color: var(--color-white);
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: var(--color-orange);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 18px;
    padding: 6px 0;
    margin: 0 auto;
    max-width: 750px;
    width: 100%;
    justify-content: space-evenly;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-orange);
}

.lang-select {
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    background: var(--color-orange);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    outline: none;
    flex-shrink: 0;
}

/* 服务模块卡片背景图样式 */
.service-cards .card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #fff;
    min-height: 260px;
    padding: 50px 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.service-cards .card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5); /* 压暗背景，保证文字清晰 */
    z-index: -1;
}

/* 分别给 5 个服务项设置不同背景图 */
.service-cards .card:nth-child(1)::before {
    background-image: url('png/service/service1.png');
}
.service-cards .card:nth-child(2)::before {
    background-image: url('png/service/service2.png');
}
.service-cards .card:nth-child(3)::before {
    background-image: url('png/service/service3.png');
}
.service-cards .card:nth-child(4)::before {
    background-image: url('png/service/service4.png');
}
.service-cards .card:nth-child(5)::before {
    background-image: url('png/service/service5.png');
}

.service-cards .card h3,
.service-cards .card p {
    position: relative;
    z-index: 2;
}

.service-cards .card:hover {
    transform: translateY(-6px);
}
/* 通用容器 */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* 头部横幅 */
.hero {
    margin-top: 70px;
    min-height: 80vh;
    background-color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 40px 5%;
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--color-orange);
}

.hero-content p {
    font-size: clamp(15px, 2vw, 18px);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-orange);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin: 6px;
    white-space: nowrap;
}

.btn:hover {
    background-color: #e66a00;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-orange);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(22px, 4vw, 32px);
    color: var(--color-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--color-orange);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ------------------------------
   Core Values 加高卡片 + 主题背景
------------------------------ */
.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.value-cards .card {
    background: var(--color-card-bg);
    padding: 45px 25px;
    min-height: 240px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid var(--color-orange);
}

.value-cards .card:hover {
    transform: translateY(-6px);
}

.value-cards .card h3 {
    color: var(--color-orange);
    font-size: 20px;
    margin-bottom: 15px;
}

.value-cards .card p {
    font-size: 15px;
    line-height: 1.8;
}

/* ------------------------------
   One-Stop Service Map 加高卡片
------------------------------ */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.service-cards .card {
    background: var(--color-service-bg);
    padding: 50px 25px;
    min-height: 260px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid var(--color-orange);
}

.service-cards .card:hover {
    transform: translateY(-6px);
}

.service-cards .card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.service-cards .card p {
    font-size: 15px;
    line-height: 1.8;
    color: #fff;
}

/* ------------------------------
   产品展示
------------------------------ */
.product-grid,
.channel-grid,
.category-grid,
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}
/*.product-img {*/
/*    height: 400px;*/
/*    background: #f5f5f5;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    overflow: hidden;*/
/*}*/

/*.product-img img {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*}*/
/* 产品列表小图修复：不裁切、不变形 */
.product-img {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}
.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 18px;
}

.product-tag,
.tag {
    display: inline-block;
    background: var(--color-orange);
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 12px;
    margin-top: 8px;
}

/* ------------------------------
   Brand Strength 合作伙伴图片
------------------------------ */
.strength {
    background: var(--color-dark);
    color: #fff;
    padding: 60px 0;
}

.strength h2 {
    color: #fff;
}

.client-logo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}

.partner-logo {
    width: 150px;
    height: 85px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    overflow: hidden;  /* 加上这个，图片不会超出盒子 */
}
.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    /* 去掉反色滤镜，显示原图颜色 */
    opacity: 1;        /* 不透明 */
    transition: 0.3s;
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.08);
}

.channel-box {
    padding: 25px;
    border-left: 4px solid var(--color-orange);
    background: #f9f9f9;
    border-radius: 6px;
}

.category-item {
    background: #fff;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.news-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

/* 询盘表单 */
.inquiry-section {
    background: #fff;
    border-top: 3px solid var(--color-orange);
    padding: 50px 5%;
}

.inquiry-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    padding: 12px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.inquiry-form textarea {
    min-height: 120px;
    resize: vertical;
    grid-column: span 2;
}

.inquiry-submit {
    grid-column: span 2;
    background: var(--color-orange);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

footer {
    background: var(--color-dark);
    color: #fff;
    text-align: center;
    padding: 25px 5%;
    font-size: 14px;
}

/* 手机超小屏幕优化 */
@media (max-width: 768px) {
    .inquiry-form {
        grid-template-columns: 1fr;
    }
    .inquiry-form textarea,
    .inquiry-submit {
        grid-column: span 1;
    }
}

@media (max-width: 570px) {
    .navbar {
        justify-content: center;
        flex-direction: column;
    }
    .nav-menu {
        justify-content: center;
        gap: 12px 16px;
        max-width: 100%;
    }
    .hero {
        margin-top: 120px;
    }
}
/* 产品详情弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.modal-product {
    background: #fff;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
}
.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    background: #000;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    z-index: 2;
}
.modal-prev, .modal-next {
    background: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.modal-content {
    display: flex;
    flex-direction: column;
}
.modal-img {
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
}
.modal-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.modal-info {
    padding: 24px;
}
.modal-info h2 {
    margin: 0 0 12px;
    font-size: 22px;
}
.modal-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}
.modal-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
}

/* 产品卡片点击手型 */
.product-card {
    cursor: pointer;
}