/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Exact LANCEN Logo Colors */
    --primary-teal: #5CBDC2;
    --primary-gold: #F4C543;
    --navy-blue: #1A2238;
    --light-navy: #2C3548;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;
    --text-primary: #1A2332;
    --text-secondary: #6C757D;
    
    /* Gradients - Matching LANCEN Logo Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-gold) 100%);
    --gradient-secondary: linear-gradient(45deg, var(--primary-teal) 0%, var(--primary-gold) 50%, var(--navy-blue) 100%);
    --gradient-dark: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing - Responsive */
    --section-padding: clamp(60px, 12vw, 120px) 0;
    --container-padding: 0 clamp(16px, 4vw, 24px);
    --border-radius: 12px;
    --border-radius-large: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.04);
    --shadow-md: 0 8px 32px rgba(26, 35, 50, 0.08);
    --shadow-lg: 0 16px 64px rgba(26, 35, 50, 0.12);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Touch targets */
    --touch-target: 44px;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-gray);
    overflow-x: hidden;
    /* 优化移动端滚动 */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--medium-gray);
    box-shadow: 0 2px 12px rgba(26, 35, 50, 0.06);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px clamp(16px, 4vw, 24px);
    min-height: 70px;
}

.nav-logo .logo-small {
    height: clamp(32px, 8vw, 40px);
    width: auto;
    /* 白色背景透明化处理 */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 2px 4px rgba(26, 34, 56, 0.1));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(16px, 3vw, 32px);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
}

.nav-menu a:hover {
    color: var(--primary-teal);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

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

.lang-switch {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    min-height: var(--touch-target);
}

.lang-switch::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: var(--touch-target);
    height: var(--touch-target);
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* 动态视口高度，移动端更准确 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f1f3f4 0%, #f8f9fa 50%, #e9ecef 100%);
    overflow: hidden;
    padding-top: 70px; /* 为固定导航留出空间 */
}

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 clamp(16px, 4vw, 24px);
}

.hero-logo {
    margin-bottom: clamp(32px, 8vw, 48px);
    animation: fadeInUp 0.8s ease-out;
}

.main-logo {
    height: clamp(120px, 25vw, 200px);
    width: auto;
    max-width: 90vw;
    /* 白色背景透明化处理 */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 16px 32px rgba(26, 34, 56, 0.15)) drop-shadow(0 4px 8px rgba(26, 34, 56, 0.1));
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: clamp(16px, 4vw, 24px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: clamp(32px, 8vw, 48px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: clamp(12px, 3vw, 16px);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Buttons - 触摸友好 */
.btn {
    padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: clamp(14px, 3.5vw, 16px);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target);
    min-width: 120px;
    /* 防止双击缩放 */
    touch-action: manipulation;
    /* 去除点击高亮 */
    -webkit-tap-highlight-color: transparent;
    /* 提升触摸体验 */
    user-select: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--medium-gray);
}

.btn-secondary:hover,
.btn-secondary:active {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-large {
    padding: clamp(16px, 4vw, 20px) clamp(32px, 8vw, 40px);
    font-size: clamp(16px, 4vw, 18px);
    min-height: 56px;
}

/* Floating Shapes */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
    background: linear-gradient(135deg, var(--primary-teal), rgba(92, 189, 194, 0.8));
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: clamp(80px, 20vw, 150px);
    height: clamp(80px, 20vw, 150px);
    background: linear-gradient(135deg, var(--primary-gold), rgba(244, 197, 67, 0.8));
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: clamp(40px, 12vw, 80px);
    height: clamp(40px, 12vw, 80px);
    background: linear-gradient(135deg, var(--navy-blue), rgba(26, 34, 56, 0.8));
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 12vw, 80px);
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(12px, 3vw, 16px);
    color: var(--text-primary);
    line-height: 1.2;
}

