/*!
Theme Name: BAICHEN
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Custom theme for Xuzhou Baichen New Material Co., Ltd. — garnet abrasives manufacturer.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: baichen
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* 基础变量设置 */
:root {
  --navy: #1a3675;
  --orange: #e8941a;
  --orange-hover: #d07d0e;
  --dark-bg: #1a1a1a;
  --light-grey: #f4f4f4;
  --text-color: #333;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

/* =============================
   HEADER — 两层结构
   ============================= */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 上层：白色背景，Logo + 电话 */
.header-top {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.header-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.header-contact {
  display: flex;
  align-items: center;
}

.header-contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #333;
}

.contact-icon {
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
}

.contact-text {
  color: #333;
  font-size: 0.9rem;
}

.phone-main {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.contact-row a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-row a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* 下层：深蓝导航栏 */
.main-navigation {
  background: var(--navy);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Menu container sits in the centre column */
.bc-nav-container {
  grid-column: 2;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  margin: 0 auto;
  padding: 0;
}

.main-navigation ul li a {
  display: block;
  padding: 14px 28px;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul li:first-child a {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  background: var(--orange);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  margin: 0;
}

/* 桌面端隐藏手机专用元素（769px以上） */
@media (min-width: 769px) {
  .mobile-nav-bar {
    display: none;
  }

  .mobile-menu-contact {
    display: none;
  }
}

/* =============================
   HERO 轮播（全宽，在 #page 容器外无限制）
   ============================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  display: block;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  /* 占位背景色，图片未上传时显示 */
  background-color: #c0a060;
}

.slide:nth-child(1) {
  background-image: linear-gradient(
    135deg,
    #b8860b 0%,
    #8b6914 50%,
    #5c4a1e 100%
  );
}
.slide:nth-child(2) {
  background-image: linear-gradient(
    135deg,
    #2c5f8a 0%,
    #1a3675 50%,
    #0d1f45 100%
  );
}
.slide:nth-child(3) {
  background-image: linear-gradient(
    135deg,
    #6b3a2a 0%,
    #8b4a2a 50%,
    #a0522d 100%
  );
}

.slide.active {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  display: inline-block;
}

.dot.active {
  background: #fff;
}

/* =============================
   产品展示区
   ============================= */
.product-display {
  background: var(--light-grey);
  padding: 60px 0 70px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #222;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: var(--navy);
  margin: 0 auto;
}

.product-carousel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 36px;
  height: 60px;
  background: #ccc;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 2px;
}

.carousel-btn:hover {
  background: var(--navy);
  color: #fff;
}

.product-carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.product-carousel {
  display: flex;
  gap: 0;
}

.product-item {
  flex: 0 0 25%;
  background: #fff;
  border: 1px solid #e0e0e0;
  text-align: center;
  padding: 0;
  transition: var(--transition);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.product-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  border-color: var(--navy);
}

.product-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-label {
  background: var(--navy);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.product-name {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 500;
}

.product-more {
  display: inline-block;
  font-size: 0.8rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2px 14px;
  text-decoration: none;
  transition: var(--transition);
}

.product-more:hover {
  background: var(--orange);
  border-color: var(--orange);
}

/* =============================
   内容/优势区
   ============================= */
.content,
.site-main,
#primary {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

.content {
  padding: 70px 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.6rem;
  color: #222;
}

.section-title::after {
  content: "";
  width: 50px;
  height: 3px;
  background: var(--navy);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

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

.card {
  background: #fff;
  padding: 36px;
  border: 1px solid #e8e8e8;
  border-top: 3px solid var(--navy);
  transition: var(--transition);
}

.card h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(26, 54, 117, 0.12);
  border-top-color: var(--orange);
}

/* =============================
   表格
   ============================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

th {
  background-color: var(--navy);
  color: white;
  padding: 14px 15px;
  text-align: left;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

tr:hover {
  background-color: #f0f4ff;
}

/* =============================
   产品分类（产品页）
   ============================= */
.product-cat {
  margin-bottom: 60px;
}

.product-cat h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
  color: var(--dark-bg);
}

.product-cat ul {
  padding-left: 20px;
  margin-top: 15px;
}

.product-cat ul li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* =============================
   产品页 — 重新设计
   ============================= */

/* Page Banner */
.product-page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2050 100%);
  padding: 72px 20px 64px;
  text-align: center;
  color: #fff;
}

