/**
 * 全站统一布局 / 字体 / 导航
 */

:root {
  --site-gutter: 16px;
  --site-header-h: 64px;
  --site-max-width: 100%;
  --font-base: 16px;
  --font-nav: 15px;
  --font-brand: 20px;
  --font-h1: 28px;
  --font-h2: 22px;
}

@media (min-width: 768px) {
  :root {
    --site-header-h: 72px;
    --site-gutter: 24px;
    --site-max-width: 960px;
    --font-brand: 22px;
    --font-h1: 32px;
    --font-h2: 24px;
  }
}

@media (min-width: 992px) {
  :root {
    --site-max-width: 1140px;
    --font-h1: 36px;
  }
}

@media (min-width: 1200px) {
  :root {
    --site-max-width: 1320px;
  }
}

@media (min-width: 1600px) {
  :root {
    --site-max-width: 1440px;
    --site-gutter: 32px;
  }
}

html, body {
  margin: 0;
  padding: 0;
}

/* ========== 全站字体统一 ========== */
body.dagu-site {
  font-family: "Alibaba PuHuiTi 2.0", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--font-base);
  line-height: 1.75;
  color: #333;
  padding-top: 0 !important;
}

.dagu-site .site-brand-text {
  font-size: var(--font-brand);
  font-weight: 700;
  line-height: 1.2;
}

.dagu-site .site-nav-desktop a {
  font-size: var(--font-nav);
  font-weight: 500;
}

.dagu-site .site-nav-cta a {
  font-size: var(--font-nav);
}

/* ========== 统一内容宽度 ========== */
.site-wrap,
.dagu-site .container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}

@media (min-width: 768px) {
  .dagu-site .container { width: 100%; max-width: var(--site-max-width); }
}
@media (min-width: 992px) {
  .dagu-site .container { width: 100%; max-width: var(--site-max-width); }
}
@media (min-width: 1200px) {
  .dagu-site .container { width: 100%; max-width: var(--site-max-width); }
}

/* ========== 首页主内容 ========== */
.site-main {
  padding-top: var(--site-header-h);
  padding-bottom: 96px;
}

.site-main .home-hero {
  padding-top: 32px;
  padding-bottom: 16px;
}

@media (min-width: 768px) {
  .site-main {
    padding-bottom: 128px;
  }
  .site-main .home-hero {
    padding-top: 48px;
    padding-bottom: 24px;
  }
}

.home-hero-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 24px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  color: #9a7b0a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.home-hero-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.home-hero-subtitle {
  font-size: 17px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .home-hero-subtitle {
    font-size: 18px;
  }
}

/* ========== 内页顶区（面包屑 + Banner 无缝衔接） ========== */
.page-top {
  padding-top: var(--site-header-h);
}

.page-top .breadcrumb-nav {
  margin: 0;
  border-bottom: none;
  box-shadow: none;
  padding: 10px 0;
}

.page-top .page-header {
  margin: 0 !important;
  border-bottom: none !important;
  padding: 36px 0 40px;
}

/* 覆盖 Bootstrap .page-header 默认 margin */
.dagu-site .page-header {
  margin: 0 !important;
  border-bottom: none !important;
}

/* ========== 顶部导航 ========== */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--site-header-h);
}

.site-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.site-nav-desktop a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-desktop a.text-secondary {
  color: #D4AF37;
}

.site-nav-cta {
  display: none;
}

.site-nav-mobile-btn {
  display: block;
}

.site-nav-mobile-panel {
  display: none;
}

.site-nav-mobile-panel.is-open {
  display: block;
}

@media (max-width: 767px) {
  #mobile-nav-menu:not(.is-open) {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-nav-desktop {
    display: flex;
  }

  .site-nav-cta {
    display: block;
  }

  .site-nav-mobile-btn,
  .site-nav-mobile-panel {
    display: none !important;
  }
}

.bootstrap-page .site-header .flex,
.bootstrap-page .site-header-inner {
  display: flex !important;
}

.bootstrap-page .site-header .items-center {
  align-items: center !important;
}

.bootstrap-page .site-header .justify-between {
  justify-content: space-between !important;
}

.content-body p {
  margin-bottom: 1rem;
}
