/* Core Smart Equipment - Page-specific Styles */

/* --- About Page --- */
.about-hero-detail {
  padding: 100px 0 60px;
}
.about-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.about-detail-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.about-detail-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.about-detail-card .card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}
.about-detail-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.about-detail-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Company Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  padding: 28px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.value-card .value-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.value-card h3, .value-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.value-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Global Map Section */
.global-section {
  padding: 80px 0;
  background: var(--bg-section);
}
.global-section .container {
  max-width: 900px;
}
.region-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.region-item {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.region-item .region-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.region-item h3, .region-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.region-item p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --- Solutions Page --- */
.solutions-detail-section {
  padding: 80px 0;
}
.solution-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.solution-detail-card:last-child {
  border-bottom: none;
}
.solution-detail-card:nth-child(even) .solution-detail-image {
  order: -1;
}
.solution-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.solution-detail-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.solution-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.solution-detail-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.solution-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.solution-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}
.solution-features-list li::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
}

/* --- Contact Page --- */
.contact-page-section {
  padding: 80px 0;
}
.contact-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 48px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-detail-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.contact-detail-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.contact-detail-card .detail-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem;
  color: var(--primary);
}
.contact-detail-card h3, .contact-detail-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-detail-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-detail-card a {
  color: var(--primary);
  font-weight: 500;
}
.contact-detail-card a:hover {
  text-decoration: underline;
}

/* --- News Page --- */
.news-page-section {
  padding: 80px 0;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.news-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.news-list-item .news-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-section);
  aspect-ratio: 4/3;
}
.news-list-item .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-list-item .news-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-list-item .news-body h3 a:hover {
  color: var(--primary);
}
.news-list-item .news-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.news-meta .tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}

/* --- Products Listing Page --- */
.products-page-section {
  padding: 80px 0;
}
.products-page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.products-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}
.products-sidebar h2, .products-sidebar h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}
.sidebar-category {
  margin-bottom: 8px;
}
.sidebar-category a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text);
  transition: all var(--transition);
}
.sidebar-category a:hover,
.sidebar-category a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.sidebar-category a .arrow {
  font-size: 0.75rem;
  transition: transform var(--transition);
}
.sidebar-category a:hover .arrow {
  transform: translateX(4px);
}
.products-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .products-page-grid { grid-template-columns: 1fr; }
  .products-sidebar { position: static; }
  .products-main-grid { grid-template-columns: repeat(2, 1fr); }
  .about-detail-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .region-list { grid-template-columns: repeat(2, 1fr); }
  .solution-detail-card { grid-template-columns: 1fr; }
  .solution-detail-card:nth-child(even) .solution-detail-image { order: 0; }
  .contact-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list-item { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .products-main-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .region-list { grid-template-columns: 1fr; }
  .contact-detail-grid { grid-template-columns: 1fr; }
  .news-list-item { grid-template-columns: 1fr; }
  .solution-features-list { grid-template-columns: 1fr; }
}

