/* ============================================================
   外贸SOHO B端询盘独立站 - 主样式表
   对标：wfaucet.com / charisti-bathroom.com / sswwbath.com
   风格：专业B端排版 + 高端极简视觉 + 轻量化SEO架构
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #d4a017;
  --accent-light: #f0c040;
  --white: #ffffff;
  --light: #f5f7fa;
  --light-gray: #e8edf2;
  --mid-gray: #8899aa;
  --dark-gray: #444444;
  --dark: #1a1a2e;
  --danger: #e74c3c;
  --success: #27ae60;
  --border: #d1d9e6;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: all 0.25s ease;
  --font: 'Segoe UI', Arial, 'Helvetica Neue', sans-serif;
  --font-cn: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 0.6em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; color: var(--dark-gray); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--primary-dark); color: var(--white); }

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: var(--font);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}
.btn-accent:hover {
  background: var(--accent-light);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg { padding: 14px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-block { display: block; width: 100%; }

/* 产品中心 / 博客中心 品类筛选按钮统一尺寸 */
.category-filter {
  margin-top: -20px;
  margin-bottom: 32px;
}
.category-filter .btn {
  width: 160px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 0.85rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--primary); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
}

.nav { display: flex; align-items: center; gap: 6px; }

.nav a {
  padding: 8px 16px;
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  color: var(--primary);
  background: rgba(26,82,118,0.06);
}

.nav-cta {
  margin-inline-start: 12px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--primary-light);
  color: var(--white) !important;
}

/* ============== 页首语言切换器 ============== */
.lang-switcher {
  position: relative;
  margin-inline-start: 12px;
}
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1;
}
.nav-lang-btn:hover { background: var(--primary-light); }
.nav-lang-btn .lang-flag { font-size: 1rem; line-height: 1; font-weight: 600; letter-spacing: 0; min-width: 2em; width: 2em; display: inline-block; text-align: center; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; }
.nav-lang-btn .lang-code { letter-spacing: 0.5px; }
.nav-lang-btn .lang-caret { margin-inline-start: 2px; transition: transform .2s; }
.lang-switcher.is-open .nav-lang-btn .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid rgba(26,82,118,0.12);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 1000;
  display: none;
}
.lang-switcher.is-open .lang-menu { display: block; }
.lang-menu li { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--dark-gray);
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
}
.lang-menu a:hover { background: rgba(26,82,118,0.06); color: var(--primary); }
.lang-menu li.is-active a { background: rgba(26,82,118,0.10); color: var(--primary); }
.lang-menu .lang-flag { font-size: 1rem; line-height: 1; font-weight: 600; min-width: 2em; width: 2em; display: inline-block; text-align: center; font-family: 'Consolas', 'Monaco', 'Courier New', monospace; letter-spacing: 0; }
.lang-menu .lang-name { flex: 1; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   Floating Quote Button
   ============================================================ */
.float-quote {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.float-quote:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.float-quote svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.float-quote-label {
  position: fixed;
  right: 88px;
  bottom: 112px;
  z-index: 999;
  background: var(--dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.float-quote:hover + .float-quote-label { opacity: 1; }

/* ============================================================
   Hero / Banner
   ============================================================ */
.hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero-content { flex: 1; }
.hero-content h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.3em;
  line-height: 1.2;
}
.hero-content .highlight { color: var(--accent); }
.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 1.8em;
  max-width: 520px;
}
.hero-content .btn { margin-inline-end: 12px; margin-bottom: 8px; }

.hero-image {
  flex: 1.3;
  display: flex;
  justify-content: center;
}
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.04);
  margin: 0 auto;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-carousel-slide > * {
  width: 100%;
  height: 100%;
}
.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}
.hero-carousel-dot:hover {
  background: rgba(255,255,255,0.9);
}
.hero-image-placeholder {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 1rem;
  border: 1px dashed rgba(255,255,255,0.15);
}

/* ============================================================
   Section: Core Advantages (4 columns)
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.advantage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.advantage-card .card-action {
  margin-top: auto;
  padding-top: 10px;
  width: 75%;
  margin-inline: auto;
}
.advantage-card .card-action .btn {
  width: 100%;
  display: block;
}
.advantage-img {
  width: 75%;
  margin: 5px auto 0;
  overflow: hidden;
  border-radius: 8px;
  border: 6px solid #fff;
  box-shadow: 0 4px 16px rgba(26, 82, 118, 0.18), 0 0 0 1px var(--primary-light, #5B7FA0);
  background: var(--light);
}
.advantage-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.advantage-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(26,82,118,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.advantage-card h3 { font-size: 1.1rem; margin-bottom: 0.5em; }
.advantage-card p { font-size: 0.92rem; color: var(--mid-gray); line-height: 1.6; }

/* ============================================================
   Section: Product Grid
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 { margin-bottom: 0.3em; }
.section-header p { color: var(--mid-gray); max-width: 600px; margin: 0 auto; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card > a { display: flex; flex-direction: column; flex: 1; }
.product-card > a > .product-info { flex: 1; }
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-img {
  aspect-ratio: 1/1;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-img-inner {
  width: 80%;
  height: 80%;
  background: var(--light-gray);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.85rem;
}

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

.product-info { padding: 18px 20px 22px; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.product-info .category { font-size: 0.85rem; color: var(--mid-gray); margin-bottom: 0.8em; }
.product-info .btn { margin-top: 8px; }
.product-desc-line {
  font-size: 0.85rem;
  color: var(--mid-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 首页品类卡片按钮靠右下对齐 */
