/* 页面加载动画样式 */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 102, 204, 0.1);
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

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

.preloader p {
    color: #333;
    font-size: 18px;
    font-weight: 500;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局字体和颜色 */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

/* 链接样式 */
a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #004080;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    border-color: #0066cc;
    color: #0066cc;
}

.btn-outline-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* 导航栏样式 */
.navbar {
    padding: 15px 0;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    padding: 10px 15px !important;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0066cc;
    background-color: rgba(0, 102, 204, 0.05);
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInUp 0.3s ease;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 102, 204, 0.05);
    color: #0066cc;
    transform: translateX(5px);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-item {
    height: 80vh;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    text-align: center;
    z-index: 2;
    padding-bottom: 0;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    max-width: 600px;
}

/* 功能模块样式 */
section {
    padding: 80px 0;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

/* 产品卡片样式 */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

/* 监管卡片样式 */
.regulator-card {
    transition: all 0.3s ease;
}

.regulator-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #fff;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul li a {
    color: #aaa;
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: #0066cc;
    text-decoration: none;
    padding-left: 5px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}

/* 在线客服按钮 */
.fixed-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#chatButton {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    border: none;
}

#chatButton:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        margin: 2px 0;
    }
    
    .carousel {
        height: 70vh;
    }
    
    .carousel-item {
        height: 70vh;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 60vh;
    }
    
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
    }
    
    section {
        padding: 30px 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 辅助类 */
.text-primary {
    color: #0066cc !important;
}

.bg-primary {
    background-color: #0066cc !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #004080;
}