:root {
    --primary: #0a2463;
    --secondary: #ff8a10;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --gap: clamp(12px, 2vw, 24px);
    --card-min: clamp(120px, 15vw, 180px);
    --card-padding: clamp(8px, 1.5vw, 16px);
    --font-size: clamp(14px, 2vw, 18px);
}

a {
    color: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", "阿里巴巴普惠体", sans-serif;
}

body {
    color: var(--dark);
    line-height: 1.6;
}

/* 导航栏 */
/* header {
                position: fixed;
                top: 0;
                width: 100%;
                background-color: white;
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                z-index: 1000;
                padding: 15px 5%;
                display: flex;
                justify-content: space-between;
                align-items: center;
            } */

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary);
}

/* .header-actions {
                display: flex;
                align-items: center;
            }

            .header-actions i {
                margin-left: 20px;
                cursor: pointer;
                color: var(--dark);
                transition: color 0.3s;
            }

            .header-actions i:hover {
                color: var(--secondary);
            } */

.search-box {
    margin-left: 20px;
    position: relative;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

/* Banner轮播 */
.banner {
    height: 500px;
    background: linear-gradient(rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.7)),
        url("/static/home/images/bg1.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button.primary {
    background-color: white;
    color: var(--primary);
}

.cta-button.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 数据展示 */
.stats-bar {
    background-color: var(--light);
    padding: 40px 0;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 16px;
    color: var(--dark);
}

/* 新入驻企业 */
.section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary);
}

.brands-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(174px, 1fr));
    gap: 20px;
}

.influencer-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.influencer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/*
            .influencer-avatar {
                width: 100%;
                height: 200px;
                object-fit: cover;
                display: block;
            } */

.influencer-name {
    padding: 15px 20px 0;
    margin: 0;
    font-size: 18px;
    color: #333;
}

.influencer-details {
    padding: 10px 20px 20px;
}

.influencer-info {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
}

.influencer-info i {
    margin-right: 8px;
    color: #888;
    width: 16px;
    text-align: center;
}

/* .ellipsis {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                width: 100%;
            } */

.influencer-info.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* 添加这行确保有宽度限制 */
    display: block;
    /* 改为块级元素 */
}

/* 或者更好的解决方案 - 保持flex布局但限制宽度 */
.influencer-info.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    /* 占据剩余空间 */
    min-width: 0;
    /* 关键！允许flex项缩小 */
}

.brand-card {
    min-width: 220px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 1px solid #eee;
    padding: 10px;
}

.brand-name {
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.brand-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.brand-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: var(--secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 5px;
}

/* 商品展示 */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dhk_gimg {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 300px;
    max-height: 300px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.product-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 5px;
}

.product-title {
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.product-sales {
    color: #666;
    font-size: 14px;
}

.quick-add {
    width: 100%;
    padding: 10px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    display: none;
}

.product-card:hover .quick-add {
    display: block;
}

.quick-add:hover {
    background-color: var(--primary);
}
/* 合作伙伴 */
.partners-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
    justify-items: center;
}

.partner-logo {
    height: 40px;
    width: 100px;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: all 0.3s;
}

.partner-logo:hover {
    /* filter: grayscale(0); */
    opacity: 1;
}

/* 平台优势 */
.features {
    background-color: var(--light);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary);
}

/* 页脚 */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 5% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.footer-about {
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.newsletter input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 4px;
}

.newsletter button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #2a7eb3;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

.influencer-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;

    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* max-width: 175px; */
}

.influencer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.influencer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto 15px;
    border: 1px solid var(--secondary);
}

.influencer-name {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.influencer-details {
    margin: 10px 0;
    text-align: left;
}

.influencer-info {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
}

.influencer-info i {
    margin-right: 5px;
    width: 16px;
    text-align: center;
}

.influencer-followers {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 5px;
}

/* .influencer-name {
                font-weight: 600;
                margin-bottom: 5px;
            }

            .influencer-desc {
                color: #666;
                font-size: 14px;
                padding: 0 15px 15px;
            }

            .influencer-followers {
                background-color: var(--light);
                padding: 8px;
                font-size: 12px;
                color: var(--secondary);
            } */

/* 合作学校样式 */
/* .school-logo {
                height: 40px;
                line-height: 40px;
                filter: grayscale(100%);
                opacity: 0.8;
                transition: all 0.3s;
                width: 16%;
            } */
.school-logo {
    width: 100%;
    /* padding: var(--card-padding);
                background: white;
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    text-align: left;
    font-size: var(--font-size);
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: left;
    /* aspect-ratio: 16/9; */
    transition: transform 0.3s, box-shadow 0.3s;
    height: 40px;
    line-height: 40px;
}
.partners-schoolmain {
    width: 100%;
}
.school-name-en {
    min-width: 400px;
    width: 33%;
    float: left;
    line-height: 40px;
    height: 40px;
    padding-bottom: 10px;
    overflow: hidden;
}
.school-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 轮播图指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background-color: white;
}

