* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #EAEAEA;

  background:
    linear-gradient(
      90deg,
      rgba(7, 10, 18, 0.84) 0%,
      rgba(7, 10, 18, 0.72) 45%,
      rgba(7, 10, 18, 0.86) 100%
    ),
    url("./images/back.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* 渐变文字 */
.logo,
.hero h1,
.section h2 {
  background: linear-gradient(90deg, #ff9bd5 0%, #8bd8ff 52%, #d7b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(7, 10, 18, 0.42);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 216, 255, 0.12);
}

.logo {
  font-weight: bold;
}

.nav-right a {
  margin-left: 18px;
  color: #dbeafe;
  text-decoration: none;
  transition: 0.2s;
}

.nav-right a:hover {
  color: #ff9bd5;
}

/* HERO */
.hero {
  text-align: center;
  padding: 110px 20px;
}

.hero h1 {
  font-size: 40px;
}

.hero p {
  color: #c9d6e5;
}

/* BUTTONS */
.btn-group {
  margin-top: 20px;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  margin: 0 6px;
}

.primary {
  background: linear-gradient(90deg, #ff9bd5 0%, #8bd8ff 100%);
  color: #06111f;
  font-weight: bold;
  box-shadow: 0 12px 36px rgba(139, 216, 255, 0.18);
}

.ghost {
  border: 1px solid rgba(139, 216, 255, 0.38);
  color: #dbeafe;
  background: rgba(7, 10, 18, 0.22);
}

/* SECTIONS */
.section {
  width: 100%;
  max-width: 100%;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.dark {
  background: rgba(11, 16, 32, 0.64);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(139, 216, 255, 0.08);
  border-bottom: 1px solid rgba(255, 155, 213, 0.08);
}

.sub {
  color: #aab8c8;
  margin-top: -8px;
  margin-bottom: 35px;
}

/* GRID */
.grid {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.card {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}

/* CARD GRID DEFAULT */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 0 40px;
}

/* POKE CARD */
.poke-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid rgba(139, 216, 255, 0.18);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.poke-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 155, 213, 0.46);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 38px rgba(139,216,255,0.10);
}

/* IMAGE */
.img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

/* BADGE */
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, #ff9bd5 0%, #8bd8ff 100%);
  color: #06111f;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 6;
  max-width: 72%;
  white-space: nowrap;
}

.badge:empty {
  display: none;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  width: 420px;
  height: 520px;
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  background: #0B1020;
  border: 1px solid rgba(139, 216, 255, 0.35);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
}

/* FLOAT */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
}

.wechat-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff9bd5 0%, #8bd8ff 100%);
  color: #06111f;
  padding: 12px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 12px 32px rgba(139,216,255,0.20);
}

/* CAROUSEL */
.carousel-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  overflow: hidden;
}

.product-slider,
.auction-slider {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.product-slider::-webkit-scrollbar,
.auction-slider::-webkit-scrollbar {
  display: none;
}

.product-slider,
.auction-slider {
  scrollbar-width: none;
}

/* SALES */
.slider-track {
  display: flex;
  gap: 16px;
  padding: 0 54px;
  width: max-content;
  max-width: none;
}

.slider-card {
  min-width: 240px;
  max-width: 240px;
  min-height: 280px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(139, 216, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.slider-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 155, 213, 0.50);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 34px rgba(139,216,255,0.10);
}

.slider-card h3,
.poke-card h3 {
  margin-bottom: 6px;
}

.slider-card p,
.poke-card p {
  color: #aab8c8;
  margin-top: 0;
}

/* 防止文字撑爆卡片 */
.slider-card h3,
.slider-card p,
.poke-card h3,
.poke-card p {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.45;
}

/* AUCTION */
.auction-slider .card-grid {
  display: flex;
  grid-template-columns: none;
  gap: 25px;
  padding: 0 54px;
  width: max-content;
  max-width: none;
}

.auction-slider .poke-card {
  min-width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* HOT / NEW TAG */
.hot-tag {
  background: linear-gradient(90deg, #ff4f8b 0%, #ff9bd5 100%);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  max-width: 72%;
  white-space: nowrap;
}

.new-tag {
  background: linear-gradient(90deg, #69c9ff 0%, #bda7ff 100%);
  color: #06111f;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  font-weight: bold;
  max-width: 72%;
  white-space: nowrap;
}

/* BUTTONS */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(139, 216, 255, 0.45);
  border-radius: 50%;
  background: rgba(7,10,18,0.86);
  color: #8bd8ff;
  font-size: 30px;
  line-height: 36px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.45);
  transition: 0.2s;
}

.carousel-btn:hover {
  background: linear-gradient(90deg, #ff9bd5 0%, #8bd8ff 100%);
  color: #06111f;
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-btn.is-hidden {
  display: none;
}

/* CONTACT */
.contact-box {
  margin-top: 20px;
}

.qr {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.06);
  margin: 20px auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(139, 216, 255, 0.26);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px;
  color: #78869a;
}

/* MOBILE */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 18px 14px;
  }

  .nav-right {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .nav-right a {
    margin: 0;
    font-size: 14px;
  }

  .hero {
    padding: 78px 18px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 14px;
  }

  .btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .btn {
    margin: 0;
  }

  .section {
    width: 100%;
    max-width: 100%;
    padding: 62px 0;
    overflow: hidden;
  }

  .section h2 {
    padding: 0 14px;
  }

  .sub {
    padding: 0 16px;
  }

  .carousel-shell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    margin-top: 18px;
  }

  .product-slider,
  .auction-slider {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
  }

  .slider-track,
  .auction-slider .card-grid {
    display: flex;
    width: max-content;
    max-width: none;
    gap: 14px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .slider-card,
  .auction-slider .poke-card {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    min-height: 260px;
    padding: 12px;
  }

  .img {
    height: 148px;
  }

  .slider-card h3,
  .poke-card h3 {
    font-size: 16px;
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  .slider-card p,
  .poke-card p {
    font-size: 13px;
    line-height: 1.45;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  .hot-tag,
  .new-tag,
  .badge {
    top: 9px;
    right: 9px;
    font-size: 11px;
    padding: 4px 7px;
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 6;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 30px;
    z-index: 20;
  }

  .carousel-prev {
    left: 6px;
  }

  .carousel-next {
    right: 6px;
  }

  .lightbox img {
    width: 86vw;
    height: 72vh;
  }

  .qr {
    width: 150px;
    height: 150px;
  }

  .float-contact {
    right: 12px;
    bottom: 14px;
  }

  .wechat-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .slider-track,
  .auction-slider .card-grid {
    padding-left: 44px;
    padding-right: 44px;
  }

  .slider-card,
  .auction-slider .poke-card {
    flex-basis: 220px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .img {
    height: 138px;
  }
}