/* 通用样式 */
:root {
    --primary-color: #007AD4;
    --primary-dark: #0062A8;
    --secondary-color: #10b981;
    --text-color: #ffffff;
    --light-text: #a0aec0;
    --background: #0a1525;
    --secondary-background: #0f2744;
    --card-background: #1a2c42;
    --light-background: #172a45;
    --border-color: #2a3f5a;
    --tech-background: #091a30;
    --empowering-background: #0c1f36;
    --stats-background: #071220;
    --services-background: #0e2337;
    --features-background: #0d1d32;
    --top-services-background: #112845;
    --stories-background: #0a1729;
    --contact-background: #0b1e33;
    --footer-background: #060e19;
    --about-background: #0c1e34;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --border-radius: 6px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

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

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.highlight {
    color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--background);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo img {
    height: 30px;
}

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

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

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    font-size: 0.9rem;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav ul li a:hover:after, nav ul li a.active:after {
    width: 100%;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.language-switcher select {
    appearance: none;
    background: transparent;
    border: none;
    padding-right: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color);
}

.language-switcher i {
    position: absolute;
    right: 0;
    pointer-events: none;
    color: var(--text-color);
}

.contact-btn {
    margin-left: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/Frame 8.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 21, 37, 0.7), rgba(10, 21, 37, 0.8));
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    color: var(--light-text);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Tech Solutions Section */
.tech-solutions {
    padding: 80px 0;
    background-color: var(--tech-background);
}

.tech-content {
    max-width: 800px;
}

.tech-content h2 {
    margin-bottom: 20px;
}

.tech-content span.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.section-divider {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

.text-section {
    flex: 1;
    max-width: 550px;
}

.image-section {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.image-section img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* Empowering Section */
.empowering {
    padding: 80px 0;
    background-color: var(--empowering-background);
    position: relative;
    overflow: hidden;
}

.empowering-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/image 1.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.9;
}

.empowering-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.empowering-text {
    flex: 0 0 50%;
    max-width: 600px;
    padding: 40px;
    background-color: rgba(13, 29, 49, 0.8);
    border-radius: var(--border-radius);
}

.empowering-text h2 {
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.empowering-text .btn-primary {
    margin-top: 20px;
}

/* Customer Experience Section */
.customer-experience {
    background-color: var(--stats-background);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.customer-experience h2 {
    margin-bottom: 50px;
    color: var(--text-color);
}

.stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    margin: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.stat-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
}

/* Custom Services Section */
.custom-services {
    padding: 80px 0;
    background-color: var(--services-background);
}

.service-header {
    margin-bottom: 50px;
}

.service-header h2 {
    color: var(--text-color);
}

.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-icon {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.card-icon img {
    width: 40px;
    height: 40px;
    filter: invert(29%) sepia(78%) saturate(1936%) hue-rotate(188deg) brightness(96%) contrast(93%);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--light-text);
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Seamless Tech Section */
.seamless-tech {
    padding: 80px 0;
    background-color: var(--features-background);
}

.seamless-header {
    max-width: 800px;
    margin-bottom: 50px;
}

.seamless-header h2, .feature h3 {
    color: var(--text-color);
}

.seamless-header p, .feature p {
    color: var(--light-text);
}

.tech-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

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

/* Top Services Section */
.top-services {
    padding: 80px 0;
    background-color: var(--top-services-background);
    text-align: center;
}

.top-services h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.top-services p {
    margin-bottom: 40px;
    color: var(--light-text);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: var(--card-background);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

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

.service-item h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 20px;
}

.service-item .service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Success Stories Section */
.success-stories {
    padding: 80px 0;
    background-color: var(--stories-background);
}

.success-stories h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
}

.stories-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.stories-slider::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 auto;
    width: calc(33.333% - 20px);
    min-width: 300px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    scroll-snap-align: start;
}

.story-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.story-card a {
    color: var(--primary-color);
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.slider-controls button {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slider-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Consultation Section */
.consultation {
    padding: 80px 0;
    background-color: var(--contact-background);
}

.consultation h2 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.consultation p {
    margin-bottom: 40px;
    color: var(--light-text);
}

form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: var(--card-background);
    color: var(--text-color);
}

textarea {
    height: 150px;
    resize: vertical;
}

form .btn-primary {
    margin-top: 20px;
    min-width: 120px;
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

footer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-color);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: var(--light-text);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

footer ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--card-background);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

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

.menu-toggle span:nth-child(2) {
    top: 9px;
}

.menu-toggle span:nth-child(3) {
    top: 18px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

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

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

/* Image loading animation */
img:not(.loaded) {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* Page loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loading.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .empowering-content {
        flex-direction: column;
    }
    
    .service-cards {
        flex-direction: column;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .tech-features {
        gap: 20px;
    }
    
    .feature {
        flex: 0 0 calc(50% - 20px);
    }
    
    .story-card {
        flex: 0 0 220px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image,
    .about-text {
        max-width: 100%;
    }
    
    .about-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    header .container {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        margin-left: auto;
        z-index: 1001;
    }
    
    .contact-btn {
        display: none;
    }
    
    .language-switcher {
        margin-right: 15px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--secondary-background);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 60px 30px 30px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    /* 在导航菜单底部添加Contact Us按钮 */
    nav.active .mobile-contact-btn {
        display: block;
        margin-top: 30px;
    }
    
    .stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        flex: 0 0 100%;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .story-card {
        flex: 0 0 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* About Us Section */
.about-us {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.about-image {
    flex: 1;
    position: relative;
    max-width: 55%;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: none;
    object-fit: cover;
    height: 480px;
    position: relative;
}

.about-text {
    flex: 1;
    max-width: 45%;
}

.about-text h2 {
    margin-bottom: 25px;
    color: #1a2c42;
    font-size: 2.2rem;
}

.about-text p {
    margin-bottom: 20px;
    color: #526888;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* 表单样式 */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 122, 212, 0.2);
}

/* 表单验证样式 */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
}

.success-message {
    color: #2ecc71;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-contact-btn {
    display: none;
}

.mobile-contact-btn a {
    width: 100%;
    text-align: center;
    margin-top: 20px;
} 