/* ============================================
   fuse.wang 全站样式
   深圳市品慧电子有限公司
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

a { color: #d32f2f; text-decoration: none; transition: color .2s; }
a:hover { color: #b71c1c; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5em; }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }
.section-alt { background: #f8f8f8; }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: #d32f2f;
  margin: 12px auto 0;
}

/* ---- Header / Navigation (unified: supports both #header and .header) ---- */
#header,
.header {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.header-inner,
.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Legacy .header inner layout */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-domain {
  font-size: 0.85rem;
  color: #e53935;
  font-weight: 600;
}

/* Legacy nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: #ccc;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  background: #e53935;
  color: #fff;
}

.header-contact {
  margin-left: 16px;
}

.btn-large {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.logo-text span { color: #e53935; }

.logo-sub {
  font-size: 0.7rem;
  color: #aaa;
  line-height: 1.2;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 4px;
}

nav ul li a {
  color: #ccc;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}

nav ul li a:hover,
nav ul li a.active {
  background: #e53935;
  color: #fff;
}

.nav-cta {
  background: #e53935 !important;
  color: #fff !important;
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: .3s;
}

/* ---- Hero Banner ---- */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229,57,53,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 680px; }

.hero-badge {
  display: inline-block;
  background: rgba(229,57,53,.2);
  border: 1px solid rgba(229,57,53,.4);
  color: #ff8a80;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero h1 em {
  color: #ff5252;
  font-style: normal;
}

.hero-desc {
  font-size: 1.05rem;
  color: #b0bec5;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  text-decoration: none;
}