/* ===== Resource / Download Skeleton Pages ===== */
.page-section { padding: 56px 0 72px; }
.page-breadcrumb { margin-bottom: 24px; }
.page-title { font-size: 2.2rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.page-intro { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; max-width: 760px; margin-bottom: 40px; }
.download-placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.download-placeholder .dp-icon { font-size: 2.4rem; margin-bottom: 16px; line-height: 1; }
.download-placeholder h2 { font-size: 1.4rem; color: var(--dark); margin-bottom: 12px; }
.download-placeholder p { color: var(--text-light); line-height: 1.8; max-width: 560px; margin: 0 auto 24px; }

/* ===== Driver Download List ===== */
.download-list { display: grid; gap: 20px; margin-top: 40px; }

/* H2 section title on support download pages (heading hierarchy fix, 2026-08-19) */
.dl-section-title { font-size: 1.45rem; font-weight: 700; color: var(--dark); margin: 0 0 20px; }
.dl-section-title + .download-list { margin-top: 0; }
.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.download-icon {
  flex: 0 0 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.download-icon svg { width: 42px; height: 42px; }
.download-info { flex: 1; min-width: 0; }
.download-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.download-info p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}
.download-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.download-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.download-btn svg { flex: 0 0 auto; }

@media (max-width: 680px) {
  .download-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .download-icon { flex-basis: auto; width: 64px; }
  .download-btn { width: 100%; justify-content: center; }
}

/* === Operation Videos === */
.video-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 28px;
}
.video-count { color: var(--text-light); margin: 0; font-size: 15px; }
.video-layout-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.video-layout-toggle button {
  border: 0; background: var(--bg); color: var(--text-light);
  padding: 8px 18px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s;
}
.video-layout-toggle button.active { background: var(--primary); color: #fff; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Masonry layout: one-click switch via toggle button */
.video-grid.masonry {
  display: block;
  column-count: 3;
  column-gap: 28px;
}
.video-grid.masonry .video-card { margin-bottom: 28px; break-inside: avoid; }

.video-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.video-card:hover, .video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fff;
  overflow: hidden;
  padding: 6px;
}
.video-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.video-grid.masonry .video-poster { object-fit: contain; } /* masonry keeps the full image */
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0, 82, 204, .92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s, background .2s;
}
.play-btn svg { width: 30px; height: 30px; margin-left: 3px; }
.video-card:hover .play-btn { transform: translate(-50%,-50%) scale(1.08); background: var(--primary); }
.video-meta { padding: 18px 20px 22px; }
.video-card-title { font-size: 17px; margin: 0 0 8px; color: var(--text); line-height: 1.4; }
.video-card-title a { color: var(--text); text-decoration: none; }
.video-card-title a:hover { color: var(--primary); }
.video-card-desc { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.6; }
.video-card-desc a { color: var(--text-light); text-decoration: none; }
.video-card-desc a:hover { color: var(--primary); }
.video-empty { color: var(--text-light); padding: 40px 0; }

/* Lightbox / Modal */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(8, 12, 24, .85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 2000; padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-inner { position: relative; width: min(92vw, 1100px); }
.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-modal-frame iframe,
.video-modal-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-modal-close {
  position: absolute;
  top: -44px; right: 0;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.video-modal-close:hover { background: rgba(255,255,255,.3); }

/* Responsive: desktop 3 / tablet 2 / mobile 1 */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid.masonry { column-count: 2; }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-grid.masonry { column-count: 1; }
}

/* === Operation Videos: Sidebar Filter Layout === */
.video-page-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.video-sidebar {
  background: #fff;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 96px;
}
.video-sidebar h2, .video-sidebar h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.filter-group {
  border-top: 1px solid #eef1f5;
  padding: 14px 0;
}
.filter-group:first-of-type {
  border-top: none;
  padding-top: 4px;
}
.filter-group h3, .filter-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  cursor: pointer;
}
.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.filter-option:hover { color: var(--text); }
.filter-reset {
  margin-top: 14px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--border, #e0e0e0);
  background: #f5f7fa;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-reset:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 860px) {
  .video-page-grid { grid-template-columns: 1fr; }
  .video-sidebar { position: static; }
}

