/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    /* 禁止图片被选中和拖拽 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
    /* 允许图片接收鼠标事件，但禁止拖拽 */
    pointer-events: auto;
}

/* 轮播图以外的图片禁止鼠标事件 */
.carousel img {
    pointer-events: auto;
    /* 轮播图中的图片允许鼠标事件 */
}

/* Vue相关样式 */
[v-cloak] {
    display: none;
}
/*下划线*/
.underline {
    text-decoration: underline;
}

body {
    /* 移除字体设置，由fonts.css提供 */
    line-height: 1.6;
    color: #333;
    background-color: #f1f3fb;
    /* 禁止文字选中 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

a {
    text-decoration: none;
    /*color: #333;*/
    /* 确保链接可以接收鼠标事件 */
    pointer-events: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    /* 确保按钮可以接收鼠标事件 */
    pointer-events: auto;
}

.btn.primary {
    background-color: #7942f5;
    color: #ffffff;
}

.btn.primary:hover {
    background-color: #0d8aee;
}

.btn.secondary {
    background-color: white;
    color: #7942f5;
    border: 1px solid;
    box-sizing: border-box;
}

.btn.secondary:hover {
    background-color: #0d8aee;
    color: white;
}

/* 头部导航 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #6441ff;
    display: flex;
    align-items: center;
}

.logo img {
    width: 30px;
}

.nav ul {
    display: flex;
    align-items: center;
}

.nav li {
    margin-left: 30px;
    position: relative;
}

.nav a {
    font-size: 16px;
    position: relative;
}

.nav a.active {
    color: #ad59f5;
}

.nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ad59f5;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.arrow {
    display: inline-block;
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav li:hover .arrow {
    transform: rotate(180deg);
}

/* 产品下拉菜单 */
.nav li:hover .arrow {
    transform: rotate(180deg);
}

.product-overlay {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* left: -50%; */
    /* transform: translateX(-50%) translateY(-10px); */
    width: 90%;
    min-width: 750px;
    max-width: 1200px;
    background: linear-gradient(145deg, #2d1a4a, #3a2160, #4b2a7a);
    /* 三色渐变深紫色背景 */
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 95;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1), 0 0 20px rgba(75, 42, 122, 0.3);
    border-radius: 12px;
    margin-top: 15px;
    overflow: hidden;
}

.dropdown-menu-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 10px 30px;
}

.dropdown-menu-column {
    display: flex;
    flex-direction: column;
}

.dropdown-menu-column h3 {
    color: white;
    /* 更改为白色 */
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* 更改边框颜色 */
    padding-bottom: 10px;
    position: relative;
}

.dropdown-menu-column a {
    color: rgba(255, 255, 255, 0.8);
    /* 更改为半透明白色 */
    font-size: 15px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.dropdown-menu-column a:hover {
    color: white;
    /* 更改为纯白色 */
}

.dropdown-menu-column h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #ad59f5, #7942f5, #5e8ef7);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(173, 89, 245, 0.5);
}

.dropdown-menu-column ul {
    display: flex;
    flex-direction: column;
}

.dropdown-menu-column li {
    margin: 8px 0;
    margin-left: 0;
    transition: transform 0.2s ease;
}

.dropdown-menu-column li:hover {
    transform: translateX(5px);
}

.dropdown-menu-column a {
    color: rgba(255, 255, 255, 0.8);
    /* 更改为半透明白色 */
    font-size: 15px;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.dropdown-menu-column a:hover {
    color: white;
    /* 更改为纯白色 */
}

/* 悬停效果 */
.nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    /* transform: translateX(-50%) translateY(0); */
}

/* 添加小三角形指示器 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #3a2160;
    /* 更改为中间色调 */
    z-index: 1;
}

.contact-btn {
    background-color: #7942f5;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #0d8aee;
}

