/* 基础重置与字体 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --esc-white: #ffffff;
  --esc-white-light: #fbfbfd;
  --esc-white-medium: #f5f5f7;
  --esc-gray-extra-light: #f2f2f7;
  --esc-gray-light: #e5e5ea;
  --esc-gray: #c7c7cc;
  --esc-gray-medium: #8e8e93;
  --esc-gray-dark: #48484a;
  --esc-black-light: #3a3a3c;
  --esc-black: #1d1d1f;
  /* 极少使用 */
  --esc-blue: #007AFF;
  /* 极少使用，仅作为细微点缀 */
  --esc-gold: #d4af37;
  /* 苹果风格的金色 */
  --esc-space-black: #000000;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 96px;
  --border-radius: 12px;
  --border-radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--esc-gray-dark);
  background-color: var(--esc-white);
  overflow-x: hidden;
}

/* 排版 */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: 5.6rem;
  color: var(--esc-black-light);
}

h2 {
  font-size: 4.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--esc-black-light);
}

h3 {
  font-size: 3.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--esc-black-light);
}

h4 {
  font-size: 2.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--esc-black-light);
}

h5 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-xs);
  color: var(--esc-gray-dark);
}

p {
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--esc-gray-medium);
}

.lead {
  font-size: 2.4rem;
  line-height: 1.4;
  color: var(--esc-gray-dark);
}

.caption {
  font-size: 1.4rem;
  color: var(--esc-gray-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  padding: var(--spacing-xs) var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--esc-gold) 0%, #f9e076 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--esc-white);
  font-weight: bold;
  font-size: 1.8rem;
}

.logo-text {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--esc-gray-dark);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  position: relative;
}

.nav-link {
  font-size: 1.2rem;
  font-weight: 400;
  color: #6e6e73;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  letter-spacing: -0.005em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.nav-link:hover {
  color: #1d1c1d;
}