.product-page-banner__inner {
  max-width: 700px;
  margin: 0 auto;
}

.product-page-banner__sub {
  font-size: 0.85rem;
  letter-spacing: 5px;
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-page-banner__title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* Page wrapper */
.product-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 5% 80px;
}

/* Section layout */
.product-section {
  padding: 48px 44px;
  border: 1px solid #e4e9f2;
  border-top: 4px solid var(--navy);
  background: #fff;
  margin-bottom: 36px;
  box-shadow: 0 4px 16px rgba(26, 54, 117, 0.06);
}

.product-section--alt {
  border-top-color: var(--orange);
}

/* Section header with number */
.product-section__header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.product-section__num {
  flex-shrink: 0;
  font-size: 2.4rem;
  font-weight: 700;
  color: #e0e6f0;
  line-height: 1;
  margin-top: 2px;
}

.product-section__header h2 {
  font-size: 1.5rem;
  color: var(--dark-bg);
  margin-bottom: 4px;
  border: none;
  padding: 0;
}

.product-section__en {
  font-size: 0.82rem;
  color: var(--navy);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.product-section__desc {
  color: #555;
  line-height: 1.85;
  margin-bottom: 30px;
  font-size: 0.97rem;
  max-width: 860px;
}

/* Two-column layout inside section */
.product-two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

/* Sub-titles inside sections */
.product-sub-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dde3f0;
}

/* Advantage / Application bullet list */
.advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantage-list li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: #444;
  font-size: 0.94rem;
  line-height: 1.7;
  border-bottom: 1px solid #f0f0f0;
}

.advantage-list li:last-child {
  border-bottom: none;
}

.advantage-list li::before {
  content: "●";
  color: var(--orange);
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.6rem;
  line-height: 1.7;
}

/* Scrollable table wrapper for mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Section 3 & 4 — card row */
.product-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.product-info-card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-top: 4px solid var(--navy);
  padding: 40px 36px 36px;
  box-shadow: 0 4px 16px rgba(26, 54, 117, 0.06);
  position: relative;
}

.product-info-card:nth-child(2) {
  border-top-color: var(--orange);
}

.product-info-card__icon {
  color: var(--navy);
  margin-bottom: 10px;
  opacity: 0.35;
}

.product-info-card__num {
  font-size: 2rem;
  font-weight: 700;
  color: #e0e6f0;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.product-info-card h2 {
  font-size: 1.25rem;
  color: var(--dark-bg);
  margin-bottom: 4px;
  border: none;
  padding: 0;
}

.product-info-card__desc {
  color: #555;
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 16px 0 20px;
}

.advantage-list--light li {
  font-size: 0.9rem;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .product-two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .product-section {
    padding: 32px 22px;
  }

  .product-info-card {
    padding: 28px 22px;
  }

  .product-page-banner__title {
    font-size: 1.9rem;
  }
}

/* =============================
   关于页
   ============================= */

/* Banner */
.about-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2050 100%);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

.about-banner h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.about-banner p {
  font-size: 1.1rem;
  opacity: 0.75;
  letter-spacing: 1px;
}

/* section-header left-align variant */
.section-header.left-align {
  text-align: left;
}

.section-header.left-align .section-divider {
  margin: 0 0 0 0;
}

/* Intro two-column */
.about-intro {
  display: flex;
  gap: 60px;
  align-items: center;
  margin: 60px 0 50px;
}

.about-intro-text {
  flex: 1;
}

.about-intro-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about-lead {
  font-size: 1.1rem !important;
  color: #222 !important;
}

.about-intro-badge {
  flex-shrink: 0;
  width: 220px;
}

.about-badge-inner {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(26, 54, 117, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.badge-number sup {
  font-size: 1.4rem;
}

.badge-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.badge-sub {
  font-size: 0.82rem;
  opacity: 0.7;
}

/* Stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--light-grey);
  border-radius: 10px;
  padding: 40px 30px;
  margin-bottom: 60px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 1.4rem;
  color: var(--orange);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-desc {
  font-size: 0.88rem;
  color: #666;
}

/* Two-block row */
.about-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.about-block {
  background: #fff;
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.about-block-icon {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 16px;
}

.about-block h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.block-en {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 14px !important;
  letter-spacing: 0.5px;
}

.about-block p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .about-intro {
    flex-direction: column;
  }
  .about-intro-badge {
    width: 100%;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-blocks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .about-banner h1 {
    font-size: 2rem;
  }
}

/* =============================
   联系页
   ============================= */
.contact-page {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* --- 四宫格卡片 --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-top-color: var(--orange);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.contact-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
}

.contact-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.contact-card a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--orange);
}

/* --- 主体：承诺 + 表单 --- */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: flex-start;
}

