html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}

.frontend-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.frontend-header-inner {
  width: min(1500px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: minmax(500px, 590px) minmax(0, 1fr) 200px 44px;
  gap: 14px;
  align-items: center;
}

.frontend-brand {
  width: 100%;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.frontend-brand-copy {
  flex: 1 1 auto;
  overflow: visible;
}

.frontend-logo-mark {
  width: 100px;
  height: 60px;
  display: block;
  flex: 0 0 auto;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, #f59e0b, #b45309 76%, #78350f);
  -webkit-mask: url("/assets/xiangyu-mark.png") center / contain no-repeat;
  mask: url("/assets/xiangyu-mark.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  filter: drop-shadow(0 12px 18px rgba(180, 83, 9, 0.22));
}

.frontend-brand-name,
.frontend-brand-en {
  display: block;
  overflow: visible;
  text-overflow: clip;
}

.frontend-brand-name {
  white-space: nowrap;
  color: #020617;
  font-size: clamp(1.35rem, 1.45vw, 1.72rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.frontend-brand-en {
  white-space: normal;
  max-width: 100%;
  line-height: 1.35;
  word-break: normal;
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.frontend-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}

.frontend-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 7px;
  border-radius: 8px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.frontend-nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #d97706;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.frontend-nav-link:hover,
.frontend-nav-link.active {
  color: #b45309;
  background: #fffbeb;
}

.frontend-nav-link:hover::after,
.frontend-nav-link.active::after {
  transform: scaleX(1);
}

.frontend-search {
  display: flex;
  align-items: center;
  width: 200px;
  height: 42px;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

@media (max-width: 1420px) {
  .frontend-header-inner {
    grid-template-columns: minmax(500px, 590px) minmax(0, 1fr) 44px;
  }

  .frontend-search {
    display: none;
  }
}

html[lang="en"] .frontend-header-inner {
  grid-template-columns: minmax(560px, 620px) minmax(0, 1fr) 170px 44px;
  gap: 12px;
}

html[lang="en"] .frontend-search {
  display: flex;
  width: 170px;
  height: 40px;
}

html[lang="en"] .frontend-brand {
  grid-column:auto;
  gap:8px;
}

html[lang="en"] .frontend-logo-mark {
  width:70px;
  height:40px;
  font-size:.9rem;
}

html[lang="en"] .frontend-lang {
  grid-column:auto;
  grid-row:auto;
}

html[lang="en"] .frontend-brand-name {
  font-size: clamp(0.98rem, 1.04vw, 1.16rem);
  line-height: 1;
}

html[lang="en"] .frontend-brand-en {
  white-space: nowrap;
  font-size:0.56rem;
  letter-spacing:0.09em;
}

html[lang="en"] .frontend-nav {
  grid-column:auto;
  justify-content: space-between;
  gap: 2px;
  width: 100%;
  padding-top:0;
  border-top:0;
}

html[lang="en"] .frontend-nav-link {
  padding: 0 3px;
  font-size: clamp(0.56rem, 0.58vw, 0.66rem);
  min-height:34px;
}

html[lang="en"] .frontend-search input {
  padding: 0 10px;
  font-size: 0.78rem;
}

html[lang="en"] .frontend-search button {
  padding: 0 12px;
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .frontend-header-inner {
    grid-template-columns: 1fr auto;
  }

  .frontend-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    overflow: visible;
    padding: 6px 0 2px;
    width: 100%;
  }
}

@media (max-width: 1280px) {
  html[lang="en"] .frontend-header-inner {
    grid-template-columns: minmax(440px, 490px) minmax(0, 1fr) 140px 40px;
    gap: 8px;
  }

  html[lang="en"] .frontend-logo-mark {
    width: 58px;
    height: 38px;
    font-size: 0.8rem;
  }

  html[lang="en"] .frontend-brand {
    gap: 9px;
  }

  html[lang="en"] .frontend-brand-name {
    font-size: clamp(0.78rem, 0.9vw, 0.92rem);
  }

  html[lang="en"] .frontend-brand-en {
    font-size: 0.48rem;
    letter-spacing: 0.06em;
  }

  html[lang="en"] .frontend-nav {
    grid-column: auto;
    padding: 0;
    width: 100%;
  }

  html[lang="en"] .frontend-nav-link {
    min-height: 32px;
    padding: 0 2px;
    font-size: clamp(0.46rem, 0.56vw, 0.54rem);
  }

  html[lang="en"] .frontend-search {
    display: flex;
    width: 140px;
    height: 38px;
  }

  html[lang="en"] .frontend-search input {
    padding: 0 8px;
    font-size: 0.7rem;
  }

  html[lang="en"] .frontend-search button {
    padding: 0 9px;
    font-size: 0.7rem;
  }

  html[lang="en"] .frontend-lang {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 1180px) {
  html[lang="en"] .frontend-header-inner {
    grid-template-columns: minmax(350px, 390px) minmax(0, 1fr) 124px 38px;
    gap: 6px;
  }

  html[lang="en"] .frontend-brand-en {
    display: none;
  }

  html[lang="en"] .frontend-nav {
    grid-column: auto;
    justify-content: space-between;
    overflow: visible;
    padding: 0;
    width: 100%;
  }

  html[lang="en"] .frontend-nav-link {
    min-height: 30px;
    padding: 0 1px;
    font-size: clamp(0.42rem, 0.52vw, 0.48rem);
  }

  html[lang="en"] .frontend-search {
    display: flex;
    width: 124px;
    height: 36px;
  }

  html[lang="en"] .frontend-search input {
    padding: 0 7px;
    font-size: 0.64rem;
  }

  html[lang="en"] .frontend-search button {
    padding: 0 8px;
    font-size: 0.64rem;
  }

  html[lang="en"] .frontend-lang {
    width: 38px;
    height: 38px;
  }
}

.frontend-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 14px;
  color: #334155;
  font-size: 0.9rem;
}

.frontend-search button {
  height: 100%;
  border: 0;
  padding: 0 16px;
  background: #0f172a;
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
}

.frontend-lang {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-weight: 900;
}

.hero-carousel {
  position: relative;
  width: min(1500px, calc(100% - 48px));
  height: clamp(260px, 30vw, 430px);
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 1200ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

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

.about-home-image,
.content-card-image,
.article-cover,
.article-body img {
  max-width: 100%;
}

.article-body img {
  height: auto;
}

.product-field-tabs {
  margin-top: 42px;
}

.product-field-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 14px;
  border: 2px solid rgba(194, 92, 0, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.68), rgba(255, 255, 255, 0.92));
}

.product-field-button {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.1);
  border-radius: 8px;
  background: #fff9e8;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: none;
  transition: color 0.28s ease, background 0.28s ease, border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.product-field-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #c25c00, #8f3f00);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.product-field-button::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -36px;
  z-index: -1;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.36s ease, opacity 0.28s ease;
}

.product-field-button:hover {
  transform: translateY(-3px);
  border-color: rgba(194, 92, 0, 0.36);
  box-shadow: 0 16px 30px rgba(146, 64, 14, 0.12);
}

.product-field-button.active {
  color: #fff;
  border-color: transparent;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 36px rgba(146, 64, 14, 0.2);
}

.product-field-button.active::before {
  opacity: 1;
}

.product-field-button.active::after {
  opacity: 1;
  transform: scale(1);
}

.product-field-panels {
  position: relative;
  margin-top: 18px;
  min-height: 238px;
}

.product-field-panel {
  display: none;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.product-field-panel.active {
  display: block;
  animation: fieldPanelIn 0.42s cubic-bezier(0.22, 0.8, 0.22, 1) both;
}

.product-field-panel span {
  display: block;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.product-field-panel h2 {
  margin-top: 10px;
  color: #0f172a;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
}

.product-field-panel p {
  margin-top: 14px;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.9;
}

.product-field-panel ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.product-field-panel li {
  border-radius: 8px;
  background: #fff7df;
  padding: 14px 16px;
  color: #7c2d12;
  font-weight: 800;
}

@keyframes fieldPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.08));
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dot {
  width: 30px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.active,
.hero-dot:hover {
  width: 42px;
  background: #d97706;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto 80px;
  border: 1px solid rgb(226 232 240);
  border-radius: 8px;
  background: white;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.article-shell h1 {
  margin: 0;
  text-align: center;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
}

.article-shell .lead {
  margin: 20px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #64748b;
}

.article-body {
  margin-top: 36px;
  font-size: 1.05rem;
  line-height: 2;
  color: #334155;
}

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

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.page-banner {
  position: relative;
  display: grid;
  place-items: end start;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 1;
  min-height: 160px;
  max-height: 512px;
  overflow: hidden;
  background: #0f172a;
}

.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.page-banner--image-only img {
  height: 100%;
  opacity: 1;
}

.page-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.2) 52%, transparent);
}

.page-banner-content {
  position: relative;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 48px 48px;
}

.page-banner-content h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
  text-shadow: 0 8px 28px rgba(15, 23, 42, 0.35);
}

.page-banner-content p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.75;
}

