* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: #FFF;
	color: #000;
	overflow-x: hidden;
	font-family:
		"PingFang SC",
		"PingFang Medium",
		"PingFang Light",
		"PingFang Regular",
		"PingFang SC Heavy",  /* macOS 10.11+ */
		"PingFang Heavy",     /* macOS 10.11+ 备用名 */
		"Microsoft YaHei UI", /* Windows */
		"Microsoft YaHei",    /* Windows 备用 */
		"Hiragino Sans GB",   /* 旧版macOS/部分Linux */
		"Source Han Sans SC", /* 思源黑体 */
		"Noto Sans SC",       /* 思源黑体备用 */
		sans-serif;
}

/* 导航栏样式 - 浮动在幻灯片上方 */
header {
	top: 0;
	left: 0;
	width: 100%;
	height: 72px;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	transition: background-color 0.4s ease;	
}

header.fixed {
	position: fixed;
}

header.transparent {
	background-color: #FFF;
}

header.transparent.fixed {
	background-color: transparent;
}

header.scrolled {
	background-color: rgba(0, 0, 0, 0.8);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#openSearch {
	width: 24px;
	height: 24px;
	background-image: url('../images/search.png');
}

.nav-container {
	width: 1400px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-container img{
	height: 21px;
}

.nav-links {
	display: flex;
	list-style: none;
	flex: 1;
	justify-content: center;
	gap: 60px;
	padding: 0 20px;
}

.nav-links li a {
	color: #000;
	text-decoration: none;
	font-size: 18px;
	font-weight: 400;
	transition: color 0.3s;
	white-space: nowrap;
	position: relative;
	padding-top: 8px;
	padding-bottom: 8px;
	overflow: visible;
}

header.fixed .nav-links li a {
	color: white;
}

.nav-links li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 4px;
	background-color: #ff6700;
	transition: width 0.3s ease;
	display: block;
}

.nav-links li a:hover::after {
	width: 100%;
}

.nav-links li a:hover {
	
}

header.fixed .nav-links li .active,
.nav-links li .active {
	color: #EB6C00
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 60px;
}

.search-icon {
	color: white;
	font-size: 18px;
	cursor: pointer;
	transition: color 0.3s;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s;
}

/* 语言切换区域（滑动滑块） */
.lang-switch {
	position: relative;
	display: flex;
	align-items: center;
	height: 26px;
	width: 68px;
	cursor: pointer;
	background-color: #F3F3F3;
	border-radius: 4px;
}
.lang-options {
	display: flex;
	position: relative;
	z-index: 2;
}
.lang-option {
	line-height: 100%;
	font-size: 16px;
	color: #000;
	transition: color 0.3s ease;
	width: 34px;
	text-align: center;
}
.lang-option.active {
	color: #FFF;
}
.lang-slider {
	position: absolute;
	left: 0;
	width: 34px;
	height: 100%;
	border-radius: 3px;
	transition: transform 0.3s ease; /* 滑块滑动动画 */
	z-index: 1; /* 位于文字下方 */
	background-color: #EB6C00;
}

.dropdown-parent {
	position: relative;
}

.dropdown-menu {
	position: absolute;
	top: 46px;           /* 紧贴父项底部 */
	left: -30%;
	width: 132px;        /* 固定宽度160px */
	background: transparent;   /* 容器透明，间隔可见 */
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 1050;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s ease, opacity 0.25s ease;
}

/* 悬浮父级时显示下拉菜单 */
.dropdown-parent:hover .dropdown-menu {
	visibility: visible;
	opacity: 1;
}

/* 每个菜单项样式：宽160px，高60px，下边距4px，黑色半透明背景 */
.dropdown-menu li {
	width: 132px;
	height: 60px;
	margin-bottom: 4px;          /* 间隔4px */
	background: rgba(0, 0, 0, 0.3);  /* 黑色透明度40% */
	border-radius: 6px;          /* 柔和圆角，可选，不破坏视觉 */
	transition: all 0.2s ease;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(0px);   /* 保证纯半透明，无模糊 */
}

