/* ========================================
   武汉博展弘图电子科技有限公司 - 公共样式
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a6b;
  --primary-light: #2255a4;
  --accent: #e8a020;
  --accent-dark: #c98010;
  --text-dark: #1a1a2e;
  --text-mid: #444;
  --text-light: #777;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e0e6ef;
  --shadow: 0 4px 24px rgba(26,58,107,0.10);
  --radius: 10px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========== 布局容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-light);
}

/* ========== 标题样式 ========== */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header .tag {
  display: inline-block;
  background: rgba(232,160,32,0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-header .divider {
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26,58,107,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #f5c842);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.2;
}

.brand-text .sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-phone:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f5c842);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(232,160,32,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,160,32,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-blue {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,58,107,0.3);
}

.btn-blue:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,107,0.4);
}

/* ========== 卡片 ========== */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,58,107,0.18);
}

/* ========== 面包屑/页面头 ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 130px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(232,160,32,0.08);
  border-radius: 50%;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

.breadcrumb .current {
  color: var(--accent);
  font-size: 13px;
}

/* ========== 页脚 ========== */
.footer {
  background: #0d1e3b;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #f5c842);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.footer-brand .logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}

.footer-contact-item .icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ========== 回到顶部 ========== */
.back-top {
  position: fixed;
  bottom: 36px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,58,107,0.3);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ========== 动画 ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .page-hero { padding: 110px 0 52px; }
  .page-hero h1 { font-size: 1.8rem; }

  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(26,58,107,0.97);
    padding: 20px;
    gap: 4px;
  }
}
