

body {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 24px;
	font-weight: 300;
	overflow-x: hidden;
	
}

a, button {
	transition: all 0.3s ease;
	color: #FFFFFF;
}

button:focus {
    outline: none;
}

a:hover {
	color: #FFFF00;
	text-decoration: underline;
}
a:focus {
	text-decoration: none;
	outline: none;
}

h1 {
	color: #FFFFFF;
	font-size: 4rem;	
}

p {
	color: #FFFFFF;	
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 99%;
}

.cb-slideshow-text-container {
    height: 100vh;
    display: flex;
    align-items: center;
}

.tm-content {
    z-index: 1001;
}

.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: white;
}
.form-control::-moz-placeholder { /* Firefox 19+ */
  color: white;
}
.form-control:-ms-input-placeholder { /* IE 10+ */
  color: white;
}
.form-control:-moz-placeholder { /* Firefox 18- */
  color: white;
}

.form-control::placeholder {
    color: white;
}

.form-control {  
    color: #FFFFFF;
    border-radius: .5rem;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 300;
    padding: 0.75rem 1.2rem;
}

.form-section {  
    color: #FFFFFF;
    background-color: transparent;
    margin-bottom: 100px;
    
}

.contact_email {
	color: #FFFFFF;
}
.tm-btn-subscribe {
	background-color: #006699;
	border-radius: .5rem;
    border-color: white;
	padding: 0.75rem 1.6rem;
    font-weight: 300;
    font-size: 1.4rem;
    cursor: pointer;
}

.tm-btn-subscribe:hover {
    background-color: #055278;
}

.tm-social-icons-container {
    margin: 10px;
}

.tm-social-link {
    border-color: #FFFFFF;
    color: black;
    display: inline-block;
    width: 50px;
    height: 50px;
    text-align: center;
}

.fa {
    color: #FFFFFF;
}

.footer-link {
    margin: 20px;
font-size: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    text-align:center;
    width:100%;
    z-index: 1001;
}

/* Animation */
.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 0;
}

.cb-slideshow li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 72s linear infinite 0s;
    -moz-animation: imageAnimation 72s linear infinite 0s;
    -o-animation: imageAnimation 72s linear infinite 0s;
    -ms-animation: imageAnimation 72s linear infinite 0s;
    animation: imageAnimation 72s linear infinite 0s;

}


/*.cb-slideshow li:nth-child(1) { */
/*    background-image: url(../images/letter_bg_01.jpg)*/
/*}*/
/*.cb-slideshow li:nth-child(2) { */
/*    background-image: url(../images/letter_bg_02.jpg);*/
/*    -webkit-animation-delay: 12s;*/
/*    -moz-animation-delay: 12s;*/
/*    -o-animation-delay: 12s;*/
/*    -ms-animation-delay: 12s;*/
/*    animation-delay: 12s; */
/*}*/
/*.cb-slideshow li:nth-child(3) { */
/*    background-image: url(../images/letter_bg_03.jpg);*/
/*    -webkit-animation-delay: 24s;*/
/*    -moz-animation-delay: 24s;*/
/*    -o-animation-delay: 24s;*/
/*    -ms-animation-delay: 24s;*/
/*    animation-delay: 24s; */
/*}*/
/*.cb-slideshow li:nth-child(4) { */
/*    background-image: url(../images/letter_bg_01.jpg);*/
/*    animation-delay: 36s; */
/*}*/
/*.cb-slideshow li:nth-child(5) { */
/*    background-image: url(../images/letter_bg_02.jpg);*/
/*    animation-delay: 48s; */
/*}*/
/*.cb-slideshow li:nth-child(6) { */
/*    background-image: url(../images/letter_bg_03.jpg);*/
/*    animation-delay: 60s; */
/*}*/


/* 
  背景轮播容器样式补充：确保视频和图片能全屏覆盖，且视频层级正确
  需配合HTML中视频标签的结构（视频需作为li的子元素，而非背景图）
*/


.cb-slideshow li {
  position: absolute; /* 所有轮播项重叠定位 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 默认层级，播放时提升层级显示 */
  opacity: 0; /* 初始隐藏，通过动画控制显示 */
  /* 轮播动画：12秒/张，线性过渡，无限循环（需配合@keyframes） */
  animation: imageAnimation 72s linear infinite; 
  -webkit-animation: imageAnimation 72s linear infinite;
}

