:root {
  --brand: #0f6a5a;
  --brand-dark: #0b4f43;
  --accent: #d39d35;
  --text: #1a1f24;
  --muted: #6a7682;
  --line: #dfe7ea;
  --bg: #f5f8f8;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(17, 40, 44, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 40, 44, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img,
.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  object-fit: cover;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-text strong {
  font-size: 20px;
}

.brand-text small,
.header-contact span {
  color: var(--muted);
}

.header-contact {
  margin-left: auto;
  display: grid;
  justify-items: end;
}

.header-contact strong {
  color: var(--accent);
  font-size: 26px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
}

.main-nav {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 106, 90, 0.98), rgba(11, 79, 67, 0.98));
}

.main-nav .container {
  display: flex;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.86);
  padding: 16px 22px;
  font-size: 15px;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #082f28 0%, #0d5548 50%, #153f55 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(211, 157, 53, 0.26), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.1), transparent 24%);
}

.hero-track {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 30, 26, 0.86), rgba(8, 30, 26, 0.4));
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  padding: 72px 0;
  max-width: 740px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #e8ddbf;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.hero-eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: #e8ddbf;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #251703;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.home-more-button {
  background: #3a4147;
  border-color: #3a4147;
  color: #fff;
}

.home-more-button:hover,
.home-more-button:focus-visible {
  background: #2f363c;
  border-color: #2f363c;
}

.keyword-bar,
.section,
.detail-layout,
.content-section {
  padding: 34px 0;
}

.keyword-bar {
  background: #eef4f4;
  border-bottom: 1px solid var(--line);
}

.keyword-bar .container {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(15, 106, 90, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 22px;
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

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

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

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

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

.card-body {
  padding: 18px 20px 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.product-card .thumb,
.post-card .thumb,
.honor-card .thumb {
  aspect-ratio: 1 / 0.78;
  background: #edf1f1;
  overflow: hidden;
}

.product-card .thumb img,
.post-card .thumb img,
.honor-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta,
.post-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-list-item {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-list-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #edf1f1;
  aspect-ratio: 16 / 10;
}

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

.article-list-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.article-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.article-list-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf5f3;
  color: var(--brand);
  font-weight: 600;
}

.article-list-body h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.25;
}

.article-list-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.article-list-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.article-list-link {
  color: var(--brand);
  font-weight: 600;
}

.article-list-link:hover {
  color: var(--brand-dark);
}

.home-post-list {
  display: grid;
  gap: 16px;
}

.home-post-columns > .home-post-column {
  display: flex;
  flex-direction: column;
}

.home-post-column .home-post-list {
  display: grid;
  gap: 16px;
}

.home-post-item {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.home-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.home-post-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.45em * 2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-post-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(1.9em * 3);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.home-post-footer {
  display: flex;
  align-items: center;
}

.home-post-column .home-post-item {
  height: auto;
}

.home-post-link {
  color: var(--brand);
  font-weight: 700;
}

.home-post-link:hover {
  color: var(--brand-dark);
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.news-featured.no-thumb {
  grid-template-columns: 1fr;
}

.news-featured-thumb {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #edf1f1;
}

.news-featured-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-featured-body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.news-featured-body h2,
.news-list-body h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.35;
}

.news-featured-body p,
.news-list-body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.news-list-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-featured-footer {
  display: flex;
  align-items: center;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 106, 90, 0.24);
  box-shadow: 0 18px 44px rgba(17, 40, 44, 0.1);
}

.news-list-date {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: center;
  min-height: 112px;
  padding: 16px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fbfa 0%, #ecf5f2 100%);
  border: 1px solid rgba(15, 106, 90, 0.1);
}

.news-list-date .year {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.news-list-date strong {
  color: var(--brand-dark);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.news-list-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.news-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.news-list-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #edf5f3;
  color: var(--brand);
  font-weight: 700;
}

.news-list-link:hover {
  background: #e1f0eb;
  color: var(--brand-dark);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 106, 90, 0.12);
  box-shadow: var(--shadow);
}

.advantage-item {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 34px 22px 30px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f5faf8 100%);
}

.advantage-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #edf8f4 58%, #d8ece6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.advantage-icon::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(15, 106, 90, 0.18);
  border-radius: 24px;
  transform: rotate(45deg);
}

.advantage-icon::after {
  content: attr(data-badge);
  position: relative;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.advantage-item-2 .advantage-icon {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fff6e5 58%, #f5dfb2 100%);
}

.advantage-item-3 .advantage-icon {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eef6ff 58%, #d6e8ff 100%);
}

.advantage-item-4 .advantage-icon {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #fff0f6 58%, #f2d8e5 100%);
}

.advantage-item h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.advantage-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-feature {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.about-feature-media {
  display: grid;
  gap: 14px;
}

.about-feature-main {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: #edf1f1;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-feature-main img {
  width: 100%;
  aspect-ratio: 1 / 0.94;
  object-fit: cover;
}

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

.about-feature-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #edf1f1;
  border: 1px solid rgba(15, 106, 90, 0.1);
}

.about-feature-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
}

