* {
  box-sizing: border-box;
}

html {
  background: #f2f2f2;
}

body {
  margin: 0;
  color: #3c3c3c;
  background: #f7f7f7;
  font: 14px/1.7 "Microsoft YaHei", Verdana, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

a:hover {
  color: #ff8000;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: 1205px;
  margin: 0 auto;
}

.site-header {
  height: 115px;
  padding-top: 30px;
  position: relative;
  background: #fff;
}

.logo {
  position: absolute;
  top: 30px;
  left: 0;
  width: 190px;
  height: 50px;
  overflow: hidden;
}

.logo img {
  width: 190px;
  height: 50px;
  object-fit: contain;
}

.search {
  position: absolute;
  top: 40px;
  left: 403px;
  display: flex;
  height: 34px;
}

.search input {
  width: 345px;
  height: 34px;
  border: 1px solid #e5e5e5;
  border-right: 0;
  padding: 0 12px;
  color: #666;
  outline: none;
  font-family: inherit;
}

.search input:focus {
  border-color: #ff8000;
}

.search button {
  width: 50px;
  height: 34px;
  border: 0;
  color: #fff;
  background: #ff8000;
  font-family: inherit;
  cursor: pointer;
}

.navline {
  height: 4px;
  background: #ff8000;
}

.page-shell {
  display: flex;
  align-items: flex-start;
  background: #fff;
}

.sidebar {
  width: 225px;
  flex: 0 0 225px;
  padding-right: 20px;
  background: #fff;
}

.mainright {
  width: 980px;
  flex: 0 0 980px;
  background: #fff;
}

.content-nav {
  height: 50px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ededed;
  overflow: hidden;
}

.content-nav a {
  min-width: 70px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
  white-space: nowrap;
}

.content-nav a.active,
.content-nav a:hover {
  color: #fff;
  background: #ff8000;
}

.content-list {
  padding: 20px 0 20px 20px;
}

.announcement {
  min-height: 42px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid #ededed;
  color: #ff8000;
  background: #fff;
  line-height: 22px;
}

.hero-slider {
  width: 960px;
  height: 320px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f2f2f2;
}

.slides,
.slide {
  width: 100%;
  height: 100%;
}

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

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

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

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.slider-dots button.active {
  background: #ff8000;
  border-color: #ff8000;
}

.side-nav {
  margin-top: 0;
  border-left: 1px solid #ededed;
  border-right: 1px solid #ededed;
}

.side-nav h2,
.side-widget h3 {
  height: 40px;
  margin: 0;
  padding: 0 14px;
  color: #fff;
  background: #ff8000;
  font-size: 15px;
  font-weight: 700;
  line-height: 40px;
}

.side-nav-title {
  height: 42px;
  padding-left: 14px;
  border-bottom: 1px solid #ededed;
  color: #999;
  line-height: 42px;
}

.side-nav li {
  border-bottom: 1px solid #ededed;
}

.side-nav li a {
  height: 50px;
  display: grid;
  grid-template-columns: 5px 1fr auto;
  align-items: center;
  column-gap: 10px;
  padding-right: 10px;
  color: #3c3c3c;
}

.side-nav li a::before {
  width: 5px;
  height: 28px;
  content: "";
  background: var(--accent);
}

.cat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-sub {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

.side-widget {
  margin-top: 20px;
  border: 1px solid #ededed;
  background: #fff;
}

.side-widget h3 {
  height: 36px;
  font-size: 14px;
  line-height: 36px;
}

.side-widget > ul {
  padding: 10px;
}

.side-card {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ededed;
}

.side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f4f4f4;
}

.side-card-title {
  display: block;
  margin-top: 8px;
  line-height: 20px;
}

.side-card strong {
  color: #ff3300;
  font-weight: 700;
}

.archive-widget li {
  height: 26px;
  overflow: hidden;
  line-height: 26px;
}

.comment-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #ededed;
}

.comment-item img {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  object-fit: cover;
}

.comment-item p {
  margin: 0;
  color: #777;
  font-size: 12px;
  line-height: 18px;
}

.product-section {
  margin-bottom: 32px;
  scroll-margin-top: 16px;
}

.category-title {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 2px solid #ff8000;
}

.category-title h2 {
  min-width: 110px;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  color: #fff;
  background: #ff8000;
  font-size: 15px;
  line-height: 32px;
}

