:root {
  color-scheme: dark;
  --bg-base: #050709;
  --bg-elevated: #0a0e12;
  --text-primary: #e6eaf0;
  --text-secondary: #a8b2bf;
  --divider: #141a21;
  --accent: #1bb9a5;
  --radius-lg: 16px;
  --transition: 220ms ease;
  --vh: 1vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100%;
}

body {
  background:
    radial-gradient(120% 140% at 82% -10%, rgba(27, 185, 165, 0.18), rgba(5, 7, 9, 0)) no-repeat,
    radial-gradient(80% 80% at 12% 0%, rgba(64, 112, 149, 0.15), rgba(5, 7, 9, 0)) no-repeat,
    var(--bg-base);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 12vw, 120px) 0;
  position: relative;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 32px);
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 6vw, 56px);
}

.section-header > * {
  flex: 1;
  min-width: 220px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 6vw, 64px);
}

.hero {
  padding: clamp(120px, 18vh, 180px) clamp(24px, 6vw, 64px);
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(3, 5, 7, 0.92), rgba(5, 8, 10, 0.4));
  mix-blend-mode: multiply;
  opacity: var(--hero-overlay, 0.35);
  z-index: 1;
  pointer-events: none;
  /* 确保在极端比例下也能显示 */
  min-height: 100%;
  min-width: 100%;
  will-change: opacity;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  justify-items: center;
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 94px);
  margin: 0;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 520px;
  color: rgba(230, 234, 240, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.7;
  margin: 0 auto;
}

.hero-cta {
  display: flex;
  gap: clamp(16px, 3vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  border-radius: var(--radius-lg);
  padding: 14px 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.button.accent {
  background: linear-gradient(135deg, rgba(27, 185, 165, 0.98), rgba(79, 209, 195, 0.9));
  color: #021013;
  box-shadow: 0 18px 38px rgba(6, 44, 39, 0.45);
}

.button.accent:hover,
.button.accent:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(11, 52, 47, 0.55);
  filter: brightness(1.08);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  border-color: rgba(27, 185, 165, 0.8);
  background: rgba(27, 185, 165, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(27, 185, 165, 0.6),
    0 16px 36px rgba(27, 185, 165, 0.24);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: transparent;
  transition: width var(--transition), height var(--transition);
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 16px !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-zh, .brand-en {
  display: block;
  margin: 0 !important;
  line-height: 1.2;
}

.brand-zh {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 24px;
}

.primary-nav a {
  position: relative;
  padding-bottom: 6px;
  color: rgba(230, 234, 240, 0.72);
  transition: color var(--transition);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--text-primary);
}

.primary-nav a:hover::after,
.primary-nav a:focus::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-size-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-size-btn {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.logo-size-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.logo-size-btn.active {
  background: var(--accent);
  color: #031818;
  font-weight: 600;
}

/* Logo size variants */
.brand-logo.small {
  width: 32px;
  height: 32px;
}

.brand-logo.medium {
  width: 48px;
  height: 48px;
}

.brand-logo.large {
  width: 64px;
  height: 64px;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.lang-toggle span {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.lang-toggle span.active {
  background: var(--accent);
  color: #031818;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 24, 33, 0.9);
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
  margin-right: 12px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition);
}

.products-grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  grid-template-columns: 1fr;
}

.products-grid .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(40px, 8vw, 60px);
  background: rgba(6, 12, 18, 0.6);
  border-radius: calc(var(--radius-lg) * 1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(214, 222, 229, 0.78);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 24px);
  }

  /* 中等屏幕品牌标识优化 */
  .brand-text {
    font-size: 10px;
    gap: 1px;
  }

  .brand-link {
    gap: 16px !important;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 20px);
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.5vw, 18px);
  }
}

.products {
  position: relative;
  overflow: hidden;
}

.products::before {
  content: "";
  position: absolute;
  inset: -20% -20% 45% -20%;
  background: radial-gradient(70% 80% at 50% 0%, rgba(25, 143, 211, 0.18), rgba(5, 7, 9, 0));
  opacity: 0.6;
  pointer-events: none;
}

.products .container {
  position: relative;
  z-index: 1;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 32px);
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 6vw, 48px);
}