/* 最后一个菜单项去除下边距，保证不溢出多余间距 */
.dropdown-menu li:last-child {
	margin-bottom: 0;
}

/* 菜单内链接样式：块级撑满、白色文字、无下划线、居中 */
.dropdown-menu li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-size: 20px;
	font-weight: 400;
	text-decoration: none;
	letter-spacing: 1px;
	transition: all 0.2s ease;
	background: transparent;
	border-radius: 6px;
}

/* 移除继承的下划线伪元素，保证纯净 */
.dropdown-menu li a::after {
	display: none !important;
	content: none;
}

/* 悬停高亮效果：背景加深或增加亮色边框，提升交互 */
.dropdown-menu li:hover {
	background: rgba(0, 0, 0, 0.65);
	transform: translateY(-1px);
}

.dropdown-menu li:hover a {
	color: #EB6C00;
}

.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 72px;
	background-color: white;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
}

.search-overlay.active {
	opacity: 1;
	visibility: visible;
}

.search-container {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
}

.logo-container {
	flex-shrink: 0;
	margin-left: 12%;
}

.search-main {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
}

.search-box-container {
	margin: 0 auto;
	width: 100%;
}

.search-box {
	display: flex;
	height: 30px;
	background: #FFF;
	border-radius: 50px;
	padding: 0 15px;
	transition: all 0.3s ease;
}

.search-box:focus-within {
	
}

.search-icon {
	width: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c757d;
	font-size: 1.1rem;
}

.search-input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-size: 1rem;
	padding: 0 10px;
	color: #495057;
	font-weight: 500;
}

.search-input::placeholder {
	color: #adb5bd;
	font-weight: 400;
}

.clear-btn {
	width: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000;
	font-size: 1.1rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
}

.clear-btn.visible {
	opacity: 1;
	visibility: visible;
}

.suggestions-box {
	position: fixed;
	top: 72px;
	left: 0;
	width: 100%;
	background: white;
	box-shadow: 0 15px 35px rgba(0,0,0,0.1);
	padding: 25px;
	display: none;
	z-index: 1001;
	border-top: 1px solid #f0f0f0;
	max-height: calc(100vh - 72px);
	overflow-y: auto;
}

.suggestions-box.visible {
	display: block;
}

.suggestions-title {
	font-size: 1.1rem;
	color: #495057;
	margin-bottom: 5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 40%;
	margin-left: auto;
	margin-right: auto;
	padding: 0 10px;
}

.suggestions-box ul{
	width: 40%; 
	margin-left: auto; 
	margin-right: auto; 
	padding-left: 1%; 
	list-style-type: none;
	text-align: left;
}

.suggestions-box ul li a{
	text-decoration: none;
	color: #000;
}

.close-btn {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #ff6700, #ff8c00);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 1.3rem;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
	transition: all 0.2s ease;
	margin-left: 30px;
}

.close-btn:hover {
	transform: rotate(90deg);
}

.placeholder-div{
	height: 100px;
}

.category {
    height: 315px;
    /*max-width: 1920px;*/
	width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
    background-color: #FFF;
    z-index: 1000;
    /* 改为占位布局，移除浮动定位 */
    position: absolute;		/* 或 fixed, top: 72px; 实现菜单跟随 */
	/*position: relative; 	/* 或 fixed 改为相对定位实现占位网页而不是浮动在表面效果 */
    width: 100%;
    display: none; 			/* 初始隐藏，通过JS控制显示 */
    
    /* 优化动画效果 */
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    max-height: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, max-height 0.4s ease;
}

/* 显示时的动画状态 */
.category.show {
    display: flex;
    transform: scaleY(1);
    opacity: 1;
    max-height: 315px; /* 确保高度过渡 */
}

/* 隐藏时的动画状态 */
.category.hiding {
    transform: scaleY(0);
    opacity: 0;
    max-height: 0;
}

.category .active {
    color: #ff6700;
}

