/* 公告富文本 — 浅色主题 */
.pisces-notice__body,
.pisces-notice__body p,
.pisces-notice__body span,
.pisces-notice__body div,
.pisces-notice__body li {
  color: #475569 !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  margin: 0.35rem 0 !important;
  background: transparent !important;
}

.pisces-notice__body strong,
.pisces-notice__body b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.pisces-notice__body p:first-child strong {
  color: #c2410c !important;
}

.pisces-notice__body a {
  color: #2563eb !important;
  text-decoration: underline;
}

.pisces-notice__body p:empty,
.pisces-notice__body p:has(> span:empty:only-child) {
  display: none !important;
}

/* 分类 Tab */
.pisces-cat-tab.is-active {
  background-color: #101828 !important;
  color: #fff !important;
}

.pisces-goods-card.is-hidden {
  display: none !important;
}

/* FAQ */
.pisces-faq summary::-webkit-details-marker { display: none; }
.pisces-faq[open] .pisces-faq-icon { transform: rotate(45deg); }
.pisces-faq-icon { transition: transform 0.2s ease; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html { scroll-behavior: smooth; }

/* 顶栏：分类下拉 + 搜索（样式由 Tailwind 主导，与首页 V2 一致） */
.pisces-nav-cat-wrap.is-open .pisces-nav-cat-btn {
  color: #2563eb;
}

.pisces-nav-cat-wrap.is-open .pisces-nav-cat-btn svg {
  transform: rotate(180deg);
}

.pisces-nav-cat-btn svg {
  transition: transform 0.2s ease;
}

.pisces-nav-cat-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 10rem;
  padding: 6px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(15 23 42 / 0.1);
}

.pisces-nav-cat-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: background 0.15s, color 0.15s;
}

.pisces-nav-cat-menu a:hover {
  background: #f6f8fb;
  color: #2563eb;
}

.pisces-nav-search {
  position: relative;
  width: 100%;
  max-width: 220px;
}

.pisces-nav-search input[type="search"] {
  width: 100%;
  height: 2.5rem;
  padding: 0 2.5rem 0 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #f6f8fb;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pisces-nav-search input[type="search"]::placeholder {
  color: #94a3b8;
}

.pisces-nav-search input[type="search"]:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.pisces-nav-search button[type="submit"] {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.pisces-nav-search button[type="submit"]:hover {
  color: #2563eb;
  background: rgb(37 99 235 / 0.08);
}

.pisces-mobile-cat-list:not(.hidden) {
  display: block;
}

@media (max-width: 767px) {
  .pisces-nav-search {
    max-width: none;
  }

  body.pisces-html-home .pisces-hero + section,
  body.pisces-html-home section + section {
    scroll-margin-top: 4.5rem;
  }

  body.pisces-html-home #faq details,
  body.pisces-html-home #order .bg-white.p-8 {
    padding: 1.25rem;
  }

  body.pisces-html-home #order .bg-mesh.p-8 {
    padding: 1.5rem;
  }

  .pisces-goods-grid .pisces-goods-card,
  .pisces-goods-grid .pisces-goods-tile {
    min-width: 0;
  }

  .pisces-goods-grid .pisces-goods-thumb {
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

@media (min-width: 640px) {
  .pisces-goods-grid .pisces-goods-thumb {
    aspect-ratio: auto;
  }
}

