/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002FA7;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #002FA7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #002FA7 0%, #1e40af 100%);
    color: white;
    position: relative;
    padding-top: 120px; /* 避开固定导航并下移内容 */
    padding-bottom: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    justify-self: start;
    text-align: left;
    max-width: 720px;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.hero-title-cn {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 400;
    opacity: 0.8;
}

.hero-title-en {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 1;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 打字机光标效果 */
.typing-caret {
    display: inline-block;
    width: 1px;
    height: 1.2em;
    background: currentColor;
    margin-left: 4px;
    animation: caretBlink 1s step-end infinite;
    vertical-align: -0.2em;
}

@keyframes caretBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 3;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

.btn-primary {
    background: #002FA7;
    color: white;
}

.btn-primary:hover {
    background: #001f7a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 通用部分 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* 当“关于我们”只保留文字时的单列布局 */
.about-content.about-single {
    grid-template-columns: 1fr;
    max-width: 860px;
    margin: 0 auto;
    gap: 2rem;
}

.about-content.about-single .about-text {
    text-align: left;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.team-capabilities {
    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.capability-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.capability-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #002FA7;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.capability-item h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #002FA7, #2563eb);
    margin-right: 12px;
    border-radius: 2px;
}

.capability-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #64748b;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* 服务 */
.services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
}

/* 团队 */
.team {
    padding: 100px 0;
    background: #f8fafc;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 3rem;
}

.team-member h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.member-title {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-desc {
    color: #64748b;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #64748b;
}

.contact-form {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    background: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #002FA7, #2563eb);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 世界地图光点阵背景 */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.light-node { display: none; }

.light-beam {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
    border-radius: 1px;
    animation: lightBeam 4s infinite ease-in-out;
    transform-origin: left center;
}

.data-connection { display: none; }

.grid-line { display: none; }

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
}

/* 光线质感动画 */
@keyframes lightPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

@keyframes lightBeam {
    0% { 
        opacity: 0; 
        transform: scaleX(0) scaleY(1);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1) scaleY(1);
    }
    100% { 
        opacity: 0; 
        transform: scaleX(0) scaleY(1);
    }
}

@keyframes dataFlow {
    0% { 
        stroke-dashoffset: 1000; 
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        stroke-dashoffset: 0; 
        opacity: 0;
    }
}

/* 英雄区环境明暗闪烁覆盖层 */
.ambient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    background:
        radial-gradient(60% 80% at 25% 20%, rgba(255,255,255,0.15), transparent 60%),
        radial-gradient(50% 70% at 75% 80%, rgba(0,255,255,0.12), transparent 60%),
        linear-gradient(120deg, rgba(255,255,255,0.06), rgba(0,0,0,0.12) 50%, rgba(255,255,255,0.06));
    background-size: 160% 160%, 160% 160%, 100% 100%;
    background-position: 0% 0%, 100% 100%, 0% 0%;
    animation: ambientShift 10s ease-in-out infinite;
}

@keyframes ambientShift {
    0% {
        opacity: 0.14;
        background-position: 0% 0%, 100% 100%, 0% 0%;
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        opacity: 0.25;
        background-position: 100% 50%, 0% 50%, 0% 0%;
        filter: hue-rotate(8deg) brightness(1.05);
    }
    100% {
        opacity: 0.14;
        background-position: 0% 0%, 100% 100%, 0% 0%;
        filter: hue-rotate(0deg) brightness(1);
    }
}

/* 大型不规则呼吸色块 */
.breathing-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    filter: blur(0.5px);
    animation: shapeBreath 12s ease-in-out infinite;
    mix-blend-mode: screen;
}

.breathing-shape.shape-1 {
    clip-path: polygon(10% 0%, 95% 20%, 80% 95%, 0% 80%);
    background: radial-gradient(120% 120% at 30% 30%, rgba(0,255,255,0.35), rgba(0,91,255,0.18) 60%, transparent 100%);
}

.breathing-shape.shape-2 {
    clip-path: polygon(20% 10%, 100% 0%, 90% 85%, 5% 70%);
    background: radial-gradient(120% 120% at 70% 40%, rgba(0,255,200,0.28), rgba(0,140,255,0.18) 60%, transparent 100%);
}

.breathing-shape.shape-3 {
    clip-path: polygon(0% 20%, 85% 5%, 100% 90%, 15% 100%);
    background: radial-gradient(120% 120% at 50% 60%, rgba(0,200,255,0.30), rgba(0,80,255,0.16) 60%, transparent 100%);
}

@keyframes shapeBreath {
    0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0.5deg); opacity: 0.16; }
    50%  { transform: translate3d(1.2%, -0.8%, 0) scale(1.06) rotate(-1deg); opacity: 0.24; }
    100% { transform: translate3d(0, 0, 0) scale(1) rotate(0.5deg); opacity: 0.16; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title-en {
        font-size: 1.8rem;
        white-space: nowrap;
    }
    
    .hero-title-cn {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 70px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }

    .footer-logo {
        height: 80px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .company-stats {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
