/* ============================================
   产品详情页面样式
   ============================================ */

/* Sticky Wrap */
.zpzxry-sticky-wrap {
  position: relative;
  z-index: 40;
  background-color: var(--primary);
  color: #fff;
}

@media (max-width: 991px) {
  .zpzxry-sticky-wrap.is-compact {
    position: fixed;
    left: 0;
    right: 0;
  }
}

/* Banner */
.zpzxry-banner {
  padding: 32px 0;
}

@media (max-width: 991px) {
  .zpzxry-banner {
    padding: 24px 0;
  }
}

.zpzxry-banner__title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

@media (min-width: 992px) {
  .zpzxry-banner__title {
    font-size: 36px;
  }
}

.zpzxry-banner__subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.zpzxry-banner__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 14px;
}

/* Banner Compact (Mobile) */
.zpzxry-banner-compact {
  display: none;
  padding: 12px 0;
}

@media (max-width: 991px) {
  .zpzxry-banner-compact {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.zpzxry-banner-compact i {
  cursor: pointer;
}

.zpzxry-banner-compact__title {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile Tab Bar */
.zpzxry-mobile-tabs {
  display: none;
  background: var(--bg-white);
  padding: 8px 10px;
  gap: 0;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.zpzxry-mobile-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 991px) {
  .zpzxry-mobile-tabs {
    display: flex;
  }
}

.zpzxry-mobile-tab {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-right: 1px dashed var(--border-default);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 60px;
  max-width: 80px;
}

.zpzxry-mobile-tab:last-child {
  border-right: none;
}

.zpzxry-mobile-tab.active {
  color: var(--primary);
  background: #fef2f2;
  font-weight: 700;
}

.zpzxry-mobile-tab svg {
  width: 16px;
  height: 16px;
}

/* Main Layout */
.zpzxry-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 992px) {
  .zpzxry-main {
    flex-direction: row;
    gap: 32px;
  }
}

/* Sidebar Navigation */
.zpzxry-sidebar {
  width: 100%;
}

@media (min-width: 992px) {
  .zpzxry-sidebar {
    width: 192px;
    flex-shrink: 0;
  }
}

.zpzxry-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .zpzxry-nav {
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 120px;
  }
}

.zpzxry-nav__item {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.zpzxry-nav__item:hover {
  color: var(--primary);
}

.zpzxry-nav__item.active {
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

@media (min-width: 992px) {
  .zpzxry-nav__item.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
  }
}

/* Content Area */
.zpzxry-content {
  flex: 1;
  min-width: 0;
}

.zpzxry-section {
  margin-bottom: 64px;
}

.zpzxry-section:last-child {
  margin-bottom: 0;
}

/* Product Image */
.zpzxry-product-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Document Grid */
.zpzxry-docs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .zpzxry-docs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zpzxry-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-gray-light);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.zpzxry-doc:hover {
  background: #fef2f2;
}

.zpzxry-doc__icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.zpzxry-doc:hover .zpzxry-doc__icon {
  color: var(--primary);
}

.zpzxry-doc__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: color var(--transition-fast);
}

.zpzxry-doc:hover .zpzxry-doc__title {
  color: var(--primary);
}

/* Risk Section */
.zpzxry-risk {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.zpzxry-risk__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.zpzxry-risk__list {
  list-style: decimal;
  list-style-position: inside;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.zpzxry-risk__list li {
  margin-bottom: 8px;
}

.zpzxry-risk__list a {
  color: var(--primary);
  text-decoration: underline;
}

/* CTA Button */
.zpzxry-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.zpzxry-cta__btn {
  padding: 12px 48px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(201, 21, 30, 0.3);
}

.zpzxry-cta__btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(201, 21, 30, 0.4);
}


/* Smart Service Modal */
.zpzxry-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
}

.zpzxry-modal.open {
  display: block;
}

.zpzxry-modal__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.zpzxry-modal__content {
  position: absolute;
  inset: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .zpzxry-modal__content {
    inset: 40px;
  }
}

.zpzxry-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-gray-light);
  border-bottom: 1px solid var(--border-light);
}

.zpzxry-modal__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zpzxry-modal__header-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zpzxry-modal__header-icon i {
  width: 20px;
  height: 20px;
  color: white;
}

.zpzxry-modal__header-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.zpzxry-modal__header-title p {
  font-size: 12px;
  color: var(--text-light);
}

.zpzxry-modal__close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.zpzxry-modal__close:hover {
  background: var(--bg-gray);
}

.zpzxry-modal__close i {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.zpzxry-modal__body {
  flex: 1;
  overflow: hidden;
}

.zpzxry-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .zpzxry-banner {
    display: none;
  }

  .zpzxry-main {
    padding: 16px;
  }

  .zpzxry-sidebar {
    display: none;
  }
}