/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Fira Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #2c2b2c;
  background: #fff;
}
a { color: #5eaaff; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== Layout ===== */
.wrapper .layout {
  width: 990px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ===== Header ===== */
.header { padding: 15px 0 0; }
.header-logo { float: left; margin-right: 20px; }
.header-logo img { display: block; }
.header-phone { float: right; text-align: right; padding-top: 10px; }
.header-phone .phone-number {
  font-size: 22px; font-weight: 700; color: #2c2b2c; letter-spacing: 0.5px;
}
.header-phone .phone-label {
  font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px;
}
.header-slogan {
  float: left; padding-top: 18px; margin-left: 15px;
  font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 1px;
}

/* ===== Navigation ===== */
.main-nav { background: #2c2b2c; margin-top: 15px; }
.main-nav ul { display: flex; }
.main-nav a {
  display: block; padding: 12px 18px; color: #fff;
  font-size: 13px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.5px; border-left: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.main-nav a:hover, .main-nav a.active { background: #ff045f; text-decoration: none; }
.main-nav li:first-child a { border-left: none; }

/* ===== Slider / Hero ===== */
.slider {
  height: 340px;
  background: url('images/bj.jpg') center center / cover no-repeat;
  position: relative;
}
.slider-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
}
.slider-content {
  position: relative; z-index: 2; color: #fff;
  text-align: center; padding-top: 90px;
}
.slider-content h1 {
  font-size: 34px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 15px;
}
.slider-content p {
  font-size: 16px; font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ===== Page Banner (sub-pages) ===== */
.page-banner {
  height: 200px;
  background: url('images/bj.jpg') center center / cover no-repeat;
  position: relative;
}
.page-banner .slider-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.page-banner .slider-content { padding-top: 55px; }
.page-banner h1 {
  font-size: 30px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
  color: #fff;
}

/* ===== Benefits / Why Choose US ===== */
.benefits { background: #626a71; padding: 40px 0; color: #fff; }
.benefits-title {
  text-align: center; font-size: 28px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px;
}
.benefits-subtitle {
  text-align: center; font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.7); margin-bottom: 35px;
}
.benefits-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
}
.benefit-item {
  width: 25%; text-align: center; padding: 15px 10px;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.benefit-item:nth-child(4n) { border-right: none; }
.benefit-item:nth-child(n+13) { border-bottom: none; }
.benefit-icon {
  width: 50px; height: 50px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon img { max-width: 46px; max-height: 46px; }
.benefit-item h4 {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 1.4;
}

/* ===== One-stop Supplier ===== */
.one-stop { padding: 50px 0; background: #fff; }
.one-stop-title {
  text-align: center; font-size: 28px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 30px; color: #2c2b2c;
}
.one-stop-inner { display: flex; gap: 30px; align-items: flex-start; }
.one-stop-text { flex: 1; font-size: 14px; line-height: 1.8; color: #555; }
.one-stop-text p { margin-bottom: 15px; }
.one-stop-text strong { color: #2c2b2c; }
.one-stop-img { width: 380px; flex-shrink: 0; }
.one-stop-img img { border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }

/* ===== Work Process ===== */
.schema-work { padding: 50px 0; background: #f5f5f5; }
.schema-title {
  text-align: center; font-size: 28px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 35px; color: #2c2b2c;
}
.schema-steps { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.schema-step { width: 120px; text-align: center; position: relative; padding: 0 5px; }
.schema-step-num {
  width: 50px; height: 50px; background: #ff045f; color: #fff;
  font-size: 22px; font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.schema-step h4 {
  font-size: 11px; font-weight: 500; line-height: 1.4;
  color: #2c2b2c; text-transform: uppercase;
}
.schema-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 30px; padding-top: 5px;
}
.schema-arrow svg { width: 24px; height: 24px; fill: #ccc; }

/* ===== Blog ===== */
.blog { padding: 50px 0; background: #fff; }
.blog-title {
  font-size: 28px; font-weight: 700; text-transform: uppercase;
  margin-bottom: 30px; color: #2c2b2c; text-align: center;
}
.blog-item {
  margin-bottom: 30px; overflow: hidden;
  border-bottom: 1px solid #eee; padding-bottom: 30px;
}
.blog-item:last-child { border-bottom: none; margin-bottom: 0; }
.blog-item-img { float: left; width: 200px; margin-right: 25px; margin-bottom: 10px; }
.blog-item-img img { border-radius: 4px; width: 100%; }
.blog-item h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; color: #2c2b2c; }
.blog-item h3 a { color: #2c2b2c; }
.blog-item h3 a:hover { color: #ff045f; text-decoration: none; }
.blog-item p { font-size: 13px; line-height: 1.7; color: #777; margin-bottom: 10px; }
.blog-item .read-more {
  display: inline-block; background: #ff045f; color: #fff;
  padding: 8px 22px; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-radius: 3px; transition: background 0.2s;
}
.blog-item .read-more:hover { background: #d8034f; text-decoration: none; }

/* ===== CTA Banner ===== */
.cta-banner { background: #ff045f; padding: 35px 0; text-align: center; color: #fff; }
.cta-banner h2 {
  font-size: 24px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px;
}
.cta-banner p { font-size: 14px; font-weight: 300; margin-bottom: 18px; }
.cta-btn {
  display: inline-block; background: #f4ff2c; color: #2c2b2c;
  padding: 12px 35px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border-radius: 4px; transition: background 0.2s;
}
.cta-btn:hover { background: #e0ec00; text-decoration: none; }

/* ===== Text Page (generic content page) ===== */
.text-page { padding: 45px 0; }
.text-page h2 {
  font-size: 24px; font-weight: 700; color: #2c2b2c;
  margin-bottom: 20px; text-transform: uppercase;
}
.text-page h3 {
  font-size: 18px; font-weight: 500; color: #2c2b2c;
  margin: 25px 0 12px;
}
.text-page p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 15px; }
.text-page img.content-img {
  float: right; margin: 0 0 20px 25px; border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.text-page ul.specs { margin: 10px 0 20px 0; }
.text-page ul.specs li {
  font-size: 13px; line-height: 1.8; color: #555;
  padding: 3px 0; border-bottom: 1px dotted #e0e0e0;
}
.text-page ul.specs li strong { color: #2c2b2c; min-width: 180px; display: inline-block; }

/* ===== About Page ===== */
.about-page { padding: 45px 0; }
.about-page .about-img {
  float: right; margin: 0 0 20px 25px; border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.about-page p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 15px; }
.about-page p strong { color: #2c2b2c; }
.about-contacts {
  background: #f5f5f5; border-radius: 6px; padding: 25px 30px; margin-top: 25px;
}
.about-contacts h3 {
  font-size: 18px; font-weight: 700; color: #2c2b2c; margin-bottom: 15px;
  text-transform: uppercase;
}
.about-contacts ul li {
  font-size: 14px; line-height: 2; color: #555;
}
.about-contacts ul li strong { color: #2c2b2c; }

/* ===== PCBA Page ===== */
.product-section { margin-bottom: 45px; }
.product-section .product-img {
  float: right; margin: 0 0 20px 25px; border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 300px;
}
.product-section h3 {
  font-size: 18px; font-weight: 700; color: #2c2b2c;
  margin-bottom: 15px;
}
.product-section p { font-size: 14px; line-height: 1.8; color: #555; margin-bottom: 12px; }
.product-section ul.specs { margin: 10px 0 15px; }
.product-section ul.specs li {
  font-size: 13px; line-height: 1.7; color: #555;
  padding: 4px 0; border-bottom: 1px dotted #ddd;
}

/* ===== Component Brands Grid ===== */
.brands-grid {
  display: flex; flex-wrap: wrap; gap: 15px; justify-content: center;
  padding: 20px 0;
}
.brands-grid a {
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 60px; padding: 8px;
  border: 1px solid #e8e8e8; border-radius: 4px;
  background: #fff; transition: box-shadow 0.2s, border-color 0.2s;
}
.brands-grid a:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-color: #ccc; text-decoration: none;
}
.brands-grid img { max-width: 110px; max-height: 50px; }

/* ===== PCB Product Cards ===== */
.pcb-products { padding: 30px 0; }
.pcb-product-card {
  display: flex; gap: 25px; margin-bottom: 35px;
  padding-bottom: 30px; border-bottom: 1px solid #eee;
}
.pcb-product-card:last-child { border-bottom: none; }
.pcb-product-card .pcb-img { width: 200px; flex-shrink: 0; }
.pcb-product-card .pcb-img img {
  border-radius: 6px; box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.pcb-product-card h4 {
  font-size: 16px; font-weight: 700; color: #ff045f;
  margin-bottom: 10px;
}
.pcb-product-card ul.specs { margin: 0; }
.pcb-product-card ul.specs li {
  font-size: 12px; line-height: 1.7; color: #555;
  padding: 2px 0;
}

/* ===== Specs Table ===== */
.spec-table {
  width: 100%; border-collapse: collapse; margin: 15px 0 25px;
  background: #fff;
}
.spec-table th {
  background: #626a71; color: #fff; padding: 10px 15px;
  font-size: 13px; font-weight: 500; text-align: left;
}
.spec-table td {
  padding: 8px 15px; font-size: 13px; color: #555;
  border-bottom: 1px solid #eee;
}
.spec-table tr:nth-child(even) td { background: #f9f9f9; }

/* ===== Footer ===== */
.footer { background: #2c2b2c; padding: 40px 0 0; color: #aaa; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { width: 200px; }
.footer-logo img { display: block; margin-bottom: 12px; }
.footer-logo p { font-size: 12px; line-height: 1.6; color: #888; }
.footer-nav { display: flex; gap: 40px; }
.footer-nav-col h4 {
  font-size: 13px; font-weight: 700; color: #fff;
  text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px;
}
.footer-nav-col li { margin-bottom: 6px; }
.footer-nav-col a { color: #999; font-size: 13px; transition: color 0.2s; }
.footer-nav-col a:hover { color: #fff; text-decoration: none; }
.footer-contacts { text-align: right; }
.footer-contacts .phone {
  font-size: 20px; font-weight: 700; color: #fff;
  display: block; margin-bottom: 6px;
}
.footer-contacts .email { font-size: 13px; color: #999; }
.footer-bottom {
  padding: 18px 0; text-align: center; font-size: 12px; color: #666;
}
