/* 品牌色定义 (科技感版本) */
:root {
    --brand-green: #00FF99; /* 亮绿色，霓虹科技感 */
    --dark-blue: #0A192F;   /* 极深蓝，主要背景色 */
    --light-blue: #61DAFB;  /* 科技蓝，辅助强调色 */
    --text-light: #E0E6ED;  /* 浅色文字，用于深色背景 */
    --text-dark: #333;      /* 深色文字，用于浅色背景（如导航栏） */
    --grey-bg: #1A2E46;     /* 中深灰色背景，用于区块分隔 */
    --border-color: #2F4D6F; /* 边框颜色 */
}

/* 基础重置 */
body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-light); /* 默认文字颜色改为浅色 */
    line-height: 1.7;
    background-color: var(--dark-blue); /* 全局背景改为深蓝 */
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 容器居中 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 0; /* 增加内边距 */
}

/* --- 导航栏样式 (保持白色，Logo已增大，增加科技感边框) --- */
#navbar {
    background-color: rgba(255, 255, 255, 0.95); /* 半透明白色 */
    color: var(--text-dark); /* 导航栏文字颜色为深色 */
    border-bottom: 1px solid var(--border-color); /* 科技感边框 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 2000; /* 提高Z-index */
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.1); /* 品牌绿光效阴影 */
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo 图片样式 (已增大到 55px) */
.logo-img {
    height: 55px; 
    width: auto; 
    vertical-align: middle; 
}

#navbar nav a {
    color: var(--text-dark); /* 链接颜色为深色 */
    text-decoration: none;
    margin-left: 30px; /* 增加间距 */
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    font-weight: 500;
}

#navbar nav a:hover {
    color: var(--brand-green); /* 鼠标悬停时使用品牌绿 */
    border-bottom: 2px solid var(--brand-green); /* 下划线效果 */
}

/* 导航栏中的 CTA 按钮 */
#navbar nav .cta-button-nav {
    background-color: var(--brand-green); 
    color: var(--dark-blue); /* 按钮文字改为深色，对比强烈 */
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 35px;
    box-shadow: 0 0 15px var(--brand-green); /* 发光效果 */
}

#navbar nav .cta-button-nav:hover {
    background-color: var(--light-blue); /* 悬停时切换为科技蓝 */
    color: white; 
    box-shadow: 0 0 20px var(--light-blue); /* 科技蓝发光 */
}

/* --- 核心口号区 (Hero) 样式 - 更具冲击力 --- */
.hero {
    /* 配合地球+盾牌背景图，确保深色覆盖 */
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('tech-security-bg.jpg') no-repeat center center/cover; 
    color: white;
    text-align: center;
    padding: 180px 0; /* 增加内边距 */
    position: relative;
    overflow: hidden; 
}

.hero h2 {
    font-size: 3.5em; /* 更大字体 */
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.7); /* 文字发光效果 */
    line-height: 1.2;
}

.hero p {
    font-size: 1.3em; /* 增大字体 */
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* --- 行动号召按钮 (CTA) 样式 - 科技感按钮 --- */
.cta-button-large {
    background-color: var(--brand-green); 
    color: var(--dark-blue); /* 按钮文字为深色 */
    padding: 18px 45px; /* 增大按钮 */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    font-size: 1.2em;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.5); /* 初始发光 */
    border: 1px solid var(--brand-green);
}

.cta-button-large:hover {
    background-color: var(--light-blue); /* 悬停时切换为科技蓝 */
    color: white; 
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--light-blue), 0 0 40px var(--light-blue); /* 更强的发光效果 */
    border-color: var(--light-blue);
}

/* --- 内容区块通用样式 - 深色背景，科技感标题 --- */
.content-section {
    padding: 100px 0; /* 增加区块内边距 */
    text-align: center;
    position: relative; 
}

.content-section h3 {
    font-size: 2.8em; /* 增大标题字体 */
    color: var(--brand-green); /* 标题使用品牌绿 */
    margin-bottom: 50px;
    border-bottom: 3px solid var(--light-blue); /* 下划线使用科技蓝 */
    display: inline-block;
    padding-bottom: 15px;
    text-transform: uppercase; /* 标题大写 */
    letter-spacing: 2px; /* 增加字母间距 */
}

.grey-bg {
    background-color: var(--grey-bg); /* 中深灰色背景 */
    border-top: 1px solid var(--border-color); 
    border-bottom: 1px solid var(--border-color);
}

/* --- 服务网格布局 - 科技感卡片 --- */
.services-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px; 
    margin-top: 50px;
    text-align: left;
}

.service-item {
    flex: 1;
    background: rgba(10, 25, 47, 0.8); /* 半透明深蓝背景 */
    padding: 35px; 
    border-radius: 10px; 
    box-shadow: 0 8px 25px rgba(0, 255, 153, 0.15); 
    transition: box-shadow 0.4s ease, transform 0.3s ease;
    border: 1px solid var(--border-color); 
}

.service-item:hover {
    box-shadow: 0 12px 35px rgba(0, 255, 153, 0.3); 
    transform: translateY(-5px); 
}