/* 
  1. 第一个轮播项：视频（video.mp4）
  视频无法作为background-image，需用<video>标签嵌入li中，这里定义视频容器样式
*/
.cb-slideshow li:nth-child(1) {
  z-index: 1; /* 初始显示时优先层级 */
  opacity: 1; /* 默认显示第一个轮播项（视频） */
  animation-delay: 0s; /* 视频从0秒开始播放 */
}

/* 视频标签样式：全屏覆盖，无声循环播放 */
.cb-slideshow li:nth-child(1) video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 视频自适应容器，保持比例不拉伸 */
  border: none;
  outline: none;
  mute: muted; /* 静音播放（避免自动播放被浏览器拦截） */
  loop: loop; /* 循环播放 */
}

/* 2. 第二个轮播项：第一张图片（letter_bg_01.jpg） */
.cb-slideshow li:nth-child(2) {
  background-image: url(../images/letter_bg_01.jpg);
  background-size: cover; /* 图片覆盖容器 */
  background-position: center; /* 图片居中 */
  animation-delay: 12s; /* 视频播放12秒后显示此图 */
}

/* 3. 第三个轮播项：第二张图片（letter_bg_02.jpg） */
.cb-slideshow li:nth-child(3) {
  background-image: url(../images/letter_bg_02.jpg);
  background-size: cover;
  background-position: center;
  animation-delay: 24s; /* 第2张图在12秒后显示（总时长24s） */
}

/* 4. 第四个轮播项：第三张图片（letter_bg_03.jpg） */
.cb-slideshow li:nth-child(4) {
  background-image: url(../images/letter_bg_03.jpg);
  background-size: cover;
  background-position: center;
  animation-delay: 36s; /* 第3张图在12秒后显示（总时长36s） */
}

/* 5. 第五个轮播项：新增图片（letter_bg_04.jpg） */
.cb-slideshow li:nth-child(5) {
  background-image: url(../images/letter_bg_04.jpg);
  background-size: cover;
  background-position: center;
  animation-delay: 48s; /* 新增图片在12秒后显示（总时长48s） */
}

/* 6. 第六个轮播项：重复视频（形成完整循环） */
.cb-slideshow li:nth-child(6) {
  animation-delay: 60s; /* 第5张图播放12秒后，重复显示视频（总时长60s） */
}

/* 重复视频的样式（与第一个轮播项一致） */
.cb-slideshow li:nth-child(6) video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  outline: none;
  mute: muted;
  loop: loop;
}

/* 
  轮播动画关键帧：控制每个轮播项的显示与隐藏
  每个项显示12秒（72秒总时长 ÷ 6个项 = 12秒/项）
*/
@keyframes imageAnimation {
  0% { opacity: 0; animation-timing-function: ease-in; }
  8.33% { opacity: 1; animation-timing-function: ease-out; } /* 12秒 ÷ 72秒 = 16.66%，这里取一半作为显示峰值 */
  16.66% { opacity: 1; } /* 保持显示12秒（0-16.66%时段） */
  25% { opacity: 0; } /* 12秒后淡出 */
  100% { opacity: 0; }
}

/* 兼容webkit内核浏览器 */
@-webkit-keyframes imageAnimation {
  0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
  8.33% { opacity: 1; -webkit-animation-timing-function: ease-out; }
  16.66% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}


@keyframes imageAnimation { 
	0% {
	    opacity: 0;
	    animation-timing-function: ease-in;
	}
	8% {
	    opacity: 1;
	    transform: scale(1.15);
	    animation-timing-function: ease-out;
	}
	17% {
	    opacity: 1;
	    transform: scale(1.20);
	}
	25% {
	    opacity: 0;
	    transform: scale(1.40);
	}
	100% { opacity: 0 }
}


@media screen and (max-width: 1140px) { 
    .cb-slideshow li div h3 { font-size: 140px }
}
@media screen and (max-width: 600px) { 
    .cb-slideshow li div h3 { font-size: 80px }
	.tm-content {
		margin-top: 80px;
	}
}

@media screen and (max-width: 576px) { 
    .cb-slideshow li div h3 { font-size: 80px }
	
	.tm-btn-subscribe {
		margin-top: 20px;
	}
}