/* ========== VIDEO DETAIL PAGE ========== */
.video-detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.video-cat-nav {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.video-cat-nav h3, .video-cat-nav h4 { font-size: 1rem; margin-bottom: 12px; color: var(--dark); }
.cat-group { margin-bottom: 18px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-group-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.video-cat-nav ul { list-style: none; padding: 0; margin: 0; }
.video-cat-nav li a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.4;
  transition: background .18s, color .18s;
}
.video-cat-nav li a:hover { background: var(--bg-soft); color: var(--primary); }
.video-cat-nav li a.active { background: var(--primary); color: #fff; }
.cat-empty { padding: 8px 10px; color: var(--text-light); font-size: .9rem; font-style: italic; }

.video-detail-title { font-size: 1.8rem; color: var(--dark); margin-bottom: 18px; line-height: 1.3; }
.video-player-wrap { margin: 8px 0 20px; }
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-player.vertical { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.video-detail-desc { color: var(--text-light); line-height: 1.8; margin-bottom: 22px; }

.vd-downloads { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.vd-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  transition: background .18s, transform .18s;
}
.vd-dl:hover { background: var(--primary-dark); transform: translateY(-1px); }
.vd-dl-ico { display: inline-flex; }
.vd-dl-ico svg { width: 18px; height: 18px; }

.vd-section-title { font-size: 1.3rem; color: var(--dark); margin: 10px 0 18px; }
.vd-steps { display: grid; gap: 22px; }
.vd-step {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.vd-step-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #cbd5e1;
  display: block;
}
.vd-step-text h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; }
.vd-step-text p { color: var(--text-light); line-height: 1.7; }

.vd-bullets { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.vd-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-light);
  line-height: 1.7;
}
.vd-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.vd-bullets a { color: var(--primary); font-weight: 600; }
.vd-bullets a:hover { text-decoration: underline; }
.vd-section-title + .vd-bullets { margin-top: -6px; }

.video-related {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.video-related h3, .video-related h4 { font-size: 1rem; margin-bottom: 14px; color: var(--dark); }
.related-card {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .18s, box-shadow .18s;
}
.related-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.related-thumb {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .85rem;
  line-height: 1.5;
  padding: 10px;
}
.related-title { padding: 10px 12px; font-size: .9rem; color: var(--text); }

.vd-inquiry { background: var(--bg-soft); }
.vd-inquiry .page-title { text-align: left; }
.vd-inquiry .page-intro { text-align: left; }

@media (max-width: 1024px) {
  .video-detail-layout { grid-template-columns: 200px 1fr; }
  .video-related { grid-column: 1 / -1; position: static; }
}
@media (max-width: 720px) {
  .video-detail-layout { grid-template-columns: 1fr; }
  .video-cat-nav { position: static; }
  .vd-step { grid-template-columns: 1fr; }
  .video-detail-title { font-size: 1.5rem; }
}

/* ========== PRODUCT PAGE VIDEO ENTRY CARD ========== */
.video-embed-card { max-width: 640px; }
.video-embed-link {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.video-embed-link:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.video-embed-thumb {
  position: relative;
  flex: 0 0 180px;
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.video-embed-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.video-embed-thumb .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-embed-thumb .play-btn svg { width: 48px; height: 48px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.video-embed-info h3 { font-size: 1.1rem; color: var(--dark); margin-bottom: 6px; }
.video-embed-info p { color: var(--text-light); font-size: .95rem; line-height: 1.6; margin: 0; }
@media (max-width: 600px) {
  .video-embed-link { flex-direction: column; align-items: flex-start; }
  .video-embed-thumb { flex-basis: auto; width: 100%; }
}

/* ===== Product Page Trust Bar (首屏信任条) ===== */
.pd-trustbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.pd-trustbar .tb-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  min-width: 130px;
}
.pd-trustbar .tb-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.pd-trustbar .tb-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 680px) {
  .pd-trustbar { gap: 8px; }
  .pd-trustbar .tb-item { flex: 1 1 40%; min-width: 0; padding: 8px 12px; }
}

/* ===== Product Page Business Terms (商务条件透明块) ===== */
.pd-terms {
  margin-top: 26px;
  padding: 22px 24px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pd-terms h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.pd-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}
.pd-term {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.pd-term:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.pd-term .term-label {
  font-size: 0.76rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pd-term .term-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
}
.pd-term .term-value a { color: var(--primary); }
@media (max-width: 600px) {
  .pd-terms-grid { grid-template-columns: 1fr; }
  .pd-term:nth-last-child(-n+2) { border-bottom: 1px dashed var(--border); padding-bottom: 12px; }
  .pd-term:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ===== Product Page Layout (left gallery / right info, standard across all product pages) ===== */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}
.pd-gallery { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: start; }
.pd-tagline {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 500;
}
.pd-keyspecs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.pd-keyspecs span {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .pd-layout { grid-template-columns: 1fr; gap: 24px; }
  .pd-info { order: 2; }
  .pd-gallery { order: 1; }
}

/* ===== Product Page Tabs (Zebra-style horizontal nav) ===== */
.pd-tabs {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding: 0 20px;
}
.pd-tab-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pd-tab-btn {
  flex: 0 0 auto;
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
  font-family: inherit;
}
.pd-tab-btn:hover { color: var(--primary); }
.pd-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.pd-tab-panels { padding: 32px 0 8px; }
.pd-tab-panel { display: none; animation: pd-fadein 0.25s ease; }
.pd-tab-panel.active { display: block; }
.pd-tab-panel h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.pd-tab-panel p { color: var(--text); line-height: 1.75; margin-bottom: 14px; }
.pd-tab-panel p:last-child { margin-bottom: 0; }
@keyframes pd-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 680px) {
  .pd-tab-btn { padding: 12px 14px; font-size: 0.85rem; }
  .pd-tab-panels { padding: 20px 0 0; }
}

/* ===== Tab Resource Cards (Videos / Manuals / SDK) ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.resource-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.18s, transform 0.18s;
}
.resource-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.resource-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.resource-body { flex: 1; min-width: 0; }
.resource-body h3, .resource-body h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.resource-body p { font-size: 0.85rem; color: var(--text-light); line-height: 1.55; margin-bottom: 8px; }
.resource-meta { font-size: 0.75rem; color: var(--text-light); margin-bottom: 12px; opacity: 0.85; }
.resource-cta {
  display: inline-block;
  padding: 7px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.18s;
}
.resource-cta:hover { background: var(--primary-dark); }
.resource-cta.outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.resource-cta.outline:hover { background: var(--primary); color: #fff; }

/* ===== Tab Compatibility Table (SDK) ===== */
.compat-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.9rem; }
.compat-table th, .compat-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.compat-table th { background: var(--dark); color: #fff; font-weight: 600; }
.compat-table td:first-child { font-weight: 600; color: var(--dark); background: var(--bg-section); }
.compat-table tr:nth-child(even) td { background: #fafafa; }
.sdk-cta {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.sdk-cta-text { flex: 1; min-width: 220px; }
.sdk-cta-text h3, .sdk-cta-text h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.sdk-cta-text p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ===== Product Detail Tabs (Zebra-style) ===== */
.pd-tabs-wrap { padding: 56px 0 48px; }
.pd-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}
.pd-tab-btn {
  flex: 1 1 0;
  text-align: center;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.pd-tab-btn:hover { color: var(--dark); }
.pd-tab-btn.active { color: var(--primary); }
.pd-tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.pd-tab-panels { min-height: 200px; }
.pd-tab-panel { display: none; animation: pdFadeIn 0.25s ease; }
.pd-tab-panel.active { display: block; }
.pd-tab-panel[hidden] { display: none; }
@keyframes pdFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pd-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pd-term-card {
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pd-term-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pd-term-card h3, .pd-term-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin: 0 0 10px;
}
.pd-term-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark);
  margin: 0;
}
.pd-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pd-resource-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.pd-resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.pd-resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bg-section);
  color: var(--primary);
}
.pd-resource-card h3, .pd-resource-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.pd-resource-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 0 18px;
}
.pd-resource-card .btn { font-size: 0.88rem; padding: 10px 20px; }

