/* Minimal extras for inner pages — breadcrumbs, tabs, forms, pagination + missing utilities */

html,
body,
.font-sans,
.font-serif {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

/* --- utilities not present in built index.css but needed by inner pages --- */
.text-brand-blue { color: #0B5FA8; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.items-end { align-items: flex-end; }
.h-64 { height: 16rem; }
.max-w-2xl { max-width: 42rem; }
.pb-16 { padding-bottom: 4rem; }
.min-h-\[220px\] { min-height: 220px; }
@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 768px) {
  .md\:py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .md\:min-h-\[280px\] { min-height: 280px; }
}
@media (min-width: 1024px) {
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:pb-24 { padding-bottom: 6rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:h-full { height: 100%; }
}

/* --- inner page chrome --- */
.inner-hero {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background-color: #0a655f;
}

@media (min-width: 768px) {
  .inner-hero {
    min-height: 280px;
  }
}

.inner-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 101, 95, 0.72) 0%, rgba(10, 101, 95, 0.35) 55%, rgba(10, 101, 95, 0.15) 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb__sep {
  opacity: 0.55;
}

.home-products-block {
  padding-top: 2.5rem;
}
.home-products-block:first-of-type {
  padding-top: 2.5rem;
}
.home-products-head {
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .home-products-head {
    margin-bottom: 2.5rem;
  }
}

.product-card {
  display: block;
  color: inherit;
}
.product-card__inner {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 95, 168, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover .product-card__inner {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(11, 95, 168, 0.16);
}
.product-card__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f3f4f6;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.product-card:hover .product-card__media img {
  transform: scale(1.04);
}
.product-card__name {
  margin: 0;
  padding: 0.9rem 1rem 1.05rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a5fa8;
  position: relative;
  z-index: 2;
  background: #fff;
}
.product-card__mask {
  position: absolute;
  inset: 0;
  background: rgba(11, 95, 168, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.product-card:hover .product-card__mask {
  opacity: 1;
}
.product-card:hover .product-card__name {
  background: #0b5fa8;
  color: #fff;
}
.home-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #1a5fa8;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #1a5fa8;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.home-more-btn:hover {
  background: #fff;
  color: #0b5fa8;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  padding: 0.5rem 1rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: default;
  border-radius: 2px;
}

.cat-tab.is-active,
.cat-tab:hover {
  border-color: #0b5fa8;
  color: #0b5fa8;
  background: #fff;
}

.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #1f2937;
  padding: 0.75rem 1rem;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0b5fa8;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 13px;
  text-decoration: none;
}

.pagination a:hover {
  border-color: #0b5fa8;
  color: #0b5fa8;
}

.pagination .is-active {
  background: #0b5fa8;
  border-color: #0b5fa8;
  color: #fff;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  overflow-x: auto;
  padding: 1.15rem 0.25rem 0.75rem;
  cursor: grab;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #91b867 transparent;
}

.timeline.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.timeline-item {
  position: relative;
  flex: 0 0 22rem;
  scroll-snap-align: start;
  padding-top: 1.35rem;
  border-top: 2px solid #91b867;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.42rem;
  border-radius: 9999px;
  background: #91b867;
  box-shadow: 0 0 0 3px #f7f1e3;
}

/* --- language switcher (flag image mode, same as sxyfoods) --- */
.lang-switch {
  flex-shrink: 0;
  align-items: flex-end;
  gap: 0.5rem;
}

.lang-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  min-height: 1.85rem;
  padding: 0.15rem;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn.is-active {
  background: transparent;
  border: none;
  color: inherit;
}

/* 绿色三角在国旗上方；未选中透明占位，三面旗底边对齐 */
.lang-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid transparent;
}

.lang-btn.is-active::before {
  border-top-color: #7cb521;
}

.lang-flag {
  width: 2rem;
  height: auto;
  flex-shrink: 0;
  display: block;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  z-index: 60;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #fff;
  color: #374151;
  padding: 0.375rem 0.75rem;
  font-size: 15px;
  line-height: 1.25;
  cursor: pointer;
}

.lang-switcher__btn:hover {
  border-color: #0b5fa8;
  color: #0b5fa8;
}

.lang-switcher.is-open .lang-switcher__btn {
  border-color: #0b5fa8;
  color: #0b5fa8;
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 7.5rem;
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  z-index: 70;
}

.lang-switcher__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: #374151;
  padding: 0.5rem 0.65rem;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  border-radius: 0.15rem;
}

