﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}














































/* 全局样式 */
body {
    padding-top: 56px;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand img {
    transition: all 0.3s;
}

    .navbar-brand img:hover {
        transform: scale(1.05);
    }

/* 轮播图样式 */
.carousel-item {
    height: 500px;
    background-color: #777;
}

    .carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        min-width: 100%;
        height: 500px;
        object-fit: cover;
    }

.carousel-caption {
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 5px;
}

/* 卡片样式 */
.card {
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,.2);
    }

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
}

.social-icons a {
    transition: all 0.3s;
}

    .social-icons a:hover {
        transform: scale(1.2);
        color: #007bff !important;
    }

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item, .carousel-item img {
        height: 300px;
    }
}



/* 导航栏品牌文字样式 */
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
}

/* 小屏幕下品牌区域调整 */
@media (max-width: 767.98px) {
    .navbar-brand {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}


body {
    padding-top: 0; /* 移除了默认的padding-top */
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}























































/* 下载按钮样式优化 */
.btn-download {
    min-width: 120px;
    transition: all 0.3s ease;
    border-width: 2px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-download:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .btn-download i {
        transition: transform 0.2s ease;
    }

    .btn-download:hover i {
        transform: scale(1.1);
    }

/* 详情链接样式 */
.btn-link.text-primary {
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

    .btn-link.text-primary:hover {
        color: #0b5ed7 !important;
        transform: translateX(3px);
    }

/* 卡片底部按钮区域 */
.card-body .pt-3 {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem !important;
}

/* 卡片图片容器 */
.card-img-container {
    height: 180px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-img-top {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}




























/* 二维码容器样式 */
.qrcode-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.qrcode-item {
    flex: 0 0 auto;
    text-align: center;
}

    .qrcode-item img {
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s ease;
    }

        .qrcode-item img:hover {
            transform: scale(1.05);
        }

/* 响应式调整 */
@media (max-width: 768px) {
    .qrcode-container {
        flex-direction: column;
    }

    .qrcode-item {
        margin-bottom: 1rem;
    }

        .qrcode-item:last-child {
            margin-bottom: 0;
        }
}














/* CAD转换器特定样式 */
.cad-converter {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

    .cad-converter .form-group {
        margin-bottom: 20px;
    }

.pdf-preview {
    margin-top: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}