/* ===== Product demo & factory videos ===== */
.pd-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pd-video-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
}
.pd-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.pd-video-wrap iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}
.pd-video-card h3, .pd-video-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}
.pd-video-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

/* ===== Manual intro link block ===== */
.pd-resource-intro {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pd-resource-intro p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--dark);
}
.pd-resource-intro p a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== SDK compatibility CTA ===== */
.pd-sdk-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 0 0 24px;
  max-width: 760px;
}
.pd-sdk-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 26px 30px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
}
.pd-sdk-cta-text h3, .pd-sdk-cta-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 6px;
}
.pd-sdk-cta-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .pd-tabs-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .pd-tab-btn { flex: 0 0 auto; padding: 14px 16px; font-size: 0.88rem; }
  .pd-terms-grid { grid-template-columns: 1fr; gap: 14px; }
  .pd-resource-grid { grid-template-columns: 1fr; gap: 16px; }
  .pd-resource-card { padding: 26px 22px; }
  .pd-video-grid { grid-template-columns: 1fr; gap: 16px; }
  .pd-sdk-cta { flex-direction: column; align-items: flex-start; }
  .pd-resource-intro { flex-direction: column; align-items: flex-start; }
}

/* --- News Detail Pages (/news/) --- */
.detail-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); padding: 60px 0 40px; color: #fff; }
.detail-hero .breadcrumb a, .detail-hero .breadcrumb span { color: rgba(255,255,255,0.7); }
.detail-hero .breadcrumb a:hover { color: #fff; }
.detail-hero h1 { font-size: 2rem; font-weight: 700; margin-top: 16px; line-height: 1.3; max-width: 800px; }
.detail-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.detail-meta .tag { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.detail-meta .date { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.detail-content { padding: 48px 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.detail-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 32px; }
.detail-main p { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.detail-main h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 32px 0 16px; }
.detail-main ul { padding-left: 24px; margin-bottom: 20px; }
.detail-main li { margin-bottom: 8px; line-height: 1.7; }
.detail-sidebar { position: sticky; top: 100px; height: fit-content; }
.sidebar-box { background: var(--bg-light); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.sidebar-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.related-item { display: flex; gap: 12px; margin-bottom: 16px; cursor: pointer; }
.related-item:last-child { margin-bottom: 0; }
.related-item img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.related-item h3, .related-item h4 { font-size: 0.85rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.related-item:hover h3, .related-item:hover h4 { color: var(--primary); }
.related-item .r-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border-radius: var(--radius-md); padding: 24px; text-align: center; }
.cta-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cta-box p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }
.cta-box .btn { background: #fff; color: var(--primary); padding: 10px 24px; border-radius: var(--radius-sm); font-weight: 600; display: inline-block; }
.cta-box .btn:hover { background: var(--bg-light); }
.not-found { text-align: center; padding: 80px 20px; }
.not-found h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 12px; }
.not-found p { color: var(--text-light); margin-bottom: 24px; }
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-hero h1 { font-size: 1.5rem; }
}

/* ============ Solutions: standard template (shared by all solution pages) ============ */
.sol-hero { margin-bottom: 40px; border-radius: 12px; overflow: hidden; }
.sol-hero img { width: 100%; height: auto; display: block; }
.sol-block { margin-bottom: 50px; }
.sol-lead { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.feature-card { background: var(--bg-alt, #F8FAFC); padding: 24px; border-radius: var(--radius-md); }
.feature-card h3 { margin-bottom: 12px; color: var(--primary); }

.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.equipment-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition); }
.equipment-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.equipment-card a { text-decoration: none; color: var(--text); display: block; }
.equipment-card img { width: 100%; height: 320px; object-fit: contain; background: #f8f9fa; }
.equipment-card h3 { padding: 16px 16px 8px; font-size: 1.1rem; color: var(--primary); }
.equipment-card p { padding: 0 16px 16px; font-size: 0.9rem; color: var(--text-light); }

.scenario-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }
.scenario-nav a { display: inline-block; padding: 8px 16px; background: var(--bg-light); border: 1px solid var(--border); border-radius: 999px; font-size: 0.85rem; color: var(--text); text-decoration: none; transition: all var(--transition); }
.scenario-nav a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.scenario-block { padding: 28px 0; border-top: 1px solid var(--border); scroll-margin-top: 120px; transition: background .2s ease, border-color .2s ease; }
@media (hover: hover) and (min-width: 701px) {
  .scenario-block:hover { background: var(--bg-alt, #F8FAFC); border-color: var(--primary); }
}
.scenario-block h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 12px; }
.scenario-desc { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.device-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.device-chips a { display: inline-block; padding: 6px 14px; background: var(--bg-alt, #F8FAFC); border: 1px solid var(--border); border-radius: 8px; font-size: 0.82rem; color: var(--dark); text-decoration: none; transition: all var(--transition); }
.device-chips a:hover { border-color: var(--primary); color: var(--primary); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.case-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; background: var(--bg); }
.case-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--bg-light); padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.case-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 10px; }
.case-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-q { font-size: 1rem; color: var(--dark); margin-bottom: 8px; font-weight: 700; }
.faq-a { color: var(--text-light); line-height: 1.7; margin: 0; }

.cta-banner { text-align: center; padding: 40px; background: var(--primary); border-radius: 12px; margin-top: 30px; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin: 15px 0; }
.cta-banner .btn-white { background: #fff; color: var(--primary); }
.cta-banner .btn-white:hover { background: var(--bg-light); }

@media (max-width: 700px) {
  .equipment-card img { height: 220px; }
  .scenario-nav a { font-size: 0.8rem; padding: 6px 12px; }
  .scenario-block { scroll-margin-top: 90px; }
}
