/* ============================================================
   BCSY 官方网站 - 主样式表
   工业 B2B 连接器代理商 | 蓝 + 工业橙主题
   ============================================================ */

:root {
  --c-primary: #0b3d91;      /* 主蓝 */
  --c-primary-dark: #072a66;
  --c-primary-light: #1565c0;
  --c-accent: #ff6a00;       /* 工业橙 */
  --c-accent-dark: #e85d00;
  --c-ink: #16202e;          /* 深字 */
  --c-body: #43525f;         /* 正文 */
  --c-muted: #7a8896;
  --c-line: #e3e8ef;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fb;
  --c-bg-dark: #0a1f3c;
  --shadow-sm: 0 2px 10px rgba(11, 61, 145, .06);
  --shadow-md: 0 10px 30px rgba(11, 61, 145, .10);
  --shadow-lg: 0 20px 50px rgba(11, 61, 145, .16);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, .28);
}
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-ghost {
  background: var(--c-primary);
  color: #fff;
}
.btn-ghost:hover { background: var(--c-primary-dark); transform: translateY(-2px); }
.btn-light {
  background: #fff;
  color: var(--c-primary);
}
.btn-light:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- 头部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.brand .brand-name { font-size: 19px; font-weight: 800; color: var(--c-primary); letter-spacing: .5px; }
.brand .brand-sub { font-size: 11px; color: var(--c-muted); letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink);
  transition: all .2s ease;
}
.nav a:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.nav a.active { color: var(--c-primary); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-weight: 700; color: var(--c-primary); font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--c-ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--c-ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(21,101,192,.35), transparent 60%),
              linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(circle at 20% 30%, #fff 1.5px, transparent 1.6px),
                    radial-gradient(circle at 70% 70%, #fff 1.5px, transparent 1.6px);
  background-size: 46px 46px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: 1px; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.hero h1 {
  font-size: 46px; line-height: 1.18; font-weight: 800; letter-spacing: .5px;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--c-accent); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 46px; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.7); }

