/* ==========================================================================
   layout.css — 头部导航 / 页脚 / 面包屑 / 通用区块布局
   ========================================================================== */

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav > ul {
  display: flex;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0 24px;
  height: var(--header-h);
  line-height: var(--header-h);
  font-size: 16px;
  color: var(--text-main);
  font-weight: 400;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: #fff;
  background-color: var(--primary);
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-tel img {
  width: 26px;
  height: 26px;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-main);
  border-radius: 2px;
}

/* ---------- 首屏 Banner ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  background: linear-gradient(135deg, #62c1b4 0%, #4eaea1 55%, #3d9789 100%);
  color: #fff;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 0;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.hero-title {
  font-size: 42px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-slogan-en {
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  line-height: 1.8;
}

/* 栏目内页 Banner */
.page-banner {
  background: linear-gradient(135deg, #62c1b4 0%, #4eaea1 60%, #3d9789 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0 58px;
}

.page-banner h1 {
  color: #fff;
  font-size: 34px;
  margin-bottom: 8px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

/* ---------- 通用区块标题 ---------- */
.section {
  padding: 70px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-head .sec-title {
  font-size: 30px;
  color: var(--text-main);
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 12px;
}

.section-head .sec-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-head .sec-sub {
  color: var(--text-sub);
  font-size: 14px;
}

.section-head .sec-sub-en {
  display: block;
  color: #cfcfcf;
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* 左侧对齐标题（详情页） */
.section-head.left {
  text-align: left;
}
.section-head.left .sec-title::after {
  left: 0;
  transform: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  font-size: 13px;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb .sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb .current {
  color: var(--text-body);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: var(--bg-footer);
  padding: 50px 0 0;
  color: var(--text-body);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-body);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--primary-dark);
}

.footer-contact .fc-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact .fc-label {
  color: var(--text-sub);
  flex-shrink: 0;
  margin-right: 8px;
}

.footer-contact .fc-phone {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.footer-qr p {
  font-size: 13px;
  color: var(--text-sub);
}

.footer-copyright {
  background-color: var(--bg-copyright);
  color: #ccc;
  font-size: 12px;
  line-height: 1.8;
  padding: 16px 0;
}

.footer-copyright a {
  color: #ccc;
}

.footer-copyright a:hover {
  color: #fff;
}

.footer-copyright .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 60px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  z-index: 99;
  border: none;
  cursor: pointer;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  background-color: var(--primary-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .header-inner { height: 64px; }
  .logo img { height: 34px; }
  .header-tel { display: none; }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 100;
    align-items: flex-start;
    padding-top: 70px;
    /* 隐藏时不产生横向滚动 / 不可交互 */
    visibility: hidden;
    pointer-events: none;
  }

  .main-nav.open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav > ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav > ul > li > a {
    height: 52px;
    line-height: 52px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
  }

  .hero { min-height: 340px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .section { padding: 48px 0; }
  .section-head .sec-title { font-size: 24px; }
  .page-banner { padding: 44px 0 40px; }
  .page-banner h1 { font-size: 26px; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-sub { font-size: 15px; }
}
