.hidden {
  display: none;
}

.gallery {
  margin: auto;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.banner {
  width: 94%;
  max-width: 1920px;
  margin: auto;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #000;
  box-sizing: border-box;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ff0000, #ffff00, #0000ff, #00ff00);
  background-size: 400% 400%;
  animation: colorShift 10s ease infinite;
  opacity: 0.5;
  z-index: 1;
}

.banner-content {
  text-align: left;
  color: #000;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 2rem;
}

.banner h1 {
  margin: auto 0;
  line-height: 2;
  color: #333333;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner p {
  margin: auto 0;
  line-height: 1.5;
  color: #555555;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  white-space: normal;
  overflow: visible;
}

.banner-button {
  z-index: 2;
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0 2rem 2rem;
  box-sizing: border-box;
  width: 100%;
}

.banner-button button {
  background-color: #000;
  color: #f7f7f7;
  border: none;
  padding: 14px 48px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-button button:hover {
  transform: translateY(-2px);
}

.gallery-intro {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 85%;
  max-width: 1920px;
  color: #000;
  margin: auto;
  margin-top: 2.5rem;
}

.gallery-intro h1 {
  margin: auto 0;
  line-height: 2;
  color: #333333;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-intro p {
  margin: auto 0;
  line-height: 1.5;
  color: #555555;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  white-space: normal;
  overflow: visible;
}

/* gallery 筛选 header 布局（与 shop 完全一致） */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-container {
  position: relative;
}

/* ========== 搜索样式 ========== */
 .search-container {
   position: relative;
   display: flex;
   align-items: center;
 }

 .search-btn {
   background: none;
   border: none;
   padding: 0.5rem;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   color: #000;
   z-index: 2;
   transition: transform 0.2s ease;
 }

 .search-btn:hover {
   transform: scale(0.88);
 }

 .search-btn:active {
   transform: scale(0.78);
 }

 .search-input-wrap {
   position: absolute;
   right: 100%;
   top: 50%;
   transform: translateY(-50%);
   display: flex;
   align-items: center;
   background: #f5f5f5;
   border-radius: 4px;
   overflow: hidden;
   width: 0;
   opacity: 0;
   pointer-events: none;
   transition: width 0.3s ease, opacity 0.2s ease;
 }

 .search-container.active .search-input-wrap {
   width: 175px;
   opacity: 1;
   pointer-events: auto;
 }

 .search-input {
   flex: 1;
   border: none;
   outline: none;
   background: transparent;
   font-size: 0.85rem;
   padding: 0.4rem 0 0.4rem 0.75rem;
   color: #333;
   font-family: 'Open Sans', sans-serif;
   min-width: 0;
 }

 .search-clear-btn {
   background: transparent;
   border: none;
   cursor: pointer;
   color: #999;
   padding: 0.4rem 0.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   transition: color 0.2s ease, opacity 0.2s ease;
   opacity: 0;
   pointer-events: none;
 }

 .search-input-wrap.has-text .search-clear-btn {
   opacity: 1;
   pointer-events: auto;
 }

 .search-clear-btn:hover {
   color: #333;
 }

 /* ========== 搜索建议下拉 ========== */
 .search-suggestions {
   position: absolute;
   top: 100%;
   left: auto;
   right: 0;
   width: 230px;
   max-height: 260px;
   overflow-y: auto;
   scrollbar-width: none;
   -ms-overflow-style: none;
   background: #fff;
   border: 1px solid #e0e0e0;
   border-radius: 6px;
   box-shadow: 0 4px 16px rgba(0,0,0,0.1);
   z-index: 100;
   opacity: 0;
   pointer-events: none;
   transform: translateY(4px);
   transition: opacity 0.15s ease, transform 0.15s ease;
   display: none;
 }

 .search-suggestions.show {
   display: block;
   opacity: 1;
   pointer-events: auto;
   transform: translateY(6px);
 }

 .search-suggestion-item {
   padding: 0.55rem 0.9rem;
   font-size: 0.8rem;
   color: #333;
   cursor: pointer;
   transition: background 0.15s ease;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   border-bottom: 1px solid #f5f5f5;
 }

 .search-suggestion-item:last-child {
   border-bottom: none;
 }

 .search-suggestion-item:hover,
 .search-suggestion-item.active {
   background: #f0f0f0;
 }

 .search-suggestion-item .highlight {
   color: #000;
   font-weight: 700;
 }

 .search-suggestion-item .suggestion-sub {
   font-size: 0.7rem;
   color: #999;
   margin-left: 0.4rem;
 }

 .search-suggestions::-webkit-scrollbar {
   display: none;
 }

.filter-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  color: #000;
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.filter-icon {
  font-size: 1.2rem;
}

.filter-dropdown {
  position: fixed;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 220px;
  z-index: 2147483647;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.filter-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.filter-header {
  font-size: 0.8rem;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header span {
  font-weight: 600;
}

.close-filter {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}

.filter-options {
  padding: 0.5rem 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-options::-webkit-scrollbar {
  display: none;
}

.filter-option {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.filter-option-group {
  padding: 0.4rem 1rem;
  font-size: 0.65rem;
  color: #999;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-option:hover {
  background: #f5f5f5;
}

.filter-option.active {
  background: #f0f0f0;
  font-weight: 600;
}

.filter-option.active::after {
  content: "×";
  color: #666;
  cursor: pointer;
  margin-left: 1rem;
}

.filter-option.active:hover::after {
  color: #333;
}

.no-results-msg {
  width: 96%;
  max-width: 1920px;
  margin: 2rem auto;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.grid {
  width: 96%;
  max-width: 1920px;
  margin: 0 auto;
  margin-top: 3rem;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid-sizer,
.grid-item {
  width: 30%;
  box-sizing: border-box;
}

.grid-item {
  margin: 0 0 3% 2%;
  background: #f7f7f7;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.grid-item.is-loaded {
  aspect-ratio: auto;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.grid-item.is-loaded::before {
  opacity: 0;
  pointer-events: none;
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes colorShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.grid-placeholder {
  width: 100%;
  height: 50px;
}

.spacer {
  width: 100%;
  height: 50px;
  visibility: hidden;
}

#loader {
  position: fixed;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  padding: 5px;
  z-index: 1000;
  width: 30%;
  border-radius: 10px;
}

#loader span {
  display: flex;
  height: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #f7f7f7;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.grid-item {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.grid-item.is-loaded {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  display: flex;
  background-color: #f7f7f7;
  width: 90%;
  max-width: 1920px;
  height: auto;
  max-height: 65vh;
  border-radius: 10px;
  overflow: auto;
  margin: 0 auto;
}

/* 自定义滚动条样式 */
.modal-content::-webkit-scrollbar,
.description::-webkit-scrollbar,
.modal-info::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track,
.description::-webkit-scrollbar-track,
.modal-info::-webkit-scrollbar-track {
  background: transparent;
  border-left: 1px solid #ddd;
}

.modal-content::-webkit-scrollbar-thumb,
.description::-webkit-scrollbar-thumb,
.modal-info::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 3px;
}

/* Firefox 滚动条样式 */
.modal-content,
.description,
.modal-info {
  scrollbar-width: thin;
  scrollbar-color: #000 transparent;
}

.description {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-height: 65vh;
  overflow-y: auto;
}

.description h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #333;
}

.description p {
  max-width: 90%;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #555;
}

.description ol {
  margin: auto;
  align-items: left;
  font-size: 0.8rem;
  max-width: 80%;
  padding: 0;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: #555;
  display: flex;
  flex-direction: column;
}

.description li {
  line-height: 2;
  margin-bottom: 0.5rem;
  text-align: left;
}

.description button {
  background-color: #000000;
  color: #f7f7f7;
  border: none;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: auto;
  cursor: pointer;
  border-radius: 10px;
  width: 40%;
  white-space: nowrap;
  margin-top: 0;
  margin-bottom: 3rem;
}

.modal-image-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-info {
  width: 50%;
  height: auto;
  padding: 1rem;
  margin: 1rem auto;
  font-size: 1rem;
  line-height: 1;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
}

.modal-info h2 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 1rem auto;
  text-align: center;
  max-width: 90%;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.edition-badge {
  font-size: 0.65rem;
  font-weight: 400;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  background: #1a1a1a;
  color: #f7f7f7;
}

/* ========== 搜索无结果弹窗 ========== */
.search-no-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  min-height: 200px;
}

.search-no-result svg {
  margin-bottom: 1.5rem;
}

.search-no-result h2 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.search-no-result-query {
  font-size: 0.9rem;
  color: #999;
}

.search-no-result-hint {
  font-size: 0.8rem;
  color: #bbb;
  margin-top: 0.5rem;
}

.buy-button {
  background-color: #000000;
  color: #f7f7f7;
  border: none;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  margin: auto;
  cursor: pointer;
  border-radius: 10px;
  width: 90%;
  white-space: nowrap;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 90%;
  margin: 0 auto;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

.button-container p {
  text-align: center;
  color: #777;
  font-size: 0.7rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.4;
}

.button-container p span {
  font-weight: 300;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  text-decoration-thickness: 0.8px;
  color: #777;
  cursor: pointer;
}

#purchaseForm select:invalid {
  font-style: italic;
  font-weight: 300;
  font-size: 0.7rem;
  color: #999;
}

#purchaseForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-item {
  width: 90%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

#purchaseForm label {
  width: 100%;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  text-align: left;
}

.form-size {
  display: flex;
  justify-content: space-between;
}

.form-size span {
  font-size: 0.7rem;
  font-style: italic;
  width: 100%;
  text-align: right;
  color: #777;
  font-family: 'Open Sans', sans-serif;
}

.form-price {
  display: flex;
  align-items: flex-end;
  text-align: left;
  margin: 0.5rem 0;
}

.currency-symbol {
  font-size: 1rem;
  vertical-align: middle;
  color: #333;
}

.price-currency-label {
  font-size: 0.65rem;
  font-weight: 300;
  color: #999;
  margin-left: 0.3rem;
  margin-bottom: 0.3rem;
  align-self: flex-end;
}

#price-int {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-align: left;
  display: inline-block;
  animation: priceRollIn 0.4s ease-out both;
}

#price-dec {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-align: left;
  display: inline-block;
  animation: priceRollIn 0.4s ease-out 0.15s both;
}

@keyframes priceRollIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) rotateX(90deg);
  }
  60% {
    opacity: 1;
    transform: translateY(2px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

.price-disclaimer {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
  font-weight: 300;
  margin: 0.15rem 0 0.5rem 0;
  line-height: 1.4;
  text-align: left;
}

#purchaseForm input,
textarea {
  width: 100%;
  outline: none;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 2rem;
  color: #333;
}

#purchaseForm select {
  width: 100%;
  outline: none;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

#purchaseForm input::placeholder,
textarea::placeholder {
  color: #bdbdbd;
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  font-family: 'Open Sans', sans-serif;
}

#purchaseForm button[type="submit"] {
  background-color: #000000;
  color: #f7f7f7;
  border: none;
  padding: 1rem;
  text-align: center;
  display: inline-block;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 10px;
  width: 90%;
}

.gallery-content {
  order: 2;
  width: 100%;
}

.fade-slider {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 3rem auto;
  aspect-ratio: 3.2 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

@media screen and (max-width: 1920px) {
  .fade-slider {
    border-radius: 0px;
  }

}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  z-index: 3;
  height: 10%;
  max-width: 1200px;
}

.dot {
  width: 20vw;
  height: 0.2rem;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #000;
}

@media screen and (max-width: 960px) {
  .modal-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 90%;
    overflow: hidden;
    max-height: 80vh;
  }

  .modal-image-container {
    width: 100%;
    height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .modal-image-container.purchase-form-image {
    height: 20vh;
  }

  .modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .modal-info {
    width: calc(100% - 2rem);
    /* 移除 height 固定值 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    /* 允许滚动 */
    margin: 0 1rem 1rem 1rem;
    text-align: center;
    max-height: 40vh;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .buy-button {
    width: 80%;
    margin: 0.1rem 0;
    text-align: center;
  }

  .button-container p {
    margin: 0;
  }

  .banner {
    width: 90%;
    margin-top: 2.5rem;
  }

  .banner h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .banner p {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  .banner-button button {
    padding: 10px 40px;
    font-size: 12px;
  }

  .gallery-intro {
    width: 90%;
    margin-top: 2.5rem;
  }

  .gallery-intro h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .gallery-intro p {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  .loader {
    top: 80%;
  }

  .dot {
    height: 0.1rem;
  }
}

@media screen and (max-width: 768px) {

  .grid-sizer,
  .grid-item {
    width: 46%;
  }

  #loader {
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 0;
    background: #000;
  }

  @media (prefers-color-scheme: dark) {
    #loader {
      background: #000;
    }
  }
}

@media screen and (max-width: 480px) {

  .grid-sizer,
  .grid-item {
    width: 46%;
    border-radius: 8px;
    margin-bottom: 6%;
  }

  .grid-item img {
    border-radius: 8px;
  }
  .gallery{
    margin-top: 2rem;
  }

  /* 移动端搜索 */
  .header-actions {
    gap: 0.25rem;
  }

  .search-btn {
    padding: 0.35rem;
  }

  .search-btn svg {
    width: 16px;
    height: 16px;
  }

  .search-container.active .search-input-wrap {
    width: 130px;
  }

  .search-input {
      font-size: 0.8rem;
    }
  
    /* 移动端搜索建议 */
    .search-suggestions {
      width: 180px;
      max-height: 220px;
      left: auto;
      right: 0;
    }
 
    .search-suggestion-item {
      padding: 0.5rem 0.75rem;
      font-size: 0.75rem;
    }
 
   .filter-dropdown {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -60%);
    width: min(300px, 85vw);
  }

  .filter-dropdown.show {
    transform: translate(-50%, -50%);
  }
}

/* 超小屏手机搜索优化 */
 @media screen and (max-width: 380px) {
   .search-container.active .search-input-wrap {
     width: 110px;
   }
   .search-input {
     font-size: 0.75rem;
   }
   .search-suggestions {
     width: 150px;
   }
 }

@media (prefers-color-scheme: dark) {

  .gallery-intro h1,
  .banner h1,
  .description h2,
  .modal-info h2 {
    color: #ddd;
  }

  .description p,
  .description ol,
  .gallery-intro p,
  .banner p,
  .form-item span,
  #price-int,
  #price-dec {
    color: #bbb;
  }

  .grid-item,
  .modal-content {
    background: #2a2a2a;
  }

  .grid-item::before {
    background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  }

  .banner {
    background-color: #333;
  }

  .banner-button button {
    background-color: #000;
    color: #f7f7f7;
  }

  .banner-button button:hover {
    transform: translateY(-2px);
  }

  #loader {
    background: #333;
  }

  .modal {
    background: rgba(0, 0, 0, 0.8);
  }

  #purchaseForm label,
  #purchaseForm input,
  #purchaseForm select {
    color: #ddd;
  }

  #purchaseForm input,
  textarea::placeholder {
    color: #888;
  }

  .form-item {
    border-bottom: 1px solid #555;
  }

  .button-container p {
    color: #aaa;
  }

  .button-container p span {
    color: #aaa;
  }

  .modal-info {
    color: #ddd;
  }

  /* 搜索无结果弹窗暗色模式 */
  .search-no-result h2 {
    color: #bbb;
  }

  .search-no-result-query {
    color: #999;
  }

  .search-no-result-hint {
    color: #777;
  }

  .dot {
    background: rgba(255, 255, 255, 0.5);
  }

  .dot.active {
    background: #ddd;
  }

  /* 深色模式滚动条样式 */
  .modal-content::-webkit-scrollbar-track,
  .description::-webkit-scrollbar-track,
  .modal-info::-webkit-scrollbar-track {
    border-left: 1px solid #555;
  }

  .modal-content::-webkit-scrollbar-thumb,
  .description::-webkit-scrollbar-thumb,
  .modal-info::-webkit-scrollbar-thumb {
    background: #f7f7f7;
  }

  /* Firefox 深色模式滚动条 */
  .modal-content,
  .description,
  .modal-info {
    scrollbar-color: #f7f7f7 transparent;
  }

  /* 深色模式筛选样式 */
  .filter-btn {
    background: none;
    border: none;
    color: #f7f7f7;
  }

  .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* 深色模式搜索样式 */
  .search-btn {
    color: #f7f7f7;
  }

  .search-input-wrap {
    background: #3a3a3a;
  }

  .search-input {
    color: #f7f7f7;
  }

  .search-input::placeholder {
    color: #888;
  }

  .search-clear-btn {
    color: #888;
  }

  .search-clear-btn:hover {
    color: #f7f7f7;
  }

  /* 深色模式搜索建议 */
  .search-suggestions {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }

  .search-suggestion-item {
    color: #ddd;
    border-bottom-color: #3a3a3a;
  }

  .search-suggestion-item:hover,
  .search-suggestion-item.active {
    background: #3a3a3a;
  }

  .search-suggestion-item .highlight {
    color: #fff;
  }

  .search-suggestion-item .suggestion-sub {
    color: #888;
  }

  .filter-dropdown {
    background: #333333;
    border: 1px solid #555555;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .filter-header {
    border-bottom: 1px solid #444444;
  }

  .filter-header span {
    color: #f7f7f7;
  }

  .close-filter {
    color: #aaa;
  }

  .filter-option {
    color: #f7f7f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
  }

  .filter-option:hover {
    background: #444444;
  }

  .filter-option.active {
    background: #444444;
  }

  .filter-option.active::after {
    color: #aaa;
    margin-left: 1rem;
  }

  .filter-option.active:hover::after {
    color: #f7f7f7;
  }

  .filter-option-group {
    color: #aaa;
  }
}

/* 数字展厅弹窗样式 */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: #f7f7f7;
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.popup-content h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.5;
  color: #333;
}

.popup-content p {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 480px) {
  .popup-content {
    width: 95%;
    padding: 1.5rem;
  }

  .popup-content h2 {
    font-size: 1.2rem;
  }

  .popup-content p {
    font-size: 0.9rem;
  }
}

@media (prefers-color-scheme: dark) {
  .popup-content {
    background: #2a2a2a;
  }

  .close-btn {
    color: #ddd;
  }

  .popup-content h2 {
    color: #ddd;
  }

  .popup-content p {
    color: #bbb;
  }
}
