/* Fenlei page styles extracted from the category page */
:root {
  --fenlei-primary: #18b26f;
  --fenlei-primary-dark: #12965d;
  --fenlei-text: #1f2937;
  --fenlei-muted: #6b7280;
  --fenlei-border: #e5e7eb;
  --fenlei-surface: #ffffff;
  --fenlei-bg: #f7faf9;
  --fenlei-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html, body {
  background: var(--fenlei-bg);
}

.fenlei-page {
  color: var(--fenlei-text);
  background: var(--fenlei-bg);
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.fenlei-hero {
  padding: 56px 0 34px;
  background: linear-gradient(135deg, #0f5132 0%, #18b26f 55%, #d9f7ea 100%);
  color: #fff;
}

.fenlei-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.fenlei-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.fenlei-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 800;
}

.fenlei-summary {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.95;
}

.fenlei-hero-image {
  display: flex;
  justify-content: center;
}

.fenlei-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--fenlei-shadow);
}

.fenlei-toolbar {
  margin-top: -18px;
  position: relative;
  z-index: 1;
}

.fenlei-toolbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 20px;
  box-shadow: var(--fenlei-shadow);
}

.fenlei-breadcrumb,
.fenlei-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fenlei-breadcrumb a,
.fenlei-breadcrumb span,
.fenlei-sort span {
  color: var(--fenlei-muted);
}

.fenlei-breadcrumb strong {
  color: var(--fenlei-text);
}

.fenlei-sort select {
  min-width: 210px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--fenlei-border);
  border-radius: 12px;
  background: #fff;
  color: var(--fenlei-text);
  outline: none;
}

.fenlei-layout {
  padding: 34px 0 60px;
}

.fenlei-layout-inner {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.fenlei-sidebar {
  display: grid;
  gap: 20px;
}

.fenlei-card,
.fenlei-detail-card,
.fenlei-product-card {
  background: var(--fenlei-surface);
  border: 1px solid var(--fenlei-border);
  border-radius: 20px;
  box-shadow: var(--fenlei-shadow);
}

.fenlei-card {
  padding: 24px;
}

.fenlei-card h3,
.fenlei-detail-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.2;
}

.fenlei-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fenlei-card li + li {
  margin-top: 10px;
}

.fenlei-card a {
  color: var(--fenlei-text);
}

.fenlei-card li.active a,
.fenlei-card a:hover {
  color: var(--fenlei-primary);
}

.fenlei-filter-group + .fenlei-filter-group {
  margin-top: 18px;
}

.fenlei-filter-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.fenlei-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fenlei-filter-tags a,
.btn-primary,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.fenlei-filter-tags a {
  border: 1px solid var(--fenlei-border);
  color: var(--fenlei-text);
  background: #fff;
}

.fenlei-filter-tags a:hover,
.btn-primary:hover,
.btn-dark:hover {
  transform: translateY(-1px);
}

.fenlei-promo-card {
  background: linear-gradient(180deg, #173b2b 0%, #0f5132 100%);
  color: #fff;
}

.fenlei-promo-card h3,
.fenlei-promo-card p,
.fenlei-promo-card a {
  color: inherit;
}

.fenlei-promo-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

.btn-primary,
.btn-dark {
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--fenlei-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--fenlei-primary-dark);
  color: #fff;
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.fenlei-main {
  min-width: 0;
}

.fenlei-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.fenlei-product-card {
  overflow: hidden;
}

.fenlei-product-thumb {
  display: block;
  background: #f3f4f6;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.fenlei-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fenlei-product-info {
  padding: 20px;
}

.fenlei-product-meta {
  color: var(--fenlei-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fenlei-product-info h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.fenlei-product-info h3 a {
  color: var(--fenlei-text);
}

.fenlei-product-info p {
  margin: 0 0 18px;
  color: var(--fenlei-muted);
  line-height: 1.7;
}

.fenlei-product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fenlei-detail-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.fenlei-detail-card {
  padding: 24px;
}

.fenlei-detail-card p,
.fenlei-detail-list {
  margin: 0;
  color: var(--fenlei-muted);
  line-height: 1.8;
}

.fenlei-detail-list {
  padding-left: 18px;
}

.fenlei-detail-list li + li {
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .fenlei-hero-inner,
  .fenlei-layout-inner,
  .fenlei-detail-block {
    grid-template-columns: 1fr;
  }

  .fenlei-toolbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .fenlei-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .fenlei-hero {
    padding-top: 36px;
  }

  .fenlei-toolbar,
  .fenlei-layout {
    margin-top: 0;
  }

  .fenlei-toolbar-inner,
  .fenlei-card,
  .fenlei-detail-card,
  .fenlei-product-info {
    padding-left: 16px;
    padding-right: 16px;
  }

  .fenlei-sort select {
    width: 100%;
    min-width: 0;
  }
}