.lang-switcher__menu button:hover {
  background: #f3f4f6;
  color: #0b5fa8;
}

.lang-switcher__menu button.is-active,
.lang-switcher__menu button[aria-current="true"] {
  color: #0b5fa8;
  font-weight: 600;
  background: #eff6ff;
}

.lang-switcher__menu button.is-active::after,
.lang-switcher__menu button[aria-current="true"]::after {
  content: "✓";
  font-size: 12px;
  color: #0b5fa8;
}

.lang-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

.lang-mobile-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #fff;
  color: #374151;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.lang-mobile-list button.is-active,
.lang-mobile-list button[aria-current="true"] {
  border-color: #0b5fa8;
  color: #0b5fa8;
  font-weight: 600;
}

.lang-mobile-list button.is-active::after,
.lang-mobile-list button[aria-current="true"]::after {
  content: "✓";
  font-size: 12px;
}

.lang-switcher__menu[hidden] {
  display: none !important;
}


/* --- detail page helpers --- */
.max-w-3xl { max-width: 72rem; }
.min-h-\[280px\] { min-height: 280px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.btn-outline:hover {
  border-color: #0b5fa8;
  color: #0b5fa8;
}

.product-detail-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: start;
  }
}

.spec-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #e5e7eb;
}

.spec-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.spec-list dt {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: center;
}

.spec-list dd {
  color: #374151;
  margin: 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip-list li {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  padding: 0.5rem 0.9rem;
  font-size: 13px;
  border-radius: 9999px;
}

.article-layout {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.article-cover {
  max-height: 420px;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
}

.article-prose {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.85;
}

.article-prose p + p {
  margin-top: 1.15rem;
}

.article-quote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #91b867;
  background: #f7f8f3;
  color: #374151;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
}

.article-nav a {
  color: #0b5fa8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.article-nav a:hover {
  color: #094a86;
}

.article-nav .btn-outline {
  color: #374151;
  letter-spacing: 0.14em;
}

.article-nav .btn-outline:hover {
  color: #0b5fa8;
}

a.cat-tab {
  text-decoration: none;
}

.form-ok {
  display: none;
  margin-top: 0.75rem;
  font-size: 13px;
  color: #0a655f;
}

.form-ok.is-show {
  display: block;
}


.page-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.page-pager a,
.page-pager span {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  background: #fff;
}

.page-pager a:hover {
  border-color: #0b5fa8;
  color: #0b5fa8;
}

.page-pager .is-current {
  border-color: #0b5fa8;
  background: #0b5fa8;
  color: #fff;
}

.page-pager .is-disabled {
  color: #9ca3af;
  cursor: default;
}

/* float widgets: back-top + side social + inquiry align */
.focus-ring:focus-visible {
  outline: 2px solid #91b867;
  outline-offset: 2px;
}

.footer-social__btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social__btn:hover {
  background: #0b5fa8;
  color: #fff;
}

.float-cs,
.back-top {
  position: fixed;
  right: 1rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
}

.float-cs {
  bottom: 5.5rem;
  width: 3.5rem !important;
  height: 3.5rem !important;
  background: none !important;
  right: 0.75rem !important;
}

.back-top {
  bottom: 1.5rem;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.back-top:hover {
  color: #0b5fa8;
  border-color: #0b5fa8;
}

.back-top[hidden] {
  display: none !important;
}

.float-social {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.float-social .footer-social__btn {
  background: rgba(31, 41, 55, 0.72);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.float-social .footer-social__btn:hover {
  background: #0b5fa8;
  color: #fff;
}

.iqw-trigger {
  bottom: 82px !important;
  right: 15px !important;
  width: 42px !important;
  height: 42px !important;
}

@media (max-width: 767px) {
  .float-social {
    right: 0.5rem;
    gap: 0.35rem;
  }
  .float-social .footer-social__btn {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* --- product detail (sxyfoods layout, lujiao colors) --- */
.sub-crumb {
  background: #f5f8fb;
  border-top: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
}

.sub-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.sub-crumb a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sub-crumb a:hover {
  color: #0b5fa8;
}

.sub-crumb__sep {
  color: #c4c9d0;
}

.sub-crumb__current {
  color: #0b5fa8;
  font-weight: 600;
}

.sub-main {
  padding: 2rem 0 4.5rem;
  background: #fff;
}

@media (min-width: 768px) {
  .sub-main {
    padding: 2.25rem 0 5rem;
  }
}

.sub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .sub-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1600px) {
  .sub-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3.25rem;
  }
}

.sub-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-panel--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .side-panel--desktop {
    display: block;
  }
}

.side-panel {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11, 95, 168, 0.05);
}

.side-panel__title {
  margin: 0;
  padding: 0.7rem 1rem;
  background: #0b5fa8;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.side-nav {
  padding: 0.35rem 0;
}

.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1rem;
  color: #374151;
  font-size: 0.925rem;
  text-decoration: none;
  border-bottom: 1px dashed #edf1f5;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.side-nav a:last-child {
  border-bottom: none;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: #0b5fa8;
  background: #f5f8fb;
  padding-left: 1.15rem;
}

.side-nav a.is-active {
  font-weight: 700;
}

.side-nav a.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0b5fa8;
}

