/* =========================================================
   GFIRE TECH — i18n (EN / RU) language switcher + new section styles
   仅新增样式，不改动既有 styles.css 的设计变量与组件。
   ========================================================= */

/* ---------- Language switcher (EN / RU), top-right of header ---------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
  flex: none;
}
.lang-switcher button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  line-height: 1;
}
.lang-switcher button:hover { color: var(--ink); text-decoration: none; }
.lang-switcher button.active { background: var(--accent); color: #fff; }
.lang-switcher .lang-sep { width: 1px; height: 16px; background: var(--border); }

@media (max-width: 860px) {
  .lang-switcher { margin-left: 10px; }
  .primary-nav.open .lang-switcher { margin: 12px 20px 4px; }
}

/* ---------- China Supply Advantage section (new) ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.advantage-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.advantage-no {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--accent);
  font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
}
.advantage-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.12rem; }
.advantage-card p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ---------- New landing page: hero tag chip row ---------- */
.tag-row-center { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }
.tag-row-center .tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--on-dark); }
.section-dark .tag-row-center .tag { background: rgba(255,255,255,0.08); }

/* ---------- New landing page: category intro note ---------- */
.cat-note {
  margin: 18px 0 0; padding: 14px 18px;
  background: rgba(245,135,31,0.07);
  border: 1px solid rgba(245,135,31,0.3);
  border-radius: 12px;
  color: var(--ink-2); font-size: 0.92rem; line-height: 1.6;
}
.section-alt .cat-note { background: #fff; }

/* ---------- New landing page: product image placeholder (replace with real authorized photos) ---------- */
.prod-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px;
  box-sizing: border-box;
}
/* 竖构图产品照（如服务器 RDIMM）用更接近原比例的画框，减少两侧留白 */
.prod-photo.portrait { aspect-ratio: 3 / 4; }

/* ---------- New landing page: two-up product photo gallery ---------- */
.prod-photo-row { display: flex; gap: 8px; }
.prod-photo-row .prod-photo { flex: 1 1 0; min-width: 0; }

/* ---------- New landing page: brand chips (additional brands) ---------- */
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.brand-chips .tag { font-weight: 700; }

/* ---------- New landing page: B2B quotation form (reuses .quote-form layout) ---------- */
.quote-form .field select { width: 100%; }
.quote-form .form-hint { grid-column: 1 / -1; }
.form-status.ok::before { content: "✓ "; }
.form-status.err::before { content: "✕ "; }

/* ---------- New landing page: factory production video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.video-fig {
  margin: 0;
  background: var(--bg-alt, #f5f6f8);
  border: 1px solid var(--border, #e2e5ea);
  border-radius: 12px;
  overflow: hidden;
}
.factory-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #000;
}
.video-fig figcaption {
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--muted, #5a6472);
  text-align: center;
}
@media (max-width: 680px) {
  .video-grid { grid-template-columns: 1fr; }
}
