* {

}

body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;

	justify-content: center;
	align-items: center;
	flex-direction: column;
	background-color: #f4f4f4;
}

.carousel-container2 {
    width: 100%;
    margin: 0 auto 20px;
    overflow: hidden;
    max-width: 100%; /* 修改这里 */
}

.carousel2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
    max-width: 100%; /* 添加最大宽度限制 */
    margin: 0 auto; /* 居中显示 */
}

/* 确保与模块容器宽度一致 */
.carousel-container2, .carousel2 {
    max-width: var(--container-width, 1200px); /* 使用与container相同的最大宽度变量 */
    box-sizing: border-box;
}

.carousel-item2 {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 240px;
	background: white;
	border-radius: 20px;
	margin: 0 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-item2 img {
	width: calc(100% - 10px);
	height: auto;
	object-fit: contain;
	margin: 5px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	transition: transform 0.3s ease;
}

.carousel-item2 p {
	margin: 10px 0;
	text-align: center;
	font-size: 14px;
}

.carousel-item2:hover {
	background-color: #d6e6fd;
	transform: scale(1.05);
}

.carousel-item2:hover img {
	transform: scale(1.05);
}

.arrow2 {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1;
}

.arrow2.left {
	left: -30px;
}

.arrow2.right {
	right: -30px;
}


/* 全局容器样式 */
.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}


@media (max-width: 768px) {
	.carousel-container2 {
		display: none;
	}
}

.carousel-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* PC端轮播图样式 - 保持不变 */
.carousel {
    position: relative;
    width: 100%;
    border-radius: 0px;
    overflow: hidden;
    margin-right: 10px;
    display: flex;
    flex-direction: column;
}

/* 移动端轮播图样式 - 修改了高度设置 */
.carousel-mobile {
    position: relative;
    width: calc(100% - 20px); /* 修改宽度，使两边各有10px的空白 */
    margin: 0 10px;           /* 在左右添加10px的边距 */
    height: auto;
    border-radius: 0px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

/* 轮播图内容样式 - PC端保持不变 */
.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 轮播图内容样式 - 移动端修改 */
.slides-mobile {
    width: 100%;
    height: auto;     /* 修改点3：改为自适应高度 */
    display: flex;
    position: relative;
}

/* 图片样式 - 区分PC端和移动端 */
.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* 移动端图片样式 - 单独设置 */
.slides-mobile img {
    width: 100%;       /* 修改点4：确保宽度100% */
    height: auto;      /* 修改点5：高度自适应 */
    object-fit: contain; /* 修改点6：改为contain以保持图片比例 */
    border-radius: 20px;
    max-width: 100%;   /* 修改点7：添加最大宽度限制 */
}

/* 媒体查询 - 添加更多的响应式控制 */
@media screen and (max-width: 768px) {
    .carousel {
        display: none;
    }
    
    .carousel-mobile {
        display: flex;
        margin: 0 auto;    /* 修改点8：居中显示 */
    }

    /* 修改点10：增加移动端图片的特定样式 */
    .slides-mobile img {
        width: 100vw;      /* 使用视口宽度 */
        max-width: 100%;   /* 限制最大宽度 */
        margin: 0 auto;    /* 居中显示 */
    }
}


.carousel-dots {
	position: absolute;
	bottom: 10px;
	right: 10px;
 /* 调整小圆点到右下角的距离 */
	display: flex;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	margin: 0 5px;
	cursor: pointer;
 /* 添加指针样式，表示可点击 */
}

.dot.active {
	background-color: #fff;
 /* 激活状态的小圆点颜色 */
}

.fixed-image {
	width: 415px;
 /* 调整固定图部分的宽度 */
	height: 330px;
 /* 设置固定图片的高度 */
	margin-left: 10px;
 /* 调整固定图片与轮播图的间距 */
}

.fixed-image img {
	width: 100%;
	height: 330px;
 /* 设置固定图的高度为自适应 */
	display: block;
}

@media (max-width: 768px) {
    .fixed-image {
        width: 100%; /* 在手机上宽度占满父容器 */
        height: 200px; /* 设置手机上的高度为200px */
    }

    .fixed-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 保持图片比例并填满容器 */
    }
}

@media (max-width: 768px) {
	.carousel-container {
		flex-direction: column;
		align-items: center;
		padding-top: 10px;
 /* 在小屏幕上减少顶部内边距 */
		margin-top: 0;
 /* 移除顶部外边距 */
	}

	.carousel {
		width: 100%;
		height: auto;
 /* 轮播图高度自适应 */
		margin-bottom: 20px;
		margin-right: 0;
 /* 在小屏幕上去掉与固定图片的右边距 */
	}

	.fixed-image {
		width: 100%;
		height: auto;
 /* 固定图片高度自适应 */
		margin-left: 0;
 /* 在小屏幕上去掉与轮播图的左边距 */
	}

	.carousel-container {
		margin-top: 0;
 /* 移除顶部外边距 */
		padding-top: 0;
 /* 移除顶部内边距 */
	}
}

