/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: url('../images/bg.png') no-repeat center center fixed;
    background-size: cover;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

/* Font Awesome 图标样式 */
/* 粒子特效库 */
i.fa {
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}

/* 导航菜单图标特殊样式 */
nav i.fa {
    font-size: 1em;
    margin-right: 8px;
    vertical-align: middle;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.7);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.logo {
    margin-left: -10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
}

nav ul li a:hover {
    color: #333333;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    font-size: 18px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.85);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    border-radius: 4px;
    border: 1px solid #cccccc;
}

.dropdown-content a {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown-content a i.fa {
    margin-right: 8px;
    width: 24px;
    height: 24px;
    text-align: left;
    vertical-align: middle;
    font-size: 16px;
    display: inline-block;
    line-height: 24px;
}

.dropdown-content a {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    line-height: 20px;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #007bff;
}

/* 主要内容样式 */
main {
    margin-top: 80px;
}

/* 全屏页面样式 */
.page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 0px;
}

/* 首页大标题样式 */
#home {
    text-align: center;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#home .company-name {
    color: #ffffff;
    font-size: 3rem;
    text-align: left;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
}

#home h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 120px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-50px);
}



/* 产品部分样式 */
.product {
    width: 100%;
    padding: 80px 0 20px 0;
}

.product:nth-child(even) {
}

/* 第二页面和第四页面背景色修改 */
#platform, #management {
}

.product h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 3rem;
    color: #007bff;
}

.product p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #f0f0f0;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    border: 2px solid #99ccff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.feature h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    color: #f0f0f0;
    font-size: 1.3rem;
    line-height: 1.4;
}

/* 关于我们部分样式 */
.about {
    padding: 100px 0 20px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #00dbde;
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f0f0f0;
}

.mission, .vision {
    text-align: center;
    margin: 30px 0;
    white-space: nowrap;
}

.values {
    text-align: center;
    margin: 30px 0;
    clear: both;
}

.values ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.values ul li {
    text-align: center;
    margin: 10px 0;
    white-space: nowrap;
}

.values ul li:before {
    content: "•";
    color: #00dbde;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* 页脚样式 */
footer {
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #cccccc;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}

.footer-info {
    flex: 1;
}

.footer-image {
    flex: 0 0 auto;
    margin-left: 5px;
}

.footer-qrcode {
    max-width: 266px;
    height: auto;
}

.footer-official-account {
    flex: 0 0 auto;
    margin-right: 5px;
}

.official-account-qrcode {
    max-width: 100px;
    height: auto;
}

/* 404页面页脚样式 */
.page-404 footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

footer a {
    color: #99ccff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #cce6ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-image {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .footer-qrcode {
        max-width: 120px;
    }
    
    .error-details {
        padding: 0 20px;
    }
    
    .quick-links .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}

/* 404页面样式 */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 70px);
    text-align: center;
    flex-direction: column;
    padding-bottom: 70px;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.error-details {
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
    padding: 20px;
    border-radius: 8px;
}

.error-details h2 {
    color: #ffffff;
    margin: 20px 0 10px;
    font-size: 1.5rem;
}

.error-details ul {
    list-style: none;
    padding-left: 0;
}

.error-details li {
    margin: 10px 0;
    position: relative;
    padding-left: 20px;
    color: #f0f0f0;
}

.error-details li:before {
    content: "•";
    color: #99ccff;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

.quick-links {
    margin: 30px 0;
}

.quick-links .btn {
    margin: 10px;
    background-color: #007bff;
    color: white;
}

.quick-links .btn:hover {
    background-color: #0056b3;
}

.contact-info {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #f0f0f0;
}

/* 粒子特效样式 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 跳转旧网站按钮样式 */
.old-site-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1001;
    background-color: #007bff;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}

.old-site-button a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
}

.old-site-button i.fa-external-link {
    font-size: 1.2em;
    margin-right: 8px;
}

.button-text {
    font-size: 16px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.old-site-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.old-site-button:hover .button-text {
    opacity: 1;
}

/* 联系电话按钮样式 */
.contact-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
    background-color: #800080;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-button a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: white;
}

.contact-button i.fa-phone {
    font-size: 1.2em;
    margin-right: 8px;
}

.contact-text {
    font-size: 16px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.contact-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.contact-button:hover .contact-text {
    opacity: 1;
}

/* 产品图片展示样式 */
.image-gallery {
    width: 100vw; /* 使用视口宽度 */
    max-width: 100%; /* 确保不超过容器宽度 */
    overflow: hidden;
    position: relative;
    height: 400px;
    margin: 40px 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
}

.gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 或者使用 'scale-down' */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
}

.gallery-image:hover {
    opacity: 1;
}

/* 响应式设计中的产品图片展示 */
@media (max-width: 768px) {
    .image-gallery {
        height: 250px;
    }
}