/* 开始按钮样式 */
#btn-calculate-wuxing {
  padding: .5rem 1.5rem;
  color: white;
  font-weight: 500;
  background-color: hsl(236, 32%, 26%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  border: none;
  border-radius: .5rem;
  transition: all .3s ease;
  cursor: pointer;
}

#btn-calculate-wuxing:hover {
  background-color: hsl(236, 32%, 26%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
  transform: scale(1.05);;
}

/* 蒙层样式 */
.wooxing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  transition: all .3s ease;

  touch-action: none; /* 阻止触摸滚动穿透 */
}

/* 八卦旋转动画样式 */
.wooxing-yin-yang-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.wooxing-yin-yang {
  position: relative;
  width: 120px;
  height: 120px;
  background: linear-gradient(90deg, white 50%, black 50%);
  box-shadow: 0 0 20px rgba(0, 0, 0, .15);
  border-radius: 50%;
  transform-origin: center;
}

/* 快速旋转动画 - 加载中 */
.wooxing-rotate-fast {
  animation: wooxing-rotate-fast 1s linear infinite;
}

@keyframes wooxing-rotate-fast {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 慢速旋转动画 - 初始状态 */
@keyframes wooxing-rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wooxing-yin-yang::before,
.wooxing-yin-yang::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.wooxing-yin-yang::before {
  top: 0;
  background: black;
}

.wooxing-yin-yang::after {
  bottom: 0;
  background: white;
}

.wooxing-dot {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateX(-50%);
}

.wooxing-dot-white {
  top: 30px;
  background: white;
}

.wooxing-dot-black {
  bottom: 30px;
  background: black;
}

.wooxing-yin-yang {
  transition: box-shadow .3s ease;
}

.wooxing-yin-yang:hover {
  box-shadow: 0 0 30px rgba(0, 0, 0, .2);
}

@keyframes wooxing-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

.wooxing-dot {
  animation: wooxing-pulse 4s ease-in-out infinite;
}

/* 动画消失样式 - 延长至3秒 */
.wooxing-fade-out {
  animation: none !important;
}



.modal-open-body {
  overflow: hidden;
  height: 100vh;
}




/* 弹窗相关样式 */
.wooxing-modal-container {
  position: fixed;
  z-index: 1006;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, .5);
  transition: opacity .3s ease;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  inset: 0;
}

.wooxing-modal-container.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.wooxing-modal {
  position: relative;
  z-index: 1001;
  overflow: auto;
  width: 100%;
  width: 100%;
  max-width: 1100px;
  max-height: 65%;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  border-radius: .5rem;

/* transform: translate(-50%, -50%) scale(.8); */
  transition: all .5s cubic-bezier(.4, 0, .2, 1);

  scroll-behavior: smooth;
}


#closeModalBtn {
  z-index: 1050;
}
.wooxing-modal-container.active .wooxing-modal {
  transform: scale(1);
}


/* 页面其他元素样式 */
.wooxing-form-container {
  max-width: 1200px;
  padding: 60px 20px;
  margin: 0 auto;
}


/* 响应式样式 */
@media (max-width: 640px) {
  .wooxing-modal-content {
    padding: 20px;
  }

  .wooxing-modal-footer {
    padding: 15px 20px;
  }

  .wooxing-modal-actions {
    flex-direction: column;

    gap: 10px;
  }
}


/* 在小屏幕设备上进一步优化 */
@media (max-width: 576px) {
  .wooxing-modal {
    width: 80%; /* 在超小屏幕上略微减小宽度 */
    max-width: none; /* 移除最大宽度限制 */
    padding: 1.2rem; /* 固定小屏幕内边距 */
    border-radius: .4rem; /* 固定小屏幕圆角 */
  }
}





/* 关闭按钮样式 */
.wooxing-close-button {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  width: 64px;
  height: 64px;
  margin-top: 30px;
  color: white;
  font-size: 24px;
  background: rgba(255, 255, 255, .2); /* 半透明白色 */
  box-shadow: 0 8px 20px rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3); /* 细白边框 */
  border-radius: 50%;
  transition: all .3s ease;
  cursor: pointer;

  backdrop-filter: blur(8px); /* 毛玻璃效果 */
}

.wooxing-close-button:hover {
  background: rgba(255, 255, 255, .3); /* 悬停时更不透明 */
  box-shadow: 0 12px 28px rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .5);
}

