/* 现代企业网站自定义样式 */

/* 主内容区域自适应左右间距 - 使用百分比和vw实现真正的响应式 */
.container:not(footer .container):not(.footer-premium .container) {
    padding-left: clamp(15px, 5vw, 200px) !important;
    padding-right: clamp(15px, 5vw, 200px) !important;
    max-width: 100% !important;
}

/* 页脚容器保持默认间距 */
footer.footer-premium .container,
.footer-premium > .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* 页脚排版优化 - 所有列都居中对齐 */
.footer-premium {
    padding: 4rem 0 2rem !important;
}

.footer-premium .col-md-4 {
    margin-bottom: 2rem;
}

.footer-premium h5 {
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
}

.footer-premium ul {
    list-style: none !important;
    padding: 0 !important;
}

.footer-premium ul li {
    padding: 0.6rem 0 !important;
    line-height: 1.8 !important;
}

/* 二维码居中显示 */
.footer-premium .qr-code {
    display: inline-block !important;
    margin: 0 auto !important;
}

/* 所有居中列的标题装饰线都居中 */
.footer-premium .text-center h5::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 导航栏优化 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* 导航栏菜单项适度分布在右侧区域 */
.navbar-nav {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    display: flex;
    justify-content: space-around;
    flex: 1;
    max-width: 800px;
}

.navbar-nav .nav-item {
    flex: 0 1 auto;
    min-width: 0;
}

.navbar-nav .nav-link {
    white-space: nowrap;
    /* 使用clamp实现自适应字体大小 */
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    /* 使用更小的固定间距 */
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* 针对大屏幕的导航栏样式 - 覆盖 Bootstrap 默认样式 */
.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

/* 联系电话也自适应 */
.contact-phone {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    margin-left: clamp(0.3rem, 1vw, 1rem) !important;
    white-space: nowrap;
}

/* 用户下拉菜单自适应 */
.navbar-nav .dropdown-toggle {
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
}

/* 移动端恢复正常 */
@media (max-width: 991px) {
    .navbar-nav {
        flex-wrap: wrap !important;
        white-space: normal;
        width: auto;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .contact-phone {
        font-size: 0.9rem;
        margin-left: 0.5rem !important;
    }
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #17a2b8;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

/* 头部大屏优化 */
.jumbotron {
    position: relative;
    overflow: hidden;
}

.jumbotron::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23,162,184,0.8) 0%, rgba(40,167,69,0.6) 100%);
}

.jumbotron .container {
    position: relative;
    z-index: 1;
}

/* 卡片样式优化 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-img-150 {
    height: 200px;
    overflow: hidden;
}

.card-img-150 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮优化 */
.btn {
    border-radius: 25px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 文章列表优化 */
.pages ul {
    list-style: none;
    padding: 0;
}

.pages ul li {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pages ul li:hover {
    background: #f8f9fa;
    padding-left: 15px;
}

.pages ul li a {
    color: #333;
    text-decoration: none;
    display: block;
}

.pages ul li a:hover {
    color: #17a2b8;
}

.pages ul li i {
    color: #17a2b8;
    margin-right: 10px;
}

/* 内容区域优化 */
.content {
    line-height: 2;
    color: #555;
    font-size: 16px;
}

.content p {
    margin-bottom: 20px;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* 面包屑导航优化 */
.position {
    font-size: 14px;
    color: #6c757d;
}

.position a {
    color: #17a2b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.position a:hover {
    color: #138496;
}

/* 页脚优化 */
.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.footer h5 {
    color: #17a2b8;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    padding: 5px 0;
}

/* 轮播图优化 */
.swiper-container {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.swiper-pagination-bullet-active {
    background: #17a2b8;
}

/* 标题优化 */
h1, h2, h3, h4, h5 {
    font-weight: 600;
}

.text-success {
    color: #28a745 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-warning {
    color: #ffc107 !important;
}

/* 分类导航按钮优化 */
.sonsort .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .jumbotron h1 {
        font-size: 24px;
    }
    
    .jumbotron p {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(23,162,184,.3);
    border-radius: 50%;
    border-top-color: #17a2b8;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 图标美化 */
.fa {
    transition: all 0.3s ease;
}

.fa:hover {
    transform: scale(1.2);
    color: #17a2b8;
}

/* 电话号码高亮 */
.tel {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 二维码容器优化 */
.footer img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.footer img:hover {
    transform: scale(1.05);
}

/* 下载中心分区样式 */
.download-zone {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 400px;
}

.download-zone.free-zone {
    border-color: #28a745;
    background: linear-gradient(to bottom, #f0fff4 0%, #ffffff 100px);
}

.download-zone.paid-zone {
    border-color: #ffc107;
    background: linear-gradient(to bottom, #fffbf0 0%, #ffffff 100px);
}

.download-zone .zone-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
    text-align: center;
}

.download-zone.free-zone .zone-title {
    color: #28a745;
    border-bottom-color: #28a745;
}

.download-zone.paid-zone .zone-title {
    color: #ffc107;
    border-bottom-color: #ffc107;
}

.download-zone .download-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.download-zone .download-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.download-zone.free-zone .download-item {
    border-left: 4px solid #28a745;
}

.download-zone.paid-zone .download-item {
    border-left: 4px solid #ffc107;
}

.download-zone .download-item h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.download-zone .download-item .download-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.download-zone .download-action {
    margin-top: 15px;
}

.download-zone .download-info {
    flex: 1;
    min-width: 0;
}

.download-zone .download-info h5 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.download-zone .download-action {
    flex-shrink: 0;
}

/* 响应式：移动端上下排列 */
@media (max-width: 767px) {
    .download-zone {
        margin-bottom: 30px;
    }
    
    .download-zone .download-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-zone .download-icon {
        margin: 0 auto;
    }
}