.home-categories .product-card {
  display: flex;
  flex-direction: column;
}
.home-categories .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-categories .product-info .btn {
  margin-top: auto;
  align-self: center;
}
.home-categories .product-img-inner {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
}
.home-categories .product-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.footer-col p, .footer-col li { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--accent); }

.footer-col ul li::before { content: '›'; margin-inline-end: 6px; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }
.footer-policy-links { display: flex; gap: 20px; }

/* ============================================================
   Page Banner (sub pages)
   ============================================================ */
.page-banner {
  width: 100%;
  padding-top: 72px;
  padding-bottom: 48px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  display: block;
  clear: both;
}
.page-banner h1,
.page-banner p { display: none; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--mid-gray);
  border-bottom: 1px solid var(--light-gray);
}
.breadcrumb a { color: var(--primary-light); }
.breadcrumb span { color: var(--dark-gray); }

/* 面包屑行：左面包屑 + 右搜索框 */
.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.breadcrumb-nav { flex-shrink: 0; }
.product-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: auto;
  flex: 0 1 460px;
  min-width: 0;
}
.product-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-search input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 79, 138, 0.12);
}
.product-search input[type="search"]::placeholder {
  color: var(--mid-gray);
  opacity: 0.85;
}
.product-search button {
  padding: 8px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .breadcrumb-row { flex-direction: column; align-items: stretch; }
  .product-search { margin-inline-start: 0; flex: 1 1 auto; width: 100%; }
  .product-search input[type="search"] { font-size: 0.95rem; }
}

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group label .required { color: var(--danger); margin-inline-start: 2px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}
.form-control.error { border-color: var(--danger); }
.form-control.success { border-color: var(--success); }

textarea.form-control { min-height: 120px; resize: vertical; }

.error-message {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}
.error-message.show { display: block; }

.form-success {
  display: none;
  background: rgba(39,174,96,0.08);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--success);
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ============================================================
   Inquiry Form (product page sidebar)
   ============================================================ */
.inquiry-form {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.inquiry-form h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   Product Detail Layout
   ============================================================ */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery .main-img {
  aspect-ratio: 1/1;
  background: var(--light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.product-gallery .thumbs {
  display: flex;
  gap: 10px;
}
.product-gallery .thumb {
  width: 80px;
  height: 80px;
  background: var(--light);
  border: 2px solid transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  padding: 0;
}

.product-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery .thumb.active, .product-gallery .thumb:hover {
  border-color: var(--primary);
  background: rgba(26,82,118,0.04);
}

.product-meta h1 { font-size: 1.6rem; margin-bottom: 0.2em; }
.product-meta .sku { font-size: 0.9rem; color: var(--mid-gray); margin-bottom: 1em; }

.product-params {
  margin: 20px 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.param-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.92rem;
}
.param-label { width: 160px; color: var(--mid-gray); flex-shrink: 0; }
.param-value { color: var(--dark); font-weight: 500; }

/* Product Detail Tabs */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
  cursor: pointer;
  color: var(--mid-gray);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover { color: var(--primary); }

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content ul {
  padding-inline-start: 20px;
  list-style: none;
  margin-bottom: 1em;
}
.tab-content ol {
  padding-inline-start: 20px;
  list-style: none;
  margin-bottom: 1em;
}
.tab-content li { margin-bottom: 0.4em; }

/* Product Description: keep numbered/listed items visible */
.product-description ol {
  list-style: decimal;
  padding-inline-start: 28px;
}
.product-description ul {
  list-style: disc;
  padding-inline-start: 24px;
}

/* ============================================================
   Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.blog-thumb {
  aspect-ratio: 16/9;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-gray);
  font-size: 0.85rem;
}
.blog-body { padding: 20px; }
.blog-body .date { font-size: 0.82rem; color: var(--mid-gray); margin-bottom: 6px; }
.blog-body h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.blog-body p { font-size: 0.9rem; color: var(--mid-gray); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: var(--transition);
}
.faq-question:hover { background: var(--light); }
.faq-question .arrow { transition: var(--transition); color: var(--primary); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--light);
}
.faq-item.open .faq-answer { max-height: 400px; padding: 16px 20px; }
.faq-answer p { font-size: 0.95rem; color: var(--dark-gray); }

/* ============================================================
   Compliance Pages (Privacy/Terms/etc)
   ============================================================ */
.compliance-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
}
.compliance-content h2 { margin-top: 1.8em; font-size: 1.3rem; }
.compliance-content h3 { margin-top: 1.2em; font-size: 1.1rem; color: var(--primary); }
.compliance-content p, .compliance-content li { color: var(--dark-gray); }
.compliance-content ul { padding-inline-start: 20px; list-style: disc; margin-bottom: 1em; }

/* ============================================================
   Admin Login
   ============================================================ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
}
.admin-login-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}
.admin-login-box h1 {
  text-align: center;
  margin-bottom: 0.3em;
  font-size: 1.6rem;
}
.admin-login-box .subtitle {
  text-align: center;
  color: var(--mid-gray);
  margin-bottom: 28px;
  font-size: 0.92rem;
}

/* ============================================================
   Admin Layout
   ============================================================ */
.admin-body { background: var(--light); }

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  background: var(--primary-dark);
  color: var(--white);
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition);
}