/* 页脚 */
.footer {
    /* background-color: whiteF; */
    padding: 20px 0;
    margin-top: 50px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.business-info {
    color: #999;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
}

.business-info .yyzz {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.yyzz img {
    width: 14px;
    margin-right: 2px;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content .contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 10;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* 联系表单 */
.contact-form h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 20px;
    padding: 0 10px;
    width: 50%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.required {
    color: #f44336;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 设置placeholder颜色 */
::placeholder {
    color: #999;
    opacity: 1;
}

/* 设置select默认选项颜色 */
select option[disabled] {
    color: #999 !important;
}

select option {
    color: #333;
}

/* 确保select元素中的文本颜色正确 */
select {
    color: #333;
}

/* 确保默认选项在选中状态下也显示为灰色 */
select option[disabled][selected] {
    color: #999 !important;
}

/* 使用属性选择器来设置select元素在未选择有效选项时的颜色 */
select[required]:invalid {
    color: #999;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

textarea {
    height: 100px;
    resize: vertical;
}

.form-group.full-width {
    width: 100%;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 5px;
}

.privacy-policy {
    font-size: 14px;
}

.privacy-policy a {
    color: #2196F3;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .modal-content {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        height: 70px;
        padding: 0 15px;
        position: relative;
    }

    .logo {
        margin-bottom: 0;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav.active ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav.active li {
        margin: 0;
        width: 100%;
    }

    .nav.active a {
        display: block;
        padding: 12px 20px;
        width: 100%;
    }

    .nav.active .dropdown-menu {
        position: relative;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        background: linear-gradient(145deg, #2d1a4a, #3a2160, #4b2a7a);
        /* 三色渐变深紫色背景 */
        color: white;
        /* 文字颜色改为白色 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(75, 42, 122, 0.3);
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 8px;
        transform: none;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 80vh;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        max-width: 300px;
        min-width: 300px;
        left: 24px !important;
    }

    /* 自定义滚动条样式 */
    .nav.active .dropdown-menu::-webkit-scrollbar {
        width: 6px;
    }

    .nav.active .dropdown-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav.active .dropdown-menu::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        border: 2px solid transparent;
    }

    .nav.active .dropdown-menu::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }

    .nav.active .dropdown-menu::before {
        display: none;
    }

    .nav.active .dropdown-menu.show {
        display: block;
        animation: slideDown 0.4s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            max-height: 0;
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            max-height: 80vh;
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav.active .dropdown-menu-container {
        grid-template-columns: 1fr;
        padding: 5px 15px;
        gap: 20px;
        max-width: 100%;
        margin: 0 auto;
    }

    .nav.active .dropdown-menu-column {
        margin-bottom: 10px;
        background: rgba(59, 33, 96, 0.5);
        padding: 15px;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
    }

    .nav.active .dropdown-menu-column h3 {
        font-size: 16px;
        margin-bottom: 12px;
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.2);
        position: relative;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .nav.active .dropdown-menu-column h3::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 35px;
        height: 2px;
        background: linear-gradient(90deg, #ad59f5, #7942f5, #5e8ef7);
        border-radius: 2px;
        box-shadow: 0 0 8px rgba(173, 89, 245, 0.5);
    }

    .nav.active .dropdown-menu-column a {
        font-size: 14px;
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        transition: transform 0.2s ease, color 0.2s ease;
        display: block;
    }

    .nav.active .dropdown-menu-column a:hover {
        color: white;
        transform: translateX(5px);
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .nav.active .dropdown-menu-column li {
        margin: 5px 0;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .contact-btn {
        margin-top: 0;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .checkbox-label {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

    .form-group {
        margin-bottom: 15px;
        width: 100%;
    }

    .form-row {
        margin: 0;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        padding: 8px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 10px;
        font-size: 16px;
    }

    /* 超小屏幕导航栏样式 */
    .contact-btn {
        font-size: 14px;
        padding: 6px 10px;
    }

    .nav.active .dropdown-menu-column h3 {
        font-size: 16px;
    }

    .nav.active .dropdown-menu-column a {
        font-size: 14px;
    }
}


@media(max-height: 900px) {
    .modal-content {
        max-height: 600px;
    }
}

@media(max-height: 700px) {
    .modal-content {
        max-height: 400px;
    }
}

.display-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.align-items-center {
    align-items: center;
}

.m-l-12 {
    margin-left: 12px;
}

.m-r-12 {
    margin-right: 12px;
}

.m-l-24 {
    margin-left: 24px;
}

.m-r-24 {
    margin-right: 24px;
}

.w-100p {
    width: 100%;
}

.h-100p {
    height: 100%;
}

.p-t-3p {
    padding-top: 3% !important;
}

.p-b-3p {
    padding-bottom: 3% !important;
}

.p-t-5p {
    padding-top: 5% !important;
}

.p-b-5p {
    padding-bottom: 5% !important;
}

.m-h-600{
    max-height: 600px;
}
