/* ==================== 载入自定义字体 ==================== */
@font-face {
    font-family: 'Open Sans';
    src: url('https://static.yetex.com/fonts/OpenSans-Regular.woff2') format('woff2'),
         url('https://static.yetex.com/fonts/OpenSans-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant SC';
    src: url('https://static.yetex.com/fonts/CormorantSC-Regular.woff2') format('woff2'),
         url('https://static.yetex.com/fonts/CormorantSC-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('https://static.yetex.com/fonts/Cabin-Regular.woff2') format('woff2'),
         url('https://static.yetex.com/fonts/Cabin-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('https://static.yetex.com/fonts/Roboto-Regular.woff2') format('woff2'),
         url('https://static.yetex.com/fonts/Roboto-Regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Faustina';
    src: url('https://static.yetex.com/fonts/Faustina-Regular.woff2') format('woff2'),
         url('https://static.yetex.com/fonts/Faustina-Regular.woff') format('woff');
    font-display: swap;
}

/* ==================== 全局样式 ==================== */
html, body {
    overflow-x: hidden; /* 防止水平滚动 */
}

body {
    font-family: 'Open Sans', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    background-color: #fcfcfc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}
/* ==================== 页面主容器 (Container) ==================== */
.container {
    max-width: 1400px; /* ✅ 限制最大宽度，保证内容居中 */
    width: 100%;
    margin: 0 auto; /* ✅ 自动居中 */
    padding: 10px; /* ✅ 适当的内边距 */
    box-sizing: border-box; /* ✅ 确保内边距不会影响宽度计算 */
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 1024px) {
    .container {
        max-width: 1000px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 90%;
        padding: 8px;
    }
}


/* ==================== Header 样式 (确保背景完整) ==================== */
#header {
    position: relative; /* ✅ 让 header 成为 Logo 的参照物 */
    width: 100%;
    height: 140px; /* ✅ 根据实际需求调整高度 */
    background-color: #ffffff; /* ✅ 确保 header 背景不会被覆盖 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Logo 样式 (绝对居中) ==================== */
.logo {
    position: absolute; /* ✅ 让 Logo 在 header 内绝对居中 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ✅ 确保完美居中 */
    max-width: 350px;
    width: auto;
    transition: transform 0.3s ease-in-out;
}

/* 鼠标悬停时 Logo 轻微放大 */
.logo:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Logo 图片大小 */
.logo img {
    width: auto;
    height: 110px;
}

/* ==================== 响应式优化 (移动端) ==================== */
@media (max-width: 768px) {
    #header {
        height: 60px; /* ✅ 在小屏幕上适当减少 header 高度 */
    }

    .logo {
        max-width: 150px; /* ✅ 在小屏幕上缩小 Logo */
    }
}

/* ==================== 响应式优化 (移动端) ==================== */
@media (max-width: 768px) {
    .logo {
        max-width: 150px; /* ✅ 在小屏幕上缩小 Logo */
    }
}

/* ==================== 导航栏 & 菜单栏优化 ==================== */
#menu-wrapper {
    background-color: #002FA7; /* ✅ 确保背景色为蓝色 */
    text-align: center;
    height: 60px; /* ✅ 让菜单栏和导航栏高度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 导航菜单整体布局 */
#menu {
    display: flex;
    justify-content: space-between; /* ✅ 让菜单项和社交图标左右分布 */
    align-items: center;
    width: 100%;
    max-width: 1200px; /* ✅ 让菜单栏在大屏幕上不会太宽 */
}

/* 导航菜单项 */
.menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* 菜单项 */
#menu a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

/* ✅ 滑动下划线效果 */
#menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

/* ✅ 悬停时动态下划线展开 */
#menu a:hover::after {
    width: 100%;
    left: 0;
}

/* ✅ 选中状态的 `active` 菜单项 */
#menu a.active {
    font-weight: bold;
    color: #fff!important; /* ✅ 选中状态改为黄色 */
}

/* ✅ `active` 菜单项默认显示下划线 */
#menu a.active::after {
    width: 100%;
    left: 0;
}

/* ==================== 社交图标 (导航栏右侧) ==================== */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px; /* ✅ 调整间距，确保图标不会过于紧凑 */
    position: relative;
    z-index: 1000; /* ✅ 确保图标不会被其他元素覆盖 */
}

