/* 定义Roboto字体的不同样式 */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* 基本样式 */
body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f0eb;
}

/* 链接的默认样式，文本颜色为红色 */
.button-on-red {
    color: #a83232; /* 默认红色 */
    text-decoration: none; /* 去除下划线 */
    transition: color 0.3s ease; /* 添加颜色变化的过渡效果 */
}

/* 鼠标悬浮时，颜色变为黑色 */
.button-on-red:hover {
    color: black; /* 悬浮时变为黑色 */
}

.flex-container {
    display: flex;
    justify-content: flex-start; /* 修改为左对齐 */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px; /* 图片之间的间隙，可以根据需要调整 */
}

.vc_col-sm-17 {
    flex: 1 1 40%;
    box-sizing: border-box;
    padding: 5px;
    max-width: 300px;
    text-align: center;
}

.vc_col-sm-17 img {
    width: 100%;
    height: 400px;
    border-radius: 2px;
    object-fit: cover; /* 保持比例裁剪图片 */
}

.breadcrumb {
    margin-top: 10px;
    font-size: 1.2em;
    color: #a83232;
    text-decoration: none;
}

.breadcrumb:hover {
    text-decoration: underline;
    color: #0056b3;
}

main {
    padding: 0 5px; /* 在移动设备上为主要内容区域添加15px的左右内边距 */
}

/* 或者你可以直接在 body 上设置 */
body {
    padding: 0 5px;
}

/* 在移动设备上图片竖直排列 */
@media (max-width: 768px) {
    main {
        padding: 0 5px; /* 在移动设备上为主要内容区域添加15px的左右内边距 */
    }

    /* 或者你可以直接在 body 上设置 */
    body {
        padding: 0 5px;
    }

    .flex-container {
        flex-direction: column;
        align-items: flex-start; /* 确保左对齐 */
    }

    .vc_col-sm-17 {
        margin-bottom: 20px; /* 图片之间的间隙 */
        max-width: 100%; /* 确保图片占满一整行 */
    }

    .vc_col-sm-17 img {
        height: auto; /* 高度自动调整 */
        width: 350px;
        border-radius: 2px;
        object-fit: cover; /* 保持比例裁剪图片 */        
    }
}

/* 导航栏样式 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
    /* 确保导航栏在最上层 */
}

.logo img {
    max-width: 200px;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-menu a {
    color: #c9b18c;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.btn {
    background-color: #c9b18c;
    padding: 10px 20px;
    border-radius: 5px;
    color: #000;
    margin-left: 20px;
}

/* from old html style */
.grad_end {
    background: linear-gradient(to bottom, #ffffff, #f0f0f0);
    padding: 20px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
}

.main_text h3 {
    font-size: 54px;
    line-height: 1.2;
    text-align: center;
}

.main_text h1 {
    font-size: 40px;
    line-height: 1.2;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #c9b18c;
    margin: 3px 0;
    display: block;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #000;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        z-index: 1001;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        margin: 10px 0;
    }
}

/* 手风琴样式 */
.accordion {
    width: 100%;
    /* 父容器宽度设置为100% */
    max-width: 100%;
    /* 确保最大宽度不会超出屏幕 */
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    /* 减少每个手风琴项之间的间距 */
    width: 100%;
    /* 确保手风琴项占满100%的宽度 */
    max-width: 100%;
    /* 防止内容超出容器 */
    box-sizing: border-box;
}

.accordion-header {
    background-color: #e6e6e6;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* 保证手风琴标题的宽度为100% */
    box-sizing: border-box;
    /* 包括内边距和边框在内 */
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    width: 100%;
    /* 保证手风琴内容的宽度为100% */
    box-sizing: border-box;
    /* 包括内边距和边框在内 */
    overflow: hidden;
}

.accordion-header .arrow {
    transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
    transform: rotate(180deg);
}

/* 英雄部分样式 */
.hero-section {
    padding: 40px 0 0 0;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    margin-right: 40px;
}

/* 更新英雄图片的样式 */
.hero-image img {
    width: 100%;
    height: auto;
    /* 保持宽度自适应 */
    max-height: 500px;
    /* 调整图片的最大高度，使其变窄 */
    border-radius: 60px;
    /* 圆角设置为30px，您可以调整这个值以达到期望的效果 */
    object-fit: cover;
    /* 保证图片适应容器，同时裁剪多余部分 */
}

.hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1,
h2 {
    color: #333;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 2rem;
}

/* 页脚样式 */
footer {
    background-color: #f5f0eb;
    padding: 20px 0;
    margin-top: 40px;
}

footer h3 {
    color: #333;
    margin-bottom: 10px;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer .rednav ul {
    list-style: none;
    /* 移除 li 前面的点 */
    padding: 0;
    margin: 0;
    /* 确保列表项没有外边距 */
}

footer .rednav ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

footer .rednav ul li i {
    margin-right: 10px;
}

footer .rednav ul li a {
    color: #333;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #000;
        position: fixed;
        /* 固定在页面顶层 */
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        z-index: 1001;
        /* 确保导航菜单在图片上方 */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        display: flex;
        flex-direction: column; /* 在移动设备上确保垂直排列 */
        align-items: stretch; /* 确保子元素占满宽度 */
    }

    .hero-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .accordion {
        width: 100%;
        /* 父容器宽度设置为100% */
        max-width: 100%;
        /* 确保最大宽度不会超出屏幕 */
    }
    
    .accordion-header {
        width: 100%;
        box-sizing: border-box;
    }

    .accordion-content {
        width: 100%;
        box-sizing: border-box;
    }
    
}

/* Font Awesome icon styles */
.fa-map-marker:before {
    content: "\f041";
}

.fa-phone:before {
    content: "\f095";
}

.fa-envelope-o:before {
    content: "\f003";
}

/* 页脚容器样式 */
.footer-container {
    display: flex;
    justify-content: space-between; /* 保证左右对齐 */
    align-items: center; /* 垂直方向居中 */
    padding: 20px;
    background-color: #f8f9fa; /* 背景颜色 */
    flex-wrap: wrap; /* 确保在小屏幕上换行 */
    max-width: 1200px; /* 限制容器的最大宽度 */
    margin: 0 auto; /* 确保内容在屏幕中居中 */
}

/* 轮播图样式 */
.hero-image-slider {
    position: relative;
    overflow: hidden;
    width: 50%;  /* 控制宽度，与原来的静态图像宽度一致 */
    margin-right: 40px;  /* 与右侧内容保持间距 */
    flex-shrink: 0;  /* 防止在flex布局中被压缩 */
}

.slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 65%; /* 修改为4:3的宽高比（75%=3/4） */
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px; /* 增加圆角半径，使四角更加圆润 */
    display: block;
}

