/* 刷子工厂外贸独立站 · 样式（无外部依赖，离线可用） */
:root {
  --navy: #0f1f3d;
  --navy-2: #16294f;
  --amber: #d97706;
  --amber-2: #b45309;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8f9fb;
  --card: #ffffff;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
}

html[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 31, 61, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
}
.nav { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #fff;
}
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #fff; }
.lang-switch { margin-inline-start: auto; display: flex; gap: 6px; }
.lang-switch button {
  border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; cursor: pointer;
}
.lang-switch button.active { background: var(--amber); border-color: var(--amber); font-weight: 700; }

/* 多语言下拉框（中文/EN/RU/DE/FR/ES/AR） */
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='white'/></svg>") no-repeat right 10px center;
  background-size: 10px 6px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 30px 6px 14px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.lang-switch select option { color: #1a1a1a; background: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -50%, rgba(217,119,6,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 64px 0 56px;
}
.hero h1 { font-size: 36px; line-height: 1.25; font-weight: 800; max-width: 760px; }
.hero h1 span { color: #fbbf24; }
.hero .sub { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.8); max-width: 680px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }

/* ---------- 信任条 ---------- */
.trust-strip { background: var(--card); border-bottom: 1px solid var(--line); }
.trust-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px 20px;
}
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 18px; color: var(--navy); }
.trust-item span { font-size: 12px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.section { padding: 56px 0; }
.section-title { font-size: 26px; font-weight: 800; color: var(--navy); }
.section-sub { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 640px; }

/* ---------- 分类筛选 ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cat-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 13px;
}
.cat-tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px; margin-top: 22px;
}
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: 0 10px 30px rgba(15,31,61,.08); transform: translateY(-2px); }
.product-card h3 { font-size: 16px; color: var(--navy); }
.product-card .desc { font-size: 13px; color: var(--muted); min-height: 40px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table tr { border-bottom: 1px dashed var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table td { padding: 6px 0; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 38%; padding-inline-end: 10px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-foot .moq { font-size: 12px; color: var(--muted); }
.product-foot .price { font-weight: 800; color: var(--amber); font-size: 13px; }
.quote-btn {
  background: #fff4e5; color: var(--amber-2); border: 1px solid #f5d9b8;
  border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.quote-btn:hover { background: #ffe8cc; }

/* ---------- OEM 区块 ---------- */
.oem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.oem-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.oem-card .icon { font-size: 28px; }
.oem-card h3 { font-size: 15px; color: var(--navy); margin-top: 10px; }
.oem-card p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- 质量列表 ---------- */
.quality-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 22px; }
.quality-list .item { display: flex; gap: 10px; font-size: 13.5px; color: #374151; }
.quality-list .check { color: var(--amber); font-weight: 900; }

/* ---------- 联系区 ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 0;
}
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; margin-top: 26px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; }
.contact-item .ci-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item .ci-label { font-size: 12px; color: rgba(255,255,255,.65); }
.contact-item .ci-value { font-size: 14px; font-weight: 600; word-break: break-all; }
.contact form { display: flex; flex-direction: column; gap: 12px; }
.contact input, .contact textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  color: #fff; border-radius: 10px; padding: 12px 14px; font-size: 14px; outline: none;
}
.contact input::placeholder, .contact textarea::placeholder { color: rgba(255,255,255,.5); }
.contact textarea { min-height: 96px; resize: vertical; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1730; color: rgba(255,255,255,.6); font-size: 12px; padding: 22px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 27px; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); }
  .oem-grid { grid-template-columns: 1fr; }
  .quality-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
