@font-face {
    font-family: 'FieldsDisplayBlack';
    src: url("fonts/fontspring-demo-fieldsdisplay-black.otf"),
        url('fonts/FieldsDisplayBlackRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* 优化加载时的字体显示 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2%;
    background-color: white;
    border-bottom: 3px solid #e74c3c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 40px;
    font-family: 'FieldsDisplayBlack', sans-serif;
    font-style: normal;
    font-weight: 600;
    color: #CF3642;
}

.logo span {
    color: #CF3642;
}

.languages {
    display: flex;
    gap: 25px;
}

.lang-item {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    color: #CF3642;
    transition: color 0.3s;
}

.lang-item:hover {
    color: #e74c3c;
}

.lang-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s;
}

.lang-item:hover::after {
    width: 100%;
}

/* 导航栏样式 */
.nav-bar {
    display: flex;
    justify-content: space-between;
    background-color: #f8f8f8;
    padding: 12px 2%;
    color: #CF3642;
}

.nav-bar-tltie {
    display: flex;
    flex-direction: row;
}

.nav-item {
    color: #CF3642;
    padding: 8px 15px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #CF3642;
}

/* 添加自适应宽度类 */
.nav-item.auto-width {
    flex: 1;
    /* 自适应宽度 */
    max-width: max-content;
    /* 宽度根据内容调整 */
    text-align: center;
    /* 文本居中 */
}

/* 保持其他导航项的固定宽度 */
.nav-item:not(.auto-width) {
    width: 100px;
    /* 保持其他项的固定宽度 */
    text-align: center;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #CF3642;
    transition: width 0.3s;
}

.nav-item:hover::after {
    width: 100%;
}

/* 轮播图样式 */
.carousel-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
}

.carousel-slide.active {
    display: block;
}

.slide1 {
    background-image: url("images/轮播.png");
    background-size: cover;
    background-position: center;
}

.slide2 {
    background-image: url("images/资源 2.png");
    background-size: cover;
    background-position: center;
}

/* 修改样式切换按钮 */
.style-toggle {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.style-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 20px;
}

/* 修改为悬停效果 */
.style-btn:hover {
    background-color: #CC3540 !important;
    border: none;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #e74c3c;
}

.btn:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.control-btn {
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(238, 243, 243);
}

.control-btn:hover {
    background: rgba(214, 211, 211, 0.519);
    transform: scale(1.1);
}

/* 修改进度条为仅显示点 */
.carousel-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 移除进度条 */
.progress-bar {
    display: none;
}

.progress-dots {
    display: flex;
    gap: 12px;
}

.progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.progress-dot.active {
    background: #e74c3c;
    transform: scale(1.2);
}

/* 文本行样式 */
.slide-text-bottom-left .slide-text-line4 {
    font-size: 10rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-text-bottom-left .slide-text-line1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-text-bottom-left .slide-text-line2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-text-bottom-left .slide-text-line3 {
    font-size: 1.4rem;
    font-weight: 400;
}

/* 确保文本只在对应的幻灯片上显示 */
.slide1 .slide-text-bottom-left {
    display: none;
}

.slide2 .slide-text {
    display: none;
}

.slide-text-bottom-left {
    position: absolute;
    bottom: 10px;
    left: 60px;
    text-align: left;
    color: white;
    max-width: 400px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-text {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    width: 100%;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-text-line1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.slide-text-line4 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 500;
    color: #CC3540;
    font-family: 'FieldsDisplayBlack', sans-serif;
}

.slide-text-line2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'FieldsDisplayBlack', sans-serif;
}

.slide-text-line3 {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.8;
}

.style-toggle {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

/* 内容区样式 */
.content-section {
    max-width: 100%;
    padding: 30PX 2%;
    background: #f5babc4f
}

.content-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e74c3c;
}

.content-logo {
    font-size: 28px;
    font-weight: 700;
    color: #CF3642;
}

.content-nav {
    display: flex;
    padding: 15px 0;
    border-radius: 8px;
    margin-bottom: 40px;
}

.content-nav-item {
    cursor: pointer;
    position: relative;
    font-weight: 500;
    color: #e74c3c;
    transition: color 0.3s;
    font-size: 1.3rem;
    text-align: left;
}

/* 自适应宽度项 */
.content-nav-item.auto-width {
    flex: 1;
    max-width: max-content;
    text-align: center;
}

/* 固定宽度项 */
.content-nav-item:not(.auto-width) {
    width: 100px;
    text-align: center;
}

.content-nav-item:hover {
    color: #e74c3c;
}

.content-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: width 0.3s;
}

