/* ========== 基础重置与变量 ========== */
:root {
  --white: #ffffff;
  --off-white: #fafbfc;
  --light-gray: #f1f3f5;
  --mid-gray: #dee2e6;
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --accent: #2d5016;
  --accent-light: #4a7c28;
  --whatsapp-green: #25D366;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
  --radius: 12px;
  --sidebar-width: 240px;
  --header-height: 64px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== 头部 ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 5000;
  overflow: visible;
  transition: box-shadow 0.3s var(--ease-out-expo);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo--image {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-image {
  display: block;
  max-width: 180px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  background: rgba(255,255,255,.78);
  color: var(--accent);
  border: 1px solid rgba(45,80,22,.16);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s var(--ease-out-expo), box-shadow .25s var(--ease-out-expo), background .25s, border-color .25s;
}

.back-btn::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.back-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(45,80,22,.22);
  transform: translateY(-2px);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--whatsapp-green);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.4s var(--ease-out-expo);
  transform: translateY(0);
}

.whatsapp-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

/* ========== Header Right Layout ========== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== 语言切换器 ========== */
.lang-switcher {
  position: relative;
  z-index: 5200;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--light-gray);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  font-family: inherit;
  color: var(--text-primary);
}

.lang-btn:hover {
  background: var(--off-white);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.lang-btn:active {
  transform: translateY(0) scale(0.96);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.3s var(--ease-out-expo);
  z-index: 6000;
  overflow: hidden;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.lang-dropdown a:hover {
  background: var(--off-white);
  color: var(--text-primary);
  padding-left: 20px;
}

/* ========== 搜索框 ========== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--light-gray);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}

.search-toggle:hover {
  background: var(--mid-gray);
  transform: scale(1.08);
}

.search-toggle:active {
  transform: scale(0.94);
}

.search-input-wrap {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: all 0.35s var(--ease-out-expo);
  z-index: 2000;
}

.search-input-wrap.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.search-input-wrap input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--mid-gray);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.search-results.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

.search-result-item:hover {
  background: var(--off-white);
}

.search-result-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--light-gray);
}

.search-result-item .result-info {
  flex: 1;
}

.search-result-item .result-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.search-result-item .result-price {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== RTL 支持 ========== */
body.rtl .sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid rgba(0,0,0,0.04);
}

body.rtl .content {
  margin-left: 0;
  margin-right: var(--sidebar-width);
}

body.rtl .category-list a::before {
  left: auto;
  right: 0;
  border-radius: 4px 0 0 4px;
}

body.rtl .category-list a:hover {
  padding-left: 24px;
  padding-right: 32px;
}

body.rtl .lang-dropdown {
  right: auto;
  left: 0;
}

body.rtl .search-input-wrap {
  right: auto;
  left: 0;
}

/* ========== 主布局 ========== */
.main-layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ========== 侧边栏 ========== */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--white);
  border-right: 1px solid rgba(0,0,0,0.04);
  padding: 32px 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.5s var(--ease-out-expo);
}

.sidebar-title {
  padding: 0 24px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.category-list {
  list-style: none;
}

.category-list li {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s var(--ease-out-expo) forwards;
}

.category-list li:nth-child(1) { animation-delay: 0.1s; }
.category-list li:nth-child(2) { animation-delay: 0.15s; }
.category-list li:nth-child(3) { animation-delay: 0.2s; }
.category-list li:nth-child(4) { animation-delay: 0.25s; }
.category-list li:nth-child(5) { animation-delay: 0.3s; }
.category-list li:nth-child(6) { animation-delay: 0.35s; }

.category-list a {
  display: block;
  padding: 12px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
  transition: all 0.3s var(--ease-out-expo);
}

.category-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s var(--spring);
}

.category-list a:hover {
  color: var(--text-primary);
  background: var(--off-white);
  padding-left: 32px;
}

