/* 现代化样式增强 */

/* 全局样式优化 */
body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏增强 */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

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

/* 按钮样式增强 */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #3E84C2, #418d49);
    box-shadow: 0 4px 15px rgba(62, 132, 194, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 132, 194, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* 卡片样式增强 */
.card, .panel {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover, .panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 图片样式增强 */
.img-responsive {
    transition: all 0.3s ease;
    border-radius: 10px;
}

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

/* 作品集样式增强 */
.portfolio-block {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-caption {
    background: linear-gradient(135deg, rgba(62, 132, 194, 0.9), rgba(65, 141, 73, 0.9));
    border: none;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.portfolio-caption h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

/* 功能特性样式增强 */
.feature-box {
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-box-icon {
    background: linear-gradient(45deg, #3E84C2, #418d49);
    color: #fff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-box-icon {
    transform: rotate(360deg);
}

/* 价格表样式增强 */
.pricing-table .panel {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.pricing-table .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #3E84C2, #418d49);
}

.pricing-circle {
    background: linear-gradient(45deg, #3E84C2, #418d49);
    box-shadow: 0 10px 30px rgba(62, 132, 194, 0.3);
    transition: all 0.3s ease;
}

.pricing-table .panel:hover .pricing-circle {
    transform: scale(1.1);
}

/* 客户评价样式增强 */
.testimonial {
    position: relative;
    margin-bottom: 30px;
}

.testimonial p {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 30px;
    margin-bottom: 20px;
}

.testimonial p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
}

.testimonial-image img {
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 联系表单样式增强 */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    border-color: #3E84C2;
    box-shadow: 0 0 0 0.2rem rgba(62, 132, 194, 0.25);
    transform: translateY(-2px);
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* 响应式优化 */
@media (max-width: 768px) {
    .feature-box {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .portfolio-block {
        margin-bottom: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .jumbotron .intro {
        padding-top: 60px;
        padding-bottom: 30px;
        min-height: 300px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav li {
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .jumbotron h1 {
        font-size: 28px;
    }
    
    .jumbotron p {
        font-size: 16px;
    }
    
    .feature-box-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
    }
}

/* 加载动画 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3E84C2, #418d49);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2c6393, #2d5a3d);
}

/* 错误图片占位符样式 */
.broken-image {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.broken-image:hover {
    border-color: #3E84C2;
    color: #3E84C2;
}

/* 客户项目样式 */
.client-item {
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.client-item img {
    border-radius: 10px;
    margin-bottom: 15px;
}

.client-item p {
    font-weight: 600;
    color: #333;
    margin: 0;
}