.pagination {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.page-link:hover,
.page-link.active {
  border-color: #d97706;
  background: #d97706;
  color: white;
}

@media (max-width: 900px) {
  .frontend-header-inner {
    min-height: auto;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .frontend-brand {
    grid-column: 1 / 2;
  }

  .frontend-logo-mark {
    width: 74px;
    height: 42px;
    font-size: 0.96rem;
  }

  .frontend-brand-name {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  .frontend-brand-en {
    display: none;
  }

  .frontend-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    overflow: visible;
    padding: 8px 0 2px;
    width: 100%;
  }

  .frontend-nav-link {
    flex: 0 1 auto;
    min-height: 34px;
    padding: 0 3px;
    font-size: clamp(0.5rem, 2.1vw, 0.84rem);
    letter-spacing: 0;
  }

  .frontend-search {
    display: none;
  }

  .frontend-lang {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 40px;
    height: 40px;
  }

  html[lang="en"] .frontend-header-inner {
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) 104px 36px;
    gap: 5px;
    padding: 10px 12px;
  }

  html[lang="en"] .frontend-logo-mark {
    width: 54px;
    height: 34px;
    font-size: 0.72rem;
  }

  html[lang="en"] .frontend-brand {
    grid-column: auto;
    gap: 7px;
  }

  html[lang="en"] .frontend-brand-name {
    font-size: clamp(0.52rem, 1.35vw, 0.72rem);
  }

  html[lang="en"] .frontend-nav {
    grid-column: auto;
    padding: 0;
    width: 100%;
  }

  html[lang="en"] .frontend-nav-link {
    min-height: 28px;
    padding: 0 1px;
    font-size: clamp(0.34rem, 0.92vw, 0.44rem);
  }

  html[lang="en"] .frontend-search {
    display: flex;
    width: 104px;
    height: 34px;
  }

  html[lang="en"] .frontend-search input {
    padding: 0 6px;
    font-size: 0.58rem;
  }

  html[lang="en"] .frontend-search button {
    padding: 0 7px;
    font-size: 0.58rem;
  }

  html[lang="en"] .frontend-lang {
    grid-column: auto;
    grid-row: auto;
    width: 36px;
    height: 36px;
  }

  .hero-carousel {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-slide img {
    object-fit: contain;
    background: #f8fafc;
  }

  .hero-dots {
    bottom: 10px;
  }

  .hero-dot {
    width: 22px;
    height: 6px;
  }

  .hero-dot.active,
  .hero-dot:hover {
    width: 32px;
  }

  .article-shell {
    width: min(100% - 24px, 1120px);
    margin-top: 28px;
    margin-bottom: 52px;
    padding: 24px 18px;
    border-radius: 8px;
  }

  .article-shell h1 {
    font-size: 1.75rem;
  }

  .article-shell .lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.85;
  }

  .article-body img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .product-field-tabs {
    margin-top: 28px;
  }

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

  .product-field-button {
    min-height: 68px;
    font-size: 0.95rem;
  }

  .product-field-panels {
    min-height: 0;
  }

  .product-field-panel {
    padding: 22px 18px;
  }

  .product-field-panel h2 {
    font-size: 1.55rem;
  }

  .product-field-panel p {
    font-size: 0.98rem;
  }

  .product-field-panel ul {
    grid-template-columns: 1fr;
  }

  .page-banner {
    aspect-ratio: 6 / 1;
    min-height: 100px;
    max-height: 180px;
  }

  .page-banner img {
    height: 100%;
    object-fit: contain;
  }

  .page-banner-content {
    padding: 0 20px 24px;
  }

  .page-banner-content h1 {
    font-size: 2rem;
  }

  .about-home-image {
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f8fafc;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
  }

  .content-card-image {
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .article-cover {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f8fafc;
  }
}

@media (max-width: 520px) {
  html[lang="en"] .frontend-header-inner {
    grid-template-columns: minmax(122px, 150px) minmax(0, 1fr) 74px 32px;
    gap: 4px;
    padding: 8px 8px;
  }

  html[lang="en"] .frontend-logo-mark {
    display: none;
  }

  html[lang="en"] .frontend-brand-name {
    font-size: clamp(0.38rem, 1.25vw, 0.48rem);
  }

  html[lang="en"] .frontend-nav-link {
    min-height: 26px;
    padding: 0;
    font-size: clamp(0.24rem, 0.85vw, 0.32rem);
  }

  html[lang="en"] .frontend-search {
    display: flex;
    width: 74px;
    height: 30px;
  }

  html[lang="en"] .frontend-search input {
    padding: 0 4px;
    font-size: 0.48rem;
  }

  html[lang="en"] .frontend-search button {
    padding: 0 4px;
    font-size: 0.48rem;
  }

  html[lang="en"] .frontend-lang {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .hero-carousel {
    aspect-ratio: 16 / 8.8;
  }

  .hero-dot {
    width: 18px;
    height: 5px;
  }

  .hero-dot.active,
  .hero-dot:hover {
    width: 28px;
  }

  .page-banner {
    aspect-ratio: 6 / 1;
    min-height: 72px;
    max-height: 136px;
  }

  .page-banner img {
    object-position: center;
  }

  .page-banner-content h1 {
    font-size: 1.65rem;
  }

  .about-home-image,
  .content-card-image,
  .article-cover {
    border-radius: 8px;
  }
}

@media (max-width: 900px) {
  .frontend-header-inner,
  html[lang="en"] .frontend-header-inner {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    padding: 10px 14px 12px;
  }

  .frontend-brand,
  html[lang="en"] .frontend-brand {
    grid-column: 1 / 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    gap: 10px;
    overflow: hidden;
  }

  .frontend-logo-mark,
  html[lang="en"] .frontend-logo-mark {
    display: grid;
    width: 62px;
    height: 38px;
    font-size: 0.82rem;
  }

  .frontend-brand-copy,
  html[lang="en"] .frontend-brand-copy {
    min-width: 0;
    overflow: hidden;
  }

  .frontend-brand-name,
  html[lang="en"] .frontend-brand-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: clamp(0.88rem, 3.8vw, 1.12rem);
    line-height: 1.1;
  }

  .frontend-brand-en,
  html[lang="en"] .frontend-brand-en {
    display: none;
  }

  .frontend-lang,
  html[lang="en"] .frontend-lang {
    grid-column: 2 / 3;
    grid-row: 1;
    width: 40px;
    height: 40px;
    align-self: center;
    font-size: 0.82rem;
  }

  .frontend-search,
  html[lang="en"] .frontend-search {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    width: 100%;
    height: 38px;
  }

  .frontend-search input,
  html[lang="en"] .frontend-search input {
    padding: 0 13px;
    font-size: 0.86rem;
  }

  .frontend-search button,
  html[lang="en"] .frontend-search button {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .frontend-nav,
  html[lang="en"] .frontend-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 2px 0 0;
    overflow: visible;
  }

  .frontend-nav-link,
  html[lang="en"] .frontend-nav-link {
    min-width: 0;
    min-height: 32px;
    padding: 0 4px;
    border-radius: 7px;
    overflow: hidden;
    font-size: clamp(0.64rem, 2.65vw, 0.82rem);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .frontend-header-inner,
  html[lang="en"] .frontend-header-inner {
    padding-inline: 10px;
  }

  .frontend-logo-mark,
  html[lang="en"] .frontend-logo-mark {
    width: 54px;
    height: 34px;
    font-size: 0.76rem;
  }

  .frontend-brand-name,
  html[lang="en"] .frontend-brand-name {
    font-size: clamp(0.78rem, 3.7vw, 1rem);
  }

  .frontend-search,
  html[lang="en"] .frontend-search {
    height: 36px;
  }

  .frontend-search button,
  html[lang="en"] .frontend-search button {
    min-width: 64px;
    padding: 0 10px;
  }

  .frontend-nav,
  html[lang="en"] .frontend-nav {
    gap: 5px;
  }

  .frontend-nav-link,
  html[lang="en"] .frontend-nav-link {
    min-height: 30px;
    font-size: clamp(0.56rem, 2.45vw, 0.74rem);
  }
}
