/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根据设计规范的基础样式 */
:root {
    /* 颜色变量 */
    --primary-blue-50: #F0F8FF;
    --primary-blue-100: #E6F3FF;
    --primary-blue-200: #C2E3FF;
    --primary-blue-300: #9DD3FF;
    --primary-blue-400: #54B3FF;
    --primary-blue-500: #4F67FF;
    --primary-blue-600: #3D52CC;
    --primary-blue-700: #2E3E99;
    --primary-blue-800: #1F2966;
    --primary-blue-900: #0F1533;
    
    --neutral-white: #FFFFFF;
    --neutral-gray-50: #F9FAFB;
    --neutral-gray-100: #F3F4F6;
    --neutral-gray-200: #E5E7EB;
    --neutral-gray-300: #D1D5DB;
    --neutral-gray-400: #9CA3AF;
    --neutral-gray-500: #6B7280;
    --neutral-gray-600: #4B5563;
    --neutral-gray-700: #374151;
    --neutral-gray-800: #1F2937;
    --neutral-gray-900: #111827;
    
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-green: #10B981;
    --accent-orange: #F59E0B;
    --accent-red: #EF4444;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-card-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    
    /* 字体 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'SF Pro Display', system-ui, sans-serif;
    --font-mono: 'Fira Code', Monaco, Consolas, monospace;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
    
    /* 字体重量 */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* 行高 */
    --line-tight: 1.25;
    --line-normal: 1.5;
    --line-relaxed: 1.75;
    
    /* 间距 */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* 圆角 */
    --radius-none: 0;
    --radius-sm: 0.125rem;
    --radius-base: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* 阴影 */
    --shadow-none: none;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 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);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 基础样式 */
body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--line-normal);
    color: var(--neutral-gray-800);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Ma Shan Zheng 字体 */
.ma-shan-zheng-regular {
    font-family: "Ma Shan Zheng", cursive;
    font-weight: 400;
    font-style: normal;
}

/* Long Cang 字体 */
.long-cang-regular {
    font-family: "Long Cang", cursive;
    font-weight: 400;
    font-style: normal;
}

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

/* Resizable Navbar - 基于 Aceternity UI */
.resizable-navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 20px;
}

.resizable-navbar {
    width: 100%;
    max-width: 1200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Navigation */
.nav-body {
    position: relative;
    z-index: 60;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    min-width: 800px;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: flex-start;
    border-radius: 9999px;
    background: transparent;
    padding: 8px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-body.visible {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 24px rgba(34, 42, 53, 0.06),
        0 1px 1px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(34, 42, 53, 0.04),
        0 0 4px rgba(34, 42, 53, 0.08),
        0 16px 68px rgba(47, 48, 55, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    width: 40%;
    transform: translateY(0);
}

/* Logo */
.navbar-logo {
    position: relative;
    z-index: 20;
    margin-right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
    color: black;
}

.logo-image {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-lg);
}

.logo-text {
    font-weight: 500;
    color: black;
}

/* Navigation Items */
.nav-items {
    position: absolute;
    inset: 0;
    display: none;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(113, 113, 122);
    transition: all 0.2s;
}

.nav-items:hover {
    color: rgb(39, 39, 42);
}

.nav-item {
    position: relative;
    padding: 8px 16px;
    color: rgb(82, 82, 91);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover {
    color: rgb(39, 39, 42);
}

.nav-item.active {
    color: var(--primary-blue-500);
}

.nav-item.hovered {
    position: relative;
}

.nav-item.hovered::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: rgb(243, 244, 246);
}

.nav-item span {
    position: relative;
    z-index: 20;
}



/* Mobile Navigation */
.mobile-nav {
    position: relative;
    z-index: 50;
    margin: 0 auto;
    display: flex;
    width: 100%;
    max-width: calc(100vw - 32px);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.visible {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 24px rgba(34, 42, 53, 0.06),
        0 1px 1px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(34, 42, 53, 0.04),
        0 0 4px rgba(34, 42, 53, 0.08),
        0 16px 68px rgba(47, 48, 55, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    width: 90%;
    padding: 12px;
    border-radius: 4px;
    transform: translateY(0);
}

.mobile-nav-header {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: black;
    transition: all 0.3s;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 50;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    border-radius: 8px;
    background: white;
    padding: 32px 16px;
    box-shadow: 
        0 0 24px rgba(34, 42, 53, 0.06),
        0 1px 1px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(34, 42, 53, 0.04),
        0 0 4px rgba(34, 42, 53, 0.08),
        0 16px 68px rgba(47, 48, 55, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.mobile-menu.show {
    display: flex;
}

.mobile-nav-item {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 8px 0;
}



/* 响应式 */
@media (min-width: 1024px) {
    .nav-body {
        display: flex;
    }
    
    .nav-items {
        display: flex;
    }
    
    .mobile-nav {
        display: none;
    }
}

@media (max-width: 1023px) {
    .nav-body {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue-500) 0%, var(--primary-blue-600) 100%);
    color: var(--neutral-white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: var(--neutral-white);
    color: var(--neutral-gray-700);
    border: 1px solid var(--neutral-gray-200);
    font-weight: var(--font-medium);
}

.btn-secondary:hover {
    background: var(--neutral-gray-50);
}

.btn-ghost {
    background: transparent;
    color: var(--neutral-gray-500);
    font-weight: var(--font-medium);
}

.btn-ghost:hover {
    background: rgba(75, 85, 99, 0.05);
}

.btn-full {
    width: 100%;
}

/* 英雄区 */
.hero {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 103, 255, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #2d1b69 30%, #4F67FF 70%, #667eea 100%);
    padding: 120px 0;
    margin-top: 80px;
    color: var(--neutral-white);
    text-align: center;
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

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

.beams-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    line-height: var(--line-tight);
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--text-xl);
    line-height: var(--line-relaxed);
    margin-bottom: var(--space-12);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--neutral-gray-800);
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--neutral-gray-600);
}

/* 服务区 */
.services {
    padding: var(--space-20) 0;
    background: var(--bg-secondary);
}

/* Marquee Container */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: var(--space-4) 0;
    margin: 0 -24px;
    --marquee-duration: 40s;
    --marquee-gap: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.marquee {
    display: flex;
    gap: var(--marquee-gap);
}

.marquee-forward {
    animation: marquee var(--marquee-duration) linear infinite;
}

.marquee-reverse {
    animation: marquee-reverse var(--marquee-duration) linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    gap: var(--marquee-gap);
    padding: 0 24px;
    min-width: max-content;
}

/* Marquee Animations */
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--marquee-gap)));
    }
}

