/* ===== CSS Variables ===== */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #1F2937;
    --dark-light: #374151;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --light: #F3F4F6;
    --lighter: #F9FAFB;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-secondary: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

body.zh {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.logo-text {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-cn {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-light);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary);
    color: var(--white);
}

.lang-zh {
    display: none;
}

body.zh .lang-en {
    display: none;
}

body.zh .lang-zh {
    display: inline;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--lighter) 0%, var(--white) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-light);
    top: -200px;
    right: -200px;
    opacity: 0.3;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    opacity: 0.2;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.875rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--lighter) 0%, var(--white) 100%);
}

.page-hero-small {
    padding: 140px 24px 60px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
}


/* ===== Features Section ===== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9375rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Stats Section ===== */
.stats {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 600;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===== Services Preview ===== */
.services-preview {
    background: var(--lighter);
}

.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
}

.service-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
}

.service-content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover {
    gap: 8px;
}

@media (max-width: 640px) {
    .service-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .service-number {
        font-size: 2.5rem;
    }
}

/* ===== CTA Section ===== */
.cta {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* ===== About Page ===== */
.about-intro {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 16px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: var(--lighter);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    width: 120px;
    height: 120px;
    color: var(--primary-light);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===== Mission Vision ===== */
.mission-vision {
    background: var(--lighter);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mv-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.mv-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.mv-card h3 {
    margin-bottom: 16px;
}

.mv-card p {
    color: var(--gray);
}

@media (max-width: 768px) {
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Industries ===== */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.industry-card {
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.industry-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius);
}

.industry-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.industry-card h4 {
    font-size: 0.9375rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar svg {
    width: 48px;
    height: 48px;
    color: var(--gray-light);
}

.team-card h4 {
    margin-bottom: 8px;
}

.team-card p {
    color: var(--gray);
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Services Page ===== */
.services-main {
    padding: 80px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-number-lg {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 16px;
}

.service-detail-content h2 {
    margin-bottom: 20px;
}

.service-detail-content p {
    color: var(--gray);
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--dark-light);
    border-bottom: 1px solid var(--light);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
}

.service-features li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.service-detail-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.visual-card svg {
    width: 120px;
    height: 120px;
    color: var(--white);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail.reverse {
        direction: ltr;
    }

    .service-number-lg {
        font-size: 3rem;
    }
}

/* ===== Process ===== */
.process {
    background: var(--lighter);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--primary-light);
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.step-content h3 {
    margin-bottom: 12px;
}

.step-content p {
    color: var(--gray);
    font-size: 0.9375rem;
}

@media (max-width: 1024px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

/* ===== Portfolio Page ===== */
.portfolio-filter {
    padding: 40px 0;
    background: var(--white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--light);
    border: none;
    border-radius: 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.portfolio-grid-section {
    padding: 60px 0 100px;
    background: var(--lighter);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--white);
    opacity: 0.8;
}

.portfolio-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.portfolio-category {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.portfolio-content {
    padding: 24px;
}

.portfolio-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.portfolio-content p {
    color: var(--gray);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 4px 12px;
    background: var(--light);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--dark-light);
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Testimonials ===== */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
    background: var(--lighter);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    color: var(--dark-light);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar svg {
    width: 24px;
    height: 24px;
    color: var(--gray-light);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--gray);
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Page ===== */
.contact-main {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-text p,
.contact-text a {
    color: var(--gray);
    font-size: 0.9375rem;
}

.contact-text a:hover {
    color: var(--primary);
}

.business-hours h4 {
    margin-bottom: 16px;
}

.business-hours ul li {
    padding: 8px 0;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--light);
}

.business-hours ul li span:first-child {
    color: var(--dark-light);
}

.contact-form-wrapper {
    background: var(--lighter);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form h3 {
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ===== Map Section ===== */
.map-section {
    padding: 0 0 100px;
}

.map-placeholder {
    height: 400px;
    background: var(--lighter);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
}

.map-content svg {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 16px;
}

.map-content h3 {
    margin-bottom: 8px;
}

.map-content p {
    color: var(--gray);
}


/* ===== Legal Pages ===== */
.legal-content {
    padding: 60px 0;
}

.legal-content-continued {
    padding-top: 0;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.legal-section p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section ul li {
    color: var(--gray);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-contact {
    background: var(--lighter);
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 24px;
}

.legal-contact p {
    margin-bottom: 8px;
}

.legal-contact a {
    color: var(--primary);
}

.legal-contact a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #818CF8 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .logo-cn {
    color: var(--gray-light);
}

.footer-desc {
    color: var(--gray-light);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--gray-light);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--gray-light);
    font-size: 0.9375rem;
}

.footer-contact ul li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact ul li a {
    color: var(--gray-light);
}

.footer-contact ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--white);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none; }
.visible { display: block; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: var(--white);
}