.category-list a:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.category-list a.active {
  color: var(--accent);
  font-weight: 500;
  background: rgba(45, 80, 22, 0.04);
}

.category-list a.active::before {
  transform: translateY(-50%) scaleY(1);
}

/* ========== 主内容区 ========== */
.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 32px;
  max-width: calc(100vw - var(--sidebar-width));
}

/* ========== 子分类 ========== */
.category-item { position: relative; }

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-name { flex: 1; }

.cat-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out-expo);
}

.category-link.sub-open .cat-arrow {
  transform: rotate(90deg);
}

.subcategory-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.subcategory-list.open {
  max-height: 400px;
}

.subcategory-list li a.subcategory-link {
  display: block;
  padding: 8px 24px 8px 36px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  margin-left: 24px;
}

.subcategory-list li a.subcategory-link:hover,
.subcategory-list li a.subcategory-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 40px;
}

/* ========== 分类页头部 ========== */
.category-page-header {
  margin-bottom: 28px;
}

.category-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.subcategory-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--mid-gray);
  border-radius: 50px;
  background: white;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out-expo);
}

.sub-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sub-filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== 霓虹科技滚动展示 ========== */
.neon-section {
  margin-top: 70px;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.78), transparent 38%),
    linear-gradient(180deg, #f0f1ee 0%, #e6e8e5 100%);
  border-radius: 10px;
  min-height: 0;
  display: block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 24px 70px rgba(20,24,22,.07);
  isolation: isolate;
  padding: 24px 24px 34px;
}

.neon-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20,24,22,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,22,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.neon-section::after {
  content: none;
}

.neon-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.neon-section-head h2 {
  margin: 0;
  color: #162312;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.neon-track-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: transparent;
  padding: 0 74px 8px;
  position: relative;
  perspective: none;
  z-index: 1;
  scrollbar-width: none;
}

.neon-nav {
  position: absolute;
  top: calc(50% + 34px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: #111;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.neon-arrow-icon {
  display: block;
  width: 14px;
  height: 14px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  pointer-events: none;
}

.neon-prev .neon-arrow-icon {
  transform: translateX(2px) rotate(-135deg);
}

.neon-next .neon-arrow-icon {
  transform: translateX(-2px) rotate(45deg);
}

.neon-nav:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
  background: #fff;
}

.neon-prev { left: 18px; }
.neon-next { right: 18px; }

.neon-track-wrap::-webkit-scrollbar {
  display: none;
}

.neon-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  animation: none;
  transform-style: flat;
  will-change: auto;
}

.neon-slide-item {
  flex-shrink: 0;
  width: clamp(280px, 24vw, 370px);
  aspect-ratio: 3 / 5;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border: 0;
  box-shadow: none;
  transform: none;
  transition: transform .32s var(--ease-out-expo);
  background: #202322;
  contain: layout paint;
}

.neon-slide-item:hover {
  transform: translateY(-6px);
  z-index: 2;
}

.neon-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform .45s var(--ease-out-expo);
}

.neon-slide-item:hover img {
  transform: scale(1.04);
}

.neon-slide-title {
  margin: 0 0 18px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(0,0,0,.8);
}

.neon-slide-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 120px 24px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.94), rgba(0,0,0,.58) 52%, transparent);
  color: #fff;
}

.neon-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(170px, 82%);
  min-height: 42px;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.neon-more-btn:hover {
  background: #fff;
  color: #111;
  transform: translateY(-2px);
}

.info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.58);
}

.info-modal-overlay.active {
  display: flex;
}