.wooxing-close-button:active {
  box-shadow: 0 4px 10px rgba(255, 255, 255, .3);
}

/* 关闭按钮图标 */
.wooxing-close-icon {
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform .3s ease;
}

.wooxing-close-icon::before,
.wooxing-close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, .8); /* 白色发光效果 */
  border-radius: 3px;
}

.wooxing-close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

.wooxing-close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.wooxing-close-button:hover .wooxing-close-icon {
  transform: rotate(90deg);
}

/* 按钮波纹效果 */
.wooxing-close-button::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .4);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .5s ease, opacity .5s ease;
  opacity: 0;
}

.wooxing-close-button:hover::before {
  transform: scale(2);
  opacity: 0;
}



/* 产品列表 */

.wooxing-container {
  max-width: 1200px;

/* padding: 2rem 1rem; */
  margin: 0 auto;
}



/* Product Scroll Container */
.wooxing-product-container {
  position: relative;
  overflow-x: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 3px;
}

/* Custom Scrollbar */
.wooxing-product-container::-webkit-scrollbar {
  height: 6px;
}

.wooxing-product-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.wooxing-product-container::-webkit-scrollbar-thumb {
  background: #c9cdd4;
  border-radius: 10px;
}

.wooxing-product-container::-webkit-scrollbar-thumb:hover {
  background: #a9aeb8;
}

/* Product Items */
.wooxing-product-list {
  display: flex;
  width: max-content;

  gap: 1rem;
}

.wooxing-product-item,
.wooxing-more-item {
  overflow: hidden;
  width: calc(25vw - .75rem);
  min-width: 140px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
  border-radius: .75rem;
  transition: transform .3s ease, box-shadow .3s ease;
  /* cursor: pointer; */
}

@media (min-width: 1200px) {
  .wooxing-product-item,
  .wooxing-more-item {
    width: calc(300px - .75rem);
  }
}

.wooxing-product-item:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .1);
  transform: translateY(-5px);
}

.wooxing-product-image {
  position: relative;
  height: 12rem;
}

.wooxing-product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.wooxing-tag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .25rem .5rem;
  color: white;
  font-size: .75rem;
  font-weight: bold;
  background-color: #ff7d00;
  border-radius: .25rem;
}

.wooxing-tag.hot {
  background-color: #ff7d00;
}
.wooxing-tag.new {
  background-color: #22c55e;
}
.wooxing-tag.discount {
  background-color: #ef4444;
}

.wooxing-product-info {
  padding: 1rem;
}

.wooxing-product-name {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: .5rem;
  color: #0e0c1b;
  font-size: 16px;
  font-weight: 600;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}



@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.wooxing-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* View More Item */
.wooxing-more-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  padding: 1rem;
  text-decoration: none;
  border: 2px dashed #c9cdd4;
  transition: border-color .3s ease;
  cursor: pointer;;
}

.wooxing-more-item:hover {
  border-color: rgb(20, 20, 20);
}

.wooxing-more-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  background-color: rgba(22, 93, 255, .1);
  border-radius: 50%;
}

.wooxing-more-icon::after {
  content: "···";
  font-size: 1.5rem;
  font-weight: bold;
}

.wooxing-more-text {
  font-weight: 500;
  text-align: center;
}

.product-categories a {
  color: #6e6d76;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.wooxing-product-description {
  display: -webkit-box;
  overflow: hidden;
  padding-right: 8px;
  color: #6e6d76;
  font-size: 12px;
  text-overflow: ellipsis;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}


.wooxing-product-price {
  color: #6e6d76;
  font-size: 15px;
}


.wooxing-to-product-details {
  text-decoration: none;
}

.wuxing-report-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wuxing-report-chart {
  flex: 1 1 300px;
  min-width: 300px;
}

.wuxing-report-details {
  flex: 1 1 300px;
}

@media (max-width: 820px) {
  .wuxing-report-layout {
    flex-direction: column;
  }
  .wuxing-report-chart {
    order: -1;
    min-width: 0;
  }
}

.wxg-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
}

#wxg-wuxing-svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

