/* 基础样式 */
:root {
    --primary-color: #2a9d8f; /* 智慧绿，主色调 */
    --primary-dark: #1a7a70; /* 深绿色，强调色 */
    --primary-light: #8eeadb; /* 浅绿色，背景色 */
    --accent-color: #1d3c45; /* 深蓝绿色，辅助色 */
    --text-color: #333333; /* 主文本色 */
    --text-light: #666666; /* 次要文本色 */
    --bg-light: #f8f9fa; /* 浅色背景 */
    --bg-dark: #1d3c45; /* 深色背景 */
    --white: #ffffff; /* 白色 */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title .en {
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-left: 20px;
}

/* 图片占位符样式 */
.image-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
}

/* 导航栏样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-en {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.logo svg {
    margin-right: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
    padding: 0;
}

nav ul li a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

/* 移除下划线效果 */
nav ul li a::after {
    display: none;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* 首页横幅样式优化 */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(26, 122, 112, 0.9), rgba(29, 60, 69, 0.95));
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* 粒子容器样式优化 */
#particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(rgba(26, 122, 112, 0.9), rgba(29, 60, 69, 0.95));
}

/* 移除径向渐变效果 */
.purification-gradient {
    display: none;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: #8eeadb;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    color: rgba(255, 255, 255, 0.9);
}

.banner-content .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

/* 智能装备样式 */
.device-section {
    padding: 100px 0;
    background-color: var(--white);
}

.device-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    gap: 30px;
}

.device-item:hover {
    transform: translateY(-5px);
}

.device-image {
    flex: 0 0 300px;
    height: 200px;
    background-color: var(--primary-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-image i {
    font-size: 4rem;
    color: var(--primary-color);
}

.device-content {
    flex: 1;
}

.device-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.device-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.device-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    color: var(--text-light);
}

/* 产品展示样式 */
.products {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.product-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 40px;
}

.product-item.reverse {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
}

.product-content {
    flex: 1;
}

.product-content h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.product-content ul {
    list-style: disc;
    margin-left: 20px;
}

.product-content ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* 应用案例样式 */
.cases {
    padding: 100px 0;
    background-color: var(--white);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.contact-item div {
    flex: 1;
}

.contact-item h3 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

/* 页脚样式 */
#footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo span {
    margin-left: 10px;
    font-weight: 600;
}

.footer-social h3 {
    margin-bottom: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.social-icon:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    color: var(--white);
}

/* 微信二维码弹窗样式优化 */
.wechat .qrcode {
    position: absolute;
    bottom: 56px;
    right: -60px;
    width: 150px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    text-align: center;
    border: 1px solid #eaeaea;
    transform: translateY(10px);
}

.wechat .qrcode::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 60px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--white);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.wechat:hover .qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qrcode-placeholder {
    width: 170px;
    height: 170px;
    margin: 0 auto 10px;
    background-color: var(--bg-light);
    border: 1px dashed var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.qrcode-placeholder:after {
    content: "扫描二维码";
}

.qrcode p {
    color: var(--text-color);
    font-size: 0.8rem;
    margin-bottom: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.icp-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }

    .about-content,
    .product-item,
    .product-item.reverse {
        flex-direction: column;
    }

    .logo span {
        font-size: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    nav {
        order: initial;
        margin-top: 0;
        width: auto;
        flex: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* 调整产品图标按钮样式 */
.product-icons {
    display: flex;
    gap: 12px;
    margin-left: 20px;
    position: relative;
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

/* 悬浮窗样式优化 */
.product-icon .qrcode {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    background-color: #1d1f3b;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    text-align: left;
    border: none;
    margin-top: 10px;
    pointer-events: none;
    color: white;
}

.product-icon:hover .qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.product-icon .qrcode h3 {
    font-size: 1.0rem;
    color: #8557c7;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-icon .qrcode p {
    color: white;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

.product-icon .qrcode::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #1d1f3b transparent;
}

.product-icon:hover {
    color: white;
}

.product-icon .icon-separator {
    margin: 0 5px;
    font-weight: 300;
    opacity: 0.9;
}

.smart-water {
    background: #8557c7;
    min-width: 125px;
}

.cloud-control {
    background: #1d4f9c;
    min-width: 125px;
}

.logo-hexagon {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    position: relative;
}

/* 媒体查询 */
@media (max-width: 992px) {
    .product-icons {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .nav-content {
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (max-width: 768px) {
    .product-icons {
        display: none;
    }
    
    .mobile-product-icons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding: 10px 20px;
    }
    
    .mobile-product-icons .product-icon {
        justify-content: flex-start;
        padding: 8px 15px;
    }
}

/* 导航布局调整 */
.nav-content {
    display: none;
}

/* 导航菜单居中 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

.logo {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.logo svg {
    margin-right: 10px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        margin-top: 15px;
        width: 100%;
    }
    
    .product-icons {
        margin-left: 0;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    nav {
        order: initial;
        margin-top: 0;
        width: auto;
        flex: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 20px;
    }
}

/* 云控按钮悬浮窗特殊样式 */
.cloud-control .qrcode {
    background-color: #1a1f3d;
}

.cloud-control .qrcode h3 {
    color: #4a9eff;
    font-size: 1.0rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cloud-control .qrcode p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cloud-control .qrcode::before {
    border-color: transparent transparent #1a1f3d transparent;
}