/* 单个社交图标 */
.social-icon {
    position: relative;
    width: 42px; /* ✅ 调整图标尺寸 */
    height: 42px;
    background: #ffffff; /* ✅ 统一背景色 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 鼠标悬停时放大 */
.social-icon:hover {
    transform: scale(1.15);
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 社交图标颜色 */
.social-icon i {
    font-size: 22px;
    color: #002FA7;
    transition: color 0.3s ease-in-out;
}

/* ==================== 悬浮二维码样式 (调整位置，防止遮挡) ==================== */
.qr-code {
    position: absolute;
    top: 50px; /* ✅ 确保二维码不会与导航栏或标题重叠 */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 999; /* ✅ 确保二维码不会被其他元素覆盖 */
}

/* 鼠标悬停时二维码显示 */
.social-icon:hover .qr-code {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 二维码图片样式 */
.qr-code img {
    width: 110px; /* ✅ 适中二维码尺寸 */
    height: auto;
    border-radius: 5px;
}

/* ==================== 响应式优化 (移动端) ==================== */
@media (max-width: 768px) {
    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 38px; /* ✅ 调整移动端尺寸 */
        height: 38px;
    }

    .social-icon i {
        font-size: 20px;
    }

    .qr-code {
        top: 45px; /* ✅ 在小屏幕上调整二维码位置 */
    }

    .qr-code img {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .social-icon {
        width: 34px;
        height: 34px;
    }

    .social-icon i {
        font-size: 18px;
    }

    .qr-code {
        top: 40px;
    }

    .qr-code img {
        width: 80px;
    }
}

/* ==================== Welcome Container (Title 独立) ==================== */
.welcome-container {
    max-width: 1400px; /* 让内容与 service-section 保持一致 */
    margin: 0 auto 20px auto;
    text-align: center;
}

/* 标题独立在背景之外 */
.stylish-heading {
    font-family: 'Cormorant SC', cursive;
    font-size: 3.2em;
    font-weight: 700;
    color: #002FA7;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInText 1.2s ease-in-out 0.5s forwards;
}

/* ==================== Welcome Section (仅包裹内容) ==================== */
#welcome {
    margin: 20px auto; /* 调整 margin 使其居中 */
    padding: 40px 20px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

/* 布局 */
.welcome-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

/* 图片样式 */
.welcome-image {
    flex: 0 0 35%;
    opacity: 0;
    animation: fadeInImage 1.2s ease-in-out 0.7s forwards;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 鼠标悬停时图片放大并带阴影 */
.welcome-image:hover img {
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 文本样式 */
.welcome-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    opacity: 0;
    animation: fadeInText 1.2s ease-in-out 0.7s forwards;
}

.welcome-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    transition: color 0.3s ease-in-out;
}

/* 鼠标悬停时文本渐变变色 */
.welcome-text p:hover {
    color: #011a72;
    transition: color 0.5s ease-in-out;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .welcome-image {
        max-width: 90%;
        margin: 0 auto;
    }

    .stylish-heading {
        font-size: 2.5em;
    }
}

/* ==================== 动画定义 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== 产品网格布局 (Product Grid) ==================== */
.product-grid {
    max-width: 1400px; /* ✅ 让产品模块和 container 一样宽 */
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* ✅ 自动适配列数 */
    gap: 20px;
    margin-top: 20px;
}

/* 产品卡片 */
.product-item {
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
}

/* 悬停时放大 + 增强阴影 */
.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 产品图片 */
.product-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* 悬停时图片放大 */
.product-item:hover img {
    transform: scale(1.1);
}

/* 产品标题 */
.product-item h3 {
    color: #002FA7;
    font-size: 1.3em; /* ✅ 稍微增大标题 */
    font-weight: bold;
    margin: 12px 0 6px;
}

/* 产品描述 */
.product-item p {
    font-size: 1em;
    color: #555;
    padding: 0 12px 15px;
    line-height: 1.5;
}

/* 按钮样式 */
.product-item .btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9em;
    color: #fff;
    background-color: #002FA7;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 15px;
    transition: background 0.3s ease-in-out;
}

/* 按钮悬停效果 */
.product-item .btn:hover {
    background-color: #011F7E;
}

/* ==================== 响应式优化 (移动端) ==================== */
@media (max-width: 1024px) {
    .container, .product-grid {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .container, .product-grid {
        max-width: 95%;
        padding: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container, .product-grid {
        max-width: 90%;
        padding: 8px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================== Section Title Styles ==================== */
.section-title {
    text-align: left;
    color: #002FA7;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 2px solid #002FA7;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

/* 标题容器 */
.section-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 4px solid #002FA7;
    padding-left: 15px;
    margin-bottom: 30px;
}

/* 副标题 */
.section-subtitle {
    font-size: 1.2em;
    color: #002FA7;
    font-weight: 500;
    margin-bottom: 10px;
}

/* 标题 + 右侧链接 */
.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 更多链接 */
.more-link {
    font-size: 1em;
    color: #002FA7;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-left: auto;
}

/* 更多链接悬停时 */
.more-link:hover {
    color: #011a72;
    transform: translateX(5px);
}


/* ==================== Main Title ==================== */
#main-title-section {
    max-width: 1400px; /* 让宽度和 container 一致 */
    margin: 0 auto 15px auto;
    text-align: left;
    padding-left: 15px;
    border-left: 4px solid #002FA7;
    opacity: 0;
    animation: fadeInTitle 1s ease-in-out forwards;
}

/* 主标题 */
.main-title {
    font-size: 2.2em; /* ✅ 适当缩小 */
    font-weight: bold;
    color: #002FA7;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px; /* ✅ 减少标题和副标题间距 */
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* 🌍 全球图标 (可换成 SVG) */
.main-title span {
    font-size: 1.2em; /* ✅ 略微缩小图标 */
    color: #009688; /* 全球服务相关的蓝绿色 */
    animation: pulse 1.5s infinite alternate;
}

/* 副标题 */
.main-subtitle {
    font-size: 1.2em;
    color: #555;
    font-weight: 500;
    margin-top: 0px; /* ✅ 去掉顶部多余间距 */
    margin-bottom: 10px; /* ✅ 适当减少底部间距 */
    font-family: 'Open Sans', sans-serif;
}

/* 悬停效果 */
.main-title:hover {
    color: #011a72;
    transform: translateX(3px); /* ✅ 缩小横向移动效果 */
}

/* ==================== 动画 ==================== */
@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

/* ==================== Service Section ==================== */
#service-section {
    max-width: 1400px; /* ✅ 让宽度和 container 一致 */
    margin: 0 auto;
    padding: 50px 20px;
    background-color: #fcfcfc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    animation: fadeInSection 1s ease-in-out 0.3s forwards;
}

/* Service Indicators (主布局) */
#service-indicators {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 40px; /* ✅ 保持均匀间距 */
}

/* ==================== 左侧内容优化 ==================== */
.service-content {
    flex: 1;
    max-width: 450px;
    text-align: left;
    opacity: 0;
    animation: fadeInLeft 1s ease-in-out 0.5s forwards;
}

/* Service Description */
.service-description {
    font-size: 1.1em;
    color: #505050;
    line-height: 1.5;
    margin-bottom: 20px;
    transition: color 0.3s ease-in-out;
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 单个服务项 */
.service-item {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #333;
    font-weight: 500;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
/* ✅ 在每个服务项前增加蓝色圆点 */
.service-item::before {
    content: "•"; /* ✅ 纯 CSS 圆点 */
    font-size: 20px;
    color: #002FA7; /* ✅ 蓝色 */
    font-weight: bold;
    margin-right: 10px;
}

/* 列表项 hover 时 */
.service-item:hover {
    background-color: #f0f8ff;
    transform: translateX(5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* ==================== 右侧图片优化 ==================== */
.service-image {
    flex: 1.3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 750px; /* ✅ 确保不会超出 container */
    opacity: 0;
    animation: fadeInRight 1s ease-in-out 0.5s forwards;
}

.service-image img {
    width: 100%;
    max-width: 750px; /* ✅ 让图片不超出容器 */
    height: auto;
    max-height: 600px;
    border-radius: 8px;
    object-fit: cover;
    align-self: stretch;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 图片 hover 轻微放大 */
.service-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ==================== 动画 ==================== */
@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== 响应式优化 ==================== */
@media (max-width: 768px) {
    #service-indicators {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .service-content {
        max-width: 100%;
        text-align: center;
    }

    .service-image {
        justify-content: center;
    }

    .service-image img {
        max-width: 90%;
    }
}


/* ==================== Footer ==================== */
#footer {
    background-color: #002FA7;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

/* Social Media Icons */
.social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.5em;
    color: #fff;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #ffcc00;
}

/* ==================== 回到顶部按钮 (右下角) ==================== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #002FA7;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex; /* ✅ 用 flex 方便居中 */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0; /* ✅ 默认透明 */
    pointer-events: none; /* ✅ 避免误触 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* 鼠标悬停效果 */
#back-to-top:hover {
    background: #011F7E;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* ==================== 响应式优化 (移动端) ==================== */
@media (max-width: 768px) {
    #back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* ==================== Cookie Consent Banner ==================== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.accept-cookies {
    background-color: #002FA7;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.accept-cookies:hover {
    background-color: #011a72;
}

.cookie-consent-banner.show {
    display: block;
}