#wxg-wuxing-labels {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wxg-wuxing-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 16%;
  height: 16%;
  color: #333;
  font-size: 5.5cqw;
  font-weight: bold;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  border: 2px solid #bbb;
  border-radius: 50%;
  pointer-events: auto;
  user-select: none;
  color: #888;
  transform: translate(-50%, -50%);
}

.wxg-tiangan-sector {
  opacity: .18;
}

.wxg-tiangan-label {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10%;
  height: 10%;
  font-size: 4cqw;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
  border-radius: 50%;
  transition: background .2s, color .2s;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%);
}
.wxg-tiangan-label-dark {
  color: #fff;
  background: #c8c9c9de;
  border: 2px solid #c8c9c9de;
}
.wxg-tiangan-label-light {
  color: #888;
  background: #fff;
  border: 2px solid #bbb;
}

:root {
  --color-wood: #179b2b;
  --color-fire: #e53900;
  --color-earth: #a88a1e;
  --color-metal: #6d7b8a;
  --color-water: #1565c0;
}

.wxg-wuxing-label.wxg-highlight-wood,
.wxg-wuxing-label.wxg-highlight-fire,
.wxg-wuxing-label.wxg-highlight-earth,
.wxg-wuxing-label.wxg-highlight-metal,
.wxg-wuxing-label.wxg-highlight-water {
  font-weight: 900;
}

.wxg-wuxing-label.wxg-highlight-wood { color: var(--color-wood); border-color: var(--color-wood); }
.wxg-wuxing-label.wxg-highlight-fire { color: var(--color-fire); border-color: var(--color-fire); }
.wxg-wuxing-label.wxg-highlight-earth { color: var(--color-earth); border-color: var(--color-earth); }
.wxg-wuxing-label.wxg-highlight-metal { color: var(--color-metal); border-color: var(--color-metal); }
.wxg-wuxing-label.wxg-highlight-water { color: var(--color-water); border-color: var(--color-water); }

.wxg-tiangan-label.wxg-highlight-wood,
.wxg-tiangan-label.wxg-highlight-fire,
.wxg-tiangan-label.wxg-highlight-earth,
.wxg-tiangan-label.wxg-highlight-metal,
.wxg-tiangan-label.wxg-highlight-water {
  border: 3px solid #fff !important;
  border-radius: 50%;
}

.wxg-tiangan-label.wxg-highlight-wood { background: var(--color-wood); color: #fff; border-color: var(--color-wood); }
.wxg-tiangan-label.wxg-highlight-fire { background: var(--color-fire); color: #fff; border-color: var(--color-fire); }
.wxg-tiangan-label.wxg-highlight-earth { background: var(--color-earth); color: #fff; border-color: var(--color-earth); }
.wxg-tiangan-label.wxg-highlight-metal { background: var(--color-metal); color: #fff; border-color: var(--color-metal); }
.wxg-tiangan-label.wxg-highlight-water { background: var(--color-water); color: #fff; border-color: var(--color-water); }

.wxg-tiangan-sector.wxg-highlight-wood { fill: var(--color-wood) !important; filter: none !important; stroke: none !important; }
.wxg-tiangan-sector.wxg-highlight-fire { fill: var(--color-fire) !important; filter: none !important; stroke: none !important; }
.wxg-tiangan-sector.wxg-highlight-earth { fill: var(--color-earth) !important; filter: none !important; stroke: none !important; }
.wxg-tiangan-sector.wxg-highlight-metal { fill: var(--color-metal) !important; filter: none !important; stroke: none !important; }
.wxg-tiangan-sector.wxg-highlight-water { fill: var(--color-water) !important; filter: none !important; stroke: none !important; }

.wxg-tiangan-sector[class*="wxg-highlight-"] {
  opacity: 1 !important;
}



.wuxing-daymaster-highlight {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: bold;
  background: #f0f8f4;
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 10px;
}
.wuxing-daymaster-highlight #wuxing-daymaster-svg {
  margin-left: 12px;
}

.wooxing-screenshot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .2s, background .2s;
}
.wooxing-screenshot-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.wooxing-screenshot-icon.camera-icon svg {
  filter: none;
  stroke: #333;
  width: 22px;
  height: 22px;
  transition: none;
}
.wooxing-screenshot-btn:hover .camera-icon svg {
  stroke: #333;
  filter: none;
}
.wooxing-screenshot-icon.loading-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: #333;
}
.wooxing-screenshot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