.category-title a {
  margin-right: 8px;
  color: #999;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 225px);
  gap: 20px;
}

.product-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #ededed;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 225 / 152;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-info {
  padding: 10px 10px 12px;
}

.product-info h3 {
  height: 60px;
  margin: 0 0 9px;
  overflow: hidden;
  color: #3c3c3c;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.price-row {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
}

.price {
  min-width: 0;
  color: #ff3300;
  font-weight: 700;
  white-space: nowrap;
}

.buy {
  flex: 0 0 auto;
  padding: 0 8px;
  color: #fff;
  background: #ff8000;
  font-size: 12px;
  line-height: 22px;
}

.buy:hover {
  color: #fff;
  background: #ff6600;
}

.meta-row,
.article-meta {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #999;
  font-size: 12px;
  line-height: 20px;
}

.category-text {
  margin: 28px -20px 0 0;
}

.category-text-box {
  min-height: 170px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 26px 24px;
  background: #fcfddb url("../assets/weikawang/list_catetext_box_bg-54c965cf.png") repeat;
  border: 1px solid #f9f2a7;
}

.category-text-box h2 {
  width: 130px;
  height: 92px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #ff8000;
  font-size: 28px;
  line-height: 1.2;
}

.category-text-box li {
  height: 32px;
  border-bottom: 1px dashed #e8ca73;
  line-height: 32px;
}

.tag-board {
  margin: 20px 0;
  padding: 16px 20px 18px;
  border: 1px solid #e5e5e5;
  background: #f9fcff url("../assets/weikawang/list_tag_bg-bf1fddb6.png") repeat;
}

.tag-board h2 {
  margin: 0 0 12px;
  color: #ff8000;
  font-size: 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--tag);
  font-size: 12px;
}

.tag-cloud a:hover {
  color: #fff;
  filter: brightness(0.94);
}

.side-tags {
  padding: 10px;
}

.article-list {
  margin-top: 20px;
}

.article-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  margin-bottom: 10px;
  border-bottom: 2px solid #ff8000;
}

.article-list-head h2 {
  min-width: 100px;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  color: #fff;
  background: #ff8000;
  font-size: 15px;
  line-height: 32px;
}

.article-list-head a {
  margin-right: 8px;
  color: #ff8000;
  font-size: 13px;
}

.blog-list-page {
  padding: 20px 0 30px 20px;
}

.blog-list-page h1 {
  margin: 0 0 8px;
  color: #222;
  font-size: 24px;
  line-height: 34px;
}

.blog-list-intro {
  margin: 0 0 18px;
  color: #777;
}

.article-detail {
  margin: 20px 0 40px 20px;
  border: 1px solid #ededed;
  background: #fff;
}

.crumb {
  height: 40px;
  padding: 0 20px;
  color: #666;
  border-bottom: 1px solid #ededed;
  line-height: 40px;
}

.article-detail-head {
  position: relative;
  min-height: 78px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #ededed;
}

.article-detail-head h1 {
  margin: 0 0 8px;
  color: #333;
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
}

.article-detail-head strong {
  position: absolute;
  right: 0;
  top: -2px;
  padding: 0 12px;
  color: #fff;
  background: #ff8000;
  font-size: 14px;
  line-height: 31px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #999;
  font-size: 12px;
}

.article-detail-meta span:first-child,
.article-detail-meta span:last-child {
  color: #ff8000;
}

.article-detail-body {
  min-height: 620px;
  padding: 18px 20px 50px;
  color: #555;
  font-size: 16px;
  line-height: 2.3;
}

.article-detail-body p {
  margin: 0 0 24px;
}

.article-detail-body a {
  color: #ff4d00;
}

.article-detail-body .red-link,
.article-detail-body .red-link a {
  color: #ff0000;
}

.article-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  min-height: 205px;
  padding: 20px 0;
  border-bottom: 1px solid #ededed;
}

.article-image {
  width: 220px;
  height: 140px;
  overflow: hidden;
  background: #f5f5f5;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-copy h2 {
  margin: 0 0 8px;
  color: #ff8000;
  font-size: 16px;
  line-height: 24px;
}

.article-copy p {
  max-height: 100px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #666;
  font-size: 13px;
  line-height: 24px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 22px 0 10px;
}

.pagination a,
.pagination span {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #ededed;
  color: #888;
  background: #fff;
  font-size: 12px;
  line-height: 26px;
  text-align: center;
}

