/* 自定义样式 */

/* SVG Logo图标样式 */
.company-logo {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.logo-md {
    width: 2.8rem;
    height: 2.8rem;
    margin-right: -1rem !important;
    margin-bottom: 0.1rem;
}

.logo-sm {
    width: 1.5rem;
    height: 1.5rem;
}

.logo-lg {
    width: 3rem;
    height: 3rem;
}

/* 旧版logo-icon样式保持兼容 */
.logo-icon {
    height: 1.5rem;
    width: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.logo-icon-sm {
    height: 1rem;
    width: auto;
    vertical-align: middle;
}

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    scroll-behavior: smooth;
    padding-top: 4rem;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #0d6efd !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

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

/* Banner区域样式 */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #1a56e0 100%);
    z-index: 1;
}

.banner-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.banner-decoration:nth-child(2) {
    animation-delay: 2s;
}

.banner-decoration:nth-child(3) {
    animation-delay: 4s;
}

/* 添加缺失的float动画关键帧 */
@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(10deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
}

.banner-content {
    padding-top: 80px;
}

.banner-content h1 {
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner-content .lead {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.icon-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-card {
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.image-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-tags .badge {
    font-size: 0.8rem;
    padding: 0.5em 0.8em;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .banner-content {
        padding-top: 100px;
        text-align: center;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-decoration {
        display: none;
    }
    
    .case-card .card-img-top {
        /* height: 200px; */
    }
}

@media (max-width: 767.98px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .image-card {
        margin-top: 2rem;
    }
    
    .case-card .card-img-top {
        /* height: 180px; */
    }
}

/* 特色图标 */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* 案例卡片 */
.case-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.case-card .card-img-top {
    width: 100%;
    /* height: 250px; */
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 联系方式图标 */
.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 底部样式 */
footer a:hover {
    color: #fff !important;
    opacity: 0.8;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .banner-section {
        padding: 100px 0 50px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }
    
    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .banner-section {
        padding: 80px 0 30px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .case-card .card-img-top {
        /* height: 150px; */
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 表单样式优化 */
.form-control-lg {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control-lg:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
footer .text-muted {
    --bs-text-opacity: 1;
    color: #a8a8a8 !important;
}