.info-modal {
  width: min(680px, 100%);
  max-height: min(78vh, 760px);
  overflow: auto;
  position: relative;
  background: #fff;
  color: #111;
  padding: 34px;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.info-modal h2 {
  margin: 0 42px 18px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.info-modal-content {
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
}

.info-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .neon-section {
    min-height: 0;
    margin-top: 44px;
  }
  .neon-track {
    gap: 14px;
    transform-style: flat;
  }
  .neon-track-wrap {
    padding: 0 54px 8px;
  }
  .neon-slide-item {
    width: 78vw;
    transform: translate3d(0, 0, 0);
  }
  .neon-nav {
    width: 46px;
    height: 46px;
    font-size: 2.4rem;
  }
  .neon-prev { left: 10px; }
  .neon-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .neon-section::before,
  .neon-track,
  .neon-slide-item {
    animation: none !important;
  }

  .neon-track {
    transform: none !important;
  }

  .neon-slide-item {
    opacity: 1;
  }
}

/* ========== 轮播图 ========== */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light-gray);
  box-shadow: var(--shadow-lg);
}

.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide.active {
  opacity: 1;
  transform: scale(1);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.banner-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.banner-arrow-icon {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  pointer-events: none;
}

.banner-prev .banner-arrow-icon {
  transform: translateX(2px) rotate(-135deg);
}

.banner-next .banner-arrow-icon {
  transform: translateX(-2px) rotate(45deg);
}

.hero-banner:hover .banner-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.banner-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1) !important;
}

.banner-arrow:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

/* ========== 产品网格 ========== */
.products-section {
  margin-top: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--light-gray);
  transition: all 0.4s var(--ease-out-expo);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 0.15s;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--light-gray);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 20px;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.story-section,
.build-section,
.confidence-section,
.faq-section {
  margin-top: 56px;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading-row h2,
.build-copy h2,
.faq-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  color: var(--text-primary);
}

.section-heading-row p,
.build-copy p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.solution-card,
.confidence-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,251,252,0.88));
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.solution-number {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 26px;
}

.solution-card h3,
.confidence-item h3 {
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.solution-card p,
.confidence-item p,
.faq-list p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.build-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 30px;
  align-items: stretch;
  padding: 36px;
  border-radius: 8px;
  background: #10140f;
  color: white;
  overflow: hidden;
  position: relative;
}

.build-section::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% 45%;
  height: 240px;
  background: radial-gradient(circle, rgba(74,124,40,0.34), transparent 68%);
  pointer-events: none;
}

.build-copy,
.build-steps {
  position: relative;
  z-index: 1;
}

.build-copy h2,
.build-copy p {
  color: white;
}

.build-copy p {
  color: rgba(255,255,255,0.72);
  margin-top: 18px;
}

.build-steps {
  display: grid;
  gap: 12px;
}

.build-step {
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
}

.build-step strong,
.build-step span {
  display: block;
}

.build-step strong {
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.build-step span {
  color: rgba(255,255,255,0.68);
  font-size: 0.88rem;
  line-height: 1.55;
}

.confidence-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.faq-section {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section h2 {
  margin-bottom: 20px;
  text-align: center;
}

.faq-section .section-kicker {
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-list p {
  margin-top: 12px;
}

/* ========== 展示小图区域 ========== */
.showcase-section {
  margin-top: 48px;
  padding-bottom: 20px;
}

.showcase-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.showcase-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all 0.4s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(20px);
}

.showcase-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.showcase-card:active {
  transform: translateY(-1px) scale(0.98);
}

.showcase-card-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.showcase-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.showcase-card:hover .showcase-card-image img {
  transform: scale(1.08);
}

.showcase-card-title {
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* ========== 联系弹窗 WhatsApp 客服链接 ========== */
.contact-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-item-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #e8f8ee;
  color: #128c48;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-out-expo);
}

.contact-item-wa:hover {
  background: #25D366;
  color: white;
  transform: scale(1.05);
}

.contact-item-wa:hover svg path {
  fill: white;
}

/* ========== 动画关键帧 ========== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .content {
    margin-left: 0;
    max-width: 100vw;
    padding: 20px;
  }
  .hero-banner {
    aspect-ratio: 4/5;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  .section-heading-row,
  .build-section {
    grid-template-columns: 1fr;
  }
  .solution-grid,
  .confidence-section {
    grid-template-columns: 1fr;
  }
  .story-section,
  .build-section,
  .confidence-section,
  .faq-section {
    margin-top: 40px;
  }
  .build-section {
    padding: 26px 20px;
  }
  .solution-card,
  .confidence-item,
  .faq-list details {
    padding: 18px;
  }
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--mid-gray);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== 联系按钮 ========== */
.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.4s var(--ease-out-expo);
}

.contact-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.contact-btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.1s;
}