.nav-link.active {
  color: #1d1c1d;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--esc-gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 下拉菜单样式 - 苹果风格 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f5f5f7;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-radius: 0 0 12px 12px;
  top: calc(100% + 1px);
  left: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-content.apple-style {
  width: auto;
  min-width: 980px;
  max-width: calc(100vw - 40px);
  left: 50%;
  transform: translate(-50%, 5px);
  border-radius: 0 0 18px 18px;
  padding: 20px 0 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  top: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-content.apple-style.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-row {
  display: flex;
  padding: 0 20px;
}

.dropdown-col {
  flex: 1;
  padding: 12px 20px;
  min-width: 200px;
}

.dropdown-col.full-width {
  flex: none;
  width: 100%;
  padding: 20px 40px;
}

.dropdown-col h4 {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8d8d8f;
  font-weight: 400;
}

.dropdown-col .nav-link {
  display: block;
  width: 100%;
  font-size: 1.15rem;
  color: #1d1d1f;
  padding: 7px 0;
  margin: 0;
  border-radius: 0;
  transition: color 0.15s ease;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.dropdown-col .nav-link:hover {
  background-color: transparent;
  color: var(--esc-gold);
}

.dropdown-col.featured {
  border-left: 1px solid #d2d2d7;
  position: relative;
}

.featured-card {
  background: linear-gradient(135deg, #ffffff, #f8f8f9);
  padding: 24px;
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.featured-card h4 {
  font-size: 1.15rem;
  margin: 0 0 12px 0;
  color: #1d1d1f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #8d8d8f;
  font-weight: 400;
}

.featured-card p {
  font-size: 1.15rem;
  color: #6e6e73;
  margin: 5px 0;
  line-height: 1.5;
}

.product-showcase {
  display: flex;
  gap: 30px;
  margin-top: 15px;
  justify-content: space-around;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 1;
}

.product-item img {
  border-radius: 12px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item h5 {
  font-size: 1.15rem;
  margin: 8px 0 4px 0;
  color: #1d1d1f;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.product-item p {
  font-size: 1.1rem;
  margin: 0;
  color: #6e6e73;
  line-height: 1.4;
}

.dropdown-col.showcase {
  padding: 0 40px;
}

.dropdown-col.showcase h3 {
  font-size: 1.2rem;
  margin: 0 0 20px 0;
  color: #1d1d1f;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8d8d8f;
  font-weight: 400;
}

/* <!-- 导航栏 --> */
.dropdown-content .nav-link:hover {
  background-color: var(--esc-white-medium);
  color: var(--esc-black);
}

/* 三级菜单样式 */
.sub-dropdown {
  position: relative;
}

.sub-dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--esc-white);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  border-radius: 8px;
  top: -8px;
  left: calc(100% - 8px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  padding: 16px 0;
}

/* 苹果风格的PC端悬停显示 - 已由JavaScript处理，此处注释掉避免冲突 */
/*
    .dropdown:hover .dropdown-content {
      display: block;
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .sub-dropdown:hover .sub-dropdown-content {
      display: block;
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }
    */

.sub-dropdown-content.show {
  display: block !important;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-dropdown-content .nav-link {
  padding: 8px 24px;
  display: block;
  width: 100%;
  font-size: 1.2rem;
}

.sub-dropdown-content .nav-link:hover {
  background-color: var(--esc-white-medium);
}

.nav-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.btn-nav {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.02);
  color: var(--esc-gray-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--esc-gray-dark);
  font-size: 2.4rem;
  cursor: pointer;
}

/* 苹果风格的移动端菜单 */
@media (max-width: 768px) {
  .navbar {
    padding: var(--spacing-sm);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--esc-white);
    flex-direction: column;
    gap: 0;
    padding: 60px 0 0;
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.show-mobile {
    display: flex;
  }

  .nav-link {
    padding: 15px 20px;
    display: block;
    width: 100%;
    color: var(--esc-black);
    border-bottom: 1px solid var(--esc-gray-light);
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: var(--esc-gray-extra-light);
    padding-left: 20px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .dropdown-content.show-mobile {
    display: block;
    max-height: 70vh;
    /* Changed from 500px to 70vh according to project specification */
    padding: 16px 0;
    overflow-y: auto;
    /* Ensure scroll is enabled when content overflows */
  }

  /* 移动端三级菜单样式 */
  .sub-dropdown-content {
    position: static;
    box-shadow: none;
    background-color: var(--esc-gray-light);
    padding-left: 30px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .sub-dropdown-content.show-mobile {
    display: block;
    max-height: 60vh;
    /* Following project specification for三级 menu */
    padding: 16px 0;
    overflow-y: auto;
    /* Adding scroll when content overflows */
    margin-left: -30px;
    /* Following project specification */
    padding-left: 30px;
    /* Following project specification */
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-section {
    padding: calc(var(--spacing-xl) + 80px) var(--spacing-md) var(--spacing-xl);
  }
}

/* 主要内容区域 */
.main-content {
  margin-top: 80px;
}

/* 英雄区域 */
.hero-section {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
  overflow: hidden;
  background-color: var(--esc-white-light);
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  max-width: 700px;
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* 分区样式 */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-light {
  background-color: var(--esc-white-light);
}

.section-white {
  background-color: var(--esc-white);
}

/* 卡片设计 */
.card {
  background: var(--esc-white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.card .card-title {
  font-size: 2.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--esc-black-light);
}

.card .card-subtitle {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-sm);
  color: var(--esc-gray-dark);
  font-weight: 400;
}

.card .card-description {
  color: var(--esc-gray-medium);
  margin-bottom: var(--spacing-md);
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--esc-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.card .card-link:hover {
  gap: 8px;
}

.card .card-link i {
  font-size: 1.2rem;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3.2rem;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: var(--esc-black);
  color: var(--esc-white);
}

.btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--esc-black);
  color: var(--esc-black);
}

.btn-outline:hover {
  background: var(--esc-black);
  color: var(--esc-white);
}

.btn-sm {
  padding: 0.8rem 2.4rem;
  font-size: 1.4rem;
}

.btn-lg {
  padding: 1.6rem 4rem;
  font-size: 1.8rem;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 2.4rem;
  margin-bottom: var(--spacing-sm);
  color: var(--esc-black-light);
}

.product-description {
  color: var(--esc-gray-medium);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--esc-gray-extra-light);
  border-radius: 50px;
  font-size: 1.2rem;
  color: var(--esc-gray-medium);
  margin-right: 0.5rem;
}

/* 分类导航 */
.category-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  h3 {
    font-size: 2.8rem;
  }

  .navbar {
    padding: var(--spacing-sm);
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-section {
    padding: calc(var(--spacing-xl) + 80px) var(--spacing-md) var(--spacing-xl);
  }
}

/* 页脚样式 */
.footer {
  background-color: #f5f5f7;
  /* 浅灰色背景 */
  padding: 40px 0 0;
  margin-top: var(--spacing-xl);
  color: var(--esc-gray-dark);
  /* 灰黑色字体 */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  padding: 0 var(--spacing-md);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  font-size: 1.4rem;
  color: var(--esc-black);
  /* 更深的颜色 - 黑色 */
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--esc-gray-dark);
  /* 更深的颜色 - 灰黑色 */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 5px 0;
  display: block;
}

.footer-column ul li a:hover {
  color: var(--esc-black);
  /* 悬停时使用纯黑色 */
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px var(--spacing-md);
  border-top: 1px solid var(--esc-gray-light);
  /* 边框使用浅灰色 */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.copyright p {
  font-size: 1.2rem;
  color: var(--esc-gray-dark);
  /* 版权信息也设为灰黑色 */
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--esc-gray-dark);
  /* 链接使用灰黑色 */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0.2rem 0.5rem;
}

.footer-links a:hover {
  color: var(--esc-black);
  /* 悬停时使用黑色 */
}

/* 本地化选择器样式 */
.localization {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}

#country-selector,
#language-selector {
  background: transparent;
  border: 1px solid var(--esc-gray-light);
  border-radius: 4px;
  padding: 0.5rem;
  color: var(--esc-gray-dark);
  font-size: 1.2rem;
  outline: none;
}

#location-indicator {
  font-size: 1.2rem;
  color: var(--esc-gray-dark);
}

/* 移动端特定样式 */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    padding: 0 var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
  }

  .footer-column h4 {
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-column h4::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
  }

  .footer-column h4.collapsed::after {
    content: '\f106';
  }

  .footer-column ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-column ul.expanded {
    max-height: 300px;
  }
}

/* 图片容器样式 */
.image-footer {
  padding: var(--spacing-sm) var(--spacing-md);
  /* 减小上下padding，保持左右padding */
  text-align: center;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: var(--spacing-md);
  /* 只设置列间距，即左右间距 */
  row-gap: 0;
  /* 行间距设置为0，即上下无间距 */
}

.footer-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  padding: 0 10px;
  /* 给每张图片左右额外的间距 */
}