:root {
    --color-text: #000;
    --color-highlight: #f5b501;
    --color-bg: #fff;
    --color-bg-light: #5d84b3;
    --color-bg-dark: #001f50;
    --color-gray: #858586;
    --color-grayer: #ccc;
    --color-grayest: #eaeaea;
    --color-dark: #696a74;
    --color-darker: #292725;
    --color-success: #6cb43f;
    --color-fail: #fb4b35;
    --font-size-base: 15px;
    --page-body-padding: 3vw;
    --page-content-width: 1600px;
    --color-background: #fff;
    --header-height: 110px;
}

/* 快速询盘弹窗 start */
/* --- 遮罩层重构 --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 加深遮罩颜色 */
    backdrop-filter: blur(4px); /* 增加磨砂玻璃效果 */
    z-index: 10000;
    padding: 0 20px;
}

/* --- 弹窗容器重构 --- */
.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 16px; /* 更圆润的角 */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); /* 更柔和的深投影 */
    width: 95%;
    max-width: 650px; /* 优化宽度控制 */
    z-index: 10001;
    display: none;
    animation: modalSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0; /* 内部由各个section撑起 */
    max-height: 90vh;
    flex-direction: column;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* --- 头部重构 --- */
.modal-header {
    padding: 24px 30px;
    background: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 1.8em;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0;
}

.modal-des {
    font-size: 1.1em;
    line-height: 1.6;
    color: #141414;
    padding: 15px 40px 0;
    text-align: center;
}

.modal-close {
    cursor: pointer;
    font-size: 28px;
    color: #ccc;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ff4d4f;
    transform: rotate(90deg);
}

/* --- 表单区域重构 --- */
.modal-body {
    padding: 30px;
    overflow-y: auto;
    background: #fff;
}

/* 滚动条美化 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: #444;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-input:focus {
    background: #fff;
    border-color: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
    outline: none;
}

/* 针对 Select 组的特别处理 */
.category_select_group select {
    background-color: #f9f9f9;
    border: 1.5px solid #eee !important;
    font-size: 0.95em !important;
    color: #333;
    transition: all 0.3s;
}

.category_select_group select:focus {
    border-color: #4285f4 !important;
    background-color: #fff;
}

/* --- 国家选择器优化 --- */
.search-container {
    flex: 1;
    margin-right: 10px;
    position: relative; 
}

.search-input {
    border: 1.5px solid #eee;
    height: 48px;
    border-radius: 8px;
    padding: 0 15px;
    background: #f9f9f9;
}

