/* ============================================================
   Eastleay · 广东东方茉莉科技有限公司
   风格：经典外贸 B2B 网站（参考 usbsky.com）
   整站 1000px 居中、两侧留白；横幅为工厂大门背景图 + 纯白标题
   ============================================================ */

:root {
  --red: #a40000;
  --ink: #222222;
  --muted: #666666;
  --line: #c9c9c9;
  --panel: #fafafa;
  --font-main: Arial, "Helvetica Neue", Helvetica, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: #e9e9e9;   /* 两侧留白区的底色 */
  color: var(--ink);
  line-height: 1.7;
  font-size: 14px;
}

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

/* 整站收窄居中（类似 usbsky 的固定宽度布局） */
.page {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.15);
}

/* ---------- 顶部横幅：工厂大门背景图 + 纯白标题 ---------- */
.top-banner {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.35)),
    url("../images/factory-gate.jpg") center / cover no-repeat;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding: 44px 48px 44px 16px;
}
.banner-overlay { color: #ffffff; }
.banner-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}
.top-banner h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  margin-bottom: 10px;
}
.banner-sub {
  font-size: 15px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}
.banner-tags {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 4px 14px;
  border-radius: 999px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---------- 银灰导航条 ---------- */
.nav-bar {
  background: linear-gradient(#f4f4f4, #d5d5d5 55%, #c2c2c2);
  border-top: 1px solid #ffffff;
  border-bottom: 2px solid var(--red);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.nav-inner a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  border-right: 1px solid #9a9a9a;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.7);
  transition: background 0.15s;
}
.nav-inner a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  margin-right: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.nav-inner a:hover { background: linear-gradient(#c9c9c9, #a8a8a8); }

.lang-toggle {
  margin-left: auto;
  align-self: center;
  margin-right: 8px;
  border: 1px solid #7c7c7c;
  background: linear-gradient(#ffffff, #dcdcdc);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 3px;
  cursor: pointer;
}
.lang-toggle:hover { background: linear-gradient(#ffe9e9, #f3c9c9); }

/* ---------- 热门品类行 ---------- */
.popular-row {
  border-bottom: 1px dashed #bdbdbd;
  font-size: 12px;
  color: var(--muted);
}
.popular-inner { padding: 8px 16px; }
.popular-label { font-weight: 700; color: var(--ink); }
.popular-row a { color: #444; text-decoration: none; }
.popular-row a:hover { color: var(--red); text-decoration: underline; }

/* ---------- 区块标题条 ---------- */
.main-inner { padding: 0 16px; }
.sec { padding: 26px 0 6px; }
.sec-head {
  background: linear-gradient(#f2f2f2, #dcdcdc);
  border: 1px solid #b5b5b5;
  border-left: 5px solid var(--red);
  padding: 8px 14px;
  margin-bottom: 20px;
}
.sec-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.5px;
}
.sec-body p { margin-bottom: 12px; }

/* ---------- 关于我们 ---------- */
.about-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.about-stats li {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.about-stats strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
}
.about-stats span { font-size: 12px; color: var(--muted); }

/* ---------- 柔性产线说明 ---------- */
.flex-note {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  padding: 14px 18px;
}
.flex-note h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.flex-note p { color: var(--muted); font-size: 13px; margin-bottom: 0; }

/* ---------- 生产能力（纯文字） ---------- */
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.process-steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px 12px;
}
.step-num {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.process-steps h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.process-steps p { font-size: 12px; color: var(--muted); line-height: 1.55; margin-bottom: 0; }

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 18px;
}
.contact-card h3 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.contact-phone {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  word-break: break-all;
}
.contact-wechat {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  word-break: break-all;
}
.contact-note { font-size: 12px; color: var(--muted); }

/* ---------- 滚动图片条（通用：关于我们 / 爆品专区 / 底部） ---------- */
.marquee {
  overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-top: 16px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 110px;
  width: auto;
  margin-right: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.marquee-bottom { margin-top: 24px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #f0f0f0;
  border-top: 2px solid var(--red);
  padding: 24px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-nav { margin-bottom: 8px; }
.footer-nav a { color: #333; text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--red); text-decoration: underline; }
.footer-contact { margin-bottom: 6px; color: #444; }
.footer-tag { margin-bottom: 8px; }
.footer-copy { color: #999; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .page { max-width: 100%; box-shadow: none; }
  .top-banner h1 { font-size: 24px; }
  .nav-inner a { padding: 9px 12px; font-size: 13px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