.service-item h4 {
    color: var(--light-blue); 
    font-size: 1.8em; 
    margin-top: 0;
    border-left: 4px solid var(--brand-green); 
    padding-left: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

.service-item ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.service-item li {
    padding: 8px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1); 
    color: var(--text-light);
}

.service-item li:last-child {
    border-bottom: none;
}

/* --- 关于我们页面内容样式 (科技感优化) --- */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    border: 1px solid var(--border-color); /* 增加外边框 */
    background-color: rgba(0, 0, 0, 0.2); /* 略微深色的背景 */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.1);
}

.about-content h4 {
    color: var(--light-blue); /* 小标题使用科技蓝 */
    font-size: 1.5em;
    border-left: 3px solid var(--brand-green);
    padding-left: 10px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about-content ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 15px;
    border-left: 1px dotted var(--border-color);
}

.about-content ul li {
    padding: 5px 0;
    color: var(--text-light);
    position: relative;
}

.about-content ul li::before {
    content: "◇"; /* 使用菱形符号作为列表点，增加科技感 */
    color: var(--brand-green);
    font-size: 0.8em;
    position: absolute;
    left: -20px;
    top: 5px;
}

.lead-text {
    font-size: 1.15em;
    font-weight: 500;
    color: white;
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.final-statement {
    margin-top: 30px;
    color: var(--brand-green);
    font-style: italic;
    font-size: 1.05em;
}

/* --- 客户案例展示样式 (科技感优化) --- */
.case-studies-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.case-item {
    flex: 0 0 45%; /* 控制宽度 */
    background: rgba(10, 25, 47, 0.8); /* 与服务卡片相似的深色背景 */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.case-item h4 {
    color: var(--brand-green);
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
}

.case-item ul {
    list-style: none;
    padding-left: 0;
}

.case-item li {
    padding: 10px 0;
    font-size: 1.1em;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.case-item li::before {
    content: "▸"; /* 科技感箭头 */
    color: var(--light-blue);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.case-item li:last-child {
    border-bottom: none;
}

/* 联系链接 */
.link-to-contact {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    display: inline-block;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-size: 1.1em;
}

.link-to-contact:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

/* --- 页脚样式 --- */
#contact {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

#contact h3 {
    color: var(--brand-green);
    border-bottom: 3px solid var(--light-blue);
    display: inline-block;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#contact p {
    margin: 15px 0;
}

.footer-links {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

/* --- 微信联系弹窗 (Modal) 样式 - 科技感弹窗 --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 3000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85); 
    align-items: center; 
    justify-content: center; 
    animation: fadeIn 0.3s ease-out; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--grey-bg); 
    color: var(--text-light); 
    padding: 40px; 
    border-radius: 10px; 
    width: 90%;
    max-width: 500px; 
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 255, 153, 0.3); 
    border: 1px solid var(--border-color);
    animation: slideIn 0.3s ease-out; 
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-button {
    color: var(--light-blue); 
    font-size: 32px; 
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--brand-green); 
}

.modal-content h3 {
    color: var(--brand-green); 
    margin-bottom: 20px;
    font-size: 2em;
    letter-spacing: 1px;
}

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

.wechat-info {
    margin: 25px 0; 
    border: 1px solid var(--border-color); 
    background-color: rgba(255, 255, 255, 0.05); 
    padding: 20px;
    border-radius: 8px;
}

.qr-code-img {
    width: 200px; 
    height: auto;
    margin-bottom: 15px;
    border: 1px solid var(--brand-green); 
    border-radius: 5px;
}

.wechat-info strong {
    color: var(--light-blue); 
    font-size: 1.2em;
    font-weight: bold;
}

.wechat-info button {
    background-color: var(--brand-green);
    color: var(--dark-blue); 
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-left: 15px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: bold;
}

.wechat-info button:hover {
    background-color: var(--light-blue);
    box-shadow: 0 0 10px var(--light-blue);
    color: white;
}

.small-text {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* --- 响应式设计 (确保在移动设备上正常显示) --- */
@media (max-width: 900px) {
    .services-grid {
        flex-direction: column;
        gap: 50px; 
    }

    .hero h2 {
        font-size: 2.8em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .cta-button-large {
        padding: 15px 35px;
        font-size: 1em;
    }

    .content-section h3 {
        font-size: 2.2em;
    }

    /* 案例展示响应式调整 */
    .case-studies-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .case-item {
        flex: 0 0 90%; 
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 600px) {
    #navbar .container {
        flex-direction: column;
        align-items: center;
    }

    #navbar nav {
        margin-top: 15px;
        width: 100%;
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
    }

    #navbar nav a {
        margin: 5px 10px;
        padding: 5px;
        font-size: 0.9em;
    }
    
    #navbar nav .cta-button-nav {
        margin-top: 15px;
        width: calc(100% - 40px); 
    }

    .hero {
        padding: 120px 0;
    }

    .hero h2 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .content-section {
        padding: 60px 0;
    }

    .content-section h3 {
        font-size: 1.8em;
    }

    .service-item {
        padding: 25px;
    }

    .service-item h4 {
        font-size: 1.4em;
    }
    
    .modal-content {
        padding: 25px;
        max-width: 350px;
    }

    .qr-code-img {
        width: 150px;
    }
}