/* 平滑滚动效果 */
html {
	scroll-behavior: smooth;
}
/* 导航栏滚动样式变化 */
.nav-scrolled {
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* 1. 轮播容器：实现自适应，限制核心布局 */
.banner-container {
	position: relative; /* 为子元素（按钮、指示器）绝对定位做铺垫 */
	width: 100%; /* 自适应父容器宽度，实现全屏/响应式宽度 */
	max-width: 1920px; /* 可选：限制最大宽度，避免大屏下图片拉伸过度 */
	margin: 0 auto; /* 居中显示 */
	overflow: hidden; /* 隐藏超出容器的轮播图，实现滚动裁切效果 */
}

/* 2. 轮播滑动区域：核心滚动容器（修复原代码无此容器的问题） */
.banner-slides-wrapper {
	display: flex; /* 让轮播图横向排列，为滚动做准备 */
	transition: transform 0.5s ease-in-out; /* 平滑滚动过渡，避免切换生硬 */
	width: 100%; /* 跟随容器自适应 */
}

/* 3. 单个轮播项：实现自适应，图片不拉伸变形 */
.banner-slide {
	flex: 0 0 100%; /* 每个轮播项占满容器宽度，不收缩不放大 */
	width: 100%; /* 自适应容器宽度 */
}

.banner-slide img {
	width: 100%; /* 修正原代码wdith拼写错误，图片自适应轮播项宽度 */
	height: auto; /* 高度自动，保持图片比例，防止变形 */
	display: block; /* 消除图片底部默认空白间隙 */
}

/* 4. 左右切换按钮：自适应定位，响应式优化 */
.banner-nav {
	position: absolute; /* 基于轮播容器定位 */
	top: 50%; /* 垂直居中 */
	transform: translateY(-50%); /* 精准垂直居中，抵消按钮自身高度 */
	width: 40px;
	height: 40px;
	border-radius: 50%; /* 圆形按钮 */
	background-color: rgba(255, 255, 255, 0.8); /* 半透明白色背景 */
	border: none;
	outline: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #333;
	z-index: 10; /* 确保按钮在轮播图上方 */
	transition: background-color 0.3s ease;
}

/* 按钮悬停效果 */
.banner-nav:hover {
	background-color: rgba(255, 204, 229, 0.9); /* 小粉猫主题色，贴合品牌 */
	color: #fff;
}

/* 左按钮定位 */
.prev {
	left: 20px; /* 距离左侧间距，自适应场景下不随宽度缩放（可优化为百分比） */
}

/* 右按钮定位 */
.next {
	right: 20px; /* 距离右侧间距 */
}
/*列表分页*/
.page-num{
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-width: 1px;
    border-radius: 0.25rem;
}
.page-num-current{
    background:rgb(219 39 119 / var(--tw-text-opacity, 1));
    color:#fff;
}
/* 小屏幕下按钮缩小，提升移动端体验 */
@media (max-width: 768px) {
	.banner-nav {
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
	.prev {
		left: 10px;
	}
	.next {
		right: 10px;
	}
}

/* 5. 轮播指示器：底部居中，自适应布局 */
.banner-dots {
	position: absolute;
	bottom: 20px; /* 距离底部间距 */
	left: 50%;
	transform: translateX(-50%); /* 水平居中 */
	display: flex;
	gap: 10px; /* 指示器之间的间距 */
	z-index: 10;
}

/* 单个指示器样式 */
.banner-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: all 0.3s ease;
}

/* 激活状态指示器（小粉猫主题色） */
.banner-dot.active {
	width: 20px;
	border-radius: 4px; /* 激活状态变为椭圆，更醒目 */
	background-color: rgba(255, 204, 229, 0.9);
}
/* 案例滚动核心样式 - 独立命名空间，不污染原有样式 */
.case-scroll-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* 滚动按钮样式 - 悬浮不遮挡，层级合理 */
.case-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.case-scroll-btn:hover {
    background-color: #ffffff;
}

.case-scroll-btn-left {
    left: 10px;
}

.case-scroll-btn-right {
    right: 10px;
}

/* 滚动容器 - 开启横向滚动，隐藏纵向滚动条 */
.case-scroll-wrapper {
    width: 100%;
    overflow-x: hidden; /* 核心：开启横向滚动 */
    overflow-y: hidden; /* 隐藏纵向滚动条 */
    padding: 10px 0;
    scrollbar-width: thin; /* 优化火狐滚动条 */
    scrollbar-color: #e0e0e0 transparent;
    .case-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }
}

/* 滚动内容容器 - 强制横向排列，不换行 */
.case-scroll-content {
    display: flex;
    flex-wrap: nowrap; /* 核心：禁止换行，确保横向排列 */
    gap: 1.5rem; /* 卡片间距，对应tailwind的gap-6 */
    padding: 0 50px; /* 给按钮留出空间，避免卡片被遮挡 */
}