.admin-sidebar .sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-sidebar .sidebar-nav { padding: 12px 0; }
.admin-sidebar .sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  transition: var(--transition);
  border-inline-start: 3px solid transparent;
}
.admin-sidebar .sidebar-nav a:hover, .admin-sidebar .sidebar-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border-inline-start-color: var(--accent);
}
.admin-sidebar .sidebar-nav a .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }

/* 侧边栏二级菜单 */
.sidebar-nav-group { border-inline-start: 3px solid transparent; }
.sidebar-nav-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.sidebar-nav-group-title:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.sidebar-nav-group-title .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-nav-group-title .arrow {
  margin-inline-end: auto;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.sidebar-nav-group.open .sidebar-nav-group-title .arrow { transform: rotate(90deg); }
.sidebar-nav-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: rgba(0,0,0,0.15);
}
.sidebar-nav-group.open .sidebar-nav-sub { max-height: 200px; }
.sidebar-nav-sub a {
  display: flex;
  align-items: center;
  padding: 9px 24px 9px 50px;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: var(--transition);
  border-inline-start: none;
}
.sidebar-nav-sub a:hover, .sidebar-nav-sub a.active {
  color: var(--white);
  background: rgba(255,255,255,0.04);
}
.sidebar-nav-group.active .sidebar-nav-group-title {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border-inline-start-color: var(--accent);
}
.sidebar-nav-group.open .sidebar-nav-sub a.active { color: var(--accent); }
.admin-main {
  margin-inline-start: 240px;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar .page-title { font-size: 1.15rem; font-weight: 700; }

.admin-content { padding: 28px; }

/* Admin Cards */
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-card h3 { font-size: 1.1rem; margin-bottom: 16px; }

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th {
  text-align: start;
  padding: 12px 14px;
  background: var(--light);
  color: var(--dark-gray);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--dark-gray);
}
.admin-table tr:hover td { background: rgba(26,82,118,0.02); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

/* 后台列表状态栏 + 操作按钮列 — 防止中文换行 */
.admin-table .status-cell,
.admin-table td.status-cell { white-space: nowrap; min-width: 90px; }
.admin-table td.actions-cell,
.admin-table td:last-child { white-space: nowrap; min-width: 150px; }
.admin-table td.actions-cell .btn,
.admin-table td:last-child .btn { white-space: nowrap; }
.status-new { background: rgba(41,128,185,0.1); color: var(--primary-light); }
.status-done { background: rgba(39,174,96,0.1); color: var(--success); }
.status-pending { background: rgba(212,160,23,0.1); color: var(--accent); }

/* Admin Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.stat-icon.blue { background: rgba(41,128,185,0.1); color: var(--primary-light); }
.stat-icon.green { background: rgba(39,174,96,0.1); color: var(--success); }
.stat-icon.orange { background: rgba(212,160,23,0.1); color: var(--accent); }
.stat-icon.red { background: rgba(231,76,60,0.1); color: var(--danger); }

.stat-info h3 { font-size: 1.6rem; margin: 0; }
.stat-info p { font-size: 0.85rem; color: var(--mid-gray); margin: 0; }

/* About Us Images */
.about-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.about-img-box {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 8px;
  border: 8px solid #fff;
  box-shadow: 0 6px 24px rgba(26, 82, 118, 0.20), 0 0 0 1px var(--primary-light, #5B7FA0);
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.4s;
}
.about-img-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(26, 82, 118, 0.30), 0 0 0 2px var(--primary);
}
.about-img-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: filter 0.3s ease;
}
.about-img-box:hover img {
  filter: brightness(1.05);
}
@media (max-width: 768px) {
  .about-img-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .about-img-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { flex-direction: column; }
  .hero-content { text-align: center; }
  .hero-content p { margin: 0 auto 1.8em; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-hover);
    padding: 12px 20px;
    gap: 0;
  }
  .nav.open a { padding: 12px 16px; border-radius: var(--radius); }
  .hamburger { display: flex; }

  .hero { min-height: auto; flex-direction: column-reverse; gap: 32px; }
  .hero-content { text-align: center; align-items: center; }
  .hero-cta { justify-content: center; }
  .hero-text { max-width: 100%; }
  .hero-image { flex: 1 1 auto; width: 100%; }
  .hero-carousel { max-width: 100%; }
  .hero-content h1 { font-size: 1.3rem; }

  .advantages-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .about-img-row { grid-template-columns: 1fr; gap: 16px; }

  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-inline-start: 0; }

  .float-quote { right: 16px; bottom: 80px; width: 48px; height: 48px; font-size: 1.2rem; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--mid-gray); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--light);
  color: var(--mid-gray);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.alert-info { background: rgba(41,128,185,0.08); border-inline-start: 3px solid var(--primary-light); color: var(--primary); }