.contact-btn svg { stroke: white; }

/* ========== 联系弹窗 ========== */
.contact-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out-expo);
}

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

.contact-modal {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 90%;
  max-width: 440px;
  position: relative;
  overflow: visible !important;  /* 防止ripple注入改变布局 */
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--spring);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.contact-modal-overlay.show .contact-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-shrink: 0;
  /* 阻止ripple效果影响布局 */
  overflow: hidden;
}

.modal-close:hover {
  background: var(--light-gray);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact-official {
  padding: 20px;
  background: var(--off-white);
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-email-main {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-email-main:hover {
  color: var(--accent-light);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  transition: all 0.2s var(--ease-out-expo);
}

.contact-item:hover {
  border-color: var(--mid-gray);
  transform: translateX(4px);
}

.contact-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-item-email {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-item-email:hover {
  text-decoration: underline;
}

/* ========== 轮播图渐变过渡 ========== */
.banner-gradient-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
  z-index: 5;
}

/* ========== 科技展示区域 ========== */
.tech-section {
  position: relative;
  padding: 80px 0 60px;
  margin-top: 40px;
  overflow: hidden;
}

.tech-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.tech-block {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.7s var(--ease-out-expo);
}

.tech-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-block-1 { transition-delay: 0s; }
.tech-block-2 { transition-delay: 0.15s; }
.tech-block-3 { transition-delay: 0.3s; }

.tech-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(45,80,22,0.08), rgba(74,124,40,0.04));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform 0.4s var(--spring);
}

.tech-block:hover .tech-icon {
  transform: scale(1.1) rotate(-3deg);
}

.tech-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== 页脚 ========== */
.site-footer {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--light-gray);
  margin-top: 60px;
}

/* ============================================
   GLASS SURFACE EFFECT
   ============================================ */

/* 核心 glass 层 */
.glass-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* SVG displacement filter 覆盖层 */
.glass-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: var(--glass-filter, url(#glass-distort-sm));
  backdrop-filter: blur(12px) saturate(1.6) brightness(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.6) brightness(1.05);
  border-radius: inherit;
  pointer-events: none;
}

/* 鼠标光晕 */
.glass-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle 60px at var(--gx, 50%) var(--gy, 50%),
    rgba(255,255,255,0.18) 0%,
    transparent 70%
  );
  transition: background 0.15s ease;
  mix-blend-mode: screen;
}

/* 内容层在 filter 之上 */
.glass-surface > * {
  position: relative;
  z-index: 2;
}

/* 大号 glass (banner arrow) */
.glass-lg::before {
  backdrop-filter: blur(18px) saturate(2) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(2) brightness(1.08);
}

/* shimmer 扫光动画 */
.glass-shimmer::before {
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.07) 40%,
    rgba(255,255,255,0.13) 50%,
    rgba(255,255,255,0.07) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: glassShimmer 4s ease-in-out infinite;
}

