/* 赛博朋克风格变量 */
:root {
    --neon-blue: #0ff;
    --neon-purple: #f0f;
    --neon-green: #0f0;
    --dark-bg: rgba(10, 10, 15, 0.8);
    --darker-bg: rgba(5, 5, 10, 0.9);
    --grid-color: rgba(0, 255, 255, 0.1);
    --grid-size: 30px;
}

/* 背景动画 */
@keyframes backgroundPan {
    0% {
        background-position: 0% center;
        background-size: 110% auto;
    }
    50% {
        background-position: 100% center;
        background-size: 120% auto;
    }
    100% {
        background-position: 0% center;
        background-size: 110% auto;
    }
}

/* 网格背景动画 */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 霓虹文字闪烁动画 */
@keyframes flicker {
    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue),
            0 0 15px var(--neon-blue);
    }
    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

/* 边框发光动画 */
@keyframes borderGlow {
    0%,
    100% {
        box-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
    }
    50% {
        box-shadow: 0 0 15px var(--neon-blue), 0 0 20px var(--neon-blue),
            0 0 25px var(--neon-blue);
    }
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 服务中心主体样式 */
.service-center {
    background-color: #111;
    position: relative;
    overflow: hidden;
}

.service-center::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%
        ),
        linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 255, 0.06)
        );
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

/* 主内容区域样式 */
.service-center .main {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(10, 10, 15, 0.4)),
        url(../img/banner3.webp);
    background-size: 110% auto;
    background-position: 0% center;
    background-attachment: scroll;
    animation: backgroundPan 30s ease-in-out infinite;
    will-change: background-position, background-size; /* 优化性能 */
    backdrop-filter: blur(1px); /* 轻微模糊效果 */
}
.service-center .main .main3 {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.service-center .main .main3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: -1;
}

.service-center .main .main3::after {
    content: "";
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 110%;
    background: linear-gradient(
        transparent,
        rgba(0, 255, 255, 0.05),
        transparent
    );
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.service-center .main .main3 .tit {
    padding: 30px 0;
    text-align: center;
}

.service-center .main .main3 .tit img {
    display: inline-block;
    filter: drop-shadow(0 0 5px var(--neon-blue));
    transition: all 0.3s ease;
}

.service-center .main .main3 .tit img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

/* 内容区域样式 */
.service-center .main .main3 .content {
    width: 1400px;
    margin: 0 auto;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

/* 信息区域样式 */
.service-center .main .main3 .content .information {
    padding: 30px 40px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.service-center .main .main3 .content .information ul {
    float: left;
}

.service-center .main .main3 .content .information ul li {
    font-size: 16px;
    color: #fff;
    line-height: 36px;
    padding-left: 40px;
    background: no-repeat left center;
    /* font-family: "Orbitron", sans-serif; */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.service-center .main .main3 .content .information ul li:hover {
    transform: translateX(5px);
    color: var(--neon-blue);
}

.service-center .main .main3 .content .information ul li.address {
    background-image: url("../img/service-address.png");
}

.service-center .main .main3 .content .information ul li.phone {
    background-image: url("../img/service-phone.png");
}

.service-center .main .main3 .content .information ul li.email {
    background-image: url("../img/service-email.png");
    text-transform: uppercase;
}

/* 二维码区域样式 */
.service-center .main .main3 .content .information .ewms {
    float: right;
}

.service-center .main .main3 .content .information .ewms .ewm-box {
    float: left;
    margin-left: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: borderGlow 3s infinite;
}

.service-center .main .main3 .content .information .ewms .ewm-box:hover {
    transform: translateY(-5px) scale(1.05);
}

.service-center .main .main3 .content .information .ewms .ewm-box img {
    margin: 0 auto;
    display: block;
    border: 2px solid var(--neon-purple);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.service-center .main .main3 .content .information .ewms .ewm-box:hover img {
    transform: rotate(5deg);
    box-shadow: 0 0 10px var(--neon-purple);
}

.service-center .main .main3 .content .information .ewms .ewm-box span {
    font-size: 12px;
    color: #fff;
    margin-top: 10px;
    display: block;
    text-align: center;
    /* font-family: "Orbitron", sans-serif; */
    text-shadow: 0 0 5px var(--neon-blue);
}

/* 联系表单样式 */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--darker-bg);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: -1;
    opacity: 0.5;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 28px;
    /* font-family: "Orbitron", sans-serif; */
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
    animation: flicker 3s infinite;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    /* font-family: "Orbitron", sans-serif; */
    text-shadow: 0 0 3px var(--neon-blue);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    /* font-family: "Orbitron", sans-serif; */
}

.form-control:focus {
    border-color: var(--neon-blue);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.25), 0 0 10px var(--neon-blue);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Orbitron", sans-serif;
    text-shadow: 0 0 5px var(--neon-blue);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.2),
        transparent
    );
    transition: all 0.5s ease;
    z-index: -1;
}

.submit-btn:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:disabled {
    background: #333;
    border-color: #555;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
    text-shadow: none;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    /* 移动设备上的背景动画 */
    @keyframes backgroundPan {
        0% {
            background-position: 0% center;
            background-size: 150% auto; /* 移动设备上放大背景以确保覆盖 */
        }
        50% {
            background-position: 100% center;
            background-size: 160% auto;
        }
        100% {
            background-position: 0% center;
            background-size: 150% auto;
        }
    }

    .service-center .main {
        animation: backgroundPan 20s ease-in-out infinite; /* 移动设备上动画时间缩短 */
    }
    .service-center .main .main2 {
        background-attachment: scroll;
    }
    .service-center .main .main2 .tit {
        padding: 25px 0;
    }
    .service-center .main .main2 .tit img {
        width: 80%;
    }
    .service-center .main .main2 #problemDeedback .input-box {
        width: 96%;
        margin-bottom: 18px;
    }
    .service-center .main .main3 {
        padding: 10px 0;
    }
    .service-center .main .main3 .tit img {
        width: 60%;
    }
    .service-center .main .main3 .content .information {
        padding: 20px 15px;
    }
    .service-center .main .main3 .content .information ul li {
        font-size: 14px;
        line-height: 20px;
        padding: 5px 0;
        padding-left: 40px;
    }
    .service-center .main .main3 .content .information .ewms {
        float: left;
        margin-top: 10px;
    }
    .service-center .main .main3 .content .information .ewms .ewm-box {
        margin-left: 0;
        margin-right: 15px;
    }
    .service-center .main .main3 .content .map {
        height: 400px;
    }
    .contact-form {
        margin: 20px;
        padding: 20px;
    }
}

@media screen and (max-width: 1024px) {
    .service-center .main .main1 {
        top: 0;
        width: 100%;
    }
    .service-center .main .main1 .main1-top {
        padding: 40px 0;
    }
    .service-center .main .main3 .content .information {
        padding: 30px 24px;
    }
}

@media screen and (max-width: 1450px) {
    .service-center .main .main1 {
        width: 96%;
    }
    .service-center .main .main3 .content {
        width: 96%;
    }
}

/* 防止动画导致页面宽度变化 */
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* 确保所有动画元素不会导致页面溢出 */
.service-center::before,
.service-center::after,
.service-center .main .main3::before,
.service-center .main .main3::after,
.contact-form::before,
.contact-form::after {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}