/* 响应式设计 */
@media (max-width: 992px) {
    nav ul {
        display: none;
    }

    .banner h1 {
        font-size: 36px;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 400px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 18px;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .section {
        padding: 15px;
    }

    .brands-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .influencer-name {
        font-size: 16px;
        padding: 12px 15px 0;
    }

    .influencer-details {
        padding: 8px 15px 15px;
    }

    .influencer-info {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }

    .brands-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partners-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-logo {
        aspect-ratio: 1/1;
        font-size: clamp(12px, 3vw, 16px);
    }
}

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.main-header {
    width: 100%;
    height: 5vh;
    min-height: 60px;
    background-color: #111111;
}

.main-container-body-one-item-center-text {
    color: #565656;
    font-size: 18px;
    text-align: center;
}

.main-container-body-one {
    width: 100%;
    height: 20vh;
    min-height: 250px;
    background-color: #ffcc00;
}

.main-container-body-one-item {
    width: 100%;
    height: 100%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container-body-one-item img {
    width: 200px;
}

.main-container-body-img {
    width: 100%;
    height: 500px;
}

.main-container-body-two {
    width: 100%;
    height: 20vh;
    min-height: 300px;
    /* background: url('/static/home/images/bg1.jpg') no-repeat center;
    background-size: cover; */
    background-color: #f1f1f1;
}

.main-container-body-two-item {
    width: 50%;
    height: 100%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.main-container-body-two-item a {
    color: #888;
}

.main-footer {
    width: 100%;
    height: 15vh;
    min-height: 100px;
    background-color: #d8d8d8;
}

.main-footer-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
}

.main-footer-item-img {
    width: 30%;
    min-width: 500px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.main-footer-item-info {
    width: 100%;
    text-align: center;
    color: #888;
    height: 40px;
    line-height: 40px;
}

.main-container-body-three {
    width: 100%;
    padding: 20px 0;
    margin-top: 30px;
}

.main-container-body-three-title {
    width: 50%;
    min-width: 900px;
    /* margin: 0px auto; */
    /* text-align: center; */
    font-size: 24px;
}

.main-container-body-three-item {
    width: 50%;
    min-width: 900px;
    /* text-align: center; */
    margin: 50px auto;
}

.main-container-body-three-item-title {
    font-size: 20px;
    margin: 20px 0;
}

.main-container-body-three-item-img {
    /* display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap; */
}

.main-container-body-three-item-img img {
    /* width: 200px;
    height: 200px; */
    margin: 0 0px 20px 0;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
}

.main-container-body-three-item-center {
    margin-top: 20px;
    line-height: 24px;
}
.dhkmsa {
    width: 1200px;
    margin: 0px auto;
    height: 0;
}
.set_language {
    display: flex;
    justify-content: center;
    position: relative;
    top: 30px;
    right: 100px;
    cursor: pointer;
    align-items: center;
    height: 36px;
    width: 200px;
    margin: 0 auto;
    margin-right: 50px;
    line-height: 36px;
    text-align: center;
}
.set_language p {
    font-size: 14px;
    line-height: 30px;
    color: #666;
}
.set_language p span {
    display: inline-block;
    font-size: 14px;
    line-height: 30px;
    color: #cb261c;
}
.set_language p:hover span {
    color: #cb261c;
}
.set_language i.layui-icon-website {
    font-size: 18px;
    color: #cb261c;
    margin-right: 4px;
    position: relative;
    top: 1px;
}
.set_language img {
    width: 24px;
    margin-right: 4px;
}
.hide_language {
    display: none;
    z-index: 100;
    width: 110px;
    text-align: center;
    background-color: #fff;
    position: absolute;
    top: 36px;
    left: 0;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}
.hide_language ul li {
    width: 100%;
}
.hide_language ul li a {
    font-size: 14px;
    color: #666;
    line-height: 34px;
    display: block;
    padding: 0 10px;
    text-align: left;
    border: none;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hide_language ul li a:hover {
    background-color: #f5f5f5;
    color: #666;
}
.set_language:hover .header_icon_arrows {
    background-position: 0 0;
    transition: all 0.3s;
    transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -o-transform: rotate(180deg);
}
.set_language:hover .hide_language {
    display: block;
}
.set_language::after {
    content: "";
    width: 1px;
    height: 14px;
    background-color: #ccc;
    position: absolute;
    right: -14px;
    top: 12px;
}
.set_language .header_icon_arrows {
    margin-left: 6px;
}
