/* 企业官网样式表 */

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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: #007bff;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

/* ========== 顶部导航 ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo img {
    max-height: 50px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.search-box {
    position: relative;
    width: 150px;
}

.search-box .form-control {
    border-radius: 20px;
    padding: 5px 35px 5px 15px;
    font-size: 14px;
}

.search-box .search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.phone-box .phone-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #007bff;
    font-weight: 500;
}

.phone-box .phone-link:hover {
    color: #0056b3;
}

.auth-box {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: #007bff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.btn-login:hover {
    background: #0056b3;
    color: #fff;
}

.btn-register {
    background: #28a745;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.btn-register:hover {
    background: #218838;
    color: #fff;
}

/* 导航菜单 */
.navbar {
    padding: 0;
}

.navbar-nav .nav-link {
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff;
}

/* ========== 主体内容 ========== */
main {
    margin-top: 80px;
}

/* ========== 轮播图 ========== */
.banner-section {
    margin-top: 80px;
}

.carousel-item {
    height: 600px;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    bottom: 30%;
}

.carousel-caption h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== 通用区块样式 ========== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== 产品中心 ========== */
.products-section {
    background: #f8f9fa;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.product-card .card-text {
    color: #666;
    font-size: 14px;
}

/* ========== 我们的服务 ========== */
.services-section {
    background: #fff;
}

.service-card {
    text-align: center;
    padding: 30px;
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.service-card h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 14px;
}

/* ========== 成功案例 ========== */
.cases-section {
    background: #f8f9fa;
}

.cases-slider {
    position: relative;
}

.cases-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
}

.cases-container::-webkit-scrollbar {
    display: none;
}

.case-item {
    min-width: 300px;
    max-width: 300px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-overlay h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-overlay p {
    font-size: 14px;
    text-align: center;
}

.case-prev,
.case-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.case-prev:hover,
.case-next:hover {
    background: #007bff;
    color: #fff;
}

.case-prev {
    left: 0;
}

.case-next {
    right: 0;
}

/* ========== 关于我们 ========== */
.about-section {
    background: #fff;
}

.about-content h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.about-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.about-media {
    position: relative;
}

.about-media img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-play {
    width: 80px;
    height: 80px;
    background: rgba(0, 123, 255, 0.8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: rgba(0, 123, 255, 1);
    transform: scale(1.1);
}

/* ========== 新闻中心 ========== */
.news-section {
    background: #f8f9fa;
}

.news-column {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-column-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-image {
    width: 120px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.6;
}

.news-date {
    font-size: 12px;
    color: #999;
}

/* ========== 页脚 ========== */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-column ul li i {
    margin-right: 10px;
    color: #007bff;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #3a5066;
}

.copyright,
.icp {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* ========== 右侧悬浮窗 ========== */
.fixed-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-item {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.sidebar-item:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.sidebar-icon {
    font-size: 20px;
}

.sidebar-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.tooltip-content {
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.qrcode-content {
    padding: 15px;
    flex-direction: column;
    white-space: normal;
    text-align: center;
}

.qrcode-content img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.qrcode-content p {
    font-size: 12px;
    margin: 0;
}

.back-to-top {
    background: #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.back-to-top:hover {
    background: #218838;
}

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

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

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .search-box {
        width: 120px;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .fixed-sidebar {
        right: 10px;
    }
    
    .sidebar-item {
        width: 40px;
        height: 40px;
    }
}