@keyframes marquee-reverse {
    from {
        transform: translateX(calc(-100% - var(--marquee-gap)));
    }
    to {
        transform: translateX(0);
    }
}

.service-card {
    flex: 0 0 356px;
    height: 200px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(229, 231, 235, 0.3);
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
}

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

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card:active {
    transform: translateY(-2px);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
    display: block;
}









/* 页脚 */
.footer {
    background: var(--neutral-gray-800);
    color: var(--neutral-gray-200);
    padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-content {
    margin-bottom: var(--space-12);
}



.footer-links {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-12);
    max-width: 800px;
    margin: 0 auto;
}



.services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.services-column {
    list-style: none;
}

.services-column li {
    margin-bottom: var(--space-3);
    display: block;
    width: auto;
}

.services-column li a {
    color: var(--neutral-gray-400);
    text-decoration: none;
    transition: var(--transition-base);
    display: block;
    white-space: nowrap;
}

.services-column li a:hover {
    color: var(--neutral-white);
}

.footer-section h4 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--neutral-white);
    margin-bottom: var(--space-4);
}

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

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section ul li a {
    color: var(--neutral-gray-400);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--neutral-white);
}

/* 联系方式部分特殊样式 */
.footer-section:last-child {
    padding-left: var(--space-4);
}

.footer-section:last-child ul li {
    color: var(--neutral-gray-400);
    line-height: var(--line-relaxed);
    margin-bottom: var(--space-4);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-gray-700);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--neutral-gray-400);
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    

    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .services-columns {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero {
        padding: var(--space-16) 0;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .services {
        padding: var(--space-16) 0;
    }
    
    .service-card {
        flex: 0 0 240px;
        height: 160px;
    }
    
    .section-header h2 {
        font-size: var(--text-3xl);
    }
    
    .services-columns {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-section:last-child {
        padding-left: 0;
    }
    
    .footer-section:last-child ul li {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4);
    }

}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .section-header h2 {
        font-size: var(--text-2xl);
    }
    
    .service-card {
        flex: 0 0 200px;
        height: 140px;
    }
    

}

/* 平滑滚动增强 */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .contact-item,
    .btn {
        transition: all var(--transition-base);
    }
} 

/* Aurora Text Effect */
.aurora-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #FF0080, #7928CA, #0070F3, #38bdf8, #FF0080);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-gradient 8s ease-in-out infinite;
}

@keyframes aurora-gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 200% 50%;
    }
    75% {
        background-position: 100% 50%;
    }
}