.content-nav-item:hover::after {
    width: 100%;
}
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 550px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 410px;
    position: relative;
    overflow: hidden;
}

.card-img-default,
.card-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

.card-img-default {
    opacity: 1;
    z-index: 1;
}

.card-img-hover {
    opacity: 0;
    z-index: 2;
}

.card-img:hover .card-img-default {
    opacity: 0;
}

.card-img:hover .card-img-hover {
    opacity: 1;
}

/* 更新原有的卡片图片定义 */
.card1 .card-img-default {
    background-image: url("images/资源 7.png");
}

.card1 .card-img-hover {
    background-image: url("images/资源 1.png");
}

.card2 .card-img-default {
    background-image: url("images/资源 8.png");
}

.card2 .card-img-hover {
    background-image: url("images/资源 4.png");
}

.card3 .card-img-default {
    background-image: url("images/资源 9.png");
}

.card3 .card-img-hover {
    background-image: url("images/资源 5.png");
}

.card4 .card-img-default {
    background-image: url("images/资源 10.png");
}

.card4 .card-img-hover {
    background-image: url("images/资源 6.png");
}

.card-content {
    padding: 0 20px;
    text-align: left;
    /* 确保文本左对齐 */
}

.card-content h3 {
    margin-bottom: 10px;
    color: #CE3443;
}

.card-content p {
    color: #CE3443;
    font-size: 14px;
}

.card-btn {
    display: block;
    background: transparent;
    color: #CE3443;
    padding: 10px 20px;
    text-decoration: none;
   transition: all 0.3s;
    border: #CE3443 1px solid;
    cursor: pointer;
    width: 100%;
    font-size: larger;
    text-align: center;
}

.card-btn:hover {
    background: #CE3443;
    transform: translateY(-2px);
    color: #fff;
}

.customize-section {
    padding: 60px 5%;
    background-color: #fff;
}

.customize-header {
    text-align: center;
    margin-bottom: 40px;
}

.customize-line1 {
    font-size: 2.8rem;
    color: #CE3443;
    font-weight: 600;
    margin-bottom: 10px;
}

.customize-line2 {
    font-size: 1.5rem;
    color: #CE3443;
}

.customize-container {
    display: flex;
    gap: 30px;
}

.customize-left {
    flex: 3;
}

.customize-right {
    flex: 2;
}

.customize-right img {
    width: 100%;
    height: 100%;
    display: block;
}

.customize-top-image img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.customize-bottom {
    display: flex;
    gap: 20px;
}

.shade-box {
    flex: 1;
    text-align: center;
}

.shade-image {
    position: relative;
    height: 350px;
    margin-bottom: 15px;
    overflow: hidden;
}

.shade-image img {
    width: 100%;
    height: 100%;
    background-size: cover;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.shade-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.shade-image:hover .shade-default {
    opacity: 0;
}

.shade-image:hover .shade-hover {
    opacity: 1;
}

.shade-text {
    color: #CE3443;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
}

/* Simple Carousel Section */
.simple-carousel-section {
    padding: 0;
    background-color: #f8f9fa;
}

.simple-carousel-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.simple-carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.simple-carousel-slide.active {
    display: block;
}

.simple-carousel-slide.slide1 {
    background-image: url("images/资源 19.png");
    background-size: cover;
    background-position: center;
}

.simple-carousel-slide.slide2 {
    background-image: url("images/资源 20.png");
       background-size: cover;
    background-position: center;
}

.simple-carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.simple-control-btn {
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.simple-control-btn:hover {
    background: rgba(214, 211, 211, 0.519);
    transform: scale(1.1);
}

.simple-carousel-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.simple-progress-dots {
    display: flex;
    gap: 12px;
}

.simple-progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.simple-progress-dot.active {
    background: #e74c3c;
    transform: scale(1.2);
}

/* Split Content Section */
.split-content-section {
    height: 204vh;

    padding: 0;
    background-color: #f8f9fa;
}

.split-container {
    display: flex;
    height: 100%;
    width: 100%;
}

.split-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.left-box {
    padding-right: 10px;
}

.right-box {
    padding-left: 10px;
}

.text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background-color: white;
    color: #CE3443;
}

.left-box .text-box {
    margin-bottom: 20px;
}

.right-box .text-box {
    margin-top: 20px;
}

.text-top {
    margin-bottom: 20px;
}

.text-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: right;
    font-family: 'FieldsDisplayBlack', sans-serif;
}
.text-titles {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    white-space: nowrap;
    font-family: 'FieldsDisplayBlack', sans-serif;
}
.text-bottom p {
    font-size: 1.6rem;
    line-height: 1.6;
    text-align: right;
    width: 500px;
    float: right;

}
.text-bottoms p {
    font-size: 1.6rem;
    line-height: 1.6;
    text-align: justify;
    width: 540px;
    margin: auto;
 

}
.image-box {
    flex: 2;
    overflow: hidden;

    background-size: contain;
    /* 或 cover */
    background-repeat: no-repeat;
    background-position: center;
}

