/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 85%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 响应式断点 */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
}

/* 通用样式 */
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff6700;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e63946;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e63946;
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: #e63946;
    border: 1px solid #e63946;
}

.btn-secondary:hover {
    background-color: #f8f8f8;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #e43b3b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
}

.nav-list {
    display: flex;
    gap: 30px;
    color: #fff;
}

.nav-list a {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    padding: 8px 0;
    position: relative;
}

.nav-list a.active::after,
.nav-list a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: whitesmoke;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        gap: 15px;
    }

    /* .nav-list.active {
        display: flex;
    } */

    .mobile-menu-btn {
        display: block;
    }
}

/* =======================================
   Banner 区域（图片铺满版）
========================================= */
/* =======================================
   Banner 区域（宽度铺满+高度自适应）
========================================= */
.banner {
    position: relative;
    /* 作为内容层的父容器 */
    width: 100%;
    height: 300px;
    /* 强制宽度铺满屏幕 */
    margin-top: 80px;
    /* 避开顶部导航 */
}

/* 背景图片层：宽度100%，高度随图片自动 */
.banner-bg {
    width: 100%;
    line-height: 0;
    /* 消除图片默认行高导致的底部留白 */
}

.banner-bg img {
    width: 100%;
    /* 宽度铺满 */
    height: auto;
    /* 高度随图片比例自动适配 */
    display: block;
    /* 消除inline默认间距 */
}

/* 文字内容层：居中悬浮在图片上方 */
.banner-content-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    padding: 20px;
    /* 小屏内边距 */
}

.banner-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    /* 限制文字最大宽度，避免大屏拉伸 */
    /* 半透明遮罩提升可读性 */
    background: rgba(0, 0, 0, 0.3);
    padding: 24px 32px;
    border-radius: 12px;
}

.banner h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 响应式适配：根据屏幕大小调整文字 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 32px;
    }

    .banner .subtitle {
        font-size: 18px;
    }

    .banner-content {
        background: rgba(0, 0, 0, 0.5);
        /* 小屏遮罩加深 */
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 28px;
    }

    .banner-content {
        width: 100%;
        /* 小屏文字层铺满 */
    }
}

/* 区块通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 20px;
    color: black;
    max-width: 800px;
    margin: 0 auto;
}

/* 数据展示模块 */
.brand-data {
    background-color: #f8f9fa;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.data-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-item img {
    height: 80px;
    margin: 0 auto 20px;
}

.data-label {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

/* 加盟优势模块 */
/* =======================================
   加盟优势模块（2行4列布局）
========================================= */
/* 核心：2行4列强制布局 */
.advantages-grid-2x4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 固定4列 */
    grid-template-rows: repeat(2, auto);
    /* 固定2行 */
    gap: 18px;
    /* 行列间距适配4列布局 */
    margin: 40px 0;
}

.advantage-item {
    padding: 24px 16px;
    /* 缩小内边距适配4列紧凑布局 */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-4px);
}

.advantage-item .icon {
    font-size: 32px;
    /* 缩小图标适配4列 */
    margin-bottom: 12px;
    color: #165DFF;
}

.advantage-item h3 {
    font-size: 18px;
    /* 微调标题字号 */
    font-weight: 600;
    color: #e43b3b;
    margin-bottom: 8px;
}

.advantage-item p {
    color: black;
    font-size: 18px;
    /* 缩小描述文字 */
    line-height: 1.5;
}

/* 响应式适配 */
/* 大屏（1200px+）：保持4列，增大间距 */
@media (min-width: 1200px) {
    .advantages-grid-2x4 {
        gap: 24px;
    }

    .advantage-item {
        padding: 28px 20px;
    }
}

/* 平板（769-1199px）：自动转为2列4行 */
@media (min-width: 769px) and (max-width: 1199px) {
    .advantages-grid-2x4 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
        gap: 16px;
    }
}

/* 手机（≤768px）：自动转为1列8行 */
@media (max-width: 768px) {
    .advantages-grid-2x4 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, auto);
        gap: 16px;
    }

    .advantage-item {
        padding: 20px 16px;
    }
}

/* 新闻列表样式 */
/* .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
} */