.container {
	width: 100%;
	max-width: 1200px;
	padding: 15px;
}

.module {
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	padding: 20px;
	text-align: center;
}

.module h2 {
	font-size: 24px;
	margin-bottom: 10px;
}

.module p {
	font-size: 16px;
	margin-bottom: 20px;
}

.image-row {
	display: flex;
	justify-content: space-around;
	gap: 10px;
	margin-bottom: 20px;
	padding: 0 20px;
}

.image-row img {
	width: calc(33.333% - 13.333px);
  /* 保持每张图片的宽度比例 */
	height: auto;
	border-radius: 8px;
	transition: transform 0.3s ease, z-index 0s;
  /* 平滑过渡效果 */
	cursor: pointer;
	z-index: 1;
  /* 初始 z-index */
}

.image-row img:hover {
	transform: scale(1.05);
  /* 鼠标悬停时的放大效果 */
}

.image-row img.enlarged {
	transform: scale(3);
  /* 点击时放大 1.5 倍 */
	z-index: 1000;
  /* 提高 z-index 确保放大时不被遮挡 */
	transition: transform 0.3s ease, z-index 0s;
  /* 放大时平滑，z-index 不延迟 */
}

.module button {
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
}

.module button:hover {
	background-color: #0056b3;
}

@media (max-width: 768px) {
	.image-row {
		flex-direction: column;
	}

	.image-row img {
		width: 100%;
	}
}

@media (max-width: 768px) {

	.image-row .hide-on-mobile {
		display: none;
 /* 隐藏最后一张图片 */
	}
}

.module button {
	margin-right: 30px;
 /* 调整右边距 */
}

.footer {
	background-color: #1a212e;
	width: 100%;
	color: #868990;
	padding: 10px 0;
	display: block;
 /* 设置整个footer的基础文字颜色 */
}

.footer-content {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-section {
	margin: 12px;
	flex-basis: calc(25% - 30px);
	min-width: 260px;
}

.footer-title {
	font-size: 14px;
	margin-bottom: 15px;
	position: relative;
	padding-left: 20px;
            /* 移除之前的白色设置，现在会继承 .footer 的颜色 */
}

.footer-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 14px;
	background-color: #3498db;
	transform: translateY(-50%);
}

.footer-image {
	max-width: 100%;
	height: auto;
}

.footer-text {
	font-size: 12px;
	margin-top: 10px;
}

.footer-bottom {
    display: flex;
    text-align: center;
    border-top: 1px solid #2c3e50;
    font-size: 12px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .footer,
    .footer-content,
    .footer-section,
    .footer-bottom {
        display: none !important;
    }
}

.announcement-container {
	background-color: #fff;
	color: #f82423;
	padding: 10px 0;
	overflow: hidden;
	position: relative;
	max-width: 1200px;
 /* 与页脚宽度匹配 */
	margin: 0 auto;
	margin-bottom: 10px;
	border-radius: 8px;
	display: flex;
 /* 使用flex布局避免文字覆盖图标 */
	align-items: center;
}

.announcement-icon {
	flex-shrink: 0;
 /* 防止图标被压缩 */
	width: 20px;
	height: 20px;
	background-image: url('https://pub-87f2f3df96be4a99809ea18d80f02c5a.r2.dev/images/adS.png');
	background-size: cover;
	margin-right: 10px;
 /* 为图标和文字间留出空间 */
	margin-left: 10px;
}

.announcement-content-wrapper {
	overflow: hidden;
 /* 确保滚动文字不会超出容器 */
	flex-grow: 1;
 /* 文字容器填充剩余空间 */
}

.announcement-content {
	white-space: nowrap;
	animation: scroll-left 30s linear infinite;
}

        /* 基础样式 */
.navbar {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 20px;
	box-sizing: border-box;
	flex-wrap: nowrap;
}

.navbar img {
	height: auto; /* 修改 */
    max-height: 50px; /* 新增 */
    width: auto; /* 新增 */
}

.navbar a {
	text-decoration: none;
	color: #333;
	margin-left: 20px;
	font-size: 16px;
	font-weight: bold;
 /* 加粗 */
	padding: 5px 10px;
 /* 为链接增加一些内边距，方便hover效果 */
	transition: background-color 0.3s ease;
 /* 平滑的背景颜色过渡效果 */
}

/* 原始的通用导航链接悬停样式 */
.navbar a:hover {
	background-color: #007bff; /* 这会与特定按钮样式冲突 */
	border-radius: 8px;
}

/* 修改为 */
.navbar a:not(.nav-button):hover {
	background-color: #007bff;
	border-radius: 8px;
}