.btn-primary {
  background: #e53935;
  color: #fff;
}
.btn-primary:hover { background: #c62828; color: #fff; text-decoration: none; }

.btn-outline {
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #ff5252; }
.stat-label { font-size: 0.8rem; color: #90a4ae; margin-top: 2px; }

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 28px 24px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #fdecea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #1a1a1a; }
.card p { font-size: 0.88rem; color: #666; line-height: 1.6; }

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #e53935;
  font-weight: 600;
}
.card-link:hover { text-decoration: underline; }

/* ---- Product Cards ---- */
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.product-card-img {
  width: 100%;
  height: 160px;
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body { padding: 20px; }
.product-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.product-card-body p { font-size: 0.85rem; color: #666; margin-bottom: 12px; }

.tag {
  display: inline-block;
  background: #fdecea;
  color: #e53935;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ---- Brand Logo Grid ---- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.brand-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: .25s;
  cursor: pointer;
}
.brand-item:hover {
  border-color: #e53935;
  box-shadow: 0 4px 16px rgba(229,57,53,.1);
}

.brand-logo-placeholder {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.brand-desc { font-size: 0.8rem; color: #888; }

/* ---- Article List ---- */
.article-list { display: flex; flex-direction: column; gap: 20px; }

.article-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: .25s;
}
.article-item:hover {
  border-color: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,.07);
}

.article-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  background: #f5f5f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.article-info h3 { font-size: 1rem; margin-bottom: 6px; }
.article-info h3 a { color: #1a1a1a; }
.article-info h3 a:hover { color: #e53935; text-decoration: none; }
.article-meta { font-size: 0.8rem; color: #999; }
.article-excerpt { font-size: 0.88rem; color: #555; margin-top: 6px; line-height: 1.5; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { background: #1a1a2e; color: #fff; padding: 12px 16px; text-align: left; }
td { padding: 10px 16px; border-bottom: 1px solid #f0f0f0; }
tr:nth-child(even) td { background: #fafafa; }
tr:hover td { background: #fdecea; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, #d32f2f, #e53935);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; opacity: .9; margin-bottom: 28px; }
.btn-white {
  background: #fff;
  color: #e53935;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  transition: .2s;
}
.btn-white:hover { background: #fdecea; color: #c62828; text-decoration: none; }

/* ---- Contact Info ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.contact-item {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid #eee;
  border-radius: 8px;
}
.contact-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-item h4 { font-size: 0.9rem; color: #888; margin-bottom: 6px; }
.contact-item p { font-size: 1rem; font-weight: 600; color: #1a1a1a; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: #f8f8f8;
  padding: 12px 0;
  font-size: 0.85rem;
  color: #888;
  border-bottom: 1px solid #eee;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #e53935; }
.breadcrumb span { margin: 0 6px; }

/* ---- Footer ---- */
#footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text { font-size: 1.3rem; }
.footer-desc { font-size: 0.85rem; color: #777; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #777; font-size: 0.85rem; }
.footer-col ul li a:hover { color: #e53935; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #555;
}

.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #e53935; }

/* ---- Page Banner (inner pages) ---- */
.page-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-banner h1 { font-size: 2rem; margin-bottom: 8px; }
.page-banner p { font-size: 1rem; opacity: .85; }

/* ---- Product Detail Section ---- */
.product-detail { padding: 60px 0; }
.product-detail h2 {
  font-size: 1.5rem;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53935;
}

/* Spec Table (unified) */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spec-table th {
  background: #1a1a2e;
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
}
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
}
.spec-table tr:nth-child(even) td { background: #fafafa; }
.spec-table tr:hover td { background: #fdecea; }

/* Enhanced table-wrap for inner pages */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ---- Feature Cards ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.feature-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
  border-left: 4px solid #e53935;
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.feature-card h3 { font-size: 1.05rem; color: #1a1a2e; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: #666; line-height: 1.6; }

/* ---- Application Tags ---- */
.application-tag {
  display: inline-block;
  background: #f0f4f8;
  border: 1px solid #e0e6ed;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 0.9rem;
  color: #333;
  transition: .2s;
}
.application-tag:hover {
  background: #fdecea;
  border-color: #e53935;
  color: #e53935;
}

/* ---- CTA Section (inner pages) ---- */
.cta-section {
  background: linear-gradient(135deg, #d32f2f, #e53935);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta-section h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-section p { margin-bottom: 24px; opacity: .9; }

/* ---- Footer (legacy .footer support) ---- */
.footer,
#footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 50px 0 20px;
}

.icp { margin-top: 12px; font-size: 0.82rem; }
.icp a { color: #666; }
.icp a:hover { color: #e53935; }

.contact-info { list-style: none; padding: 0; }
.contact-info li { margin-bottom: 8px; font-size: 0.88rem; }

/* ---- About Page Components ---- */
.about-banner { background: linear-gradient(135deg, #1a1a2e, #0f3460); }

.about-intro {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.intro-content h2 {
  font-size: 1.6rem;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53935;
}
.intro-content p { color: #555; line-height: 1.8; margin-bottom: 14px; }

.company-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 12px;
  padding: 28px;
  color: #fff;
  position: sticky;
  top: 80px;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #ff5252;
  display: block;
}

.core-advantages { padding: 60px 0; background: #f8f9fa; }
.core-advantages > .container > h2 {
  font-size: 1.6rem;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 40px;
}

.advantage-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1px solid #eee;
  transition: .25s;
}
.advantage-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.advantage-icon { font-size: 2.5rem; margin-bottom: 14px; }
.advantage-card h3 { font-size: 1.05rem; color: #1a1a2e; margin-bottom: 8px; }
.advantage-card p { font-size: 0.85rem; color: #666; line-height: 1.6; }

.about-brands { padding: 60px 0; }
.about-brands > .container > h2 {
  font-size: 1.6rem;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 32px;
}
.brand-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.brand-logos .brand-item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: .25s;
}
.brand-logos .brand-item:hover {
  border-color: #e53935;
  box-shadow: 0 4px 16px rgba(229,57,53,.1);
}
.brand-logos .brand-item h3 { font-size: 1rem; color: #1a1a2e; margin-bottom: 6px; }
.brand-logos .brand-item p { font-size: 0.82rem; color: #888; }
.brand-note { text-align: center; margin-top: 20px; color: #888; font-size: 0.9rem; }

.service-process { padding: 60px 0; background: #f8f9fa; }
.service-process > .container > h2 {
  font-size: 1.6rem;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 40px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #eee;
  position: relative;
}
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; color: #1a1a2e; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: #666; line-height: 1.6; }

/* ---- Contact Section (about page) ---- */
.contact-section {
  padding: 60px 0;
  background: #f8f9fa;
}
.contact-section > .container > h2 {
  font-size: 1.6rem;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #eee;
}
.contact-info-box h3 {
  font-size: 1.15rem;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53935;
}
.contact-detail { list-style: none; padding: 0; }
.contact-detail li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.9rem;
}
.contact-detail .label { color: #888; font-weight: 600; }
.contact-detail .value { color: #333; text-align: right; max-width: 65%; }
.quick-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.quick-contact p { font-size: 0.9rem; color: #666; margin-bottom: 14px; }

.contact-form-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #eee;
}
.contact-form-box h3 {
  font-size: 1.15rem;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53935;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,.1);
}
.contact-form button[type="submit"] { cursor: pointer; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .about-intro { grid-template-columns: 1fr; }
  .company-stats {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-contact { display: none; }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #1a1a2e; padding: 16px; }
  nav ul.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 20px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .article-thumb { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .page-banner h1 { font-size: 1.5rem; }
  .page-banner { padding: 36px 0; }
}
