/* ========================================
   武汉榆晚禾科技有限公司 - 企业门户网站
   CSS样式文件
   ======================================== */

:root {
    --primary: #0052FF;
    --primary-light: #4D7CFF;
    --secondary: #0F172A;
    --muted: #F1F5F9;
    --muted-text: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(0, 82, 255, 0.25);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spin-slow-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-10px) translateX(5px); }
    50% { transform: translateY(-5px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(3px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes slide-in-left {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-in-right {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow-reverse 8s linear infinite;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-bounce-subtle {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

.logo-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid rgba(0, 82, 255, 0.3);
    animation: spin-slow 12s linear infinite;
}

.logo-inner {
    position: absolute;
    inset: 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-leaf {
    animation: float 3s ease-in-out infinite;
}

.logo-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hamburger-line {
    transition: all 0.3s ease;
}

.nav-indicator {
    transition: all 0.3s ease;
}

.nav-link:hover .nav-indicator {
    width: 100% !important;
}

.animate-on-scroll {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.translate-y-8 {
    transform: translateY(32px);
}

.animate-on-scroll.opacity-0 {
    opacity: 0;
}

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

.animate-on-scroll.translate-x-12 {
    transform: translateX(48px);
}

.animate-on-scroll.-translate-x-12 {
    transform: translateX(-48px);
}

.animate-on-scroll.translate-x-4 {
    transform: translateX(16px);
}

.animate-on-scroll.scale-95 {
    transform: scale(0.95);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

.section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 82, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 82, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.dot-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 32px 32px;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.gradient-blob-primary {
    background: var(--primary);
}

.gradient-blob-light {
    background: var(--primary-light);
}

.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 82, 255, 0.15);
}

.card-hover img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

.icon-hover:hover svg {
    color: white !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: white;
    border-radius: 24px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 24px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-text);
    opacity: 0.6;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transition: all 0.3s ease;
}

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

.scroll-indicator {
    animation: bounce-subtle 2s ease-in-out infinite;
}

.case-card {
    position: relative;
    overflow: hidden;
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    pointer-events: none;
}

.case-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 10;
    transform: translateY(60px);
    transition: transform 0.5s ease;
}

.case-card:hover .case-card-content {
    transform: translateY(0);
}

.case-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.case-card:hover .case-card-overlay {
    opacity: 0.3;
}

.news-card {
    transition: all 0.5s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 82, 255, 0.15);
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        padding-bottom: 5rem;
    }
    
    .hero-stats {
        padding-bottom: 2rem;
    }
    
    #home {
        min-height: auto;
        padding-bottom: 1rem;
    }
    
    .scroll-indicator {
        bottom: 2rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