.feature-list {
  position: relative;
  padding: 0.75rem 0.85rem 1rem;
}

.feature-viewport {
  overflow: hidden;
  height: 13.5rem;
}

.feature-track {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.35s ease;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.feature-item img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  object-fit: cover;
  background: #f3f4f6;
  box-shadow: 0 0 0 2px #e5eaf0;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a4a6b;
}

.feature-item:hover span {
  color: #0b5fa8;
}

.feature-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.feature-nav button {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feature-nav button:hover:not(:disabled) {
  border-color: #0b5fa8;
  color: #0b5fa8;
}

.feature-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-heading {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0a4a6b;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .page-heading {
    font-size: 2rem;
  }
}

.page-lead {
  margin: 0 0 1.5rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.7;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.detail-hero .prose-img {
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
  border-radius: 0.35rem;
  box-shadow: 0 12px 28px rgba(11, 95, 168, 0.1);
}

.detail-hero .prose-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .detail-hero {
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 2rem 2.25rem;
    align-items: stretch;
  }

  .detail-hero .prose-img {
    margin: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    min-height: 420px;
    aspect-ratio: auto;
  }
}

.detail-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.detail-info .page-heading {
  padding: 0.2rem 0 1.35rem;
  border-bottom: 1px dashed #d4dbe3;
}

.detail-desc {
  margin: 0;
  flex: 1;
  padding: 1.5rem 0;
  border-bottom: 1px dashed #d4dbe3;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.9;
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed #d4dbe3;
  font-size: 0.875rem;
  color: #6b7280;
}

.detail-label {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 0.8125rem;
}

.detail-label::after {
  content: "：";
}

html[lang="en"] .detail-label::after {
  content: ": ";
}

.detail-info .detail-meta {
  margin: 0;
  flex: 1 1 12rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.6rem;
  margin-top: auto;
}

.detail-actions .btn-outline {
  text-transform: none;
  letter-spacing: 0.04em;
  border-radius: 0.25rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #e8f1fa;
  color: #0b5fa8;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

a.chip:hover {
  filter: brightness(0.96);
}

.article-body {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.9;
}

.article-body p {
  /* text-indent: 2.56rem; */
}

.article-body p + p {
  margin-top: 1rem;
}

.article-body h3,
.article-body h2,
.article-body strong {
  color: #0a4a6b;
}

.article-body h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.article-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-body th,
.article-body td {
  padding: 0.7rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}

.article-body th {
  background: #f5f8fb;
  color: #374151;
  font-weight: 600;
}

.article-body td:first-child,
.article-body th:first-child {
  width: 7em;
  min-width: 6em;
  white-space: nowrap;
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
}

.detail-block-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0a4a6b;
}

.form-card {
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid #e5eaf0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 95, 168, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.span-2 {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.8rem;
  color: #4b5563;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d1d9e2;
  border-radius: 0.55rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #0b5fa8;
  box-shadow: 0 0 0 3px rgba(11, 95, 168, 0.16);
}

.form-card .form-ok {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  background: #e8f1fa;
  color: #0b5fa8;
  font-size: 0.875rem;
}

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

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

.catalog-card {
  display: block;
  color: inherit;
  padding-bottom: 0.35rem;
  border-bottom: 1px dotted #d4dbe3;
  text-decoration: none;
}

.catalog-card__media {
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f4f6;
  box-shadow: 0 10px 24px rgba(11, 95, 168, 0.08);
  aspect-ratio: 1 / 1;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.catalog-card:hover .catalog-card__media img {
  transform: scale(1.04);
}

.catalog-card h3 {
  margin: 0.7rem 0 0.25rem;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
}

.catalog-card:hover h3 {
  color: #0b5fa8;
}

@media (max-width: 639px) {
  .page-heading {
    font-size: 1.4rem;
  }

  .detail-actions .btn-blue,
  .form-card .btn-blue {
    width: auto;
  }
}

/* Homepage content column: 1920, same side padding as sxyfoods. Banner stays outside this box. */
.page-wrap {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .page-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-wrap {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .page-wrap {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* --- homepage hero: full viewport width; desktop fills the first screen --- */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: none;
  min-height: 360px;
  background: #0f1e0a;
}

@media (min-width: 640px) {
  .hero-banner {
    min-height: 440px;
  }
}

@media (min-width: 768px) {
  .hero-banner {
    min-height: 520px;
  }
}

@media (min-width: 1024px) {
  .hero-banner {
    min-height: calc(100vh - 5rem);
    min-height: calc(100dvh - 5rem);
  }
}

.hero-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-video::-webkit-media-controls {
  display: none !important;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 30, 10, 0.18), rgba(15, 30, 10, 0.35));
  transition: opacity 0.35s ease;
}

.hero-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.hero-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: heroSpin 0.75s linear infinite;
}

@keyframes heroSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-caption {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1rem;
  text-align: center;
  color: #fff;
  animation: fadeUp 0.9s ease both 0.15s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-caption,
  .hero-video {
    animation: none !important;
    transition: none !important;
  }

  .hero-loading__spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.7);
  }
}