.contact-promise {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 44px 40px;
}

.contact-promise h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #fff;
}

.contact-promise p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.promise-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.promise-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange);
  flex-shrink: 0;
}

/* --- 表单区 --- */
.contact-form-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 44px 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.contact-form-wrap h2 {
  font-size: 1.6rem;
  color: var(--dark-bg);
  margin-bottom: 28px;
}

.wpcf7 {
  display: none;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-form label span {
  color: var(--orange);
}

.contact-form input,
.contact-form textarea {
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-color);
  background: var(--light-grey);
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 54, 117, 0.1);
}

.contact-form textarea {
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.btn-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 148, 26, 0.4);
}

/* =============================
   页脚
   ============================= */
#colophon,
footer {
  background: var(--dark-bg);
  color: #888;
  text-align: center;
  padding: 36px 0;
  margin-top: 0;
}

#colophon a,
footer a {
  color: #aaa;
  text-decoration: none;
}

#colophon a:hover,
footer a:hover {
  color: #fff;
}

.site-info {
  font-size: 0.88rem;
}

/* =============================
   Accessibility
   ============================= */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 9999;
  background: #fff;
  padding: 5px 10px;
  border: 2px solid var(--navy);
}

/* =============================
   响应式
   ============================= */
@media (max-width: 900px) {
  .product-item {
    flex: 0 0 50% !important;
    min-width: 50% !important;
  }
}

@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .contact-promise,
  .contact-form-wrap {
    padding: 32px 24px;
  }
  .content,
  .site-main,
  #primary {
    padding: 40px 5%;
  }
  .hero-slider {
    height: 260px;
  }

  /* 手机端隐藏桌面头部（Logo + 联系信息区） */
  .header-top {
    display: none;
  }

  /* 手机端导航栏：左Logo 右汉堡 */
  .mobile-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
  }

  .mobile-nav-bar .mobile-logo img {
    height: 44px;
    width: auto;
    display: block;
  }

  .menu-toggle {
    display: block;
    margin: 0;
    font-size: 28px;
    color: var(--navy);
  }

  .nav-inner {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  .main-navigation.toggled .nav-inner {
    display: flex;
  }

  /* 手机端菜单展开时显示联系信息 */
  .main-navigation.toggled .mobile-menu-contact {
    display: block;
    width: 100%;
    background: var(--navy);
    padding: 14px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .main-navigation.toggled .mobile-menu-contact .contact-row {
    padding: 6px 0;
    border-bottom: none;
  }

  .main-navigation.toggled .mobile-menu-contact .contact-icon {
    color: #fff;
  }

  .main-navigation.toggled .mobile-menu-contact .contact-text,
  .main-navigation.toggled .mobile-menu-contact .phone-main {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--navy);
  }

  .main-navigation.toggled ul {
    display: flex;
  }

  .main-navigation ul li a {
    padding: 12px 5%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation ul li:first-child a {
    border-left: none;
  }

  .product-carousel-wrap {
    padding: 0 3%;
  }

  .product-item {
    flex: 0 0 100% !important;
    min-width: 100% !important;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  /* Mobile: lang toggle inside mobile-nav-right */
  .mobile-nav-right .lang-toggle {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  /* Hide desktop lang toggle on mobile */
  .lang-toggle--desktop {
    display: none !important;
  }
}

/* ── Language toggle button (shared base) ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* Desktop toggle: 3rd grid column, pushed to the right */
.lang-toggle--desktop {
  position: static;
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
}

/* Mobile nav-right: flex container for lang toggle + hamburger */
.mobile-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* On mobile the lang toggle is styled for a light background */
@media (max-width: 768px) {
  .mobile-nav-right .lang-toggle {
    border-color: var(--navy);
    color: var(--navy);
  }

  .mobile-nav-right .lang-toggle:hover {
    background: var(--navy);
    color: #fff;
  }
}