.about-panel-home {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 32px;
  order: -1;
}

.about-panel-home .section-title {
  margin-bottom: 0;
}

.about-feature-tagline {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: #edf5f3;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.about-feature-summary {
  margin: 0;
  color: #314149;
  font-size: 16px;
  line-height: 2;
}

.about-feature-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-feature-stat {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbfa 0%, #eef5f2 100%);
  border: 1px solid rgba(15, 106, 90, 0.1);
}

.about-feature-stat strong {
  color: var(--brand-dark);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-feature-stat span {
  color: var(--muted);
  font-size: 14px;
}

.about-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-box,
.contact-grid,
.detail-layout,
.archive-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
}

.about-panel,
.side-panel,
.detail-content,
.message-box,
.search-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-html,
.detail-html {
  color: #22313a;
  min-width: 0;
  overflow: hidden;
}

.about-html img,
.detail-html img {
  border-radius: 18px;
  margin: 18px auto;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

.contact-info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.contact-info-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f1f7fb 100%);
}

.contact-info-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 16px;
}

.contact-info-card p {
  margin: 0;
  line-height: 1.8;
  word-break: break-word;
}

.contact-side-panel > p {
  color: #51646f;
}

.contact-qr-list {
  display: grid;
  gap: 16px;
}

.contact-qr-card {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f8fbfd;
  text-align: center;
}

.contact-qr-card img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 16px;
}

