/* ============================================================
   布局层 layout.css：顶条 / 导航（桌面+移动抽屉）/ 页头 hero /
   面包屑 / CTA 条 / 页脚 / 返回顶部
   ============================================================ */

/* ---------- 顶条 Topbar ---------- */
.topbar {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  height: var(--topbar-h);
  line-height: var(--topbar-h);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: #fff; }
.topbar .tb-expo { color: #ffd76a; font-weight: 600; }
.topbar .tb-expo::before { content: "★"; margin-right: 4px; }

/* ---------- Header 导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; height: 100%; }

.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 15px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav > li > a:hover { color: var(--brand); }
.nav > li > a.is-active { color: var(--brand); font-weight: 600; }
.nav .arrow { display: inline-block; font-size: 10px; margin-left: 4px; transition: transform .2s; }
.nav > li:hover .arrow { transform: rotate(180deg); }

/* 下拉菜单 */
.nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .22s var(--ease);
}
.nav li:hover .dropdown,
.nav li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav .dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
}
.nav .dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.nav .dropdown .d-label {
  font-size: 11px;
  color: var(--ink-3);
  padding: 6px 14px 2px;
  letter-spacing: 1px;
}

/* 展会胶囊按钮 */
.nav .nav-expo {
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff9a2e, #ff6b35);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, .35);
  white-space: nowrap;
}
.nav .nav-expo:hover { filter: brightness(1.06); color: #fff; }
.nav-expo.is-live::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: navPulse 1.6s infinite;
}
@keyframes navPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  position: relative;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s var(--ease);
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* 移动抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 55, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s;
  z-index: 104;
}
.drawer-mask.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(84vw, 320px);
  background: #fff;
  z-index: 105;
  transform: translateX(100%);
  transition: transform .28s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head img { height: 34px; }
.drawer-body { padding: 12px 0 24px; }
.drawer-body > li > a, .drawer-body .m-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  font-size: 16px;
  color: var(--ink);
}
.drawer-body .m-parent[aria-expanded="true"] { color: var(--brand); font-weight: 600; }
.drawer-body .m-parent .arrow { font-size: 10px; transition: transform .2s; }
.drawer-body .m-parent[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.drawer-body .m-sub { display: none; background: var(--bg-soft); }
.drawer-body .m-sub.is-open { display: block; }
.drawer-body .m-sub a { display: block; padding: 11px 24px 11px 40px; font-size: 15px; color: var(--ink-2); }
.drawer-body .m-sub a:hover { color: var(--brand); }
.drawer .m-expo {
  margin: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff9a2e, #ff6b35);
  color: #fff !important;
  font-weight: 600;
  border-radius: 100px;
  padding: 12px;
  font-size: 15px;
}

/* ---------- 页头 Banner（内页） ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.page-hero::before {
  content: "";
  position: absolute;
  right: 160px; bottom: -180px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255, 255, 255, .88); max-width: 680px; margin: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; color: #c6d0dc; }
.breadcrumb .current { color: var(--ink-2); }

/* ---------- CTA 条（全站页脚前） ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 20px;
}
.cta-band h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- 页脚 Footer ---------- */
.footer {
  background: #14243c;
  color: rgba(255, 255, 255, .65);
  margin-top: 72px;
  font-size: 14px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer .f-brand img { height: 44px; margin-bottom: 16px; }
.footer .f-brand p { line-height: 1.8; margin-bottom: 0; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255, 255, 255, .65); }
.footer ul a:hover { color: #fff; }
.footer .f-contact li {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer .f-qr { display: flex; gap: 18px; align-items: flex-start; }
.footer .f-qr figure { text-align: center; }
.footer .f-qr img { width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 4px; }
.footer .f-qr figcaption { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom a { color: rgba(255, 255, 255, .45); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 返回顶部 ---------- */
.backtop {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  color: var(--brand);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
  z-index: 90;
}
.backtop.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { color: #fff; background: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header { height: 58px; }
  .logo img { height: 34px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .page-hero { padding: 40px 0 46px; }
  .page-hero h1 { font-size: 26px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer { margin-top: 48px; }
  .cta-band { padding: 32px 26px; }
  .cta-band h3 { font-size: 20px; }
  .backtop { right: 14px; bottom: 70px; width: 40px; height: 40px; }
}
