:root {
    --primary-color: #8a7bff;
    --primary-hover: #635bff;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --bg-dark: #0f0f1b;
    --bg-darker: #0a0a14;
    --card-bg: #1a1a2e;
    --white: #ffffff;
    --container-width: 1100px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Three.js Canvas Container */
#three-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
    pointer-events: none;
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 27, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    /* 添加微妙的渐变背景 */
    background: linear-gradient(135deg, rgba(15, 15, 27, 0.95) 0%, rgba(10, 10, 20, 0.95) 100%);
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    /* 滚动时使用更深的渐变 */
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(5, 5, 12, 0.98) 100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px; /* 增加一点间距 */
    font-weight: 800; /* 加粗字体 */
    font-size: 1.6rem; /* 稍微增大字体 */
    color: var(--heading-color);
    transition: var(--transition-fast);
    position: relative;
}

.logo:hover {
    transform: translateY(-2px); /* 增强悬停效果 */
    text-shadow: 0 0 10px rgba(138, 123, 255, 0.5); /* 添加文字发光效果 */
}

.logo img {
    height: 34px; /* 稍微增大logo尺寸 */
    /* 移除filter效果，因为SVG已内置渐变和发光 */
    /* filter: brightness(0) invert(1); */
    transition: var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05); /* logo悬停时轻微放大 */
}

.nav-links {
    display: flex;
    gap: 35px; /* 增加链接间距 */
    align-items: center;
}

.nav-links a {
    font-weight: 600; /* 加粗链接文字 */
    color: var(--text-color);
    position: relative;
    padding: 8px 0; /* 增加内边距 */
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px); /* 链接悬停时上移 */
}

.nav-links a:hover::after {
    width: 100%;
}

/* 添加导航链接间的分割线（仅在非移动端显示） */
.nav-links a:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -17px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: var(--transition-fast);
}

.nav-links a:hover::before {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 6px;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(150deg, var(--bg-darker) 15%, var(--bg-dark) 70%, var(--bg-darker) 94%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--heading-color);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-visual {
    flex: 1;
    animation: fadeInRight 1s ease-out 0.2s both;
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.hero-visual img:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(138, 123, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 91, 255, 0.4);
}

.btn-secondary {
    color: var(--primary-color);
    margin-left: 15px;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    animation: fadeIn 0.8s ease-out;
}

.bg-light {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    color: var(--heading-color);
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Brand Story Section */
.brand-story-section {
    padding: 120px 0;
}

.story-grid {
    gap: 80px;
}

.story-content {
    animation: fadeInUp 0.8s ease-out;
}

.story-intro {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0.9;
}

.story-timeline {
    margin-bottom: 40px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 20px;
}

.timeline-year {
    min-width: 60px;
    background: var(--card-bg);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    border: 1px solid rgba(138, 123, 255, 0.3);
}

.timeline-content h4 {
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    opacity: 0.85;
    line-height: 1.6;
}

.story-mission h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.story-mission p {
    opacity: 0.9;
    line-height: 1.7;
}

.story-visual {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.story-visual img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.story-visual img:hover {
    transform: scale(1.02);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-icon {
    margin-bottom: 20px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2);
}

.stat-icon img {
    height: 48px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

/* Client Logos */
.client-logos {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.logo-placeholder {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    text-align: center;
}

/* Testimonials */
.testimonial-card {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Grid */
.grid {
    display: grid;
    gap: 40px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-6 {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.align-center {
    align-items: center;
}

/* Cards */
.card {
    padding: 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.card-icon {
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon img {
    height: 48px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--heading-color);
    font-weight: 600;
}

/* Feature List */
.feature-list {
    margin-top: 30px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.feature-list li:hover {
    transform: translateX(5px);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    gap: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex-shrink: 0;
}

.feature-image img {
    width: 80px;
    height: 80px;
}

.feature-content h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.5rem;
}

.feature-content p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.feature-bullets {
    list-style: none;
    padding-left: 0;
}

.feature-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Contact Box */
.contact-box {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-card {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.full-width {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* Legal Pages */
body.legal-page {
    background-color: var(--bg-dark);
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-text h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--heading-color);
}

.content-text h2 {
    color: var(--heading-color);
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.content-text h3 {
    color: var(--heading-color);
    margin: 25px 0 15px 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.content-text p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.content-text ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-text li {
    margin-bottom: 10px;
    opacity: 0.9;
}

.highlight {
    background: rgba(138, 123, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:hover::after {
    width: 100%;
}

/* Scroll animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 20px;
        background: var(--bg-dark);
        padding: 20px;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none; /* 移动端不显示底部线条 */
    }
    
    .nav-links a::before {
        display: none; /* 移动端不显示分割线 */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .contact-box {
        padding: 30px;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .container {
        padding: 0 15px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
}