/* WP Visual Builder - Component Preview Styles in Canvas */

/* ===== NAV COMPONENT ===== */
.wpvb-nav {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  position: relative;
  z-index: 10;
}
.wpvb-nav.style-logo { justify-content: space-between; }
.wpvb-nav-brand { display: flex; align-items: center; gap: 10px; }
.wpvb-nav-brand img { height: 40px; width: auto; object-fit: contain; }
.wpvb-nav-brand-name { font-weight: 700; font-size: 18px; }
.wpvb-nav-menu { display: flex; align-items: center; list-style: none; gap: 0; }
.wpvb-nav-menu li { position: relative; }
.wpvb-nav-menu > li > a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.wpvb-nav-menu li.has-children > a::after { content: ' ▾'; font-size: 10px; }
.wpvb-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  min-width: 160px;
  list-style: none;
  padding: 6px 0;
  z-index: 100;
}
.wpvb-nav-menu li:hover > .wpvb-nav-dropdown { display: block; }
.wpvb-nav-dropdown li a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 13px;
  color: #374151;
  transition: background 0.2s;
}
.wpvb-nav-dropdown li a:hover { background: #f3f4f6; }

/* ===== BANNER COMPONENT ===== */
.wpvb-banner { position: relative; overflow: hidden; }
.wpvb-banner-slides { display: flex; transition: transform 0.5s ease; }
.wpvb-banner-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}
.wpvb-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wpvb-banner-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wpvb-banner-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  width: auto;
  box-sizing: border-box;
}
.wpvb-banner-title { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.wpvb-banner-subtitle { font-size: 18px; line-height: 1.5; margin-bottom: 20px; }
.wpvb-banner-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.wpvb-banner-btn:hover { opacity: 0.85; }
.wpvb-banner-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 16px;
}
.wpvb-banner-arrow {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.2s;
}
.wpvb-banner-arrow:hover { background: #fff; }
.wpvb-banner-dots {
  position: absolute;
  bottom: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.wpvb-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.wpvb-banner-dot.active { background: #fff; }

/* ===== HEADING COMPONENT ===== */
.wpvb-heading { padding: 24px; }
.wpvb-heading-inner { position: relative; display: inline-block; }
.wpvb-heading-text { line-height: 1.3; }
.wpvb-heading-line {
  display: block;
  border: none;
  border-top-style: solid;
}

/* ===== TEXT COMPONENT ===== */
.wpvb-text { padding: 24px; }
.wpvb-text-content { line-height: 1.7; }

/* ===== IMAGE TEXT COMPONENT ===== */
.wpvb-image-text { padding: 40px 24px; }
.wpvb-image-text-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.wpvb-image-text.layout-right .wpvb-image-text-inner { flex-direction: row-reverse; }
.wpvb-image-text.layout-top .wpvb-image-text-inner { flex-direction: column; }
.wpvb-image-text.layout-bottom .wpvb-image-text-inner { flex-direction: column-reverse; }
.wpvb-image-text-image { flex-shrink: 0; }
.wpvb-image-text-image img, .wpvb-image-text-image video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.wpvb-image-text-content { flex: 1; }
.wpvb-image-text-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.wpvb-image-text-desc { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.wpvb-image-text-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

/* ===== GRID COMPONENT ===== */
.wpvb-grid { padding: 40px 24px; }
.wpvb-grid-inner { display: grid; }
.wpvb-grid-col { border-radius: 8px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.wpvb-grid-col-image { position: relative; overflow: hidden; }
.wpvb-grid-col-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.wpvb-grid-col-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}
.wpvb-grid-col:hover .wpvb-grid-col-mask { opacity: 1; }
.wpvb-grid-col-body { padding: 14px; }
.wpvb-grid-col-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.wpvb-grid-col-desc { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.wpvb-grid-col-price { font-size: 18px; font-weight: 700; color: #7c3aed; margin-bottom: 8px; }
.wpvb-grid-col-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.wpvb-grid-col-btn:hover { opacity: 0.85; }

/* ===== MASK COMPONENT ===== */
.wpvb-mask { }
.wpvb-mask-fullwidth {
  position: relative;
  min-height: 360px;
}
.wpvb-mask-fullwidth-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.wpvb-mask-fullwidth-overlay {
  position: absolute;
  inset: 0;
}
.wpvb-mask-fullwidth-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 60px 48px;
  min-height: 360px;
  box-sizing: border-box;
}
.wpvb-mask-fullwidth-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.wpvb-mask-fullwidth-desc { font-size: 18px; line-height: 1.6; }

.wpvb-mask-grid { padding: 40px 24px; }
.wpvb-mask-grid-inner { display: grid; }
.wpvb-mask-grid-item { position: relative; overflow: hidden; cursor: pointer; }
.wpvb-mask-grid-item img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.4s; }
.wpvb-mask-grid-item:hover img { transform: scale(1.08); }
.wpvb-mask-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.wpvb-mask-grid-item:hover .wpvb-mask-grid-overlay { opacity: 1; }
.wpvb-mask-grid-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.wpvb-mask-grid-desc { font-size: 13px; line-height: 1.5; }

/* ===== TABLE COMPONENT ===== */
.wpvb-table { padding: 24px; overflow-x: auto; }
.wpvb-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wpvb-table th {
  text-align: left;
  font-weight: 600;
  padding: 12px 16px;
}
.wpvb-table td { padding: 10px 16px; }
.wpvb-table tr:not(:last-child) td { border-bottom: 1px solid; }
.wpvb-table thead th:not(:last-child),
.wpvb-table td:not(:last-child) { border-right: 1px solid; }

/* ===== BUTTON COMPONENT ===== */
.wpvb-button-wrap { padding: 20px 24px; }
.wpvb-button {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
}
.wpvb-button.size-sm { padding: 8px 16px; font-size: 13px; }
.wpvb-button.size-md { padding: 12px 24px; font-size: 15px; }
.wpvb-button.size-lg { padding: 16px 32px; font-size: 17px; }
.wpvb-button.style-solid { border: 2px solid transparent; }
.wpvb-button.style-outline { background: transparent !important; border: 2px solid; }
.wpvb-button.style-text { background: transparent !important; border: none; padding-left: 0; padding-right: 0; }

/* ===== SOCIAL COMPONENT ===== */
.wpvb-social { padding: 20px 24px; }
.wpvb-social-inner { display: flex; flex-wrap: wrap; }
.wpvb-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 700;
  font-size: 14px;
}
.wpvb-social-icon.shape-circle { border-radius: 50%; }
.wpvb-social-icon.shape-rounded { border-radius: 8px; }
.wpvb-social-icon.shape-square { border-radius: 0; }
.wpvb-social-icon svg { fill: currentColor; }

/* ===== FOOTER COMPONENT ===== */
.wpvb-footer {
  padding: 24px;
  text-align: center;
  font-size: 14px;
}
.wpvb-footer a { text-decoration: none; transition: color 0.2s; }

/* ===== ANIMATIONS ===== */
[data-animation] {
  opacity: 0;
  transition: none;
}
[data-animation].animated {
  opacity: 1;
}

/* 动画速度 */
[data-anim-speed="slow"]  { animation-duration: 1.2s !important; }
[data-anim-speed="normal"]{ animation-duration: 0.7s !important; }
[data-anim-speed="fast"]  { animation-duration: 0.35s !important; }

/* 动画延迟 */
[data-anim-delay="100"]  { animation-delay: 0.1s !important; }
[data-anim-delay="200"]  { animation-delay: 0.2s !important; }
[data-anim-delay="300"]  { animation-delay: 0.3s !important; }
[data-anim-delay="400"]  { animation-delay: 0.4s !important; }
[data-anim-delay="600"]  { animation-delay: 0.6s !important; }
[data-anim-delay="800"]  { animation-delay: 0.8s !important; }
[data-anim-delay="1000"] { animation-delay: 1s !important; }

/* ── 各动画类型 ── */
[data-animation="fadeIn"]      { animation: wpvbFadeIn 0.7s ease both; }
[data-animation="fadeInUp"]    { animation: wpvbFadeInUp 0.7s ease both; }
[data-animation="fadeInDown"]  { animation: wpvbFadeInDown 0.7s ease both; }
[data-animation="fadeInLeft"]  { animation: wpvbFadeInLeft 0.7s ease both; }
[data-animation="fadeInRight"] { animation: wpvbFadeInRight 0.7s ease both; }
[data-animation="zoomIn"]      { animation: wpvbZoomIn 0.7s ease both; }
[data-animation="zoomOut"]     { animation: wpvbZoomOut 0.7s ease both; }
[data-animation="bounceIn"]    { animation: wpvbBounceIn 0.8s cubic-bezier(.36,.07,.19,.97) both; }
[data-animation="flipInX"]     { animation: wpvbFlipInX 0.7s ease both; }
[data-animation="flipInY"]     { animation: wpvbFlipInY 0.7s ease both; }
[data-animation="rotateIn"]    { animation: wpvbRotateIn 0.7s ease both; }
[data-animation="slideUp"]     { animation: wpvbFadeInUp 0.7s ease both; }
[data-animation="slideDown"]   { animation: wpvbFadeInDown 0.7s ease both; }

/* ── @keyframes ── */
@keyframes wpvbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wpvbFadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wpvbFadeInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wpvbFadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wpvbFadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wpvbZoomIn {
  from { opacity: 0; transform: scale(0.75); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes wpvbZoomOut {
  from { opacity: 0; transform: scale(1.25); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes wpvbBounceIn {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
@keyframes wpvbFlipInX {
  from { opacity: 0; transform: perspective(600px) rotateX(-80deg); }
  to   { opacity: 1; transform: perspective(600px) rotateX(0); }
}
@keyframes wpvbFlipInY {
  from { opacity: 0; transform: perspective(600px) rotateY(-80deg); }
  to   { opacity: 1; transform: perspective(600px) rotateY(0); }
}
@keyframes wpvbRotateIn {
  from { opacity: 0; transform: rotate(-120deg) scale(0.8); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* ===== CODE COMPONENT ===== */
.wpvb-code-block {
  position: relative;
  overflow: hidden;
}
.wpvb-code-block iframe {
  display: block;
  width: 100%;
  border: none;
}
.wpvb-code-preview-label {
  position: absolute;
  top: 6px; right: 8px;
  font-size: 11px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ===== PLACEHOLDER IMAGES ===== */
.wpvb-placeholder-img {
  background: linear-gradient(135deg, #e5e7eb 25%, #f3f4f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 40px;
}

/* ===== FORM COMPONENT ===== */
.wpvb-form-wrap { box-sizing: border-box; }
.wpvb-form-shadow { box-shadow: 0 4px 24px rgba(0,0,0,.10); }
.wpvb-form-header { margin-bottom: 20px; }
.wpvb-form-title { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.wpvb-form-subtitle { margin: 0; font-size: 14px; color: #6b7280; }
.wpvb-form-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.wpvb-form-field { min-width: 0; }
.wpvb-form-field-full { grid-column: 1 / -1; }
.wpvb-form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.wpvb-required { color: #ef4444; margin-left: 2px; }
.wpvb-form-input {
  width: 100%; padding: 10px 12px; border: 1.5px solid #d1d5db;
  border-radius: 6px; font-size: 14px; outline: none; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s; background: #fff;
  font-family: inherit;
}
.wpvb-form-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.wpvb-form-footer { margin-top: 20px; }
.wpvb-form-submit {
  border: none; padding: 12px 36px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .2s, transform .15s; font-family: inherit;
}
.wpvb-form-submit:hover { opacity: .87; transform: translateY(-1px); }
.wpvb-form-submit:active { transform: translateY(0); }
.wpvb-form-msg {
  margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.wpvb-form-msg.success { background: #d1fae5; color: #065f46; }
.wpvb-form-msg.error   { background: #fee2e2; color: #991b1b; }

/* ===== FLOAT CONTACT ===== */
.wpvb-float-contact {
  position: fixed;
  right: 20px;
  bottom: var(--fc-bottom, 80px);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--fc-gap, 12px);
}
.wpvb-fc-pos-left { right: auto; left: 20px; align-items: flex-start; }
.wpvb-fc-pos-bottom-right { right: 20px; bottom: 20px; flex-direction: row; align-items: flex-end; gap: 12px; }
.wpvb-fc-style-bar.wpvb-fc-pos-left { left: 0; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); }
.wpvb-fc-style-bar.wpvb-fc-pos-left .wpvb-fc-btn { border-radius: 0 10px 10px 0; }

/* bubble 样式 */
.wpvb-fc-style-bubble .wpvb-fc-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--fc-bg, #7c3aed); color: var(--fc-color, #fff);
  text-decoration: none; border-radius: 99px;
  height: var(--fc-size, 52px); padding: 0 18px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.22); transition: all .25s;
}
.wpvb-fc-style-bubble .wpvb-fc-btn:hover {
  transform: translateX(-4px) scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.wpvb-fc-icon { font-size: 20px; line-height: 1; }

/* minimal 样式 */
.wpvb-fc-style-minimal .wpvb-fc-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--fc-bg, #7c3aed); color: var(--fc-color, #fff);
  text-decoration: none; border-radius: 50%;
  width: var(--fc-size, 52px); height: var(--fc-size, 52px);
  font-size: 22px; box-shadow: 0 4px 16px rgba(0,0,0,.22); transition: all .25s;
}
.wpvb-fc-style-minimal .wpvb-fc-btn:hover { transform: scale(1.12); }
.wpvb-fc-style-minimal .wpvb-fc-label { display: none; }

/* bar 样式 */
.wpvb-fc-style-bar { right: 0; bottom: auto; top: 50%; transform: translateY(-50%); }
.wpvb-fc-style-bar .wpvb-fc-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--fc-bg, #7c3aed); color: var(--fc-color, #fff);
  text-decoration: none; padding: 14px 16px; border-radius: 10px 0 0 10px;
  font-size: 13px; font-weight: 600; width: 52px; overflow: hidden;
  box-shadow: -3px 0 12px rgba(0,0,0,.18); transition: width .3s ease;
}
.wpvb-fc-style-bar .wpvb-fc-btn:hover { width: 140px; }
.wpvb-fc-style-bar .wpvb-fc-icon { flex-shrink: 0; font-size: 18px; }

/* QR 弹窗 */
.wpvb-fc-item { position: relative; }
.wpvb-fc-popup {
  display: none; position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2); min-width: 160px; text-align: center;
  pointer-events: none;
}
.wpvb-fc-item:hover .wpvb-fc-popup,
.wpvb-fc-popup.show { display: block; pointer-events: auto; }
.wpvb-fc-popup img { width: 120px; height: 120px; object-fit: contain; margin-bottom: 8px; }
.wpvb-fc-popup p { margin: 0; font-size: 13px; font-weight: 600; color: #111; }
.wpvb-fc-popup small { color: #6b7280; font-size: 11px; }

/* 编辑器预览占位 */
.wpvb-float-preview-box {
  padding: 20px; background: #f8f5ff; border: 2px dashed #c4b5fd; border-radius: 10px;
  text-align: center;
}

/* ===== GLOBAL HOVER EFFECTS FOR ALL SECTIONS ===== */
.wpvb-grid-col:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.wpvb-image-text:hover { }
.wpvb-banner-slide { transition: opacity 0.4s; }
.wpvb-btn-section-wrap { }

/* Section wrapper hover glow effect */
.wpvb-section-wrap { transition: box-shadow 0.3s; }

/* Product card hover */
.wpvb-product-card { transition: transform 0.25s, box-shadow 0.25s; cursor: pointer; }
.wpvb-product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(124,58,237,0.18); }

/* Product cat hover */
.wpvb-pcat-card { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s !important; }
.wpvb-pcat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

/* Posts hover */
.wpvb-posts-section a[style] { transition: box-shadow 0.25s, transform 0.25s; }

/* Stats / number block hover */
.wpvb-stats-item { transition: transform 0.25s, box-shadow 0.25s; }
.wpvb-stats-item:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(124,58,237,0.15); }

/* Button hover */
.wpvb-button { transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.wpvb-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* Mask grid hover */
.wpvb-mask-grid-item { overflow: hidden; border-radius: 8px; transition: box-shadow 0.3s; }
.wpvb-mask-grid-item:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.2); }

/* Image text section hover */
.wpvb-image-text { transition: box-shadow 0.3s; }

/* Table row hover */
.wpvb-table tr:hover td { background: rgba(124,58,237,0.04) !important; }

/* ===== INQUIRY POPUP MODAL ===== */
.wpvb-inquiry-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99998;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.wpvb-inquiry-popup-overlay.open { display: flex; }
.wpvb-inquiry-popup-box {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  animation: wpvbPopupIn 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes wpvbPopupIn {
  from { opacity:0; transform: scale(0.88) translateY(20px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.wpvb-inquiry-popup-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  color: #374151;
  transition: background 0.2s;
  z-index: 2;
}
.wpvb-inquiry-popup-close:hover { background: rgba(0,0,0,0.15); }

/* ===== STATS COMPONENT ===== */
.wpvb-stats-section { padding: 40px 24px; }
.wpvb-stats-grid { display: grid; gap: 24px; }
.wpvb-stats-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: default;
}
.wpvb-stats-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.wpvb-stats-suffix {
  font-size: 26px;
  font-weight: 700;
}
.wpvb-stats-label {
  font-size: 14px;
  margin-top: 4px;
}

/* ===== 图文组合多图轮播 ===== */
.wpvb-it-slider { position:relative; overflow:hidden; border-radius:8px; }
.wpvb-it-track { display:flex; transition:transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.wpvb-it-slide { min-width:100%; }
.wpvb-it-slide img { width:100%; display:block; border-radius:8px; }
.wpvb-it-prev, .wpvb-it-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,0.45); color:#fff; border:none; cursor:pointer;
  width:36px; height:36px; border-radius:50%; font-size:20px; line-height:1;
  display:flex; align-items:center; justify-content:center; z-index:2;
  transition:background 0.2s;
}
.wpvb-it-prev:hover,.wpvb-it-next:hover { background:rgba(0,0,0,0.7); }
.wpvb-it-prev { left:10px; }
.wpvb-it-next { right:10px; }
.wpvb-it-dots { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:6px; }
.wpvb-it-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,0.5); cursor:pointer; transition:background 0.2s; }
.wpvb-it-dot.active { background:#fff; }

/* ===== mask 多图背景轮播 ===== */
.wpvb-mask-bg-slider { position:absolute; inset:0; overflow:hidden; }
.wpvb-mask-bg-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 0.7s ease; }
.wpvb-mask-bg-slide.active { opacity:1; }
.wpvb-mask-bg-prev, .wpvb-mask-bg-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,0.35); color:#fff; border:none; cursor:pointer;
  width:36px; height:36px; border-radius:50%; font-size:22px; line-height:1;
  display:flex; align-items:center; justify-content:center; z-index:10;
  transition:background 0.2s;
}
.wpvb-mask-bg-prev { left:16px; }
.wpvb-mask-bg-next { right:16px; }
.wpvb-mask-bg-dots { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); display:flex; gap:7px; z-index:10; }
.wpvb-mask-bg-dot { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,0.45); cursor:pointer; transition:background 0.2s; }
.wpvb-mask-bg-dot.active { background:#fff; }
.wpvb-mask-btn {
  display:inline-block; padding:10px 28px; border-radius:6px;
  font-size:15px; font-weight:600; text-decoration:none;
  transition:opacity 0.2s;
}
.wpvb-mask-btn:hover { opacity:0.85; }

/* ===== detail_block ===== */
.wpvb-detail-block { box-sizing:border-box; }
.wpvb-accordion-item { }
.wpvb-accordion-header { user-select:none; transition:background 0.2s, color 0.2s; }
.wpvb-accordion-body { transition:none; }


/* ===== PRODUCT TAB — Tab 悬停特效 ===== */
.wpvb-ptab-tab {
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* 下划线样式：hover 时文字变主色 */
.wpvb-ptab-bar[data-style="underline"] .wpvb-ptab-tab:not(.wpvb-ptab-active):hover {
  opacity: 0.75;
}
/* 胶囊/方块：hover 时轻微放大 + 阴影 */
.wpvb-ptab-bar[data-style="pill"] .wpvb-ptab-tab:not(.wpvb-ptab-active):hover,
.wpvb-ptab-bar[data-style="block"] .wpvb-ptab-tab:not(.wpvb-ptab-active):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  opacity: 0.85;
}

/* ===== MASK FULLWIDTH — 文字区 hover 特效 ===== */
.wpvb-mask-fullwidth-title,
.wpvb-mask-fullwidth-desc,
.wpvb-mask-fullwidth-content > div[class*="wpvb-mask-hover"] {
  transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

/* 上浮淡入 */
.wpvb-mask-hover-fadeup {
  opacity: 0.85;
  transform: translateY(0);
  transition: opacity 0.35s, transform 0.35s;
}
.wpvb-mask-hover-fadeup:hover {
  opacity: 1;
  transform: translateY(-6px);
}

/* 放大 */
.wpvb-mask-hover-scale {
  display: inline-block;
  transition: transform 0.3s;
}
.wpvb-mask-hover-scale:hover {
  transform: scale(1.06);
}

/* 发光 */
.wpvb-mask-hover-glow {
  transition: text-shadow 0.3s;
}
.wpvb-mask-hover-glow:hover {
  text-shadow: 0 0 18px rgba(255,255,255,0.9), 0 0 36px rgba(255,255,255,0.5);
}

/* 下划线滑入 */
.wpvb-mask-hover-underline {
  position: relative;
  cursor: default;
}
.wpvb-mask-hover-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.3s;
}
.wpvb-mask-hover-underline:hover::after { width: 100%; }

/* 模糊→清晰 */
.wpvb-mask-hover-blur {
  filter: blur(1.5px);
  opacity: 0.8;
  transition: filter 0.35s, opacity 0.35s;
}
.wpvb-mask-hover-blur:hover {
  filter: blur(0);
  opacity: 1;
}

/* ===== PRODUCT TAB — 产品卡片 Hover 特效 ===== */
.wpvb-ptab-card {
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, border-color 0.3s;
}

/* 上浮 + 阴影 (lift) */
.wpvb-ptab-card-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

/* 图片放大 (zoom) */
.wpvb-ptab-card-hover-zoom:hover img {
  transform: scale(1.08);
}

/* 边框变色 (border) */
.wpvb-ptab-card-hover-border {
  border: 2px solid #e5e7eb !important;
}
.wpvb-ptab-card-hover-border:hover {
  border-color: var(--wpvb-accent, #7c3aed) !important;
  box-shadow: 0 0 0 2px rgba(124,58,237,0.15);
}

/* 蒙层显示 (overlay) */
.wpvb-ptab-card-hover-overlay {
  position: relative;
}
.wpvb-ptab-card-hover-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(124,58,237,0.18);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  pointer-events: none;
}
.wpvb-ptab-card-hover-overlay:hover::after {
  opacity: 1;
}

/* 整体缩放 (scale) */
.wpvb-ptab-card-hover-scale:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== PRODUCT TAB — 区块标题 HTML 容器 ===== */
.wpvb-ptab-section-title {
  margin-bottom: 20px;
}

/* ===== FORM — Split 布局 ===== */
.wpvb-form-split {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .wpvb-form-split {
    grid-template-columns: 1fr !important;
  }
}
.wpvb-form-input {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
}
.wpvb-form-input:focus {
  background: #fff;
}

/* ===== TEXT GRID ===== */
.wpvb-text-grid-section {
  padding: 40px 24px;
  box-sizing: border-box;
}

/* ===== MASK 搜索框 ===== */
.wpvb-mask-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.wpvb-mask-search input[type="search"]::placeholder { color: rgba(255,255,255,0.7); }
.wpvb-mask-search button:hover { opacity: .87; }

/* ===== NAV 搜索框 ===== */
.wpvb-nav-search { flex-shrink: 0; }
.wpvb-nav-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.wpvb-nav-search input[type="search"]::placeholder { color: #9ca3af; }
.wpvb-nav-search button:hover { opacity: .85; }
@media (max-width: 768px) {
  .wpvb-nav-search { display: none !important; }
}
