:root {
    --primary: #2563eb;
    /* Royal Blue */
    --primary-dark: #1d4ed8;
    --secondary: #4f46e5;
    /* Indigo */
    --accent: #0f172a;
    /* Slate Black */
    --bg-dark: #ffffff;
    /* Clean White */
    --bg-darker: #f8fafc;
    /* Slate 50 */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.05);
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(79, 70, 229, 0.1));
    --shadow-glow: 0 4px 20px rgba(37, 99, 235, 0.15);
    /* Soft Blue Shadow */
    --border-color: #e2e8f0;
}

/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    letter-spacing: 0.02em;
    /* Better reading for Chinese */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 24px;
    color: var(--text-muted);
    text-align: justify;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: none;
}

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

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

.section-header h2 {
    font-size: 2.6rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-main);
    box-shadow: 0 0 10px var(--primary);
}

.section-header p {
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-darker);
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Header & Nav */
.header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滚动后的精致毛玻璃效果 */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow:
        0 1px 3px rgba(37, 99, 235, 0.04),
        0 4px 12px rgba(37, 99, 235, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.header.scrolled .logo a {
    color: var(--primary);
}

.header.scrolled .navbar a {
    color: var(--text-main);
}

.header.scrolled .navbar a:hover {
    color: var(--primary);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.navbar ul {
    display: flex;
}

.navbar li {
    margin-left: 40px;
}

.navbar a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Canvas Styles */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.tech-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(79, 70, 229, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Partners Strip */
.partners-strip {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

.partners-strip p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    opacity: 0.7;
    color: var(--text-muted);
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.logo-item {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    cursor: default;
}

.logo-item:hover {
    color: var(--primary);
}

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

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.about-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-box {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-box:hover {
    transform: translateY(-5px);
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.feature-box h3 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-box h3 i {
    color: var(--primary);
}

/* Process Section (New) */
.bg-darker-alt {
    background-color: var(--bg-darker);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 10px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-content p {
    font-size: 0.9rem;
}

.step-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin-top: 30px;
}

/* Services Section */
.bg-dark {
    background-color: #fff;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-main);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}

.info-item h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: #f8fafc;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accordion (Knowledge Hub) */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-category {
    margin-bottom: 40px;
}

.accordion-category h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    background: rgba(0, 242, 255, 0.05);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.accordion-header .icon {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
    color: var(--secondary);
}

.accordion-header:hover h4 {
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--text-muted);
}

.accordion-item.active .accordion-body {
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
    transition: max-height 0.3s ease-in;
}

.accordion-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #fff;
        transition: 0.3s;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

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

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .navbar {
        position: fixed;
        left: -100%;
        top: 80px;
        width: 100%;
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--glass-border);
        transition: 0.3s;
        text-align: center;
        padding: 40px 0;
    }

    .navbar.active {
        left: 0;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 20px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .step-line {
        width: 2px;
        height: 40px;
        flex: none;
        margin: 10px 0;
    }
}