/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); */

:root {
  --brand-orange: #f96c05;
  --brand-orange-hover: #e05e00;
  --brand-dark: #1a1e24;
  --brand-gray: #f4f6f9;
  --brand-text-dark: #222222;
  --brand-text-muted: #666666;
}
html{
  width: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color:transparent;
}
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--brand-text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

.line-1{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.line-2{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.text-primary{
  color: var(--brand-orange, #f96c05);
}

.container-1400{
  max-width: 100%;
  width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.container-1200{
  max-width: 100%;
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}







/* topbar */
header{
  box-shadow: 1px 1px 1px #ccc;
}
.header-topbar {
  background-color: #f5f5f5;
  color: #374151;
  font-size: 0.75rem;
  padding: 0.375rem 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.topbar-container {
  max-width: 90rem;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--brand-orange);
  background-color: rgba(229, 231, 235, 0.6);
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  /* margin-top: 0.25rem; */
  width: 7rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  padding: 0.25rem 0;
  display: none;
  z-index: 60;
}
.lang-switcher:hover .lang-dropdown {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: #374151;
  transition: all 0.2s ease;
}
.lang-item:hover {
  background-color: #f9fafb;
  color: var(--brand-orange);
}
.lang-item.active {
  color: var(--brand-orange);
  background-color: #fff7ed;
  font-weight: 600;
}

/* header main */
.header-main {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .header-main {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .header-main {
    padding: 0 2rem;
  }
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .nav-menu {
    gap: 2rem;
  }
}

.nav-item {
  position: relative;
  padding: 1.75rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #1f2937;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-orange);
}

.nav-arrow {
  font-size: 9px;
  color: #6b7280;
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav-item:hover > .nav-link .nav-arrow {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

.dropdown-l2 {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 13.5rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  display: none;
  z-index: 50;
}
.nav-item:hover > .dropdown-l2 {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-item-l2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
  color: #374151;
  transition: all 0.2s ease;
}
.dropdown-item-l2:hover {
  background-color: #fff7ed;
  color: var(--brand-orange);
}

.sub-arrow {
  font-size: 10px;
  color: #9ca3af;
}
.dropdown-item-l2:hover > .sub-arrow {
  color: var(--brand-orange);
}

.dropdown-l3 {
  position: absolute;
  top: -0.5rem;
  left: 100%;
  min-width: 13rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.12);
  border: 1px solid #f3f4f6;
  padding: 0.5rem 0;
  display: none;
  z-index: 60;
}
.dropdown-item-l2:hover > .dropdown-l3 {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.dropdown-item-l3 {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: #4b5563;
  transition: all 0.2s ease;
}
.dropdown-item-l3:hover {
  background-color: #fff7ed;
  color: var(--brand-orange);
  padding-left: 1.5rem;
}

/* mobile nav */
.mobile-nav-panel {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
  padding: 0.75rem 1rem;
}
@media (max-width: 767px) {
  .mobile-nav-panel.open {
    display: block !important;
    animation: fadeIn 0.25s ease-out;
  }
}

.mobile-m1-item {
  border-bottom: 1px solid #f3f4f6;
}

.mobile-m1-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 0.75rem 0.5rem; */
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}
.mobile-m1-header a, .mobile-m2-header a{
  display: inline-block;
  width: 100%;
  padding: 0.75rem 0.5rem;
}
.mobile-m1-header:hover {
  color: var(--brand-orange);
}

.mobile-icon-arrow {
  font-size: 10px;
  color: #9ca3af;
  transition: transform 0.25s ease;
  display: inline-block;
  padding: 0.75rem 0.5rem;
  width: 58px;
  text-align: center;
  border-left: 1px dashed #efefef;
}

.mobile-m1-item.active > .mobile-m1-header {
  color: var(--brand-orange);
}
.mobile-m1-item.active > .mobile-m1-header .mobile-icon-arrow {
  /* transform: rotate(180deg); */
  color: var(--brand-orange);
}

.mobile-m2-container {
  display: none;
  padding-left: 0.75rem;
  background-color: #fafafa;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.mobile-m1-item.active > .mobile-m2-container {
  display: block;
}

.mobile-m2-item {
  border-bottom: 1px solid #f3f4f6;
}
.mobile-m2-item:last-child {
  border-bottom: none;
}

.mobile-m2-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 0.625rem 0.5rem; */
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}
.mobile-m2-header:hover {
  color: var(--brand-orange);
}

.mobile-m2-item.active > .mobile-m2-header {
  color: var(--brand-orange);
}
.mobile-m2-item.active > .mobile-m2-header .mobile-icon-arrow {
  /* transform: rotate(180deg); */
  color: var(--brand-orange);
}

.mobile-m3-container {
  display: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}
.mobile-m2-item.active > .mobile-m3-container {
  display: block;
}

.mobile-m3-link {
  display: block;
  padding: 0.375rem 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  transition: color 0.2s ease;
}
.mobile-m3-link:hover {
  color: var(--brand-orange);
}

/* Website Map */
.sitemap-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 3px solid var(--brand-orange);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .sitemap-panel.open {
    display: block !important;
    animation: fadeIn 0.3s ease-out;
  }
}

.sitemap-container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  gap: 3.5rem;
}

.sitemap-left {
  width: 14rem;
  flex-shrink: 0;
  padding-right: 1.5rem;
}

.sitemap-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.sitemap-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
}

.sitemap-right {
  flex: 1;
  border-top: 1px solid #e5e7eb;
}

.sitemap-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.sitemap-label {
  width: 11rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
  padding-right: 1.5rem;
}

.sitemap-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
  font-size: 0.825rem;
  color: #4b5563;
  flex-wrap: wrap;
}

.sitemap-links a {
  color: #4b5563;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.sitemap-links a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

.sitemap-divider {
  color: #d1d5db;
  font-size: 0.75rem;
  user-select: none;
}


/* footer */
footer {
  background-color: #424242;
  color: #fff;
  /* margin-top: 50px; */
}

/* Header 工具按钮 Hover 展开面板 (搜索 & 货币转换) */
.header-search-wrapper,
.header-currency-wrapper {
  position: relative;
}

/* 搜索展开框 */
.search-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  /* margin-top: 0.5rem; */
  width: 18rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.6rem;
  display: none;
  z-index: 70;
  animation: fadeInDown 0.2s ease-out;
}

.header-search-wrapper:hover .search-dropdown-panel {
  display: block;
}

.search-form {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
}
.search-form:focus-within {
  border-color: var(--brand-orange, #f96c05);
  background: #ffffff;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  color: #111827;
}

.search-submit-btn {
  background: var(--brand-orange, #f96c05);
  color: #ffffff;
  border: none;
  border-radius: 0.35rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.search-submit-btn:hover {
  background: var(--brand-orange-hover, #e05e00);
}

/* 货币转换下拉框 */
.currency-dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  /* margin-top: 0.5rem; */
  width: 11rem;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  display: none;
  z-index: 70;
  animation: fadeInDown 0.2s ease-out;
}

.header-currency-wrapper:hover .currency-dropdown-panel {
  display: block;
}

.currency-dropdown-header {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.25rem;
}

.currency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  font-size: 0.825rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
}
.currency-item:hover {
  background-color: #fff7ed;
  color: var(--brand-orange, #f96c05);
}
.currency-item.active {
  color: var(--brand-orange, #f96c05);
  font-weight: 700;
  background-color: #fff7ed;
}

.currency-flag {
  font-weight: 600;
}
.currency-name {
  font-size: 0.75rem;
  color: #6b7280;
}
.currency-item:hover .currency-name {
  color: var(--brand-orange, #f96c05);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Position 位置页头 */
.sort-banner-head {
  position: relative;
  background: #F0F0F0;
  padding: 2rem 0;
  overflow: hidden;
}
.sort-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sort-banner-title {
  font-size: 2rem;
  font-weight: 700;
  /* letter-spacing: 1px; */
}
/* Navigation */
.sort-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.sort-breadcrumb a {
  transition: color 0.2s ease;
}

.sort-breadcrumb a:hover {
  color: var(--brand-orange, #f96c05);
}

.sort-breadcrumb span {
  color: #9ca3af;
}


/* 空状态图与文字 */
.empty-block {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  width: 100%;
}

.empty-img {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.empty-text {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin: 0;
}