/* ========================================
   致美设计 EDA | Elegance Design Association
   Custom Styles
   ======================================== */

/* 基础 */
body {
    font-family: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* 导航栏滚动状态 */
#navbar {
    transition: all 0.4s ease;
}
#navbar.scrolled {
    background: rgba(26, 44, 78, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    padding-top: 10px;
    padding-bottom: 10px;
}
#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* 移动端菜单 */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Hero 轮播 */
.carousel-slide {
    transition: opacity 1.2s ease-in-out;
}

/* 滚动引导鼠标动画 */
.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    position: relative;
    animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #E8A83E;
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* 作品集悬停 */
.portfolio-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 服务卡片 */
.service-card {
    border: 1px solid transparent;
    transition: all 0.4s ease;
}
.service-card:hover {
    border-color: rgba(232, 168, 62, 0.3);
    transform: translateY(-4px);
}

/* 筛选按钮 */
.filter-btn {
    transition: all 0.3s ease;
}
.filter-btn.active {
    background-color: #1A2C4E;
    color: #fff;
    border-color: #1A2C4E;
}

/* 表单输入 */
input, textarea {
    transition: all 0.3s ease;
}
input:focus, textarea:focus {
    border-color: #E8A83E !important;
    box-shadow: 0 0 0 2px rgba(232, 168, 62, 0.15);
}

/* 数字滚动动画 */
.counter {
    display: inline-block;
}

/* AOS 补充 */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f0eb;
}
::-webkit-scrollbar-thumb {
    background: #1A2C4E;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8A83E;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .scroll-mouse {
        display: none;
    }
    h1 {
        font-size: 2.2rem !important;
    }
    h2 {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* 打印 */
@media print {
    #navbar, footer, .contact-form, #prevSlide, #nextSlide {
        display: none;
    }
}