.contact-qr-card figcaption {
  color: #51646f;
  font-size: 14px;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 136px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(232, 191, 109, 0.22), transparent 34%),
    linear-gradient(180deg, #12313a 0%, #0c2028 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.stats::before {
  content: "核心能力";
  position: absolute;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4e6b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats::after {
  content: "围绕新能源材料装备场景，提供稳定可靠的交付支持";
  position: absolute;
  top: 70px;
  left: 28px;
  right: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.stats > div {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 168px;
  align-content: start;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stats > div::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0c968 0%, #f7e7bc 100%);
}

.stats > div::after {
  display: block;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.75;
}

.stats > div:nth-child(2)::before {
  background: linear-gradient(90deg, #90d5c9 0%, #dff7f1 100%);
}

.stats > div:nth-child(3)::before {
  background: linear-gradient(90deg, #7eb8f5 0%, #d7e9ff 100%);
}

.stats > div:nth-child(4)::before {
  background: linear-gradient(90deg, #e4a8d0 0%, #f8deed 100%);
}

.stats > div:nth-child(1)::after {
  content: "覆盖反应、混合、分散、干燥与分离等关键工艺环节。";
}

.stats > div:nth-child(2)::after {
  content: "企业动态、技术文章与项目案例持续更新，方便客户快速了解应用方向。";
}

.stats > div:nth-child(3)::after {
  content: "资质与成果同步展示，帮助客户直观评估交付能力与服务经验。";
}

.stats > div:nth-child(4)::after {
  content: "覆盖选型沟通、安装调试、现场配合与售后跟进等关键服务节点。";
}

.stats span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.stats strong {
  display: block;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.stats > div:nth-child(1) span {
  background: rgba(240, 201, 104, 0.14);
  color: #f7df98;
}

.stats > div:nth-child(2) span {
  background: rgba(144, 213, 201, 0.14);
  color: #b9efe6;
}

.stats > div:nth-child(3) span {
  background: rgba(126, 184, 245, 0.14);
  color: #c8e2ff;
}

.stats > div:nth-child(4) span {
  background: rgba(228, 168, 208, 0.14);
  color: #f1cde6;
}


.archive-layout {
  align-items: start;
}

.product-archive {
  display: grid;
  gap: 26px;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
}

.product-archive-sidebar,
.product-archive-main {
  min-width: 0;
}

.product-sidebar-stack {
  display: grid;
  gap: 18px;
}

.product-archive-sidebar .side-panel,
.product-archive-sidebar .search-panel {
  padding: 20px;
  border-radius: 22px;
}

.product-archive-sidebar .side-panel h3,
.product-archive-sidebar .search-panel h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.product-archive-sidebar .side-panel nav {
  gap: 8px;
  margin-top: 10px;
}

.product-archive-sidebar .side-panel nav > a:first-child {
  background: #e9f4f1;
  color: var(--brand);
  font-weight: 700;
}

.product-archive-sidebar .side-panel nav > a + a {
  margin-left: 12px;
  padding-left: 16px;
  font-size: 14px;
  background: #fafcfc;
}

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

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

.product-archive-grid .product-card {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-archive-grid .product-card .thumb {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 14px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef4f4 100%);
  border-bottom: 1px solid rgba(15, 106, 90, 0.08);
}

.product-archive-grid .product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-archive-grid .card-body {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 14px 16px 18px;
  text-align: center;
}

.product-archive-grid .product-card h3 {
  width: 100%;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
}

.product-archive-grid .product-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-archive-grid .product-card p {
  display: none;
}

.product-archive-grid .product-card .product-meta {
  display: none;
}

.side-panel nav,
.category-links {
  display: grid;
  gap: 10px;
}

.side-panel nav a,
.category-links a {
  padding: 10px 14px;
  border-radius: 14px;
  background: #f5f8f8;
}

.side-panel nav a:hover,
.category-links a:hover,
.side-panel nav a.is-active,
.category-links a.is-active {
  background: #e9f4f1;
  color: var(--brand);
}

.search-form {
  display: grid;
  gap: 12px;
}

.search-form input,
.search-form textarea,
.search-form select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #cfd9de;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.search-form button,
.admin-form button,
.admin-form .button {
  border: 0;
  cursor: pointer;
}

.detail-header {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.gallery-main {
  border-radius: 24px;
  overflow: hidden;
  background: #edf1f1;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-meta {
  display: grid;
  gap: 12px;
}

.detail-meta strong {
  color: var(--brand);
}

.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  color: var(--muted);
  flex-wrap: wrap;
}

.breadcrumbs strong {
  color: var(--text);
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.pagination a {
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.pagination a.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

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

.message-grid .full {
  grid-column: 1 / -1;
}

.message-captcha-row {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(132px, 156px) minmax(150px, 180px);
  justify-content: start;
  align-items: end;
}

.message-captcha-field {
  min-width: 0;
}

.message-captcha-field input {
  width: 100%;
}

.message-captcha-preview {
  display: grid;
  gap: 10px;
}

.message-captcha-image {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f7fbfa;
}

.message-captcha-preview .button {
  width: 100%;
  justify-content: center;
}

.flash {
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 14px 16px;
}

.flash-success {
  background: #e5f6ea;
  color: #205d33;
}

.flash-error {
  background: #fde9e8;
  color: #8c2b20;
}

.notice {
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 14px 16px;
}

.notice-success {
  background: #e5f6ea;
  color: #205d33;
}

.notice-error {
  background: #fde9e8;
  color: #8c2b20;
}

.site-footer {
  background: #0e1f24;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 48px;
}

.friend-links {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.friend-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.friend-link-list a {
  color: #c8d2d6;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 34px 0;
}

.footer-company {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-logo {
  display: block;
  max-width: min(220px, 100%);
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-company h4,
.footer-company p {
  margin: 0;
}

.footer-qrs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-qrs figure {
  margin: 0;
  text-align: center;
}

.footer-qrs img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
}

.footer-bottom {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #aeb8bd;
}

.footer-bottom a {
  color: #fff;
}

@media (max-width: 1100px) {
  .grid-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .about-feature {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  }

  .product-archive {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

  .grid-cards-3,
  .advantage-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .header-contact {
    order: 3;
    width: 100%;
    justify-items: start;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav .container {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-products,
  .grid-cards-3,
  .grid-cards-2,
  .advantage-grid,
  .about-feature,
  .about-box,
  .contact-info-grid,
  .contact-grid,
  .detail-layout,
  .archive-layout,
  .product-archive,
  .detail-header,
  .footer-grid,
  .message-grid,
  .article-list-item {
    grid-template-columns: 1fr;
  }

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

  .news-list-item {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
  }

  .news-list-link {
    grid-column: 2;
    justify-self: start;
  }

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

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

  .product-archive-sidebar .side-panel nav > a + a {
    margin-left: 0;
    padding-left: 14px;
  }

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

  .stats {
    padding-top: 124px;
  }

  .stats::after {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  .news-featured,
  .news-list-item,
  .home-post-item,
  .about-panel-home {
    padding: 20px;
  }

  .hero-content {
    padding: 56px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .header-contact strong {
    font-size: 22px;
  }

  .news-list-item,
  .message-captcha-row,
  .home-product-grid.product-archive-grid,
  .about-feature-thumbs,
  .about-feature-stats {
    grid-template-columns: 1fr;
  }

  .news-list-link {
    grid-column: auto;
  }

  .news-list-date {
    min-height: auto;
  }

  .stats {
    grid-template-columns: 1fr;
    padding-top: 156px;
  }

  .stats::before {
    top: 24px;
    left: 24px;
  }

  .stats::after {
    top: 62px;
    left: 24px;
    right: 24px;
    font-size: 20px;
  }
}