/* 添加导航按钮的基本样式 */
.nav-button {
    display: inline-block;
    padding: 8px 16px;
    background: transparent; /* 移除默认背景 */
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd; /* 淡灰色边框 */
    transition: all 0.3s ease;
    text-align: center;
    margin-left: 10px; /* 添加左侧间距 */
}

/* 确保第一个按钮没有左侧间距 */
.right-links .nav-button:first-child {
    margin-left: 0;
}

.bookmark-button {
    background: transparent; /* 移除默认背景 */
    border: 1px solid #ddd;
    color: #333; /* 黑色文字 */
}

.copy-btn:hover {
    background-color: #e8e8e8;
}
/* 特定导航按钮样式修改 - 使两个按钮悬停效果一致 */
.nav-button:hover {
    background: linear-gradient(to bottom, #4aa3df, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white; /* 鼠标悬停时文字变为白色 */
    border-color: #3498db; /* 边框颜色与背景匹配 */
}

.bookmark-button:hover {
    background: linear-gradient(to bottom, #4aa3df, #3498db);
    color: white; /* 鼠标悬停时文字变为白色 */
    border-color: #3498db; /* 边框颜色与背景匹配 */
}
/* 小屏幕自适应样式 */
@media (max-width: 768px) {
    .navbar img {
        max-height: 40px; /* 修改：使用 max-height 代替 height */
    }

    .navbar a {
        font-size: 14px; /* 修改：进一步缩小字体 */
        margin-left: 15px; /* 修改：稍微减小链接间距 */
    }
}
/* 在移动设备上隐藏元素 */
@media screen and (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}
/* 非常小的屏幕适配 */
@media (max-width: 480px) {
    .navbar img {
        max-height: 30px; /* 修改：使用 max-height 代替 height */
    }

    .navbar a {
        font-size: 12px; /* 修改：再次缩小字体 */
        margin-left: 8px; /* 修改：进一步减小间距 */
    }
}

.announcement-container {
    -webkit-overflow-scrolling: touch;
    overflow-y: hidden;
}

.announcement-content {
    display: inline-block; /* 确保内容不换行 */
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@-webkit-keyframes scroll-left {
    0% { -webkit-transform: translateX(100%); }
    100% { -webkit-transform: translateX(-100%); }
}

.announcement-content {
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    -webkit-animation: scroll-left 30s linear infinite;
}


.link-group {
    margin: 15px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.register-link, .login-link {
    display: inline-block;
    padding: 8px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.login-link {
    background: #28a745;
}

.register-link:hover, .login-link:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .link-group {
        gap: 10px;
    }
    
    .register-link, .login-link {
        padding: 6px 15px;
    }
}
/* 移动端轮播图小圆点样式优化 */
.carousel-dots-mobile {
    /* 移动端轮播图小圆点样式优化 - 隐藏小圆点但保留元素 */
    .carousel-dots-mobile {
        position: absolute;
        opacity: 0; /* 完全透明 */
        visibility: hidden; /* 隐藏但保留元素 */
        pointer-events: none; /* 禁止交互 */
        height: 0; /* 不占用高度 */
        width: 0; /* 不占用宽度 */
        overflow: hidden; /* 确保内容不可见 */
        z-index: -1; /* 放到最底层 */
    }
    
    .carousel-mobile {
        position: relative; /* 保持相对定位，确保轮播功能正常 */
    }
    
    /* 移动端小圆点样式 - 同样隐藏 */
    .dot-mobile {
        display: none; /* 不显示 */
    }
    
    .dot-mobile.active {
        display: none; /* 活跃状态也不显示 */
    }
}

@media screen and (max-width: 768px) {
    .carousel-dots-mobile {
        bottom: 5px; /* 在小屏幕上调整位置 */
        right: 5px;
    }
    
    .dot-mobile {
        width: 6px; /* 在小屏幕上减小小圆点尺寸 */
        height: 6px;
        margin: 0 3px;
    }
}
.button-group {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin: 0 auto; /* 容器本身居中 */
    gap: 20px; /* 按钮之间的间距 */
}

/* 移除可能影响居中的右边距 */
.module button {
    margin-right: 0; /* 覆盖之前设置的右边距 */
}

/* 为特定需要右边距的按钮单独设置 */
button[onclick="register('agent')"] {
    margin-right: 10px;
}
/* 随机号码模块样式 */
.random-number-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.random-number-display {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(to right, #f0f0f0, #e0e0e0);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    min-width: 280px;
}

.number-placeholder, .number-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.number-placeholder {
    background-color: #ddd;
    color: #888;
}

.number-ball {
    background: linear-gradient(145deg, #007bff, #007bff);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.generate-btn {
    background: linear-gradient(to bottom, #007bff, #007bff);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.generate-btn:hover {
    background: linear-gradient(to bottom, #4aa3df, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.generate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.slides {
    position: relative;
    width: 100%;
}

.slides a {
    display: none;
    width: 100%;
}

.slides a:first-child {
    display: block;
}

.slides img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}