.alert-success { background: rgba(39,174,96,0.08); border-inline-start: 3px solid var(--success); color: var(--success); }

/* Page transition simulation */
.page-fade {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  font-size: 0.92rem;
  transform: translateX(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ============================================================
   Production Capability Cards
   ============================================================ */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.capability-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.capability-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.capability-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e6ecf2;
  border-radius: 6px;
  border: 4px solid var(--primary-light, #5B7FA0);
  box-shadow: 0 2px 12px rgba(26, 82, 118, 0.12), inset 0 0 0 1px rgba(255,255,255,0.6);
  box-sizing: border-box;
}
.capability-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.capability-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 16px 16px 8px;
}
.capability-desc {
  font-size: 0.9rem;
  color: var(--dark-gray);
  text-align: center;
  line-height: 1.55;
  margin: 0 16px 20px;
}
@media (max-width: 992px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Quality Control Process — Card Grid
   ============================================================ */
.qc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.qc-card {
  text-align: center;
}
.qc-img {
  position: relative;
}
.qc-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 8px solid #fff;
  box-shadow: 0 4px 20px rgba(26, 82, 118, 0.18), 0 0 0 1px var(--primary-light, #5B7FA0);
  display: block;
  transition: box-shadow 0.4s;
}
.qc-num {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.35);
  z-index: 2;
}
.qc-card h3 {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 16px 8px 8px;
}
.qc-card p {
  color: var(--dark-gray);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 4px 0;
}
@media (max-width: 992px) {
  .qc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .qc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Our Manufacturing — 2-column with factory photo
   ============================================================ */
.mfg-img {
  float: inline-end;
  width: 380px;
  margin: 8px 0 20px 32px;
}
.mfg-img img {
  width: 100%;
  border-radius: 8px;
  border: 8px solid #fff;
  box-shadow: 0 6px 24px rgba(26, 82, 118, 0.20), 0 0 0 1px var(--primary-light, #5B7FA0);
  display: block;
  transition: box-shadow 0.4s;
}
@media (max-width: 700px) {
  .mfg-img {
    float: none;
    width: 100%;
    margin: 20px 0 24px 0;
  }
  .mfg-img img { max-width: 480px; }
}

/* === 图片保护：阻断截屏工具 & 文字选择 === */
.product-card img,
.about-img-box img,
.capability-card img,
.qc-card img,
.product-detail img,
.advantage-img img {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
/* 透明保护层：覆盖在产品图文上方，防止右键定位到图片 */
.product-card,
.about-img-box,
.capability-card .capability-img,
.qc-card .qc-img {
  position: relative;
}
.product-card::after,
.about-img-box::after,
.capability-img::after,
.qc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;  /* 不拦截点击，只防右键定位 */
}

/* ============================================================
   RTL 支持（阿拉伯语 dir=rtl）
   阿拉伯语页面在 <html> 上设置 dir=rtl，浏览器自动镜像 flex 布局；
   已统一使用 padding-inline-start / margin-inline-start / border-inline-start
   等逻辑属性，浏览器自动跟随 dir 镜像；此处仅补充字符方向。
   ============================================================ */
html[dir="rtl"] body { text-align: right; line-height: 1.85; }
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] .lang-menu,
html[dir="rtl"] .lang-name { text-align: left; }
html[dir="rtl"] .breadcrumb .container,
html[dir="rtl"] .page-banner .container { text-align: right; }
html[dir="rtl"] .float-quote { right: auto; left: 24px; }
html[dir="rtl"] .float-quote-label { right: auto; left: 24px; }

/* 装饰字符镜像：footer 列表 › 在阿语下应指向左 */
html[dir="rtl"] .footer-col ul li::before { content: '‹'; }