.pagination a.active,
.pagination a:hover {
  color: #fff;
  border-color: #ff8000;
  background: #ff8000;
}

.site-footer {
  padding: 24px 0 28px;
  border-top: 1px solid #e5e5e5;
  color: #999;
  background: #f2f2f2;
  font-size: 12px;
}

.site-footer .footer {
  display: flex;
  gap: 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e1e1e1;
}

.site-footer .footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.copyright {
  width: 1205px;
  margin: 12px auto 0;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 32px;
  color: #3c3c3c;
  background: #fff;
  text-align: center;
}

.not-found-page img {
  width: min(360px, 80vw);
}

.not-found-page h1 {
  margin: 0;
  color: #222;
  font-size: 28px;
}

.not-found-page p {
  margin: 0;
  color: #777;
}

.not-found-page a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  color: #fff;
  background: #ff8000;
}

@media (max-width: 1240px) {
  .container {
    width: 100%;
    max-width: 1205px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .search {
    left: min(403px, 42vw);
  }

  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mainright {
    width: calc(100% - 225px);
    flex-basis: calc(100% - 225px);
  }

  .hero-slider,
  .product-grid,
  .tag-board,
  .article-list {
    width: 100%;
  }

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

@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 100px;
    padding: 18px 10px 14px;
  }

  .logo,
  .search {
    position: static;
  }

  .logo {
    display: block;
    margin-bottom: 12px;
  }

  .search {
    width: 100%;
  }

  .search input {
    width: calc(100% - 56px);
  }

  .page-shell {
    display: block;
    background: #fff;
  }

  .sidebar {
    display: none;
  }

  .mainright {
    width: 100%;
    flex-basis: auto;
  }

  .content-nav {
    height: auto;
    overflow-x: auto;
  }

  .content-nav a {
    min-width: max-content;
    height: 42px;
  }

  .content-list {
    padding: 10px 0;
  }

  .hero-slider {
    height: auto;
    aspect-ratio: 3 / 1;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .category-text {
    margin-right: 0;
  }

  .category-text-box {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 150px 1fr;
    gap: 12px;
  }

  .article-detail {
    margin: 12px 0 30px;
  }

  .article-image {
    width: 150px;
    height: 92px;
  }

  .copyright,
  .site-footer .footer {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
    background: #fff;
  }

  .container,
  .page-shell {
    padding-left: 6px;
    padding-right: 6px;
  }

  .navline {
    height: 3px;
  }

  .announcement {
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-title {
    margin-bottom: 10px;
  }

  .category-title h2 {
    min-width: 96px;
    padding: 0 10px;
    font-size: 14px;
  }

  .product-info {
    padding: 7px;
  }

  .product-info h3 {
    height: 40px;
    font-size: 12px;
    line-height: 20px;
  }

  .price-row {
    height: auto;
    display: block;
  }

  .buy {
    display: inline-block;
    margin-top: 5px;
  }

  .meta-row {
    gap: 4px;
    font-size: 11px;
  }

  .tag-board {
    padding: 12px;
  }

  .article-row {
    grid-template-columns: 96px 1fr;
  }

  .article-image {
    width: 96px;
    height: 72px;
  }

  .article-copy h2 {
    font-size: 13px;
    line-height: 20px;
  }

  .article-copy p {
    max-height: 58px;
    font-size: 12px;
    line-height: 19px;
  }
}

@media (max-width: 330px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}


.detail-card {
  min-height: 360px;
  padding: 28px 30px 36px;
  border: 1px solid #ededed;
  background: #fff;
}

.detail-card h1 {
  margin: 0 0 14px;
  color: #333;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ededed;
  color: #999;
  font-size: 13px;
}

.detail-body {
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}

.detail-body p {
  margin: 0 0 14px;
}

.detail-body img {
  max-width: 100%;
  margin: 16px 0;
}

.detail-body .product-detail-image {
  width: 420px;
  max-width: 100%;
  border: 1px solid #ededed;
}

.detail-body .product-price {
  margin: 14px 0;
  color: #ff8000;
  font-size: 22px;
  font-weight: 700;
}

.detail-body .product-buy {
  display: inline-flex;
  height: 34px;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: #ff8000;
}

.detail-body .product-buy:hover {
  color: #fff;
  background: #e87200;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.detail-tags a {
  padding: 4px 10px;
  color: #fff;
  background: #ff8000;
}
