::-webkit-scrollbar {width: 10px;height: 10px;}
::-webkit-scrollbar-track {background: #eee;border-radius: 4px;}
::-webkit-scrollbar-thumb {background: #999;border-radius: 4px;}
::-webkit-scrollbar-thumb::before {content: "";display: block;position: absolute;top: 2px;left: 2px;right: 2px;bottom: 2px;background: #fff;border-radius: 4px;
}
.fixed .container img {
	filter: brightness(0) invert(1);
}
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .bg-gradient-blue {
        background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
    }
    .hover-scale {
        transition: transform 0.3s ease;
    }
    .hover-scale:hover {
        transform: scale(1.03);
    }
}
.hidden-product {
	display: none;
}

#products-gallery img{height: 288px;}
@media (max-width: 1238px) {#products-gallery img{height: 186px;}}
@media (min-width: 1024px) {#quoteModal > div {max-width: 32rem;}}
@media (max-width: 948px) {#products-gallery img{height: 234px;}}
@media (max-width: 858px) {#products-gallery img{height: 234px;}}
@media (max-width: 768px) {#products-gallery img{height: 296px;}}
@media (max-width: 678px) {#products-gallery img{height: 261px;}}
@media (max-width: 578px) {#products-gallery img{height: 218px;}}
@media (max-width: 478px) {#products-gallery img{height: 197px;}}
@media (max-width: 378px) {#products-gallery img{height: 165px;}}
@media (max-width: 858px) {#embedded-form-container{display: none;}}
@media (max-width: 678px) {#embedded-form-container{display: none;}}
#features .gap-8 .h-48{height: 13rem;}

/* 视频弹窗容器 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.video-modal.show {
  opacity: 1;
  visibility: visible;
}

#demoVideo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}

/* 视频内容容器 */
.video-modal-content {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  max-width: 90%;
  max-height: 90vh;
  transition: all 0.3s;
}

.video-modal.show .video-modal-content {
    transform: translateY(0);
}

/* 视频iframe */
.video-modal-content iframe {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    background-color: #000;
    border: none;
}

.video-modal-content video {
    width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    outline: none;
}

/* 关闭按钮 */
.close-video-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-video-modal:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* 加载动画 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    z-index: 5;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 65%;
        border-radius: 12px;
    }
    
    .close-video-modal {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

/* Modal styles */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	padding: 2rem;
	border-radius: 0.5rem;
	width: 65%;
	max-width: 500px;
	animation: slideIn 0.3s ease-out;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.modal-title {
	font-size: 1.5rem;
	font-weight: bold;
}

.close-modal {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
}

/* 平滑的显示/隐藏过渡 */
#quoteModal {
    opacity: 0;
    visibility: hidden;
    /*transition: all 0.3s ease;*/
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#quoteModal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#quoteModal .relative {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#quoteModal:not(.hidden) .relative {
    transform: translateY(0);
}

/* Form input focus styles */
#quoteForm input:focus,
#quoteForm select:focus,
#quoteForm textarea:focus {
    border-color: #165DFF;
    box-shadow: 0 0 0 1px #165DFF;
}

/* Loading spinner for submit button */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #quoteModal .relative {
        width: 95%;
        padding: 1.5rem;
    }
}

.form-group {
	margin-bottom: 1rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 0.25rem;
}

.submit-btn {
	background-color: #165DFF;
	color: white;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 0.25rem;
	cursor: pointer;
	margin-top: 1rem;
}

.submit-btn:hover {
	background-color: #1248c4;
}

.featured-logos img {
	height: 7.5rem !important;
	width: auto !important;
}

.play-overlay {
	transition: opacity 0.3s ease;
}

/* 当视频播放时隐藏播放按钮 */
video[playing] + .play-overlay {
	opacity: 0;
	pointer-events: none;
}

/* Modal animation */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

.modal {
	animation: fadeIn 0.3s ease-out;
}
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Cookie Modal styles */
#cookieConsentModal {
	animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}