/* --- homepage about: image height matches copy, width follows aspect --- */
.home-about {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
}

.home-about__media {
  overflow: hidden;
  max-width: 420px;
}

.home-about__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1024px) {
  .home-about {
    flex-direction: row;
    align-items: stretch;
    gap: 3.5rem;
  }

  .home-about__copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-about__media {
    flex: 0 0 40%;
    flex-shrink: 0;
    min-width: 40%;
    max-width: none;
  }

  .home-about__img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
  }
}

.field-slider {
  position: relative;
}

.field-slider__viewport {
  position: relative;
  overflow: hidden;
  height: 10rem;
  background: #e5e7eb;
}

@media (min-width: 640px) {
  .field-slider__viewport {
    height: 14rem;
  }
}

@media (min-width: 768px) {
  .field-slider__viewport {
    height: 16rem;
  }
}

@media (min-width: 1024px) {
  .field-slider__viewport {
    height: 340px;
  }
}

@media (min-width: 1280px) {
  .field-slider__viewport {
    height: 420px;
  }
}

@media (min-width: 1920px) {
  .field-slider__viewport {
    height: 480px;
  }
}

.field-slider__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.field-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.field-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0b5fa8;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.field-slider__nav svg {
  width: 1.15rem;
  height: 1.15rem;
}

.field-slider__nav:hover {
  background: #fff;
}

.field-slider__nav--prev {
  left: 0.85rem;
}

.field-slider__nav--next {
  right: 0.85rem;
}

.field-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.1rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.field-slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.field-slider__dot.is-active {
  background: #fff;
  width: 1.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .field-slider__slide {
    transition: none;
  }
}
