:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #1d4ed8;
  --primary-2: #1e40af;
  --shadow: 0 8px 30px rgba(17, 24, 39, .08);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 16px;
  padding-left: 16px;
  max-width: 1400px;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px
}

.topbar__row--first {
  justify-content: space-between;
  padding: 0 16px
}

.topbar__row--search {
  justify-content: center;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--primary), #22c55e);
  border-bottom: 1px solid var(--border)
}

.topbar__row--nav {
  justify-content: center;
  padding: 0 16px;
  background: #fff
}

.search--primary {
  max-width: 800px;
  width: 100%;
  gap: 12px
}

.search__input--primary {
  height: 48px;
  border-radius: 14px;
  font-size: 16px
}

.search__input--primary:focus {
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .2)
}

.topbar__row--search .btn--primary {
  height: 48px;
  padding: 0 20px;
  font-size: 16px;
  border-radius: 14px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #22c55e);
  display: grid;
  place-items: center;
  color: #fff;
}

.brand__name {
  white-space: nowrap
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px
}

.search__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.search__input:focus {
  border-color: rgba(29, 78, 216, .5);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .12)
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 12px
}

.navlink {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.navlink:hover {
  background: rgba(17, 24, 39, .04);
  color: var(--text)
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px
}

.lang__label {
  font-size: 12px;
  color: var(--muted)
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.pill--active {
  border-color: rgba(29, 78, 216, .35);
  background: rgba(29, 78, 216, .08)
}

.btn {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 700;
}

.btn--primary {
  border-color: transparent;
  background: var(--primary);
  color: #fff
}

.btn--primary:hover {
  background: var(--primary-2)
}

.btn--ghost {
  background: #fff
}

.btn--ghost:hover {
  background: rgba(17, 24, 39, .03)
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  padding: 20px 0;
}

.hero__left,
.hero__right {
  min-width: 0
}

.hero__title {
  margin: 18px 0 8px;
  font-size: 32px;
  line-height: 1.1
}

.hero__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 56ch
}

.hero__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.section {
  padding: 14px 0 26px
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px
}

.section__title {
  margin: 0;
  font-size: 18px
}

.section__hint {
  color: var(--muted);
  font-size: 12px
}

/* 面包屑导航样式 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border)
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease
}

.breadcrumb__item:hover {
  color: var(--primary)
}

.breadcrumb__item:last-child {
  color: var(--text);
  font-weight: 600;
  pointer-events: none
}

.breadcrumb__separator {
  color: var(--muted);
  font-size: 12px
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__title {
  padding: 14px 14px 0;
  font-weight: 800
}

.card__body {
  padding: 14px
}

.muted {
  color: var(--muted)
}

.grid {
  display: grid;
  gap: 10px
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.grid--auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px
}

.tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile:hover {
  border-color: rgba(29, 78, 216, .35);
  box-shadow: 0 10px 30px rgba(29, 78, 216, .08)
}

.tile__label {
  font-weight: 800
}

.tile__hint {
  color: var(--muted)
}

.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chip:hover {
  border-color: rgba(34, 197, 94, .4);
  box-shadow: 0 10px 30px rgba(34, 197, 94, .08)
}

.chip__name {
  font-weight: 900
}

.chip__meta {
  color: var(--muted);
  font-size: 12px
}

/* 分类标签样式 */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px
}

.category-tag {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease
}

.category-tag:hover {
  border-color: var(--primary);
  background: rgba(29, 78, 216, 0.05)
}

.category-tag.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff
}

/* 产品卡片样式 */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  transition: all 0.3s ease
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12)
}

.product-card__title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px
}

.product-card__category {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px
}

.product-card__items {
  list-style: none;
  margin: 0;
  padding: 0
}

.product-card__item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border)
}

.product-card__item:last-child {
  border-bottom: none
}

/* 新的牌号卡片样式 */
.grade-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative
}

.grade-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.15);
  border-color: var(--primary)
}

.grade-card__header {
  position: relative
}

.grade-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2
}

.grade-card__image {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(34, 197, 94, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.grade-card__image::after {
  content: "图片占位";
  color: var(--muted);
  font-size: 14px
}

.grade-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 240px
}

.grade-card__name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px
}

.grade-card__grade {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f0f0;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px
}

.grade-card__specs {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4
}

.grade-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px
}

.grade-card__tag-item {
  background: #f0f0f0;
  color: var(--text);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px
}

.grade-card__status {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px
}

.grade-card__datasheet-container {
  margin-top: auto;
  display: flex;
  justify-content: flex-end
}

.grade-card__datasheet-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 120px;
  height: 36px;
  justify-content: center
}

.grade-card__datasheet-btn:hover {
  background: var(--primary-2);
  transform: scale(1.05)
}

.grade-card__datasheet-btn::before {
  content: "📄"
}

/* 产品类目导航容器 */
.product-categories {
  margin-bottom: 24px
}

.product-categories__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px
}

.product-categories__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--muted)
}

.empty-state__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px
}

.empty-state__description {
  color: var(--muted);
  margin-bottom: 24px
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 0;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap
}

.footer__muted {
  color: var(--muted);
  font-size: 12px
}

.footer__link {
  color: var(--muted)
}

.footer__link:hover {
  color: var(--text)
}

.footer__sep {
  margin: 0 8px;
  color: var(--border)
}

@media (max-width: 1024px) {
  .container {
    max-width: 960px;
  }

  .grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width: 900px) {
  .topbar__nav {
    display: none
  }

  .topbar__row--search {
    padding: 0 12px
  }

  .search--primary {
    max-width: 100%
  }

  .search__input--primary {
    font-size: 14px
  }

  .topbar__row--search .btn--primary {
    font-size: 14px;
    padding: 0 16px
  }

  .hero {
    grid-template-columns: 1fr
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar__row {
    height: 56px
  }

  .topbar__row--first {
    gap: 12px
  }

  .brand__name {
    font-size: 14px
  }

  .lang__label {
    display: none
  }

  .search__input--primary {
    height: 40px
  }

  .topbar__row--search .btn--primary {
    height: 40px
  }

  .grid--4 {
    grid-template-columns: repeat(1, minmax(0, 1fr))
  }

  .grid--2 {
    grid-template-columns: repeat(1, minmax(0, 1fr))
  }
}


/* 自定义滚动条样式 */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}