/* product-detail */

      .no-scrollbar::-webkit-scrollbar { display: none; }
      .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
      [data-icon] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        background-color: currentColor;
      }
      .product-gallery-main {
        aspect-ratio: 1 / 1;
        background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
      }
      [data-theme="dark"] .product-gallery-main {
        background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-bg-tertiary) 100%);
      }
      .lightbox {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(12, 13, 15, 0.92);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        padding: 1.5rem 5rem 5.5rem;
      }
      /* 初始隐藏：避免页面加载/刷新时闪出灯箱原图（仅点击产品图像后才打开） */
      .lightbox[hidden] {
        display: none;
      }
      .lightbox.active {
        opacity: 1;
        visibility: visible;
      }
      .lightbox img {
        max-width: 100%;
        max-height: calc(100vh - 7rem);
        object-fit: contain;
        border-radius: var(--radius-2xl);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
        transform: scale(0.96);
        transition: transform 0.3s ease;
      }
      .lightbox.active img {
        transform: scale(1);
      }
      .lightbox-close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-full);
        background-color: rgba(255, 255, 255, 0.12);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.18);
        cursor: pointer;
        transition: background-color 0.2s ease;
      }
      .lightbox-close:hover {
        background-color: rgba(255, 255, 255, 0.22);
      }
      .lightbox-nav {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 52px;
        height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-full);
        border: 1px solid rgba(255, 255, 255, 0.18);
        background-color: rgba(255, 255, 255, 0.12);
        color: white;
        cursor: pointer;
        transform: translateY(-50%);
        transition: background-color 0.2s ease, transform 0.2s ease;
      }
      .lightbox-prev { left: 1.5rem; }
      .lightbox-next { right: 1.5rem; }
      .lightbox-nav:hover { background-color: rgba(255, 255, 255, 0.22); }
      .lightbox-nav:active { transform: translateY(-50%) scale(0.94); }
      .lightbox-nav:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
      .lightbox-counter {
        position: absolute;
        left: 50%;
        bottom: 1.75rem;
        z-index: 2;
        margin: 0;
        padding: 0.4rem 1rem;
        border-radius: var(--radius-full);
        border: 1px solid rgba(255, 255, 255, 0.18);
        background-color: rgba(255, 255, 255, 0.12);
        color: white;
        font-size: var(--text-caption);
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.06em;
        transform: translateX(-50%);
      }
      .product-thumb {
        aspect-ratio: 1 / 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        border: 1px solid var(--color-border-1);
        border-radius: var(--radius-xl);
        background-color: var(--color-bg-secondary);
        cursor: pointer;
        transition: border-color 0.2s ease, background-color 0.2s ease;
      }
      .product-thumb:hover { border-color: var(--color-border-2); }
      .product-thumb.is-active {
        border-color: var(--color-brand);
        background-color: var(--color-brand-soft);
      }
      .product-thumb:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
      .spec-table {
        width: 100%;
        border-collapse: collapse;
        font-size: var(--text-body);
      }
      .spec-table th,
      .spec-table td {
        padding: 0.875rem 1rem;
        text-align: left;
        border-bottom: 1px solid var(--color-border-1);
      }
      .spec-table th {
        font-weight: 500;
        color: var(--color-text-secondary);
        background-color: var(--color-bg-secondary);
        width: 30%;
      }
      [data-theme="dark"] .spec-table th {
        background-color: var(--color-bg-tertiary);
      }
      .spec-table td {
        color: var(--color-text-default);
      }
      .fitment-group h4 {
        font-size: var(--text-body);
        font-weight: 600;
        color: var(--color-yny-graphite);
        margin-bottom: 0.5rem;
      }
      .fitment-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
      }
      .fitment-list span {
        display: inline-flex;
        padding: 0.25rem 0.75rem;
        border-radius: var(--radius-full);
        background-color: var(--color-bg-secondary);
        color: var(--color-text-secondary);
        font-size: var(--text-body-sm);
      }
      [data-theme="dark"] .fitment-list span {
        background-color: var(--color-bg-tertiary);
      }
  
