/* 趣玩星球 · candy playful theme */
:root {
  --tb-primary: #FF6B9D;
  --tb-secondary: #FFD166;
  --tb-accent: #4ECDC4;
  --tb-sky: #7EC8FF;
  --tb-ink: #2d2a32;
  --tb-muted: #6b6570;
  --tb-bg: #fff9fb;
  --tb-card: #ffffff;
  --tb-radius: 20px;
  --tb-radius-sm: 12px;
  --tb-shadow: 0 10px 30px rgba(255, 107, 157, 0.12);
  --tb-shadow-sm: 0 4px 14px rgba(45, 42, 50, 0.08);
  --tb-max: 1120px;
  --tb-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.tb-body {
  margin: 0;
  font-family: var(--tb-font);
  color: var(--tb-ink);
  background: var(--tb-bg);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--tb-primary);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

a:hover {
  color: #e84f85;
}

.tb-container {
  width: min(100% - 2rem, var(--tb-max));
  margin-inline: auto;
}

/* Header / Nav */
.tb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 107, 157, 0.12);
}

.tb-header-inner {
  width: min(100% - 2rem, var(--tb-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.tb-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tb-primary);
  letter-spacing: 0.02em;
}

.tb-brand:hover {
  color: #e84f85;
}

.tb-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tb-nav-item {
  position: relative;
}

.tb-nav-link {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--tb-ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.tb-nav-link:hover,
.tb-nav-link.is-active {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(126, 200, 255, 0.2));
  color: var(--tb-primary);
}

.tb-nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 10rem;
  padding: 0.5rem;
  background: var(--tb-card);
  border-radius: var(--tb-radius-sm);
  box-shadow: var(--tb-shadow);
}

.tb-nav-item.has-children:hover .tb-nav-sub {
  display: block;
}

.tb-nav-sublink {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--tb-ink);
  font-size: 0.9rem;
}

.tb-nav-sublink:hover,
.tb-nav-sublink.is-active {
  background: rgba(255, 209, 102, 0.35);
  color: var(--tb-ink);
}

.tb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 107, 157, 0.12);
  cursor: pointer;
  padding: 10px;
}

.tb-nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--tb-primary);
  border-radius: 2px;
}

/* Bread */
.tb-bread {
  padding: 0.85rem 0;
  font-size: 0.9rem;
  color: var(--tb-muted);
}

.tb-bread a {
  color: var(--tb-muted);
}

.tb-bread a:hover {
  color: var(--tb-primary);
}

.tb-bread-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* Main */
.tb-main {
  padding-bottom: 3rem;
}

.tb-section {
  padding: 2.5rem 0;
}

.tb-section-alt {
  background: linear-gradient(180deg, rgba(126, 200, 255, 0.12), transparent);
}

.tb-section-head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.tb-section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--tb-ink);
}

.tb-section-desc {
  margin: 0;
  color: var(--tb-muted);
}

.tb-section-more {
  margin-top: 1.75rem;
  text-align: center;
}

.tb-page-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
}

/* Hero / Slides */
.tb-hero {
  position: relative;
  min-height: clamp(280px, 48vw, 420px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--tb-sky), var(--tb-primary));
}

.tb-slides-track {
  position: relative;
  min-height: inherit;
}

.tb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tb-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.tb-slide-img {
  width: 100%;
  height: clamp(280px, 48vw, 420px);
  object-fit: cover;
}

.tb-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 0;
  background: linear-gradient(180deg, transparent 20%, rgba(45, 42, 50, 0.55) 100%);
  color: #fff;
}

.tb-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.tb-hero-sub {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 36rem;
}

.tb-slides-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.tb-slides-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.tb-slides-dot.is-active {
  background: var(--tb-secondary);
  width: 22px;
}

/* Cards */
.tb-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.tb-product-grid {
  grid-template-columns: 1fr;
}

.tb-news-grid {
  grid-template-columns: 1fr;
}

.tb-related-grid {
  grid-template-columns: 1fr;
}

.tb-card {
  background: var(--tb-card);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 107, 157, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tb-shadow);
}

.tb-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.25), rgba(126, 200, 255, 0.3));
}

.tb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.tb-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.tb-card-title a {
  color: var(--tb-ink);
}

.tb-card-title a:hover {
  color: var(--tb-primary);
}

.tb-card-desc {
  margin: 0;
  color: var(--tb-muted);
  font-size: 0.92rem;
}

