* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #e5e7eb;
}

.carousel-inner {
    position: relative;
    width: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.carousel-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
}

.carousel-placeholder {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot {
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background-color: #2563eb;
}

/* 法规提示样式 */
.notice-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

/* 产品卡片样式 */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 导航链接样式 */
.nav-link {
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* 文章卡片样式 */
.article-card {
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 文章详情页面样式 */
.article-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail-header {
    margin-bottom: 30px;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.article-detail-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.article-detail-content p {
    margin-bottom: 15px;
}

.article-detail-content h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0 15px 0;
    color: #222;
}

.article-detail-content h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    color: #333;
}

.article-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-button:hover {
    color: #1d4ed8;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #1d4ed8;
}

.breadcrumb span {
    color: #999;
}