/* products-archive */

      .no-scrollbar::-webkit-scrollbar { display: none; }
      .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
      [data-icon] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        background-color: currentColor;
      }
      .product-card-image {
        aspect-ratio: 1 / 1;
        background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
      }
      [data-theme="dark"] .product-card-image {
        background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-bg-tertiary) 100%);
      }
      /* 列表产品卡 —— 悬停放大特色图像（与产品详情页动效一致） */
      .product-card-image img {
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
      }
      .group:hover .product-card-image img,
      .product-card-image:hover img {
        transform: scale(1.06);
      }
      @media (prefers-reduced-motion: reduce) {
        .product-card-image img { transition: none; }
        .group:hover .product-card-image img,
        .product-card-image:hover img { transform: none; }
      }
  
/* products */

      .product-card-image {
        aspect-ratio: 1 / 1;
        background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
      }
      [data-theme="dark"] .product-card-image {
        background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-bg-tertiary) 100%);
      }
      /* 列表产品卡 —— 悬停放大特色图像（与产品详情页动效一致） */
      .product-card-image img {
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
      }
      .group:hover .product-card-image img,
      .product-card-image:hover img {
        transform: scale(1.06);
      }
      @media (prefers-reduced-motion: reduce) {
        .product-card-image img { transition: none; }
        .group:hover .product-card-image img,
        .product-card-image:hover img { transform: none; }
      }
  
/* search */

      .no-scrollbar::-webkit-scrollbar { display: none; }
      .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
      [data-icon] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
        background-color: currentColor;
      }
      .product-card-image {
        aspect-ratio: 1 / 1;
        background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
      }
      [data-theme="dark"] .product-card-image {
        background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-bg-tertiary) 100%);
      }
      /* 列表产品卡 —— 悬停放大特色图像（与产品详情页动效一致） */
      .product-card-image img {
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
      }
      .group:hover .product-card-image img,
      .product-card-image:hover img {
        transform: scale(1.06);
      }
      @media (prefers-reduced-motion: reduce) {
        .product-card-image img { transition: none; }
        .group:hover .product-card-image img,
        .product-card-image:hover img { transform: none; }
      }
  
/* YNY 官方网站公共组件样式 */
/* 页面级 reveal 滚动动画 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* YNY 品牌与公司页专属样式 */

/* Deep hero node pattern */
.node-line-light {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.5;
  fill: none;
}

.node-dot-light {
  fill: rgba(255, 255, 255, 0.55);
}

/* YNY 联系我们页专属样式 */

/* Custom file input styling */
.file-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* YNY 产品中心·智联方案页专属样式 */

/* Architecture connector lines */
.arch-connector {
  position: absolute;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(230, 33, 42, 0.35), rgba(230, 33, 42, 0.08));
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .arch-connector {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(230, 33, 42, 0.08), rgba(230, 33, 42, 0.35), rgba(230, 33, 42, 0.08));
  }
}

/* YNY 搜索页专属样式 */

/* 搜索胶囊容器 — 与站点导航胶囊保持一致的玻璃拟态风格 */
.search-capsule {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border-2);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .search-capsule {
  background-color: var(--color-surface-glass);
  border-color: var(--color-border-2);
}

/* 移除 input 自带的方形焦点轮廓，避免与胶囊圆角冲突 */
.search-capsule input[type="search"] {
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search-capsule input[type="search"]:focus {
  outline: none;
  box-shadow: none;
}

.search-capsule input[type="search"]::-webkit-search-decoration,
.search-capsule input[type="search"]::-webkit-search-cancel-button,
.search-capsule input[type="search"]::-webkit-search-results-button,
.search-capsule input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* 聚焦时光圈跟随胶囊圆角（box-shadow 继承 border-radius） */
.search-capsule:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-soft);
}
