/* 主体样式 */
html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #495057;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}



/* 网站标题样式 */
.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 5px;
}

/* 导航链接样式 */
.navbar-nav .nav-link {
    color: #495057 !important;
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    transition: color 0.3s ease;
    margin: 0 5px;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    background-color: #e9ecef;
}

.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    background-color: #e7f1ff;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* 页脚样式 */
.main-footer {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2rem 0 0 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

.footer-section h5 {
    color: #495057;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #0d6efd;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    margin: 8px 0;
    display: block;
    transition: color 0.3s ease;
    padding: 3px 0;
}

.footer-section ul li a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.footer-section p {
    color: #94a3b8;
    margin: 8px 0;
}

/* 首页轮播图样式 */
.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 2rem;
}

/* 卡片样式 */
.card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #495057;
}

.card-text {
    color: #6c757d;
}

/* 按钮样式 */
.btn-primary {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .carousel-item {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 鼠标移动动画效果 */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translateX(-100%);
    }
    100% {
        transform: rotate(30deg) translateX(100%);
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#0ea5e9, #6366f1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#0284c7, #4f46e5);
}

/* 导航栏滚动效果 */
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

/* 响应式导航栏 */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption {
        padding: 1rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.3rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
}

/* 科技感动画效果 */
.tech-hover {
    position: relative;
    overflow: hidden;
}

.tech-hover::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;
}

.tech-hover:hover::before {
    left: 100%;
}

/* 卡片科技边框效果 */
.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0ea5e9, #6366f1, #8b5cf6, #ec4899, #0ea5e9);
    background-size: 400%;
    z-index: -1;
    border-radius: 12px;
    animation: gradient 8s linear infinite;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: 10px;
    z-index: -1;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 光效动画 */
.glow {
    position: relative;
}

.glow::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #0ea5e9, #6366f1, #8b5cf6, #ec4899);
    border-radius: 10px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
    animation: glow 3s linear infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.7;
        filter: blur(15px);
    }
    50% {
        opacity: 1;
        filter: blur(20px);
    }
}

/* 分界线样式 */
.divider-line,
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 40px 0;
    border: 0;
}

/* 统计数字样式 */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0d6efd;
    display: block;
    line-height: 1.2;
}

.stat-text {
    font-size: 1rem;
    color: #6c757d;
}

.company-stats {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.company-intro {
    padding: 60px 0;
}

.intro-text {
    line-height: 1.8;
    color: #495057;
}

/* 选项卡样式 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-color: transparent;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    border-bottom: 2px solid #0d6efd;
}

/* Logo 样式调整 */
.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* 网站标题样式调整 */
.site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-left: 5px;
}
.news-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

    .news-meta small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #6c757d;
    }

.carousel-item img {
    min-height: 200px;
}

.product-carousel-container {
    position: relative;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 60px 0;
}