/* 案例卡片样式 - 固定宽度，统一布局 */
.case-card {
    flex: 0 0 auto; /* 核心：不伸缩，保持固定宽度 */
    width: 16rem; /* 对应tailwind的w-64，固定卡片宽度 */
    text-align: center;
}

.case-card-img {
    width: 100%;
    height: 12rem; /* 对应tailwind的h-48 */
    object-cover: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.case-card-title {
    font-weight: 500;
    color: #4b5563; /* 对应tailwind的text-gray-700 */
}
/* ========== 新增：联系方式样式（隔离原有样式，不产生冲突） ========== */
/* 1. 移动端底部横向联系方式（仅移动端显示，PC端隐藏） */
.mobile-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(236, 72, 153, 0.1);
    z-index: 999; /* 高于其他元素，不被遮挡 */
    padding: 0.8rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #fef2f7;
}
.mobile-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ec4899;
    text-decoration: none;
    font-size: 0.75rem;
}
.mobile-contact-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.mobile-contact-item:hover {
    color: #db2777;
}
/* 2. PC端右侧悬浮联系方式（仅PC端显示，移动端隐藏） */
.pc-contact-float {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999; /* 高于其他元素，不被遮挡 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
    border: 1px solid #fef2f7;
}
.pc-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 4px;
}
.pc-contact-item i {
    font-size: 1rem;
    color: #ec4899;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fef2f7;
    border-radius: 50%;
}
.pc-contact-item:hover {
    background-color: #fef2f7;
    color: #ec4899;
}
/* 3. 响应式控制：移动端隐藏PC端组件，PC端隐藏移动端组件 */
@media (min-width: 1024px) {
    .mobile-contact-bar {
        display: none; /* PC端隐藏移动端底部联系方式 */
    }
}
@media (max-width: 1023px) {
    .pc-contact-float {
        display: none; /* 移动端隐藏PC端右侧联系方式 */
    }
    /* 移动端主内容底部留白，避免被底部联系方式遮挡 */
    main {
        padding-bottom: 80px !important;
    }
}
/* 小屏幕下指示器缩小 */
@media (max-width: 768px) {
	.banner-dots {
		bottom: 10px;
		gap: 8px;
	}
	.banner-dot {
		width: 6px;
		height: 6px;
	}
	.banner-dot.active {
		width: 16px;
	}
}
/* 补充少量自定义样式，保持与列表页风格统一 */
.nav-scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.news-category-item.active {
    color: #ec4899;
    font-weight: 500;
}
.page-num {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 2px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.page-num-current {
    background-color: #ec4899;
    color: white;
    border-color: #ec4899;
}
.page-num:hover:not(.page-num-current) {
    background-color: #fef2f7;
    border-color: #fda4af;
    color: #ec4899;
}
/* 新闻详情页专属样式 */
.news-detail-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin: 1.5rem 0 1rem;
}
.news-detail-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    
}
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.news-detail-content span[style*="text-wrap: nowrap"] {
  text-wrap: wrap !important;
}
/* 品牌优势卡片图标样式 */
.advantage-icon {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #e8f4f8;
	color: #4299e1;
	font-size: 24px;
	margin: 0 auto;
}
/* 下拉菜单样式 */
.dropdown {
	position: relative;
}
.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #ffffff;
	min-width: 200px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	border-radius: 0.5rem;
	padding: 0.75rem 0;
	margin-top: 0.5rem;
	display: none;
	z-index: 999;
}
.dropdown-menu a {
	display: block;
	padding: 0.5rem 1.5rem;
	transition: all 0.3s ease;
}
.dropdown-menu a:hover {
	background-color: #fef2f7;
	color: #ec4899;
}
.dropdown:hover .dropdown-menu {
	display: block;
}
/* 移动端下拉菜单样式 */
.mobile-dropdown-menu {
	display: none;
	padding-left: 1rem;
	margin-top: 0.5rem;
	gap: 0.5rem;
}
.mobile-dropdown-menu.open {
	display: block;
}
/* 活动比赛横向滚动样式 */
.activity-scroll-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}
.activity-scroll-wrapper {
	display: flex;
	gap: 1.5rem;
	padding: 1rem 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.activity-scroll-wrapper::-webkit-scrollbar {
	display: none;
}
.activity-card {
	flex: 0 0 auto;
	width: 280px;
	text-align: center;
}
.activity-card-img {
	width: 100%;
	height: 200px;
	border-radius: 8px;
	object-fit: cover;
	margin-bottom: 0.75rem;
}
.activity-scroll-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.8);
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
}
.activity-scroll-btn:hover {
	background-color: #ec4899;
	color: white;
}
.activity-scroll-btn.prev {
	left: -10px;
}
.activity-scroll-btn.next {
	right: -10px;
}
@media (max-width: 768px) {
	.activity-scroll-btn {
		display: none;
	}
	.activity-card {
		width: 220px;
	}
	.activity-card-img {
		height: 160px;
	}
}