/* ============================================================
   Leixiao IC — Global Surplus & EOL Electronic Components
   Shenzhen Leixiao Bafang Technology Co., Ltd.
   Corporate stylesheet (English-only site)
   Colors: primary #16324F / accent #0E7C7B / bg #F4F6F8
   ============================================================ */

:root {
  --primary: #16324F;
  --primary-dark: #0F2438;
  --accent: #0E7C7B;
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --text: #2C3E50;
  --muted: #7F8C8D;
  --border: #D9E1E8;
  --radius: 6px;
  --maxw: 1080px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ---------- Header / Navigation ---------- */

.site-header {
  background: var(--primary);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
}

.brand:hover { text-decoration: none; opacity: 0.95; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.site-nav a {
  color: #fff;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--primary);
  color: #fff;
  padding: 64px 0 56px;
}

.hero-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 720px;
  margin: 0 auto 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #0B6A69; }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.65);
  color: #fff;
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Sections ---------- */

.section {
  padding: 52px 0;
  background: var(--white);
}

.section-alt { background: var(--bg); }

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.section-alt .card { background: var(--white); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(14,124,123,0.10);
  color: var(--accent);
  border-radius: 4px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- Tag list (categories / brands) ---------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  background: #EAF0F4;
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Steps (numbered process) ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 15px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.step p {
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- Table (part number samples) ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.sample-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.sample-table col:nth-child(1) { width: 26%; }
.sample-table col:nth-child(2) { width: 22%; }
.sample-table col:nth-child(3) { width: 20%; }
.sample-table col:nth-child(4) { width: 32%; }

.sample-table th,
.sample-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
}

.sample-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.sample-table tr:last-child td { border-bottom: none; }

/* ---------- Company info ---------- */

.info-list {
  list-style: none;
}

.info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

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

.info-label {
  flex: 0 0 160px;
  font-weight: 600;
  color: var(--primary);
}

.info-value { color: var(--text); word-break: break-word; }

.license-box {
  margin-top: 22px;
}

.license-box img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 460px;
  height: auto;
  background: var(--bg);
}

.license-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- FAQ ---------- */

.faq-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14.5px;
  color: var(--text);
}

/* ---------- Contact ---------- */

.contact-highlight {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.contact-highlight .label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.contact-highlight .big {
  font-size: 22px;
  font-weight: 700;
  word-break: break-all;
}

.contact-highlight a {
  color: #fff;
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14.5px;
  color: var(--text);
}

.rfq-hint {
  margin-top: 14px;
  padding: 12px 14px;
  background: #EAF0F4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--primary);
}

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  background: var(--primary);
  color: #fff;
  padding: 44px 0 38px;
}

.page-intro .container { text-align: center; }

.page-intro h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-intro p {
  font-size: 15.5px;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.82);
  padding: 40px 0 30px;
  font-size: 14px;
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-inner p { margin-bottom: 6px; }
.footer-inner a { color: #fff; text-decoration: underline; }

.footer-copy {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding: 90px 20px;
}

.notfound h1 { font-size: 40px; color: var(--primary); margin-bottom: 10px; }
.notfound p { font-size: 16px; color: var(--muted); margin-bottom: 22px; }

/* ---------- Responsive (desktop) ---------- */

@media (min-width: 768px) {
  .hero { padding: 84px 0 72px; }
  .hero h1 { font-size: 40px; }
  .section { padding: 72px 0; }
  .section-head h2 { font-size: 28px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .faq-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .faq-item { margin-bottom: 0; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .page-intro h1 { font-size: 32px; }
  .contact-highlight .big { font-size: 26px; }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .faq-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Stock photos ---------- */

.hero-photo { padding-bottom: 48px; background: var(--primary); }

.hero-photo img {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: block;
}

.hero-photo figcaption {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.photo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-card .caption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.inline-photo {
  margin: 24px auto 0;
  max-width: 720px;
}

.inline-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

.inline-photo figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.footer-links { margin-top: 10px; font-size: 13px; }
.footer-links a { margin-right: 16px; }

/* ---------- WhatsApp direct chat link ---------- */

.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.wa-link svg { flex: 0 0 auto; }
.wa-link:hover { text-decoration: underline; }

/* ---------- Hero instant contact strip ---------- */

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0 0 26px;
}
.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius);
  padding: 9px 16px;
  transition: background .15s ease;
}
.hero-contact a:hover { background: rgba(255,255,255,0.18); text-decoration: none; }
.hero-contact .wa-link { color: #fff !important; border-color: rgba(255,255,255,0.28); }

/* ---------- Brands & Part Numbers block ---------- */

.brand-row, .pn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.brand-hint {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}
.pn-chip {
  font-family: Consolas, Menlo, "Courier New", monospace;
  font-size: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}
.brand-cta { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.brand-cta a { color: var(--accent); font-weight: 600; }

/* ---------- Hero WhatsApp CTA button ---------- */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
}
.btn-wa:hover { background: #1EBE5B; color: #fff; }

.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h3 { font-size: 17px; color: var(--primary); margin: 24px 0 8px; }
.privacy-content p, .privacy-content li { font-size: 14.5px; color: var(--text); margin-bottom: 8px; }
.privacy-content ul { padding-left: 20px; }

@media (min-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
