/* Smooth Scrolling */
html { scroll-behavior: smooth; }

/* Typography Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom Hover Underline */
.hover-line { position: relative; display: inline-block; }
.hover-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.hover-line:hover::after { width: 100%; }

/* Card Interactions */
.service-card { transition: all 0.4s ease; }
.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px; /* 加粗彩色底部高亮边框 */
    background-color: #FF4A1C;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::before { width: 100%; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(255, 74, 28, 0.08); }

/* Grayscale to Color Image effect (已修改为：默认彩色 -> 悬停更鲜艳放大) */
.img-reveal {
    transition: filter 0.8s ease, transform 1.2s ease;
}
.group:hover .img-reveal {
    filter: saturate(1.2) contrast(1.1);
    transform: scale(1.05);
}

/* Marquee Animation */
.marquee-wrapper {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 50s linear infinite;
}
.marquee-content:hover { animation-play-state: paused; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Line Drop */
.line-drop {
    animation: lineDrop 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
    transform: scaleY(0);
    transform-origin: top;
}
@keyframes lineDrop {
    to { transform: scaleY(1); }
}