@keyframes glassShimmer {
  0%   { background-position: 200% 0; }
  50%  { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Contact / WhatsApp 按钮 glass 样式 */
.glass-surface.contact-btn,
.glass-surface.whatsapp-btn {
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    border-color 0.25s;
}

.glass-surface.contact-btn:hover,
.glass-surface.whatsapp-btn:hover {
  border-color: rgba(255,255,255,0.45);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.18),
    0 0 0 1px rgba(255,255,255,0.15),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 分类导航 glass hover */
.glass-nav-item {
  position: relative;
  overflow: hidden;
}

.glass-nav-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  background: radial-gradient(
    circle 50px at var(--gx, 50%) var(--gy, 50%),
    rgba(45,80,22,0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.2s;
}

.glass-nav-item:hover::after {
  opacity: 1;
}

/* 产品卡片 glass 微效果 */
.product-card.glass-surface {
  border: 1px solid rgba(255,255,255,0.6);
}

.product-card.glass-surface::before {
  backdrop-filter: blur(6px) saturate(1.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
}

/* 轮播箭头按钮 glass */
.banner-arrow.glass-surface {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.banner-arrow.glass-surface::before {
  content: "";
  display: none;
  position: static;
  width: 0;
  height: 0;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.banner-prev.glass-surface .banner-arrow-icon {
  transform: translateX(2px) rotate(-135deg);
}

.banner-next.glass-surface .banner-arrow-icon {
  transform: translateX(-2px) rotate(45deg);
}


/* reduced-motion 回退 */
@media (prefers-reduced-motion: reduce) {
  .glass-shimmer::before { animation: none; }
  .glass-surface::after { transition: none; }
}

/* ========== Responsive consistency override ========== */
html {
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
}

img,
video,
canvas {
  max-width: 100%;
}

.top-category-nav,
.category-topnav {
  max-width: 100vw;
}

.top-category-nav-inner,
.category-topnav-inner {
  max-width: min(1180px, calc(100vw - 32px));
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-category-nav-inner::-webkit-scrollbar,
.category-topnav-inner::-webkit-scrollbar {
  display: none;
}

.top-category-item,
.top-category-link {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  :root {
    --header-height: 58px;
  }

  .header {
    padding: 0 16px;
    gap: 10px;
  }

  .logo {
    font-size: 1.18rem;
    white-space: nowrap;
  }

  .header-right {
    gap: 8px;
  }

  .search-input-wrap {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    left: 12px;
    right: 12px;
    width: auto;
  }

  .contact-btn {
    min-height: 40px;
    padding: 0 12px;
  }

  .contact-btn span {
    display: none;
  }

  .portfolio-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .portfolio-content .hero-banner {
    aspect-ratio: 4 / 5;
    min-height: 360px;
  }

  .portfolio-content .banner-prev {
    left: 14px !important;
  }

  .portfolio-content .banner-next {
    right: 14px !important;
  }

  .portfolio-content .products-section,
  .story-section,
  .neon-section,
  .showcase-section,
  .build-section,
  .confidence-section,
  .tech-section,
  .faq-section {
    width: calc(100vw - 28px);
  }

  .section-heading-row,
  .build-section {
    grid-template-columns: 1fr;
  }

  .story-section,
  .tech-section {
    padding: 44px 20px;
  }

  .build-section {
    padding: 28px 20px;
  }

  .section-heading-row h2,
  .build-copy h2,
  .faq-section h2 {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.05;
  }

  .neon-section {
    padding: 18px 14px 26px;
  }

  .neon-track-wrap {
    padding-left: 52px;
    padding-right: 52px;
  }

  .neon-slide-item {
    width: min(78vw, 330px);
  }
}

@media (max-width: 560px) {
  .lang-btn {
    padding: 7px 10px;
  }

  .top-category-nav {
    top: var(--header-height);
    padding: 10px 12px;
  }

  .top-category-link {
    min-height: 36px;
    padding: 0 14px;
    font-size: .78rem;
  }

  .portfolio-content .hero-banner {
    min-height: 430px;
  }

  .portfolio-content .products-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-content .product-card-image {
    aspect-ratio: 4 / 3;
  }

  .solution-card,
  .confidence-item,
  .faq-list details {
    padding: 18px;
  }

  .showcase-card {
    border-radius: 8px;
  }

  .contact-modal {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px 18px;
  }
}