/* 确保页面内容在category下方，不会被遮挡 */
/*main, .page-content {
    position: relative;
    z-index: 1;
}*/

.category-item {
    height: 222px;
    flex: 0 0 auto;
    width: 240px;
    justify-content: space-between;
    align-items: center;
    border-right: none;
	margin-top: 47px;
	text-align: center;
	opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-item a{
	color: #000;
	text-decoration: none;
}

.category-item a img{
	width: 168px;
}

.category.show .category-item {
    opacity: 1;
    transform: translateY(0);
}

/* 为每个项目添加不同的延迟效果 */
.category.show .category-item:nth-child(1) { transition-delay: 0.1s; }
.category.show .category-item:nth-child(2) { transition-delay: 0.15s; }
.category.show .category-item:nth-child(3) { transition-delay: 0.2s; }
.category.show .category-item:nth-child(4) { transition-delay: 0.25s; }
.category.show .category-item:nth-child(5) { transition-delay: 0.3s; }

/* 添加悬停效果 */
.category-item:hover {
    transform: translateY(-2px);
}

.category-item img {
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item span {
	padding: 0;
	display: block;
	font-size: 20px;
	line-height: 24px;
	margin-top: 20px;
}



/* 导航容器 - 放宽最大宽度，容纳英文长菜单 */
.lang-en .nav-container {
    max-width: 1400px;   /* 从 1240px 增加到 1400px */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航链接 - 自动收缩间距，不溢出 */
.lang-en .nav-links {
    display: flex;
    list-style: none;
    flex: 1;
    justify-content: center;
    gap: 30px;           /* 默认间距从 60px 减小到 30px */
    padding: 0 20px;
    flex-wrap: nowrap;   /* 保持单行 */
}

/* 菜单项文字 - 允许轻微缩放或缩小内边距 */
.lang-en .nav-links li a {
    font-size: 16px;
    white-space: nowrap;
    padding: 8px 3px;    /* 左右内边距从 5px 减为 3px，释放更多空间 */
}

/* 下拉菜单容器 - 自适应宽度 + 居中对齐 */
.lang-en .dropdown-menu {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;          /* 宽度由最宽的子项决定 */
    min-width: 120px;            /* 保证最小可点击区域 */
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.25s ease;
}

/* 每个菜单项 - 宽度自适应内容，保持圆角与间距 */
.lang-en .dropdown-menu li {
    width: auto;                 /* 自适应内容宽度 */
    min-width: 120px;            /* 与容器最小宽度协调 */
    height: 50px;
    margin-bottom: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;         /* 强制单行，避免换行破坏布局 */
}

/* 菜单链接 - 内边距保证舒适间距 */
.lang-en .dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 0 20px;             /* 左右留白，避免文字贴边 */
    white-space: nowrap;
    background: transparent;
    border-radius: 6px;
}

/* 移除继承的下划线伪元素 */
.lang-en .dropdown-menu li a::after {
    display: none !important;
    content: none;
}

/* 悬停高亮效果保持不变 */
.lang-en .dropdown-menu li:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-1px);
}
.lang-en .dropdown-menu li:hover a {
    color: #EB6C00;
}

/* 响应式：屏幕较窄时进一步压缩间距和字号 */
@media (max-width: 1300px) {
    .lang-en .nav-links {
        gap: 20px;
    }
    .nav-links li a {
        font-size: 15px;
        padding: 8px 2px;
    }
}

@media (max-width: 1150px) {
    .lang-en .nav-links {
        gap: 15px;
    }
    .lang-en .nav-links li a {
        font-size: 14px;
        padding: 8px 2px;
    }
}

@media (max-width: 1000px) {
    .lang-en .nav-links {
        gap: 10px;
    }
    .nav-links li a {
        font-size: 13px;
    }
}

/* 极窄屏幕（如平板竖屏）允许菜单换行，避免隐藏 */
@media (max-width: 900px) {
    .lang-en .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .lang-en .nav-links li a {
        font-size: 14px;
        padding: 6px 8px;
    }
}