@layer utilities {
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .transition-bg {
        transition: background-color 0.3s ease;
    }
    .card-hover {
        transition: all 0.3s ease;
    }
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #0077B6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #004B87;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
.navbar-fixed {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 新闻卡片样式 */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card {
    height: 100%;
}
/* 日期样式 */
.news-date {
    display: inline-block;
    background: linear-gradient(135deg, #0077B6, #004B87);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.2);
}

/* 轮播图样式 */
.carousel-slide {
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
}

.carousel-slide.active {
	opacity: 1;
	pointer-events: all;
}

.carousel-dot.active {
	background-color: white;
	width: 12px;
}

/* 修复移动端菜单溢出 */
@media (max-width: 768px) {
    #mobile-menu {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        margin-top: 10px;
    }
    
    #mobile-menu a {
        padding: 12px 16px;
    }
    
    /* 防止body滚动 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
  .custom-sm-margin {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}
        
/* 联系方式的微信二维码 - 修改为两列布局 */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-info-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.contact-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.contact-qr-container h4 {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-qr-container img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    background: white;
    padding: 8px;
    display: block;
}

.contact-qr-container p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    margin-top: 8px;
}
.about p {
    text-indent: 2em;
}
/* 产品卡片样式 */
.product-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #4CAF50;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* 筛选标签 */
.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.filter-tag:hover {
    background-color: #0077B6;
    color: white;
}
.filter-tag.active {
    background-color: #0077B6;
    color: white;
}

/* 侧边栏样式 */
.sidebar-category {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.sidebar-category:last-child {
    border-bottom: none;
}
.sidebar-link {
    display: flex;
    align-items: center;
    color: #374151;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}
.sidebar-link:hover {
    color: #0077B6;
    transform: translateX(5px);
}
.sidebar-link.active {
    color: #0077B6;
    font-weight: 600;
}


/* 新闻内容样式 */
.news-content {
    line-height: 1.8;
    color: #374151;
}
.news-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.news-content p {
    margin-bottom: 1.5rem;
}
.news-content ul, .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.news-content li {
    margin-bottom: 0.5rem;
}
.news-content blockquote {
    border-left: 4px solid #0077B6;
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
    margin: 1.5rem 0;
}

/* 标签样式 */
.news-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f0f7ff;
    color: #0077B6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 上一条/下一条导航优化 */
.prev-next-nav {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin: 2rem 0;
}

.prev-next-nav .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .prev-next-nav .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.prev-next-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 80px;
    position: relative;
}

.prev-next-item:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 图标容器 */
.prev-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #f0f7ff;
    color: #0077B6;
    flex-shrink: 0;
}

/* 内容区域 */
.prev-next-content {
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
    margin-left: 1rem;
}

.prev-next-content h4 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.prev-next-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-next-item:hover .prev-next-content h3 {
    color: #0077B6;
}

/* 移动端调整 */
@media (max-width: 767px) {
    .prev-next-item {
        justify-content: space-between;
    }
    
    .prev-next-item.flex-row-reverse {
        flex-direction: row;
    }
    
    .prev-next-content {
        margin-right: 1rem;
    }
    
    .prev-next-item .prev-next-icon.order-last {
        margin-left: auto;
    }
}

/* 桌面端调整 */
@media (min-width: 768px) {
    .prev-next-item {
        justify-content: flex-start;
    }
    
    .prev-next-item.flex-row-reverse {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    .prev-next-item.flex-row-reverse .prev-next-content {
        text-align: right;
        margin-right: 1rem;
    }
}

.page{ padding:25px 0 10px 0; width:100%;}
.page a{ background:#fff; border:1px solid #eee; min-width:42px; padding:0 10px; text-align:center; margin:0 8px; border-radius:5px; font-size:18px; color:#666; line-height:40px;}
.page a.m{ background:#fafafa; padding:0 20px; width:auto;}
.page a.cur,.page a:hover{ background:#0077B6; border-color:#0077B6; color:#fff;}
/* 响应式调整 */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info-right {
        padding: 20px;
    }
    .page a{ font-size:14px;}
    .page a{ display:none; line-height:60px;}
    .page a.m{ display:block; padding:0 35px;}
}