.chip-bar {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: calc(var(--radius-lg) * 1.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 18, 0.45);
  backdrop-filter: blur(18px);
  min-height: 58px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chip-bar::-webkit-scrollbar {
  height: 4px;
}

.chip-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.chip:hover,
.chip:focus {
  border-color: rgba(27, 185, 165, 0.6);
  color: var(--text-primary);
}

.chip.active {
  color: var(--text-primary);
  border-color: rgba(27, 185, 165, 0.85);
  background: linear-gradient(135deg, rgba(27, 185, 165, 0.18), rgba(27, 185, 165, 0.05));
  box-shadow: 0 12px 28px rgba(2, 26, 24, 0.35);
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.products-toolbar .search-box {
  flex-shrink: 0;
}

.product-card {
  background: rgba(12, 18, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: calc(var(--radius-lg) * 1.05);
  padding: clamp(16px, 2.2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vw, 16px);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  transition: border-color var(--transition), opacity var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(27, 185, 165, 0.5);
  box-shadow: 0 18px 48px rgba(2, 18, 26, 0.42);
}

.product-card:hover::after,
.product-card:focus-within::after {
  border-color: rgba(27, 185, 165, 0.7);
  opacity: 1;
}

.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius-lg) * 0.6);
  overflow: hidden;
  background: rgba(14, 22, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 320ms ease, transform 640ms ease;
  background: rgba(14, 22, 28, 0.6);
  min-width: 100%;
  min-height: 100%;
  /* Chrome浏览器兼容性修复 */
  -webkit-transform: scale(1.05);
  -webkit-transition: opacity 320ms ease, -webkit-transform 640ms ease;
  will-change: opacity, transform;
}

.product-card.loaded .product-thumb img {
  opacity: 1;
  transform: scale(1.02);
  -webkit-transform: scale(1.02);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.product-meta h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
}

.product-intro {
  color: rgba(214, 222, 229, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  text-align: left;
  width: 100%;
}

/* 英文版本产品简介 - 更小的字体和更紧密的排版 */
.product-intro-en {
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 5;
  max-height: 7em;
  text-align: left;
}

.product-params {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
}

.product-params .param-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  background: transparent;
  border: none;
  min-height: auto;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-params .param-item:last-child {
  border-bottom: none;
}

.product-params .param-label {
  font-size: 0.82rem;
  color: rgba(214, 222, 229, 0.75);
  font-weight: 500;
  margin-right: 12px;
  flex: 0 0 auto;
  min-width: 40%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.product-params .param-value {
  font-size: 0.86rem;
  color: rgba(214, 222, 229, 0.95);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.product-params .param-unit {
  font-size: 0.75rem;
  color: rgba(214, 222, 229, 0.6);
  font-weight: 400;
}

.product-params span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-params span strong {
  color: var(--text-primary);
  font-weight: 600;
}

.product-params span small {
  font-size: 0.75rem;
  color: rgba(214, 222, 229, 0.55);
  margin-left: 4px;
}

.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.copy {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(27, 185, 165, 0.18);
  color: var(--accent);
  border: 1px solid rgba(27, 185, 165, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
}

.top-button:hover {
  background: rgba(27, 185, 165, 0.35);
  border-color: var(--accent);
  transform: scale(1.1);
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 12, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

.lightbox-frame {
  width: min(80vw, 920px);
  height: min(70vh, 620px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: 100%;
}

.lightbox-info {
  width: min(80vw, 920px);
  padding: 16px 24px 0;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  display: none;
}

.lightbox-info:not(:empty) {
  display: block;
}

.lightbox-product-name {
  font-weight: normal;
}

.lightbox-image-name {
  display: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  background: rgba(17, 24, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.lightbox-close {
  position: absolute;
  top: clamp(24px, 4vw, 40px);
  right: clamp(24px, 4vw, 40px);
}

.search-box {
  position: relative;
}

.search-box::before {
  content: '\1F50D';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: rgba(168, 178, 191, 0.6);
  pointer-events: none;
}

.search-box input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 12px 20px 12px 44px;
  color: var(--text-primary);
  min-width: 260px;
  backdrop-filter: blur(14px);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input:focus {
  border-color: rgba(27, 185, 165, 0.8);
  box-shadow: 0 0 0 4px rgba(27, 185, 165, 0.15);
  outline: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 9, 0.85);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 300;
}

.login-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.login-panel {
  background: rgba(17, 24, 33, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
}

.login-panel input {
  width: 260px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.login-panel input.error {
  border-color: #ff6b6b;
  animation: shake 260ms ease;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Admin */
.admin-body {
  background: radial-gradient(circle at top, rgba(27, 185, 165, 0.08), transparent 45%), var(--bg-base);
  color: var(--text-primary);
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: linear-gradient(180deg, rgba(27, 185, 165, 0.08), transparent 35%) no-repeat;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(24px, 5vw, 48px) clamp(24px, 6vw, 80px) 18px;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-save-banner {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(27, 185, 165, 0.16);
  color: var(--text-primary);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.admin-save-banner[data-state='visible'] {
  opacity: 1;
  transform: translateY(0);
}

.admin-save-banner[data-variant='error'] {
  background: rgba(244, 96, 84, 0.24);
}

.admin-save-banner[data-variant='warning'] {
  background: rgba(255, 188, 87, 0.24);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-brand img.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
}

.admin-brand img.logo-small {
  width: 32px;
  height: 32px;
}

.admin-brand img.logo-medium {
  width: 52px;
  height: 52px;
}

.admin-brand img.logo-large {
  width: 64px;
  height: 64px;
}

/* Logo size slider styles */
.logo-size-slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-size-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.logo-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-size-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-size-slider::-webkit-slider-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.logo-size-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

.slider-output {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  background: rgba(27, 185, 165, 0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  min-width: 60px;
}

.slider-output span {
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.admin-branding {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-brand-zh {
  font-size: 1.1rem;
  font-weight: 600;
}

.admin-brand-en {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-nav button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  min-width: 150px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.admin-nav button strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-nav button span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.admin-nav button:hover,
.admin-nav button:focus-visible {
  border-color: rgba(27, 185, 165, 0.5);
  color: var(--accent);
  transform: translateY(-1px);
}

.admin-nav button.active {
  border-color: rgba(27, 185, 165, 0.6);
  background: rgba(27, 185, 165, 0.12);
  color: var(--accent);
}

.admin-main {
  display: grid;
  gap: 40px;
  padding: 0 clamp(24px, 6vw, 80px) 72px;
}

.admin-section {
  scroll-margin-top: 160px;
}

.section-card {
  background: rgba(17, 24, 33, 0.82);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(3, 8, 13, 0.45);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 28px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
}

.section-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-secondary);
  max-width: 520px;
}

.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-table {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  background: rgba(8, 12, 17, 0.65);
}

.admin-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table input,
.admin-table select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sortable-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sortable-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(11, 15, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.sortable-item:focus-within,
.sortable-item:hover {
  border-color: rgba(27, 185, 165, 0.3);
  background: rgba(11, 15, 20, 0.6);
  transform: translateY(-1px);
}

.sortable-item input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
}

.sortable-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.products-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.products-admin-layout > * {
  height: 100%;
}

.product-index {
  background: rgba(8, 12, 17, 0.7);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(16px, 2.2vw, 28px);
  display: grid;
  gap: 14px;
}

.product-overview {
  background: rgba(6, 10, 15, 0.65);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  margin-bottom: 16px;
}

.overview-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  justify-content: center;
  padding: 20px;
}

.overview-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ff6b6b;
  font-size: 0.9rem;
  padding: 12px;
  background: rgba(255, 107, 107, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-details h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.product-details {
  display: grid;
  gap: 8px;
}

.product-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.product-detail-item.error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.product-folder {
  color: var(--text-primary);
  font-weight: 500;
}

.product-detail-item.error .product-folder {
  color: #ff6b6b;
}

.product-image-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.product-detail-item.error .product-image-count {
  color: rgba(255, 107, 107, 0.8);
}

.product-index-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-index-header > div {
  flex: 1;
}

.product-index-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.product-index-header p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#refreshProducts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

#refreshProducts svg {
  flex-shrink: 0;
}

#refreshProducts:hover svg {
  animation: spin 0.6s ease-in-out;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.product-editor {
  background: rgba(6, 10, 15, 0.65);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: clamp(18px, 2.5vw, 32px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.product-editor > form {
  flex: 1;
}

.editor-placeholder {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  color: var(--text-secondary);
  min-height: 360px;
}

.editor-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.editor-summary h2 {
  margin: 0;
  font-size: 1.4rem;
}

.editor-summary-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.editor-summary-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.editor-summary-cover {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.editor-summary-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(27, 185, 165, 0.9);
}

.product-editor-form {
  display: grid;
  gap: 12px;
}

.product-editor-form.compact {
  gap: 10px;
}

.form-section {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.018);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.specs-section {
  padding: 12px;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label,
.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: border-color var(--transition), background var(--transition);
}

/* 自定义封面图片选择器样式 */
.custom-cover-selector {
  width: 100%;
  margin-top: 8px;
}

.selector-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cover-image-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.cover-image-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cover-image-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.cover-image-item:last-child {
  margin-bottom: 0;
}

.cover-image-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cover-image-item .image-info {
  flex: 1;
}

.cover-image-item .image-info div:first-child {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cover-image-item .image-info div:last-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cover-image-item .checkmark {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cover-image-item.selected {
  background: rgba(27, 185, 165, 0.15);
  border-color: rgba(27, 185, 165, 0.4);
}

.cover-image-item.selected .checkmark {
  opacity: 1;
}

.no-images {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

/* 滚动条样式 */
.cover-image-list::-webkit-scrollbar {
  width: 6px;
}

.cover-image-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.cover-image-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.cover-image-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(27, 185, 165, 0.6);
  background: rgba(27, 185, 165, 0.08);
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.field-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.field-inline input {
  flex: 1;
}

.field-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.product-editor-top {
  display: grid;
  gap: 10px;
}

.product-index .sortable-item.active,
.product-index .sortable-item:focus-visible {
  border-color: rgba(27, 185, 165, 0.45);
  background: rgba(27, 185, 165, 0.1);
}

.product-index .sortable-item.active span {
  color: var(--accent);
}

.product-index .sortable-item {
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.product-index .sortable-item:active {
  transform: scale(0.99);
}

.product-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.product-editor-actions .button {
  padding: 10px 20px;
}

.field-note[data-state='loading'] {
  color: var(--text-secondary);
}

.field-note[data-state='success'] {
  color: var(--accent);
}

.field-note[data-state='warning'] {
  color: #f2c94c;
}

.field-note[data-state='error'] {
  color: #ff6b6b;
}

.param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.param-grid--dense {
  gap: 12px;
}

.param-item--category {
  grid-column: 1 / -1;
}

.param-item--category select {
  min-height: 44px;
}

.param-grid .param-item {
  display: grid;
  gap: 6px;
}

.images-collection {
  display: block;
}

.image-pill-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.image-pill {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-pill[data-state='cover'] {
  border-color: rgba(27, 185, 165, 0.6);
  background: rgba(27, 185, 165, 0.08);
  color: var(--accent);
}

.image-pill-path {
  flex: 1;
  overflow-wrap: anywhere;
}

.image-pill-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(27, 185, 165, 0.18);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-panel {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.data-card {
  background: rgba(8, 12, 17, 0.72);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.data-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid fieldset {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px 18px 20px;
  display: grid;
  gap: 14px;
}

.slider-output {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tag-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-input label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.tag-input span {
  font-size: 0.85rem;
}

.tag-input input {
  accent-color: var(--accent);
}

.button.danger {
  border-color: rgba(255, 107, 107, 0.45);
  color: #ff6b6b;
}

.button.danger:hover,
.button.danger:focus-visible {
  border-color: rgba(255, 107, 107, 0.75);
  color: #ff8787;
}

.product-status {
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 1em;
  transition: opacity var(--transition);
}

.product-status[hidden] {
  display: none;
}

.product-card.is-loading {
  pointer-events: none;
}

.product-card.is-loading .product-status {
  color: var(--text-secondary);
}


/* 640-767px区间样式 - 修复窗口收窄时背景图片不可见问题 */
@media (min-width: 641px) and (max-width: 767px) {
  .hero {
    min-height: 100vh;
    position: relative;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
  }
}

/* Responsive */
/* 768px以下屏幕的移动端样式 */
@media (max-width: 768px) {
  body[data-screen='mobile'] .container {
    width: 100%;
    padding-inline: clamp(18px, 5vw, 28px);
  }

  body[data-screen='mobile'] .primary-nav {
    position: fixed;
    inset: 0 0 0 40%;
    background: rgba(11, 15, 20, 0.96);
    transform: translateX(100%);
    transition: transform var(--transition);
    display: grid;
    align-content: center;
  }

  body[data-screen='mobile'] .primary-nav.open {
    transform: translateX(0);
  }

  body[data-screen='mobile'] .primary-nav ul {
    flex-direction: column;
    gap: 32px;
    padding-left: 32px;
  }

  body[data-screen='mobile'] .nav-toggle {
    display: inline-flex;
  }
  
  /* 移动端hero图片样式 - 修复选择器问题 */
  .hero {
    min-height: 100vh;
    position: relative;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
  }
}

body[data-screen='mobile'] .admin-header {
  position: static;
  padding: 24px;
  gap: 18px;
}

body[data-screen='mobile'] .admin-header-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

body[data-screen='mobile'] .admin-header-actions {
  width: 100%;
  justify-content: flex-start;
}

body[data-screen='mobile'] .admin-nav {
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

body[data-screen='mobile'] .admin-nav button {
  min-width: 140px;
}

body[data-screen='mobile'] .admin-main {
  padding: 0 24px 56px;
  gap: 32px;
}

body[data-screen='mobile'] .section-card {
  padding: 24px;
  border-radius: 20px;
}

body[data-screen='mobile'] .products-admin-layout {
  grid-template-columns: 1fr;
}

body[data-screen='mobile'] .product-index {
  position: static;
}

body[data-screen='mobile'] .products-toolbar {
  flex-direction: column;
  align-items: stretch;
}

body[data-screen='mobile'] .products-toolbar .search-box,
body[data-screen='mobile'] .products-toolbar .search-box input {
  width: 100%;
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 120px 20px;
    min-height: 100vh;
    position: relative;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    min-height: 100vh;
  }

  .hero-content {
    width: min(520px, 100%);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-cta .button {
    width: min(260px, 100%);
  }

  .chip-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-screen='mobile'] .primary-nav {
    inset: 0 0 0 20%;
  }

  .admin-nav {
    flex-wrap: nowrap;
  }

  .section-card {
    padding: 20px;
  }

  .form-section {
    padding: 16px;
  }

  /* 移动端品牌标识优化 */
  .brand-link {
    gap: 12px !important;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text {
    font-size: 10px;
    gap: 1px;
  }

  .brand-zh {
    font-size: 0.75rem;
  }

  .site-header {
    padding: 12px clamp(12px, 3vw, 24px);
  }

  .products-overview {
    padding: clamp(48px, 10vw, 80px) 0;
  }
  
  .products-overview h2 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  
  .products-overview .copy {
    font-size: 1rem;
  }

}

/* Products Overview Section */
.products-overview {
  background: linear-gradient(135deg, rgba(27, 185, 165, 0.04) 0%, rgba(64, 112, 149, 0.04) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.products-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 185, 165, 0.04) 0%, rgba(64, 112, 149, 0.04) 100%);
  z-index: 1;
  pointer-events: none;
}

.products-overview h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  margin: 0.5em 0;
  letter-spacing: -0.02em;
}

.products-overview .copy {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5em;
}

/* Products Overview Images - Carousel Gallery */
.products-overview-images {
  position: relative;
  width: 100%;
  margin-top: clamp(32px, 6vw, 64px);
  overflow: hidden;
}

.products-overview-gallery {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  padding: 0 20px;
}

.overview-image-card {
  flex: 0 0 auto;
  width: 280px;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  margin: 0 8px;
  opacity: 0.7;
  transform: scale(0.9);
  filter: brightness(0.8);
}

.overview-image-card.active {
  width: 400px;
  height: 280px;
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  margin: 0 16px;
  z-index: 2;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.overview-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info Overlay */
.overview-image-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.overview-image-card .product-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Navigation Arrows */
.products-overview-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(27, 185, 165, 0.1);
  border: 2px solid rgba(27, 185, 165, 0.3);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.nav-arrow:hover {
  background: rgba(27, 185, 165, 0.2);
  border-color: var(--accent);
  transform: scale(1.1);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.carousel-indicator.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .overview-image-card {
    width: 200px;
    height: 140px;
    margin: 0 4px;
  }
  
  .overview-image-card.active {
    width: 280px;
    height: 200px;
    margin: 0 8px;
  }
  
  .products-overview-nav {
    margin-top: 16px;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-indicators {
    margin-top: 16px;
  }
}

/* About Section Icon Styles */
.about-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.about-icon-inline {
  width: 192px;
  height: 192px;
  opacity: 0.5;
  filter: grayscale(0.3);
  transition: all var(--transition);
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  border: none;
  padding: 0;
}

.about-icon-inline:hover {
  opacity: 0.8;
  filter: grayscale(0);
  transform: scale(1.1);
  background: transparent;
}

/* About Section Content Styles */
#aboutContent.copy {
  columns: 1;
  column-gap: 0;
  line-height: 1.6;
  text-align: left;
  hyphens: none;
}

/* Adjust spacing between About Us title and image */
#aboutTitle {
  margin-bottom: 8px;
}

.about-icon-inline {
  margin-top: 8px;
}

/* Mobile adjustments for about icon */
@media (max-width: 768px) {
  .about-title-container {
    gap: 12px;
  }
  
  .about-icon-inline {
    width: 144px;
    height: 144px;
    border-radius: 8px;
    padding: 0;
  }
}
