/* 基础样式重置与变量定义 */
:root {
    --primary: #1E3A8A;
    --primary-light: #4080FF;
    --primary-dark: #0E42D2;
    --secondary: #3B82F6;
    --accent: #60A5FA;
    --primary-color: #4a7ef3;
    --dark: #0F172A;
    --light: #F1F5F9;
    --slate-800: #2D3748;
    --slate-600: #4A5568;
    --slate-400: #718096;
    --slate-200: #E2E8F0;
    --slate-100: #F1F5F9;
    --white: #FFFFFF;
    --success: #00B42A;
    --warning: #FF7D00;
    --danger: #F53F3F;
    --animation-duration: 0.5s;
    --animation-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* 额外的全局样式修复，防止x轴滚动条 */
html,
body {
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* 修复移动设备上可能的溢出问题 */
@media (max-width: 768px) {
    * {
        max-width: 100% !important;
    }

    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


/* 工具类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background-color: rgba(22, 93, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark);
}

.section-description {
    font-size: 16px;
    color: var(--slate-600);
    max-width: 768px;
    margin: 0 auto;
    line-height: 1.6;
}

.primary-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--animation-duration) var(--animation-ease);
    border: none;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
}

.primary-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.3);
}

.primary-button:hover::before {
    left: 100%;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 400px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background-color: transparent;
    color: var(--slate-600);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--slate-100);
    color: var(--dark);
}

/* 微信二维码弹窗样式 */
.wechat-qrcode-content {
    text-align: center;
}

/* 移动菜单样式 */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-button span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    transition: all var(--animation-duration) var(--animation-ease);
}

/* 深色背景下的移动菜单按钮样式 */
.navbar.deepbg .mobile-menu-button span {
    background: var(--white);
}

.mobile-menu-button span:nth-child(1) {
    top: 0;
}

.mobile-menu-button span:nth-child(2) {
    top: 10px;
}

.mobile-menu-button span:nth-child(3) {
    top: 20px;
}

/* 激活状态的移动菜单按钮 */
.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* 移动菜单容器 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1001;
    transition: right var(--animation-duration) var(--animation-ease);
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* 激活状态的移动菜单 */
.mobile-menu.active {
    right: 0;
}

/* 移动菜单关闭按钮 */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--slate-600);
    cursor: pointer;
    transition: color var(--animation-duration) var(--animation-ease);
}

.mobile-menu-close:hover {
    color: var(--dark);
}

/* 移动菜单链接 */
.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: var(--slate-800);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--slate-100);
    transition: color var(--animation-duration) var(--animation-ease);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary);
}

/* 移动菜单CTA按钮 */
.mobile-cta-button {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 500;
    transition: background-color var(--animation-duration) var(--animation-ease);
}

.mobile-cta-button:hover {
    background-color: var(--primary-dark);
}

/* 覆盖层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--animation-duration) var(--animation-ease), visibility var(--animation-duration) var(--animation-ease);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
}

.wechat-qrcode-container {
    padding-top: 20px;
}

.wechat-qrcode-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.wechat-qrcode-image {
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    margin-bottom: 20px;
    display: inline-block;
}

.wechat-qrcode-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.wechat-qrcode-text {
    font-size: 16px;
    color: var(--slate-600);
    line-height: 1.5;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    transition: all var(--animation-duration) var(--animation-ease);
    z-index: 999;
}
.navbar.deepbg { 
    background-color:var(--primary);
}

/* 深色背景下的导航链接样式 */
.navbar.deepbg .nav-link:hover,
.navbar.deepbg .nav-link.active {
    color: var(--secondary);
}

/* 深色背景下导航链接的下划线样式 */
.navbar.deepbg .nav-link:hover::after,
.navbar.deepbg .nav-link.active::after {
    background-color: var(--secondary);
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 16px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

.logo-icon {
    width: 40px;
    height: 40px;
    /* background-color: var(--primary); */
    border-radius: 8px;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 35% 100%);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    transition: all var(--animation-duration) var(--animation-ease);
}

.navbar.scrolled .logo-text {
    color: var(--dark);
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin: 0 16px;
    transition: all var(--animation-duration) var(--animation-ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--animation-duration) var(--animation-ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.navbar.scrolled .nav-link {
    color: var(--slate-800);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
}
.navbar.scrolled .nav-link:hover::after,
.navbar.scrolled .nav-link.active::after {
    background-color: var(--primary) !important;
}

.cta-button {
    background-color: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 16px;
    transition: all var(--animation-duration) var(--animation-ease);
}

.cta-button:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.3);
}

.navbar.scrolled .cta-button {
    background-color: var(--primary);
    color: var(--white);
}

.navbar.scrolled .cta-button:hover {
    background-color: var(--primary-dark);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--slate-800);
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-close:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-button span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all var(--animation-duration) var(--animation-ease);
    border-radius: 1.5px;
}

/* 增加按钮点击区域 */
.mobile-menu-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
}

.navbar.scrolled .mobile-menu-button span {
    background-color: var(--dark);
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    width: 100%;
    max-width: 100%;
}

.mobile-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-100);
    transition: all var(--animation-duration) var(--animation-ease);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    padding-left: 8px;
}

.mobile-cta-button {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    margin-top: 24px;
    transition: all var(--animation-duration) var(--animation-ease);
}

.mobile-cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(22, 93, 255, 0.3);
}

/* 社交链接样式 */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 36px !important;
    text-align: center;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-decoration: none;
    margin: 0 8px;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* 页脚响应式调整 */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 60px 0 24px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 16px;
    }

    .footer-column-title {
        font-size: 16px;
    }

    .footer-description,
    .footer-links a {
        font-size: 14px;
    }
}

.footer-logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    /* background-color: var(--white); */
    border-radius: 8px;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.footer-logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 35% 100%);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-description {
    font-size: 16px;
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--animation-duration) var(--animation-ease);
}

.footer-social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--slate-400);
    text-decoration: none;
    transition: all var(--animation-duration) var(--animation-ease);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer-contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.footer-contact-text {
    color: var(--slate-400);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-copyright {
    color: var(--slate-400);
    font-size: 14px;
}

.footer-copyright a {
    color: var(--slate-100);
    text-decoration: none;
}

/* 响应式样式 */
@media (max-width: 1199px) {
    .services-grid,
    .cases-grid,
    .articles-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-content,
    .about-content {
        flex-direction: column;
    }

    .tech-left,
    .tech-right,
    .about-left,
    .about-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .services-grid,
    .cases-grid,
    .articles-grid,
    .footer-content,
    .about-values {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 14px;
    }
}