.slider-navigation {
    position: relative; /* 改为相对定位 */
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* 居中显示 */
    gap: 10px;
    margin-top: 10px; /* 在图片下方添加间距 */
    padding: 5px 0;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: #a83232;
}

/* Whitepaper download button styles */
.whitepaper-download {
    margin-top: 20px;
    text-align: left;
}

.download-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    font-size: 14px;
}

.download-btn:hover {
    background-color: #e9e9e9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #a83232;
}

.download-btn i {
    margin-right: 8px;
    color: #a83232;
}

/* Responsive styles for whitepaper downloads */
@media (max-width: 768px) {
    .whitepaper-download {
        text-align: center;
    }
    
    .download-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

.footer-contact-info {
    flex: 1 1 50%; /* Contact Info占60%宽度 */
    max-width: 50%; /* 限制最大宽度为60% */
    box-sizing: border-box; /* 包括内边距和边框在内 */
    padding-right: 20px; /* 添加内边距 */
}

.footer-social {
    flex: 1 1 50%; /* CTA占40%宽度 */
    max-width: 50%; /* 限制最大宽度为40% */
    text-align: left; /* 右对齐 */
    box-sizing: border-box; /* 包括内边距和边框在内 */
}

/* Footer Social Links */
.footer-social .rednav ul li a {
    color: #000000; /* 链接的初始颜色为黑色 */
    text-decoration: none;
    transition: color 0.3s ease; /* 添加平滑的颜色过渡效果 */
}

.footer-social .rednav ul li a:hover {
    color: #e8491d; /* 鼠标指向时变为红色 */
}

/* Footer Social Links */
.footer-contact-info .rednav ul li a {
    color: #000000; /* 链接的初始颜色为黑色 */
    text-decoration: none;
    transition: color 0.3s ease; /* 添加平滑的颜色过渡效果 */
}

.footer-contact-info .rednav ul li a:hover {
    color: #e8491d; /* 鼠标指向时变为红色 */
}

/* CTA 按钮样式 */
.cta-button {
    background-color: #000000; /* 按钮背景颜色改为黑色 */
    color: #c9b18c; /* 按钮文本颜色改为金色 */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    white-space: nowrap; /* 防止按钮文本换行 */
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加平滑的颜色过渡效果 */
}

.cta-button:hover {
    background-color: #333333; /* 悬停时背景颜色稍微变浅 */
    color: #ffffff; /* 悬停时文本颜色改为白色 */
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* 垂直排列 */
        align-items: flex-start; /* 确保左对齐 */
        text-align: left; /* 确保标题左对齐 */
        padding: 10px; /* 适度减少内边距 */
    }
    .footer-contact-info, .footer-cta {
        max-width: 100%; /* 确保两者都占满全屏 */
        margin-bottom: 15px; /* 添加一些间距，避免内容紧贴 */
    }
    .footer-social {
        text-align: left; /* 确保标题左对齐 */
        max-width: 100%; /* 确保两者都占满全屏 */
        margin-bottom: 15px; /* 添加一些间距，避免内容紧贴 */
    }
    .cta-button {
        width: 100%; /* 让按钮在小屏幕上占满整行 */
        padding: 15px 0; /* 增加按钮内边距，确保点击区域足够大 */
        text-align: center;
        box-sizing: border-box;
    }
}

/* 调整下载按钮在手风琴外的样式 */
.accordion-item .whitepaper-download {
    margin: 10px 0;
    padding: 0 10px;
}

/* 确保下载按钮在手风琴标题下方有适当间距 */
.accordion-header + .whitepaper-download {
    margin-top: 15px;
}

/* 确保下载按钮与手风琴内容之间有适当间距 */
.whitepaper-download + .accordion-content {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .hero-image-slider {
        width: 90% !important;
        margin: 0 auto 20px auto;
        /* 居中显示，同时底部留出适当间距 */
    }
}