.news-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item-content {
    padding: 20px;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item .date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 新闻详情样式 */
.news-detail {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.news-detail .meta {
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-detail-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.news-detail-content img {
    max-width: 100%;
    margin: 20px auto;
}

/* 表单页面样式 */
.form-page {
    max-width: 800px;
    margin: 100px auto 80px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.form-page h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* =======================================
   页脚 Footer（匹配设计图红色风格）
========================================= */
.footer {
    background-color: #E63946;
    /* 设计图主红色 */
    color: #fff;
    position: relative;
    padding-top: 80px;
    padding-bottom: 30px;
    margin-top: 0;
}

/* 顶部波浪装饰 */
.footer-wave {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23E63946' d='M0,160 Q360,220 720,160 T1440,160 L1440,320 L0,320 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top center;
    background-size: cover;
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    /* 整体间距 */
    padding: 0 15px;
}

/* 左侧 Logo 区域 */
.footer-logo {
    flex: 0 0 220px;
    /* 固定宽度 */
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.logo-en {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.logo-slogan {
    font-size: 20px;
    opacity: 0.85;
}

/* 链接区域 */
.footer-links {
    flex: 1;
    min-width: 120px;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #fff;
    opacity: 0.85;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* 右侧联系信息 */
.footer-contact {
    flex: 0 0 320px;
    /* 固定宽度 */
    text-align: left;
}

.contact-item {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.contact-item.hotline {
    font-size: 18px;
    font-weight: 500;
}

/* 版权信息 */
.footer-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-copyright p {
    font-size: 14px;
    opacity: 0.7;
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-logo {
        flex: 1 1 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-links {
        flex: 1 1 20%;
        min-width: 140px;
        margin-bottom: 20px;
    }

    .footer-contact {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: 60px;
    }

    .footer-wave {
        top: -40px;
        height: 40px;
    }

    .footer-container {
        gap: 15px;
    }

    .footer-links {
        flex: 1 1 45%;
        min-width: 120px;
    }

    .logo-text {
        font-size: 36px;
    }
}



/* 404/500页面样式 */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.error-page h1 {
    font-size: 120px;
    color: #ff6700;
    margin-bottom: 20px;
}

.error-page h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 提示消息样式 */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 16px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #f4acac;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* 采购专区样式 */
.procurement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.procurement-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.procurement-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.procurement-item h3 {
    font-size: 21px;
    margin-bottom: 10px;
    color: #333;
}

.procurement-item p {
    color: black;
    font-size: 18px;
    margin-bottom: 10px;
}

/* 关于我们页面样式 */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.about-content p {
    margin-bottom: 20px;
    color: #666;
}

.about-content img {
    max-width: 100%;
    margin: 30px auto;
    border-radius: 8px;
}

/* 联系我们页面样式 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-item {
    /* text-align: center; */
    /* padding: 30px; */
    /* background: #f8f9fa; */
    border-radius: 8px;
    text-align: left;
}

.contact-item .icon {
    font-size: 40px;
    color: #ff6700;
    margin-bottom: 20px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.contact-item p {
    color: #666;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .form-page {
        padding: 20px;
        margin: 80px 15px 40px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }

    .advantage-item,
    .data-item {
        padding: 20px;
    }

    .contact-item {
        padding: 20px;
    }

    .news-item img {
        height: 150px;
    }
}

/* =======================================
   品牌实力模块（2×2网格布局）
========================================= */
.brand-strength {
    background-color: #fff;
    padding: 60px 0;
}

/* 核心：2×2网格，强制两行两列 */
.strength-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 固定2列 */
    grid-template-rows: repeat(2, auto);
    /* 固定2行 */
    gap: 24px;
    /* 行列间距统一 */
    margin: 40px 0;
}

.strength-item {
    text-align: center;
    padding: 16px;
}

.strength-item img {
    width: 100%;
    /* height: 228px; */
    /* 统一图片高度，保证2×2对齐 */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.strength-tag {
    display: inline-block;
    padding: 6px 20px;
    /* background-color: #F8C0C8; */
    color: #E63946;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    /* 从上到下：深红红 → 浅红 渐变（更自然） */
    background: linear-gradient(to bottom, #e63947bb, #fff);
}

.strength-desc {
    font-size: 18px;
    color: black;
    line-height: 1.6;
    padding: 0 10px;
    width: 90%;
}

/* 响应式适配：小屏自动变回1列 */
@media (max-width: 768px) {
    .strength-grid-2x2 {
        grid-template-columns: 1fr;
        /* 手机端1列 */
        grid-template-rows: repeat(4, auto);
        /* 4行 */
    }

    .strength-item img {
        height: 180px;
        /* 小屏图片高度适配 */
    }
}

/* 平板适配：保持2×2但缩小间距 */
@media (min-width: 769px) and (max-width: 992px) {
    .strength-grid-2x2 {
        gap: 16px;
    }

    .strength-item img {
        height: 180px;
    }
}



/* =======================================
   共创佳绩的秘诀模块（匹配设计图样式）
========================================= */
.success-secret {
    /* background-color: #F7F8FA; */
    padding: 80px 0;
}

.success-secret .section-title h2 {
    color: #1D2129;
    font-size: 32px;
    margin-bottom: 8px;
}

.success-secret .section-title p {
    color: black;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

..section-title p {
    font-size: 18px;
}
/* 核心网格布局 */
.secret-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0 60px;
    justify-items: center;
}

/* 单个卡片样式 */
/* .secret-item {
    text-align: center;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 30px 20px;
    width: 100%;
    max-width: 180px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
} */

.secret-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: #165DFF;
}

.secret-tag {
    font-size: 20px;
    font-weight: 600;
    color: rgb(168, 9, 9);
    /* 白色文字更醒目 */
    margin-bottom: 12px;
    line-height: 1.4;
    /* 从上到下：深红红 → 浅红 渐变（更自然） */
    background: linear-gradient(to bottom, #e63947bb, #fff);
    /* 圆角（6px更贴合卡片整体风格） */
    border-radius: 6px;
    /* 内边距：上下6px 左右10px，适配文字 */
    padding: 6px 10px;
    /* 保证渐变背景随文字宽度自适应 */
    display: inline-block;
    /* 可选：添加轻微阴影，提升层次感 */
    box-shadow: 0 1px 3px rgba(230, 57, 70, 0.2);
}

.secret-desc {
    font-size: 18px;
    color: black;
    line-height: 1.6;
}

/* 底部技术支持模块 */
.secret-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.secret-stage {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.secret-number {
    font-size: 36px;
    font-weight: 700;
    color: #FF7D00;
    margin-right: 12px;
}

.secret-giraffe {
    font-size: 24px;
    margin-right: 12px;
}

.secret-label {
    font-size: 16px;
    color: #1D2129;
    font-weight: 500;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .success-secret {
        padding: 60px 0;
    }

    .secret-grid {
        gap: 16px;
    }

    .secret-item {
        max-width: 100%;
        padding: 24px 16px;
    }

    .secret-stage {
        padding: 10px 20px;
    }

    .secret-number {
        font-size: 28px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .secret-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .secret-grid {
        grid-template-columns: repeat(5, 1fr);
        /* 大屏强制5列，匹配设计图 */
    }
}


/* =======================================
   诚邀合作伙伴模块（匹配设计图）
========================================= */
.partner-invite {
    background-color: #fff;
    padding: 80px 0;
}

.partner-invite .section-title h2 {
    color: #1D2129;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.partner-invite .section-title p {
    color: #4E5969;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 2行3列布局 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px 60px;
    margin: 60px auto 0;
    max-width: 1000px;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partner-icon {
    font-size: 48px;
    color: #C82423;
    /* 设计图红色 */
    line-height: 1;
}

.partner-text {
    text-align: left;
}

.partner-subtitle {
    font-size: 15px;
    color: #4E5969;
    margin-bottom: 4px;
}

.partner-title {
    font-size: 20px;
    font-weight: 600;
    color: #1D2129;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 30px 40px;
    }
}

@media (max-width: 768px) {
    .partner-invite {
        padding: 60px 0;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, auto);
        gap: 24px;
    }

    .partner-icon {
        font-size: 40px;
    }

    .partner-title {
        font-size: 18px;
    }
}


/* =======================================
   品牌核心优势（六边形布局，匹配设计图）
========================================= */
.brand-advantages {
    background-color: #fff;
    padding: 80px 0;
}

.brand-advantages .section-title h2 {
    color: #1D2129;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
}

.brand-advantages .section-title p {
    color: #4E5969;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 六边形容器 - 核心定位父容器 */
.hex-container {
    position: relative;
    max-width: 1000px;
    margin: 100px auto auto auto;
    height: 420px;
    /* 固定高度容纳六边形布局 */
}

/* 中间核心六边形 */
.hex-center {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #F8C0C8, #FFFFFF);
    /* clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-number {
    font-size: 64px;
    font-weight: 700;
    color: #C82423;
}

/* 通用六边形样式 */
.hex-item {
    position: absolute;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #F8C0C8, #FFFFFF);
    /* clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); */
    display: flex;
    align-items: center;
    justify-content: center;

    /* 任意宽度，配合 aspect-ratio 自动决定高度 */
    /* width: 200px;           */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    aspect-ratio: 2 / 1.732;
}

.hex-icon {
    font-size: 40px;
    color: #FFFFFF;
}

/* 六个六边形位置定位 */
.hex-top-left {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) translateX(-100px);
}

.hex-top-right {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) translateX(100px);
}

.hex-middle-left {
    top: 32%;
    left: 32%;
    transform: translate(-50%, -50%);
}

.hex-middle-right {
    top: 32%;
    right: 32%;
    transform: translate(50%, -50%);
}

.hex-bottom-left {
    bottom: 36%;
    left: 51%;
    transform: translate(-50%, 50%) translateX(-100px);
}

.hex-bottom-right {
    bottom: 36%;
    left: 49%;
    transform: translate(-50%, 50%) translateX(100px);
}

/* 描述文本框样式 */
.hex-desc {
    position: absolute;
    background: #FFFFFF;
    border: 1px solid #E5E6EB;
    border-radius: 6px;
    padding: 12px 16px;
    width: 210px;
    height: 74px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.hex-desc p {
    font-size: 16px;
    color: black;
    line-height: 1.6;
    margin: 0;
}

/* 描述文本框定位 */
.hex-desc-top-left {
    top: 0;
    left: 11%;
    transform: translateY(-50%);
    border-left: 4px solid #C82423;
}

.hex-desc-top-right {
    top: 0;
    right: 11%;
    transform: translateY(-50%);
    border-right: 4px solid #C82423;
    display: flex;
    align-items: center;

}

.hex-desc-middle-left {
    top: 32%;
    left: 24%;
    transform: translate(-100%, -50%);
    border-left: 4px solid #C82423;
    display: flex;
    align-items: center;
}

.hex-desc-middle-right {
    top: 32%;
    right: 24%;
    transform: translate(100%, -50%);
    border-right: 4px solid #C82423;
    /* text-align: right; */
}

.hex-desc-bottom-left {
    bottom: 36%;
    left: 12%;
    transform: translateY(50%);
    border-left: 4px solid #C82423;
}

.hex-desc-bottom-right {
    bottom: 36%;
    right: 12%;
    transform: translateY(50%);
    border-right: 4px solid #C82423;
    /* text-align: right; */
}

/* 底部按钮 */
.hex-cta {
    text-align: center;
    /* margin-top: 40px; */
}

.hex-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #C82423;
    color: #fff;
    border-radius: 30px;
    font-size: 18px;
}

.hex-cta .btn:hover {
    background: #A81E1D;
}

.giraffe-icon {
    font-size: 24px;
}

/* 响应式适配 */
@media (max-width: 1199px) {
    .hex-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .hex-center,
    .hex-item {
        position: static;
        transform: none;
    }

    .hex-desc {
        position: static;
        transform: none;
        width: 100%;
        max-width: 320px;
        text-align: center;
        border: none;
        border-top: 4px solid #C82423;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .brand-advantages {
        padding: 60px 0;
    }

    .hex-center {
        width: 100px;
        height: 100px;
    }

    .hex-number {
        font-size: 48px;
    }

    .hex-item {
        width: 100px;
        height: 100px;
    }

    .hex-icon {
        font-size: 32px;
    }
    .hex-container {
        margin-top: 20px;

    }


}


/* 右侧悬浮按钮 */
.float-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e63946;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}