.hero-visual {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero-visual svg { width: 100%; height: auto; }

/* ---------- SECTION 通用 ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--c-accent); text-transform: uppercase; margin-bottom: 14px;
}
.section-head h2 { font-size: 34px; font-weight: 800; color: var(--c-ink); margin-bottom: 14px; }
.section-head p { font-size: 16px; color: var(--c-body); }

/* ---------- 优势卡片 ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(11,61,145,.25); }
.feature-card .ic {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
}
.feature-card h3 { font-size: 18px; color: var(--c-ink); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--c-body); }

/* ---------- 产品网格 ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.product-card {
  position: relative;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; overflow: hidden; transition: all .25s ease;
}
.product-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--c-accent); transition: width .3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card:hover::before { width: 100%; }
.product-card .pic {
  width: 100%; height: 150px; border-radius: 10px; margin-bottom: 18px;
  background: var(--c-bg-soft); display: grid; place-items: center; overflow: hidden;
}
.product-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 18px; color: var(--c-ink); margin-bottom: 8px; }
.product-card p { font-size: 14px; color: var(--c-body); margin-bottom: 16px; }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-card .tag {
  font-size: 12px; color: var(--c-primary); background: var(--c-bg-soft);
  padding: 4px 10px; border-radius: 6px; font-weight: 600;
}

/* ---------- 品牌 ---------- */
.brand-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center;
}
.brand-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 18px; text-align: center; transition: all .25s ease;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(11,61,145,.2); }
.brand-card .logo-box {
  width: 96px; height: 56px; display: grid; place-items: center;
  background: var(--c-bg-soft); border-radius: 10px; padding: 8px; overflow: hidden;
}
.brand-card .logo-box img { max-width: 100%; max-height: 40px; width: auto; object-fit: contain; }
.brand-card .logo-box.dark { background: var(--c-primary); }
.brand-card.featured .logo-box { background: #fff; }
.brand-card.featured .logo-box img { max-height: 48px; }
.brand-card .bname { font-weight: 700; color: var(--c-ink); font-size: 16px; }
.brand-card .bdesc { font-size: 12.5px; color: var(--c-muted); }
.brand-card.featured {
  grid-column: span 2; flex-direction: row; text-align: left; gap: 22px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  color: #fff; border: none;
}
.brand-card.featured .logo-box { background: rgba(255,255,255,.15); width: 120px; height: 70px; }
.brand-card.featured .bname { color: #fff; font-size: 22px; }
.brand-card.featured .bdesc { color: rgba(255,255,255,.85); font-size: 14px; }

/* ---------- 应用领域 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px 22px; transition: all .25s ease;
}
.app-card:hover { background: var(--c-primary); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-card .ic { color: var(--c-accent); margin-bottom: 14px; transition: color .25s; }
.app-card:hover .ic { color: #fff; }
.app-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--c-ink); }
.app-card:hover h3 { color: #fff; }
.app-card p { font-size: 13.5px; }

/* ---------- 数据条 ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--c-bg-dark), var(--c-primary-dark));
  color: #fff; padding: 64px 0;
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-row .num { font-size: 42px; font-weight: 800; color: var(--c-accent); }
.stats-row .lbl { font-size: 15px; color: rgba(255,255,255,.82); margin-top: 6px; }

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
  border-radius: 20px; padding: 56px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,106,0,.4), transparent 70%);
}
.cta-box h2 { font-size: 32px; margin-bottom: 14px; position: relative; }
.cta-box p { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 28px; position: relative; }
.cta-box .hero-actions { justify-content: center; position: relative; }

/* ---------- 关于页 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-bg-dark), var(--c-primary-dark));
  color: #fff; padding: 70px 0 64px;
}
.page-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 17px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid .pic {
  background: var(--c-bg-soft); border-radius: 18px; padding: 30px; min-height: 320px;
  display: grid; place-items: center;
}
.about-text h2 { font-size: 28px; color: var(--c-ink); margin-bottom: 16px; }
.about-text p { margin-bottom: 14px; }
.about-text ul.check { margin-top: 16px; }
.about-text ul.check li {
  position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--c-body);
}
.about-text ul.check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-accent);
  font-weight: 800; background: rgba(255,106,0,.12); width: 22px; height: 22px;
  border-radius: 50%; display: grid; place-items: center; font-size: 13px;
}

.timeline { position: relative; margin-top: 20px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.timeline .item { position: relative; margin-bottom: 26px; }
.timeline .item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--c-accent);
}
.timeline .yr { font-weight: 800; color: var(--c-primary); font-size: 15px; }
.timeline .tx { color: var(--c-body); font-size: 14.5px; }

/* ---------- 企业资质 / 工商信息 ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.fact {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.fact .fk { font-size: 13px; color: var(--c-muted); margin-bottom: 6px; letter-spacing: .5px; }
.fact .fv { font-size: 15.5px; color: var(--c-ink); font-weight: 600; word-break: break-word; }
@media (max-width: 980px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .facts-grid { grid-template-columns: 1fr; } }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; }
.contact-info .info-item {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--c-line);
}
.contact-info .info-item .ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--c-bg-soft); display: grid; place-items: center; color: var(--c-primary);
}
.contact-info .info-item h4 { font-size: 15px; color: var(--c-ink); }
.contact-info .info-item p { font-size: 15px; color: var(--c-body); }
.contact-form {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 20px; color: var(--c-ink); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--c-ink); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--c-ink); background: #fff; transition: border .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--c-primary); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--c-muted); margin-top: 10px; }

.map-box {
  margin-top: 40px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-line); background: var(--c-bg-soft);
  height: 340px;
}
.map-box .map-iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { margin-top: 10px; font-size: 12.5px; color: var(--c-muted); line-height: 1.6; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-bg-dark); color: rgba(255,255,255,.78); padding: 60px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-weight: 800; }
.footer-brand p { font-size: 14px; margin: 14px 0; color: rgba(255,255,255,.6); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { font-size: 14px; margin-bottom: 10px; display: flex; gap: 8px; }
.footer-contact .ic { color: var(--c-accent); flex: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card.featured { grid-column: span 2; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line); padding: 12px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .header-cta .header-phone { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .feature-grid, .product-grid, .brand-grid, .app-grid { grid-template-columns: 1fr; }
  .brand-card.featured { grid-column: span 1; flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 22px; }
}

/* 工具类 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