.image-box img {
    width: 100%;
    height: 100%;

}

/* 页脚样式 */
/* Footer Styles */
.footer {
    background: #f5babc4f;
    color: white;
    padding: 60px 5% 40px;
    margin-top: 0;
}

.footer-header {
    text-align: center;
    margin-bottom: 50px;
}

.footer-header h2 {
    font-size: 4rem;
    font-family: 'FieldsDisplayBlack', sans-serif;
    margin-bottom: 15px;
    color: #CF3642;
}

.footer-header p {
    font-size: 2.2rem;
    color: #CF3642
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    flex: 2;
    padding-right: 40px;
}

.footer-right {
    flex: 3;
    padding-left: 40px;
}

.left-top {
    margin-bottom: 30px;
}

.footer-title-box {
    margin-bottom: 20px;
}

.footer-title-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #CF3642;
}

.footer-title-box p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #CF3642;
}

.title-underline {
    height: 1px;
    width: 100%;
    background: #CF3642;
    margin-bottom: 15px;
}

.left-bottom p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #CF3642;
    margin-bottom: 25px;
}

.footer-btn {
    background: transparent;
    color: #fff;
    width: 100%;
    border: 1px solid white;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-btn:hover {
    background: #CF3642;
    border: none;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-item {
    color: #CF3642;
    padding: 8px 15px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    min-width: fit-content;
}

.nav-items {
    position: relative;
    cursor: pointer;
    padding: 5px 0;
    font-size: 1rem;
    color: #CF3642;
    width: 168px;
}

.nav-items::after {
    content: '';
    position: absolute;
    font-weight: 600;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #CF3642;
    transition: width 0.3s;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #CF3642;
    transition: width 0.3s;
}

.nav-items:hover::after {
    width: 100%;
}

.nav-item:hover::after {
    width: 100%;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    border-bottom: #CC3540 1px solid;
}

.footer-col {
    flex: 1;
}

.social-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.social-row {
    display: flex;
    margin-bottom: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.footer-text-section {
    margin-top: 30px;
    /* 与上方内容保持间距 */
    padding: 20px;
    color: #CF3642;
    /* 使用页脚的主题色 */
    text-align: center;
    /* 居中显示（可选） */
}

.footer-text-title {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    font-family: 'FieldsDisplayBlack', sans-serif;
}

.footer-text-content {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 800px;
    text-align: left;
    margin: 0 auto;

}

.col-item {
    font-size: 0.85rem;
    color: #CE3443;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 600;
}

.text-bottom-text {
    width: 100%;
    max-width: 475px;
    text-align: justify;
    /* 两端对齐 */
    font-size: 1.6rem;
    float: right;
    line-height: 1.6;
}

.text-bottom-text p {
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-box {
        height: 50%;
    }

    .left-box,
    .right-box {
        padding: 10px;
    }

    .left-box .text-box {
        margin-bottom: 10px;
    }

    .right-box .text-box {
        margin-top: 10px;
    }

    .text-title {
        font-size: 1.5rem;
    }

    .text-bottom p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .customize-container {
        flex-direction: column;
    }

    .customize-bottom {
        flex-direction: column;
    }

    .shade-image {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        padding: 0;
        width: 100%;
    }

    .footer-right {
        margin-top: 40px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-columns {
        flex-wrap: wrap;
    }

    .footer-col {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }

    .nav-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        padding: 8px 10px;
        font-size: 14px;
    }

    .nav-items {
        padding: 8px 10px;
        font-size: 14px;
    }

    .slide-content h2 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .progress-bar {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .languages {
        gap: 15px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .progress-bar {
        width: 150px;
    }

    .content-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}