/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    scroll-padding-top: 70px; /* 适配固定导航栏 */
}

:root {
    --primary-color: #0d6efd;
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --light-bg: #f8f9fa;
}

.color-scheme-2 {
    --primary-color: #198754;
    --primary-gradient: linear-gradient(135deg, #198754 0%, #146c43 50%, #0f5132 100%);
    --secondary-color: #6c757d;
    --accent-color: #fd7e14;
    --light-bg: #f8f9fa;
}

.color-scheme-3 {
    --primary-color: #6f42c1;
    --primary-gradient: linear-gradient(135deg, #6f42c1 0%, #5a32a3 50%, #4a148c 100%);
    --secondary-color: #6c757d;
    --accent-color: #dc3545;
    --light-bg: #f8f9fa;
}

.color-scheme-4 {
    --primary-color: #fd7e14;
    --primary-gradient: linear-gradient(135deg, #fd7e14 0%, #e8680f 50%, #c9550a 100%);
    --secondary-color: #6c757d;
    --accent-color: #0d6efd;
    --light-bg: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 英雄区样式 */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    opacity: 0.9;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-primary-subtle {
    background-color: rgba(var(--primary-color-rgb, 13, 110, 253), 0.1) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.icon-circle.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-primary-subtle {
    background-color: rgba(var(--primary-color-rgb, 13, 110, 253), 0.1) !important;
    color: var(--primary-color) !important;
}

/* 章节样式 */
section {
    padding: 80px 0;
}

/* 卡片悬停效果 */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 产品类别卡片 */
.category-card {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* 服务卡片 */
.service-card {
    border-left: 4px solid #0d6efd;
}

/* 服务卡片前台样式 */
.service-card-front {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef !important;
}

.service-card-front:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-color: #0d6efd !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 60px 0;
    }

    section {
        padding: 60px 0;
    }

    .display-5 {
        font-size: 2.5rem;
    }
}

.about-slide { display: none; }
.about-slide.about-slide-active { display: block; }
.about-item-slide { display: none; }
.about-item-slide.about-item-slide-active { display: block; }

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-white-20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

.main-contact-card {
    border-radius: 2rem !important;
    overflow: hidden;
}

.main-contact-card .bg-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
}

.main-contact-card .form-control,
.main-contact-card .form-select {
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.main-contact-card .form-control:focus,
.main-contact-card .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.1);
}

.main-contact-card .form-control-lg {
    min-height: calc(1.5em + 1.5rem + 4px);
}

.main-contact-card .btn-primary {
    border-radius: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-contact-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.contact-info-card {
    border-radius: 1.5rem !important;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.contact-icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.contact-info-card:nth-child(1) .contact-icon { animation: float 3s ease-in-out infinite; }
.contact-info-card:nth-child(2) .contact-icon { animation: float 3s ease-in-out infinite 0.2s; }
.contact-info-card:nth-child(3) .contact-icon { animation: float 3s ease-in-out infinite 0.4s; }
.contact-info-card:nth-child(4) .contact-icon { animation: float 3s ease-in-out infinite 0.6s; }

@media (max-width: 768px) {
    .main-contact-card .bg-primary {
        padding: 2rem !important;
    }
    .main-contact-card .p-5 {
        padding: 2rem !important;
    }
    .display-4 {
        font-size: 2.5rem;
    }
}

/* 按钮样式增强 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* 图标样式 */
.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
}

/* 联系我们卡片 */
.card {
    border-radius: 15px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 2rem 1.5rem;
    border-radius: 0 0 15px 15px;
}

/* 模态框中的产品卡片 */
.modal .card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 模态框滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 新增现代化样式 */

/* 英雄区增强样式 */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    border: 2px dashed rgba(255,255,255,0.3);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    z-index: 3;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* 产品卡片样式 */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.product-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-meta {
    margin-top: auto;
}

/* 为什么选择我们样式 */
.why-choose-content {
    position: relative;
    z-index: 2;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-choose-image {
    position: relative;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

/* 客户评价样式 */
.testimonial-card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.rating {
    margin-bottom: 1rem;
}

.client-info {
    margin-top: 1rem;
}

/* 服务卡片样式 */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 联系表单样式 */
.contact-form {
    border-radius: 20px;
    overflow: hidden;
}

#contact {
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 60%, #f8f9fa 100%);
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 450px at 15% 10%, rgba(13, 110, 253, 0.12), transparent 55%),
                radial-gradient(900px 450px at 85% 20%, rgba(25, 135, 84, 0.10), transparent 55%),
                radial-gradient(900px 450px at 60% 90%, rgba(13, 202, 240, 0.10), transparent 55%);
    pointer-events: none;
}

#contact .container {
    position: relative;
}

#contact .contact-form h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

#contact .form-control,
#contact .form-select {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    padding: 0.75rem 1rem;
}

#contact .form-control:focus,
#contact .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.16);
}

#contact textarea.form-control {
    min-height: 140px;
}

#contact .contact-form .btn {
    border-radius: 12px;
}

#contact .contact-info .rounded-circle {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.contact-info .info-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contact-info .info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 悬停提升效果 */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }

    .hero-stats .row {
        gap: 1rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .floating-card {
        position: static;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-wave {
        display: none;
    }

    .features-list .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .why-choose-content,
    .why-choose-image {
        text-align: center;
    }

    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .hero-stats .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-card .card-body {
        padding: 1.5rem 1rem;
    }

    .service-card .card-body {
        padding: 1.5rem 1rem;
    }
}

/* 动画增强 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 随机配色方案支持 */
.color-scheme-2 .hero-section,
.color-scheme-2 .bg-primary,
.color-scheme-2 .icon-circle.bg-primary {
    background: var(--primary-gradient) !important;
}

.color-scheme-2 .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.color-scheme-2 .text-primary {
    color: var(--primary-color) !important;
}

.color-scheme-2 .bg-primary-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.color-scheme-2 .badge.bg-primary-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: var(--primary-color) !important;
}

.color-scheme-3 .hero-section,
.color-scheme-3 .bg-primary,
.color-scheme-3 .icon-circle.bg-primary {
    background: var(--primary-gradient) !important;
}

.color-scheme-3 .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.color-scheme-3 .text-primary {
    color: var(--primary-color) !important;
}

.color-scheme-3 .bg-primary-subtle {
    background-color: rgba(111, 66, 193, 0.1) !important;
}

.color-scheme-3 .badge.bg-primary-subtle {
    background-color: rgba(111, 66, 193, 0.1) !important;
    color: var(--primary-color) !important;
}

.color-scheme-4 .hero-section,
.color-scheme-4 .bg-primary,
.color-scheme-4 .icon-circle.bg-primary {
    background: var(--primary-gradient) !important;
}

.color-scheme-4 .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.color-scheme-4 .text-primary {
    color: var(--primary-color) !important;
}

.color-scheme-4 .bg-primary-subtle {
    background-color: rgba(253, 126, 20, 0.1) !important;
}

.color-scheme-4 .badge.bg-primary-subtle {
    background-color: rgba(253, 126, 20, 0.1) !important;
    color: var(--primary-color) !important;
}

/* 加载动画 */
.loading {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}