.section-header p {
    font-size: clamp(16px, 4vw, 18px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(24px, 6vw, 32px);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: clamp(32px, 8vw, 48px) clamp(24px, 6vw, 32px);
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.feature-icon {
    width: clamp(56px, 12vw, 64px);
    height: clamp(56px, 12vw, 64px);
    margin: 0 auto clamp(20px, 5vw, 24px);
    color: var(--primary-teal);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(92, 189, 194, 0.3);
}

.feature-icon svg {
    width: clamp(24px, 6vw, 32px);
    height: clamp(24px, 6vw, 32px);
    color: var(--white);
}

.feature-card h3 {
    font-size: clamp(18px, 4.5vw, 20px);
    font-weight: 600;
    margin-bottom: clamp(12px, 3vw, 16px);
    color: var(--text-primary);
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(14px, 3.5vw, 16px);
}

/* Services Section */
.services {
    background: rgba(255, 255, 255, 0.7);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(32px, 8vw, 48px);
}

.service-item {
    position: relative;
    padding: clamp(24px, 6vw, 32px);
    border-radius: var(--border-radius-large);
    background: linear-gradient(135deg, rgba(92, 189, 194, 0.05) 0%, rgba(244, 197, 67, 0.05) 100%);
    border: 1px solid rgba(92, 189, 194, 0.1);
    transition: var(--transition-smooth);
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-number {
    font-size: clamp(36px, 10vw, 48px);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(16px, 4vw, 24px);
    line-height: 1;
}

.service-item h3 {
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 600;
    margin-bottom: clamp(12px, 3vw, 16px);
    color: var(--text-primary);
    line-height: 1.3;
}

.service-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: clamp(14px, 3.5vw, 16px);
}

/* CTA Section */
.cta {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
    padding: clamp(80px, 15vw, 120px) 0;
}

.cta h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: clamp(12px, 3vw, 16px);
    line-height: 1.2;
}

.cta p {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: clamp(24px, 6vw, 32px);
    opacity: 0.9;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: clamp(60px, 12vw, 80px) 0 clamp(24px, 6vw, 32px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(32px, 8vw, 64px);
    margin-bottom: clamp(32px, 8vw, 48px);
}

.footer-logo .logo-small {
    height: clamp(40px, 10vw, 48px);
    width: auto;
    /* 白色背景透明化处理，在深色背景上显示 */
    mix-blend-mode: screen;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(24px, 6vw, 32px);
}

.footer-column h4 {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    margin-bottom: clamp(12px, 3vw, 16px);
    color: var(--primary-teal);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: clamp(6px, 1.5vw, 8px);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: clamp(14px, 3.5vw, 16px);
    min-height: var(--touch-target);
    display: inline-block;
    line-height: 1.4;
}

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

.footer-bottom {
    text-align: center;
    padding-top: clamp(24px, 6vw, 32px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(12px, 3vw, 14px);
}

/* Logo 白色背景透明化的额外处理 */
.logo-transparent {
    background-blend-mode: multiply;
    mix-blend-mode: multiply;
}

/* 如果logo仍有白色背景，可以使用这个class */
.logo-remove-white {
    filter: 
        brightness(1.1) 
        contrast(1.1) 
        drop-shadow(0 4px 8px rgba(26, 34, 56, 0.1));
    mix-blend-mode: multiply;
}

/* Responsive Design - Enhanced Mobile First Approach */

/* Extra Small Devices (phones in portrait, <576px) */
@media (max-width: 575.98px) {
    .hero {
        min-height: calc(100vh - 70px);
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card,
    .service-item {
        margin-bottom: 16px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .nav-menu {
        display: none;
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid #E9ECEF;
        padding: 32px 0;
        z-index: 999;
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu li {
        margin: 16px 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
        border-radius: var(--border-radius);
        margin: 0 16px;
    }
    
    .nav-menu a:hover {
        background: rgba(92, 189, 194, 0.1);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        text-align: center;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-actions {
        gap: 24px;
    }
    
    .btn {
        padding: 18px 36px;
        font-size: 16px;
    }
    
    .btn-large {
        padding: 22px 44px;
        font-size: 18px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .main-logo,
    .nav-logo .logo-small,
    .footer-logo .logo-small {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 100px;
    }
    
    .hero-container {
        padding-top: 20px;
    }
    
    .main-logo {
        height: clamp(80px, 20vw, 120px);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 24px;
    }
}

/* Accessibility & Performance Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .shape {
        animation: none;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* 保持现有的浅色主题，但可以在这里添加深色模式支持 */
}

/* Hover Effects Disabled on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .service-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    .nav-menu a:hover {
        color: var(--text-primary);
    }
    
    .nav-menu a:hover::after {
        width: 0;
    }
}

/* Accessibility Styles */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--navy-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 10001;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.skip-to-main:focus {
    top: 6px;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-menu a:focus,
.hamburger:focus,
.skip-to-main:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Enhanced focus styles for keyboard navigation */
.hamburger:focus {
    background: rgba(92, 189, 194, 0.1);
    border-radius: var(--border-radius);
}

.feature-card:focus,
.service-item:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 4px;
}

/* Loading States */
.loading {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.loaded {
    opacity: 1;
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .floating-shapes,
    .hero-background {
        display: none;
    }
    
    .hero,
    section {
        padding: 20px 0;
    }
    
    .hero-title,
    .section-header h2 {
        color: black !important;
    }
} 