.tb-card-meta {
  font-size: 0.85rem;
  color: var(--tb-muted);
}

.tb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tb-tag {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 107, 157, 0.14);
  color: #c93d72;
}

.tb-tag-alt {
  background: rgba(78, 205, 196, 0.18);
  color: #1f8f88;
}

.tb-price {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tb-primary);
}

.tb-price-lg {
  font-size: 1.6rem;
}

/* Filters */
.tb-filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tb-filter-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--tb-ink);
}

.tb-filter-opts {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.tb-filter-opt {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(45, 42, 50, 0.1);
  color: var(--tb-ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.tb-filter-opt:hover {
  border-color: var(--tb-primary);
  color: var(--tb-primary);
}

.tb-filter-opt.is-active {
  background: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #fff;
}

/* Pager */
.tb-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}

.tb-pager-item,
.tb-pager-prev,
.tb-pager-next {
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(45, 42, 50, 0.1);
  color: var(--tb-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.tb-pager-item.is-active {
  background: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #fff;
}

.tb-pager-item.is-disabled {
  opacity: 0.45;
}

/* Buttons */
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.tb-btn-primary {
  background: linear-gradient(135deg, var(--tb-primary), #ff8fb8);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 107, 157, 0.28);
}

.tb-btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.tb-btn-secondary {
  background: #fff;
  color: var(--tb-primary);
  border: 2px solid rgba(255, 107, 157, 0.35);
}

.tb-btn-secondary:hover {
  background: rgba(255, 107, 157, 0.08);
}

.tb-btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--tb-ink);
  border: 1px solid rgba(45, 42, 50, 0.12);
}

/* Prose / empty */
.tb-prose {
  font-size: 1.02rem;
  line-height: 1.8;
}

.tb-prose p {
  margin: 0 0 1rem;
}

.tb-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--tb-muted);
  background: #fff;
  border-radius: var(--tb-radius);
  border: 1px dashed rgba(255, 107, 157, 0.3);
}

/* Product detail */
.tb-pd {
  display: grid;
  gap: 1.5rem;
}

.tb-pd-media {
  border-radius: var(--tb-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--tb-shadow-sm);
}

.tb-pd-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.tb-pd-info {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 1.25rem;
  box-shadow: var(--tb-shadow-sm);
}

.tb-pd-desc {
  margin: 0.75rem 0 0;
  color: var(--tb-muted);
}

.tb-pd-body {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--tb-shadow-sm);
}

.tb-related {
  margin-top: 2.5rem;
}

/* Article layout + sidebar */
.tb-article-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.tb-article-main {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--tb-shadow-sm);
}

.tb-article-head {
  margin-bottom: 1rem;
}

.tb-article-date {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--tb-muted);
}

.tb-article-cover {
  margin: 0 0 1.25rem;
  border-radius: var(--tb-radius-sm);
  overflow: hidden;
}

.tb-article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.tb-pn {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tb-pn-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--tb-radius-sm);
  background: #fff;
  border: 1px solid rgba(255, 107, 157, 0.12);
  color: var(--tb-ink);
  box-shadow: var(--tb-shadow-sm);
}

.tb-pn-item:hover {
  border-color: var(--tb-primary);
  color: var(--tb-primary);
}

.tb-pn-next {
  text-align: right;
  align-items: flex-end;
}

.tb-pn-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tb-muted);
  letter-spacing: 0.04em;
}

.tb-pn-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.tb-pn-empty {
  display: none;
}

.tb-sidebar {
  display: grid;
  gap: 1rem;
}

.tb-side-block {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--tb-shadow-sm);
  border: 1px solid rgba(255, 107, 157, 0.08);
}

.tb-side-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: var(--tb-ink);
}

.tb-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.tb-side-link {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  color: var(--tb-ink);
}

.tb-side-link:hover {
  background: rgba(255, 107, 157, 0.08);
  color: var(--tb-primary);
}

.tb-side-link.is-current {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.14), rgba(126, 200, 255, 0.16));
  color: var(--tb-primary);
  font-weight: 700;
}

.tb-side-link-title {
  font-size: 0.92rem;
  line-height: 1.4;
}

.tb-side-link-meta {
  font-size: 0.78rem;
  color: var(--tb-muted);
}

.tb-side-more {
  display: inline-flex;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* About */
.tb-about-body {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--tb-shadow-sm);
}

.tb-about-contact {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(126, 200, 255, 0.22));
  border-radius: var(--tb-radius);
  padding: 1.25rem 1.4rem;
}

