/* ========================================
   QinCheng Tech - Main Stylesheet
   High-end Tech Company Website - Premium Edition
======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent: #22d3ee;
    --neon-blue: #00f5ff;
    --neon-purple: #bf00ff;
    --dark: #030712;
    --dark-light: #111827;
    --dark-medium: #1f2937;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-neon: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5);
    --glow-neon: 0 0 30px rgba(0, 245, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 0.5s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

/* ========== Particles Background ========== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== Header & Navigation ========== */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-neon);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    box-shadow: var(--glow-neon);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

/* ========== Hero Banner ========== */
.hero-banner {
    position: relative;
    margin-top: 0;
}

.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.8);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* Carousel Controls */
.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-banner .carousel-control-prev {
    left: 30px;
}

.hero-banner .carousel-control-next {
    right: 30px;
}

.hero-banner .carousel-control-prev:hover,
.hero-banner .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

.hero-banner .carousel-indicators {
    bottom: 30px;
}

.hero-banner .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: all 0.3s ease;
}

.hero-banner .carousel-indicators button.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.scroll-indicator a {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: bounce 2s ease-in-out infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

.scroll-indicator a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Floating Elements */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    right: 10%;
    animation: float-shape 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    left: 5%;
    animation: float-shape 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--neon-purple);
    top: 50%;
    left: 50%;
    animation: float-shape 6s ease-in-out infinite;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ========== Buttons ========== */
.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.btn-glow {
    background: var(--gradient-neon);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    color: var(--dark);
    box-shadow: var(--glow-neon);
    transition: all 0.4s ease;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.5);
}

/* ========== Sections ========== */
.section {
    padding: 7rem 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--dark);
}

.section-light {
    background: var(--dark-light);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-neon);
    border-radius: 2px;
    box-shadow: var(--glow-neon);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ========== Page Header ========== */
.page-header {
    padding: 5rem 0 5rem;
    background: var(--dark);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
}

.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
    margin: 0;
    position: relative;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.page-header .breadcrumb-item a:hover {
    color: var(--neon-blue);
}

.page-header .breadcrumb-item.active {
    color: var(--neon-blue);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ========== Service Cards - Glass Morphism ========== */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--glow-primary);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: var(--gray-light);
    margin: 0;
    line-height: 1.7;
}

.service-card.dark-mode {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card.dark-mode h3 {
    color: var(--white);
}

.service-card.dark-mode p {
    color: var(--gray-light);
}

/* ========== Case Cards ========== */
.case-card {
    background: var(--dark-light);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--glass-border);
}

.case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(99, 102, 241, 0.3);
}

.case-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.15);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.9), transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.case-card:hover .case-overlay {
    opacity: 1;
    pointer-events: auto;
    background: rgba(3, 7, 18, 0.85);
}

.case-info {
    padding: 1.5rem;
    background: var(--dark-light);
}

.case-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.case-info p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-category {
    display: inline-block;
    background: var(--gradient-neon);
    color: var(--dark);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    box-shadow: var(--glow-neon);
}

.case-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
}

/* ========== Cases Filter ========== */
.cases-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    color: var(--gray-light);
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--white);
    background: rgba(99, 102, 241, 0.1);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--glow-primary);
}

/* ========== Tech Grid ========== */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    transition: all 0.4s ease;
    min-width: 130px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.tech-item i {
    font-size: 2.5rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
}

.tech-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}

/* ========== Tech Page ========== */
.tech-category {
    margin-bottom: 4rem;
}

.tech-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.tech-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--glow-primary);
}

.tech-card {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.tech-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
}

.tech-card h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.tech-card p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== Process Timeline ========== */
.process-timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient-neon);
    opacity: 0.3;
}

.process-item {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.process-item:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.process-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.3));
}