/* --- 国家下拉列表容器 (补充与优化) --- */
.country-list {
    display: none; /* 默认隐藏，由 JS 控制显示 */
    position: absolute;
    top: 100%; /* 紧贴搜索框下方 */
    left: 0;
    width: 100%;
    
    /* 关键属性：限制高度并允许滑动 */
    max-height: 250px !important; 
    overflow-y: auto !important;
    overflow-x: hidden;

    background: white;
    z-index: 10005; /* 确保在最上层 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 4px;
}

/* --- 国家选项条目 --- */
.country-option {
    padding: 10px 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    gap: 12px; /* 元素间距 */
    font-size: 0.95em;
    color: #333;
}

.country-option:hover {
    background-color: #f0f7ff; /* 浅蓝色悬停背景 */
    color: #4285f4;
}

/* --- 国家名称 --- */
.country-name {
    flex: 1; /* 占据中间剩余空间 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 名字过长时显示省略号 */
    font-weight: 400;
}

/* --- 区号代码 --- */
.country-code {
    color: #999; /* 默认颜色较浅 */
    font-size: 0.9em;
    font-family: 'Inter', sans-serif; /* 使用等宽感较强的字体更整齐 */
    font-weight: 500;
    min-width: 45px;
    text-align: right;
}

.country-option:hover .country-code {
    color: #4285f4; /* 悬停时区号也跟着变色 */
}

/* 自定义滚动条 - 让下拉列表更美观 */
.country-list::-webkit-scrollbar {
    width: 5px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* --- 底部与按钮 --- */
.modal-footer {
    padding: 20px 30px;
    background: #fff;
    border-top: 1px solid #eee;
}

.modal-footer .btn-submit {
    width: 100%;
    height: 54px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.modal-footer .btn-submit:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- 联系信息栏重构 --- */
.modal-footer-text {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    margin: 0;
    list-style: none;
}

.modal-footer-text a {
    text-decoration: none;
    transition: opacity 0.2s;
    display: flex;
}

.modal-footer-text a:hover{
    color: #2C61AD !important;
}

.modal-footer-text a:hover > li {
    color: #2C61AD;
}

.modal-footer-text li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85em;
}

.modal-footer-text .icon {
    width: 26px;
    height: 24px;
    fill: #2C61AD; /* 给图标一点品牌色 */
}

/* --- 文件上传显示 --- */
.file-name-des {
    font-size: 0.85em;
    color: #4285f4;
    margin-top: 5px;
}

.file-name-display {
    color: #ff4d4f;
    font-size: 0.8em;
    margin-top: 4px;
    font-weight: 500;
}

/* --- 响应式 --- */
@media (max-width: 600px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-footer-text {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8em;
    }
}

/* --- 成功/失败状态弹窗重构 --- */
.customModalContainer .modal {
    z-index: 10002;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); /* 稍微加强模糊感，突出反馈内容 */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.customModalContainer .modal-content {
    background: white;
    padding: 40px 30px;
    border-radius: 20px; /* 更圆润 */
    width: 100%;
    max-width: 450px; /* 限制宽度，使其看起来更像小卡片 */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 弹出动画 */
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* 图标样式 */
.customModalContainer .custom-icon {
    font-size: 64px; /* 调大尺寸 */
    display: block;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

/* 标题样式 */
.customModalContainer #modal-title {
    font-size: 2em;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

/* 描述信息 */
.customModalContainer #modal-message {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 按钮样式重构 */
.customModalContainer #modal-confirm {
    background: #000; /* 保持品牌色一致 */
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%; /* 移动端友好的满宽按钮 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.customModalContainer #modal-confirm:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 列表展示区域 */
.customModalContainer .custom-ul {
    margin-top: 25px;
    padding: 0;
    list-style: none;
    text-align: left;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
}

.customModalContainer .custom-ul li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

/* 给列表项加个小勾选图标 */
.customModalContainer .custom-ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.customModalContainer .custom-ul li:last-child {
    margin-bottom: 0;
}

/* 默认/成功状态 (🎉) */
.success-mode .custom-icon::before {
    content: "🎉";
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

/* 失败状态 (❌ 或 ⚠️) */
.fail-mode .custom-icon::before {
    content: "❌"; /* 或者使用 ⚠️ */
    filter: drop-shadow(0 4px 10px rgba(244, 67, 54, 0.2));
}

.customModalContainer .fail-mode #modal-confirm {
    background: #f44336;
}

.customModalContainer .fail-mode #modal-confirm:hover {
    background: #d32f2f;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .customModalContainer .modal-content {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .customModalContainer #modal-title {
        font-size: 1.6em;
    }
}
/* 快速询盘弹窗 end */
body > div.wrapper {
    background: var(--color-background);
}

/* 图片预加载样式 start */
.bg-buffer {
    display: block;
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wave-shimmer 1.5s ease-in-out infinite;
    overflow: hidden;
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.bg-buffer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: wave-glide 2s ease-in-out infinite;
}

@keyframes wave-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes wave-glide {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.bg-buffer.loaded {
    animation: none;
    background: none;
}

.bg-buffer.loaded::before {
    display: none;
}
/* 图片预加载样式 end */


/* swiper 左右切换指示器样式  start */
.el-carousel {
    --el-carousel-arrow-font-size: 12px;
    --el-carousel-arrow-size: 36px;
    --el-carousel-arrow-background: rgba(31, 45, 61, .11);
    --el-carousel-arrow-hover-background: rgba(31, 45, 61, .23);
    --el-carousel-indicator-width: 30px;
    --el-carousel-indicator-height: 2px;
    --el-carousel-indicator-padding-horizontal: 4px;
    --el-carousel-indicator-padding-vertical: 12px;
    --el-carousel-indicator-out-color: var(--el-border-color-hover);
    position: relative;
}

.el-carousel--horizontal, .el-carousel--vertical {
    overflow: hidden;
}

.el-carousel__arrow {
    align-items: center;
    background-color: rgba(31, 45, 61, .11);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    height: 36px;
    justify-content: center;
    margin: 0;
    outline: none;
    padding: 0;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    width: 36px;
    z-index: 10;
}

.el-carousel__arrow--left {
    left: 16px;
}

.el-carousel__arrow--right {
    right: 16px;
}

/* swiper 左右切换指示器样式  end */

/* 轮播图指示器居中swiper */
.banner .swiper-pagination {
    text-align: center;
}

/* 轮播图指示器选中样式 */
.swiper-pagination-bullet-active{
    background: #2b61ac !important;
}