.tb-contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.tb-contact-list li span {
  display: inline-block;
  min-width: 3rem;
  font-weight: 700;
  color: var(--tb-primary);
  margin-right: 0.5rem;
}

/* Message form */
.tb-message-form {
  background: #fff;
  border-radius: var(--tb-radius);
  padding: 1.4rem;
  box-shadow: var(--tb-shadow-sm);
  display: grid;
  gap: 0.9rem;
  max-width: 640px;
}

.tb-form-row {
  display: grid;
  gap: 0.35rem;
}

.tb-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.tb-input,
.tb-textarea {
  width: 100%;
  border: 1px solid rgba(45, 42, 50, 0.14);
  border-radius: var(--tb-radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.tb-input:focus,
.tb-textarea:focus {
  outline: 2px solid rgba(255, 107, 157, 0.35);
  border-color: var(--tb-primary);
}

.tb-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.tb-captcha-row img {
  border-radius: 8px;
  border: 1px solid rgba(45, 42, 50, 0.1);
}

.tb-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tb-form-result {
  margin: 0;
  font-size: 0.92rem;
  color: var(--tb-muted);
}

.tb-form-result.is-ok {
  color: #1f8f88;
}

.tb-form-result.is-err {
  color: #d64545;
}

.tb-message-list {
  margin-top: 2rem;
}

.tb-message-item {
  background: #fff;
  border-radius: var(--tb-radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--tb-shadow-sm);
}

.tb-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--tb-muted);
}

.tb-message-meta strong {
  color: var(--tb-ink);
}

/* CTA */
.tb-cta {
  padding: 2.5rem 0 1rem;
}

.tb-cta-inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.14), rgba(255, 209, 102, 0.22), rgba(126, 200, 255, 0.2));
  border-radius: calc(var(--tb-radius) + 4px);
  padding: 2.2rem 1.5rem;
}

.tb-cta-tagline {
  margin: 0 0 0.4rem;
  color: var(--tb-muted);
  font-weight: 600;
}

.tb-cta-title {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

/* Footer */
.tb-footer {
  margin-top: 2rem;
  background: #2d2a32;
  color: rgba(255, 255, 255, 0.88);
  padding-top: 2.5rem;
}

.tb-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.tb-footer a:hover {
  color: var(--tb-secondary);
}

.tb-footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}

.tb-footer-name {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.tb-footer-tagline,
.tb-footer-note {
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.tb-footer-heading {
  margin: 0 0 0.6rem;
  font-weight: 700;
  color: var(--tb-secondary);
}

.tb-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.tb-footer-contact p {
  margin: 0.3rem 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.tb-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* 404 */
.tb-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(160deg, #fff9fb, #e8f6ff 50%, #fff3d6);
}

.tb-404-wrap {
  text-align: center;
  padding: 2rem;
}

.tb-404-brand {
  font-weight: 800;
  color: var(--tb-primary);
  margin: 0 0 0.5rem;
}

.tb-404-title {
  margin: 0;
  font-size: 5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tb-404-text {
  color: var(--tb-muted);
  margin: 0.75rem 0 1.5rem;
}

/* Responsive */
@media (min-width: 640px) {
  .tb-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tb-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tb-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tb-filter-group {
    flex-direction: row;
    align-items: center;
  }

  .tb-filter-label {
    min-width: 4.5rem;
  }

  .tb-pd {
    grid-template-columns: 1fr 1fr;
  }

  .tb-pd-body {
    grid-column: 1 / -1;
  }


  .tb-pn {
    grid-template-columns: 1fr 1fr;
  }

  .tb-pn-empty {
    display: block;
    visibility: hidden;
    pointer-events: none;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .tb-footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

@media (min-width: 960px) {
  .tb-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tb-news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tb-related-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tb-article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.75rem;
  }

  .tb-sidebar {
    position: sticky;
    top: 84px;
  }

  .tb-article-layout .tb-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .tb-nav-toggle {
    display: inline-flex;
  }

  .tb-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
    box-shadow: var(--tb-shadow-sm);
  }

  .tb-nav.is-open {
    display: flex;
  }

  .tb-nav-item.has-children:hover .tb-nav-sub {
    display: none;
  }

  .tb-nav-item.has-children .tb-nav-sub {
    position: static;
    display: block;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
    background: transparent;
  }

  .tb-nav-link {
    width: 100%;
  }
}