.process-item h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.process-item p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* ========== Contact Page ========== */
.contact-page {
    background: var(--dark);
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-info .lead {
    color: var(--gray-light);
}

.info-list {
    margin-top: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.info-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

.info-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-content p {
    margin: 0;
    font-weight: 500;
    color: var(--white);
}

.info-content a {
    color: var(--white);
}

.info-content a:hover {
    color: var(--neon-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.4s ease;
    color: var(--gray-light);
}

.social-link:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.contact-form-wrapper {
    background: var(--dark-light);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

.contact-form-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
}

.contact-form .form-label {
    color: var(--gray-light);
    font-weight: 500;
}

.contact-form .form-control {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    color: var(--white);
}

.contact-form .form-control::placeholder {
    color: var(--gray);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: var(--dark);
    color: var(--white);
}

/* ========== Case Detail ========== */
.case-detail-page {
    background: var(--dark);
}

.case-main-image img {
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.case-content h2,
.case-content h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.case-body {
    margin-top: 2rem;
    line-height: 1.9;
    color: var(--gray-light);
}

.case-body img {
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid var(--glass-border);
}

.case-gallery img {
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
}

.case-gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.case-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--white);
}

.project-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.project-info-list li:last-child {
    border-bottom: none;
}

.project-info-list .label {
    color: var(--gray);
}

.project-info-list .value {
    font-weight: 600;
    color: var(--white);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--primary);
    color: var(--white);
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    position: relative;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-blue);
    padding-left: 8px;
}

.footer .text-muted {
    color: var(--gray-light) !important;
}

/* ========== Animations ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Glow text effect */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

/* Typing cursor effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--neon-blue);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: var(--dark-light);
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-neon);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* Stats counter */
.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ========== Responsive ========== */
@media (max-width: 991px) {
    .hero-banner .carousel,
    .hero-banner .carousel-inner,
    .hero-banner .carousel-item {
        height: 80vh;
        min-height: 500px;
    }

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

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .hero-banner .carousel-control-prev {
        left: 15px;
    }

    .hero-banner .carousel-control-next {
        right: 15px;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .hero-banner .carousel,
    .hero-banner .carousel-inner,
    .hero-banner .carousel-item {
        height: 70vh;
        min-height: 450px;
    }

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

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-banner .carousel-control-prev,
    .hero-banner .carousel-control-next {
        display: none;
    }

    .scroll-indicator {
        bottom: 100px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .process-timeline::before {
        display: none;
    }

    .process-item {
        max-width: 100%;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== Selection ========== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 14px;
}

/* ========== WeChat Float ========== */
.wechat-float {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    transition: all 0.3s ease;
}

.wechat-float:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.5);
}

.wechat-float i {
    font-size: 16px;
}

.wechat-qrcode {
    width:120px;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    padding: 8px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wechat-float:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
}

.wechat-qrcode img {
    display: block;
    width: 800px !important;
    height: auto !important;
    border-radius: 8px;
}

.wechat-qrcode::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--white);
}

/* ========== Lazy Loading Styles ========== */
.lazy-image,
img[data-src] {
    transition: opacity 0.6s ease;
}

.lazy-loading {
    position: relative;
    background: linear-gradient(90deg, #1a233a 25%, #243447 50%, #1a233a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy-loaded {
    background: none;
    animation: none;
}

.lazy-error {
    background: #1a233a;
    animation: none;
    opacity: 0.6;
}

/* 背景图片懒加载 */
.lazy-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease;
}

.lazy-bg-loading {
    background: linear-gradient(90deg, #1a233a 25%, #243447 50%, #1a233a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy-bg-loaded {
    background-size: cover;
    background-position: center;
    animation: none;
}

/* Loading动画 */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 图片容器加载效果 */
.case-image img.lazy-loading::after,
.lazy-image.lazy-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 245, 255, 0.2);
    border-top-color: rgba(0, 245, 255, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

/* 确保图片占位 */
.case-card .case-image img,
.lazy-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lazy-fade-in {
    animation: fadeIn 0.6s ease;
}

