/* 全谱光电企业官网 — 规范：1200 内容区 / 微软雅黑 / 白+蓝 */
:root {
  --blue: #0084cf;
  --blue-dark: #006bab;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg-page: #fff;
  --bg-gray: #f5f5f5;
  --bg-gray-alt: #f8f8f8;
  --border: #e8e8e8;
  --container: 1200px;
  --header-offset: 0px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(0, 91, 172, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 91, 172, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* —— 固定头部 —— */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.top-bar {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 28px;
  padding: 8px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.icon-wechat {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav-shell {
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s, transform 0.2s;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav-main a:hover {
  color: #fff;
}

.nav-main a:hover::after {
  width: 100%;
}

.nav-item--dropdown {
  position: relative;
}

.nav-dropdown-trigger::after {
  display: none;
}

.nav-item--dropdown > .nav-dropdown-trigger {
  padding-right: 14px;
}

.nav-item--dropdown > .nav-dropdown-trigger::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -2px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  opacity: 0.85;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 120px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover {
  background: var(--bg-gray);
  color: var(--blue);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.header--solid .nav-dropdown-trigger::before {
  border-top-color: var(--text);
}

#site-header:not(.header--solid) .nav-dropdown {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* 滚动后实色导航 */
.header--solid .top-bar {
  background: var(--blue);
}

.header--solid .nav-shell {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header--solid .nav-main a {
  color: var(--text);
}

.header--solid .nav-main a::after {
  background: var(--blue);
}

.header--solid .nav-main a:hover {
  color: var(--blue);
}

/* —— 首屏 Banner —— */
.hero {
  min-height: 640px;
  padding-top: 120px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 0;
  background-color: #0a4a7a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 35, 70, 0.78) 0%,
    rgba(0, 60, 110, 0.5) 42%,
    rgba(0, 80, 140, 0.28) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px 20px 40px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 18px;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 132, 207, 0.85);
  border-radius: 999px;
}

.hero-desc {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  max-width: 900px;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.18);
}

.advantage-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

/* —— 通用区块 —— */
.section {
  padding: 56px 0;
  scroll-margin-top: 100px;
}

.section--gray {
  background: var(--bg-gray);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.section-sub {
  margin: 0;
  font-size: 16px;
  color: var(--text-light);
}

/* —— 关于我们 —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray-alt);
  border: 1px solid var(--border);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body h2 {
  margin: 0 0 16px;
  font-size: 26px;
  color: var(--text);
}

.about-body p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.85;
}

/* —— 产品卡片 —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card-grid--cases {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-card__media-wrap {
  display: block;
}

.product-card__media,
.media-slot {
  aspect-ratio: 16 / 10;
  background: var(--bg-gray-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}

.product-card__media img,
.media-slot--cover img,
.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot--cover {
  display: block;
  width: 100%;
}

.media-slot--empty {
  flex-direction: column;
  gap: 6px;
  text-align: center;
  padding: 12px;
  min-height: 120px;
}

.media-slot--empty small {
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
}

.qual-card__img .media-slot,
.case-card__media .media-slot {
  aspect-ratio: 4 / 3;
  min-height: 100%;
}

.qual-card__img .media-slot--empty,
.case-card__media .media-slot--empty {
  min-height: 160px;
}

.subsection-title {
  margin: 36px 0 20px;
  font-size: 20px;
  text-align: center;
  color: var(--text);
}

.qual-grid--patents {
  margin-bottom: 8px;
}

.product-gallery {
  background: var(--bg-gray-alt);
}

.product-gallery__main {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoomable-image {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.image-lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.lightbox-open {
  overflow: hidden;
}

.product-gallery__thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.product-gallery__thumb {
  flex: 1;
  max-width: 33.33%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s, transform 0.2s;
}

.product-gallery__thumb:hover {
  transform: scale(1.03);
}

.product-gallery__thumb.is-active {
  border-color: var(--blue);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 22px 20px 24px;
}

.product-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text);
}

.product-card__text {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 132, 207, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn--ghost:hover {
  background: rgba(0, 132, 207, 0.06);
  transform: scale(1.05);
}

.actions-row {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  gap: 16px;
}

/* —— 案例 —— */
.case-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.case-card__media {
  aspect-ratio: 4 / 3;
  background: var(--bg-gray-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.case-card__title {
  padding: 16px 18px;
  margin: 0;
  font-size: 16px;
  color: var(--text);
  text-align: center;
}

/* —— 联系我们 —— */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-brand {
  padding-right: 20px;
}

.logo--contact {
  display: inline-flex;
  margin-bottom: 16px;
}

.logo--contact .logo-img {
  height: 56px;
  max-width: 280px;
}

.contact-summary {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 20px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-light);
}

.footer-nav a:hover {
  color: var(--blue);
}

.contact-meta {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

.contact-meta strong {
  color: var(--text);
}

.form-card {
  background: var(--bg-gray-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.form-card h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: var(--text);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 132, 207, 0.15);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: #1a9f5c;
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.toast--error {
  background: #c0392b;
}

.form-row--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* —— 页脚版权 —— */
.site-footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  text-align: center;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 16px;
}

.site-footer .footer-links a {
  font-size: 14px;
  color: var(--text-light);
}

.site-footer .footer-links a:hover {
  color: var(--blue);
}

.copyright {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* —— 浮动条 —— */
.float-bar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: -2px 4px 16px rgba(0, 0, 0, 0.12);
}

.float-bar a {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 14px 10px;
  font-size: 12px;
  color: #fff;
  background: #e54545;
  letter-spacing: 0.15em;
}

.float-bar__btn {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 14px 10px;
  font-size: 12px;
  color: #fff;
  background: #c93a3a;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.float-bar a:last-child {
  background: #c93a3a;
}

.float-bar a:hover,
.float-bar__btn:hover {
  filter: brightness(1.08);
}

.phone-dialog {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.phone-dialog[hidden] {
  display: none;
}

.phone-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.phone-dialog__panel {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  text-align: center;
}

.phone-dialog__title {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text);
}

.phone-dialog__number {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.phone-dialog__hint {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-light);
}

.phone-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

body.phone-dialog-open {
  overflow: hidden;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.2s;
  z-index: 900;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

/* —— 内页 / 子页 —— */
.page-inner #site-header .nav-shell {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.page-inner .nav-main a {
  color: var(--text);
}

.page-inner .nav-main a.active,
.page-inner .nav-main a:hover {
  color: var(--blue);
}

.nav-main a.active::after {
  width: 100%;
}

.page-hero {
  margin-top: 96px;
  padding: 36px 0 40px;
  background: linear-gradient(180deg, var(--bg-gray) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero__title {
  margin: 12px 0 10px;
  font-size: 30px;
  color: var(--text);
}

.page-hero__desc {
  margin: 0;
  max-width: 900px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  margin: 0 6px;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.case-card__body {
  padding: 16px 18px 20px;
}

.case-card__text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(0, 132, 207, 0.1);
  color: var(--blue);
}

.tag--video {
  background: rgba(229, 69, 69, 0.1);
  color: #c93a3a;
}

.ip-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.ip-stat {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ip-stat__count {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

.ip-stat__label {
  font-size: 14px;
  color: var(--text-light);
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.qual-grid--compact {
  grid-template-columns: repeat(3, 1fr);
}

.qual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.qual-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.qual-card__img {
  aspect-ratio: 4 / 3;
  background: var(--bg-gray-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
}

.qual-card__title {
  margin: 0;
  padding: 12px 14px 16px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--text);
  line-height: 1.5;
}

.section-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.products-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.products-sidebar {
  position: sticky;
  top: calc(var(--header-offset, 0px) + 100px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.products-sidebar__head {
  margin: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}

.products-sidebar__nav {
  display: flex;
  flex-direction: column;
}

.products-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.products-sidebar__link:last-child {
  border-bottom: none;
}

.products-sidebar__link:hover,
.products-sidebar__link.is-active {
  background: var(--bg-gray-alt);
  color: var(--blue);
}

.products-sidebar__arrow {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
}

.products-sidebar__link:hover .products-sidebar__arrow,
.products-sidebar__link.is-active .products-sidebar__arrow {
  color: var(--blue);
}

.products-main {
  min-width: 0;
}

.category-block {
  margin-bottom: 48px;
  scroll-margin-top: 120px;
}

.category-block:last-child {
  margin-bottom: 0;
}

.category-title {
  margin: 0 0 22px;
  padding-left: 14px;
  font-size: 22px;
  color: var(--blue);
  border-left: 4px solid var(--blue);
}

.card-grid--products {
  grid-template-columns: repeat(3, 1fr);
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.case-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
  padding: 28px;
  background: var(--bg-gray-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.case-detail__visual .media-slot--empty,
.case-detail__visual .product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
}

.case-detail__visual .media-slot--empty {
  min-height: 280px;
  background: #e8eef3;
}

.case-video {
  margin: 0 0 20px;
}

.case-video__label {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.case-video__player {
  width: 100%;
  max-height: 360px;
  background: #000;
  border-radius: var(--radius);
}

.case-video__hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.case-video__hint code {
  font-size: 11px;
  color: var(--blue);
}

.case-detail__body h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.case-detail__body p {
  margin: 0 0 18px;
  color: var(--text-light);
  line-height: 1.8;
}

.video-placeholder {
  margin: 0 0 20px;
  padding: 48px 20px;
  text-align: center;
  background: #0a2d4a;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
}

.video-placeholder span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}

.contact-meta a {
  color: var(--blue);
}

.contact-meta a:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .products-sidebar {
    position: static;
    max-width: 360px;
  }

  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid--cases,
  .card-grid--products,
  .qual-grid,
  .qual-grid--compact {
    grid-template-columns: 1fr;
  }

  .ip-stats {
    grid-template-columns: 1fr;
  }

  .case-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    padding-top: 140px;
  }

  .nav-main {
    gap: 8px 16px;
  }

  .float-bar {
    display: none;
  }
}

@media (max-width: 576px) {
  .top-bar-inner {
    justify-content: flex-start;
  }

  .nav-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 40px 0;
  }
}
