/* ==========================================================================
   博研汇申博 · 现代化高端学术风格规范 (基于 UI-UX-Pro-Max 体系优化)
   ========================================================================== */

:root {
  /* 品牌核心色彩 - 深邃学府墨绿与典雅金辉 */
  --green-950: #0a1f18;
  --green-900: #0f2a22;
  --green-850: #123229;
  --green-800: #16382e;
  --green-700: #1e4d3f;
  --green-600: #2a6553;
  --green-500: #38806a;
  --green-100: #e4eee9;
  --green-50:  #f2f7f4;

  --gold-600: #aa8945;
  --gold-500: #c2a05a;
  --gold-400: #cfae6c;
  --gold-300: #d9bd82;
  --gold-200: #e8d7b0;
  --gold-100: #f5eedf;
  --gold-50:  #faf7f0;

  --cream-50: #f7f4ed;
  --cream-100: #f0ebe0;
  --cream-200: #e7dfcf;

  --ink-900: #121c18;
  --ink: #1c2a25;
  --ink-soft: #4a5a53;
  --ink-muted: #6b7c74;
  --line: #e2dccf;
  --line-light: #ece7dc;

  --surface-card: #ffffff;
  --surface-overlay: rgba(15, 42, 34, 0.94);

  /* 阴影层次规范 */
  --shadow-sm: 0 2px 8px rgba(22, 56, 46, 0.05);
  --shadow-md: 0 8px 24px rgba(22, 56, 46, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 56, 46, 0.12);
  --shadow-gold: 0 8px 24px rgba(194, 160, 90, 0.25);

  /* 动画曲线与时长 */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.35s var(--ease-smooth);
}

/* 基础重置 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background-color: var(--cream-50);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 字体排印 */
h1, h2, h3, h4, .serif {
  font-family: 'Noto Serif SC', "Songti SC", "SimSun", serif;
  font-feature-settings: "palt";
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ===== 顶部导航栏 ===== */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194, 160, 90, 0.22);
  transition: all 0.3s ease;
}

nav.site-nav.scrolled {
  background: rgba(10, 31, 24, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--gold-500);
  background: linear-gradient(135deg, rgba(194, 160, 90, 0.15), rgba(15, 42, 34, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: var(--gold-300);
  font-size: 20px;
  box-shadow: 0 0 12px rgba(194, 160, 90, 0.15);
  border-radius: 3px;
  transition: var(--transition-fast);
}

.logo:hover .logo-mark {
  border-color: var(--gold-300);
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(194, 160, 90, 0.3);
}

.logo-info {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 19px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #ffffff;
}

.logo-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  letter-spacing: 1px;
  padding: 8px 4px;
  font-weight: 400;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--gold-300);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold-400);
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--green-950) !important;
  padding: 10px 24px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(194, 160, 90, 0.35);
}

/* 移动端汉堡菜单按钮 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--gold-300);
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 通用 Page Header (分页面专用 Hero) ===== */
.page-header {
  padding: 130px 32px 70px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(42, 101, 83, 0.4), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(194, 160, 90, 0.12), transparent 50%),
    linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 60%, var(--green-800) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(194, 160, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 160, 90, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-header .wrap {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--gold-300);
}

.breadcrumb span.current {
  color: var(--gold-400);
}

.page-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-300);
  font-size: 13px;
  letter-spacing: 3px;
  padding: 5px 16px;
  border: 1px solid rgba(194, 160, 90, 0.4);
  border-radius: 2px;
  margin-bottom: 20px;
  background: rgba(194, 160, 90, 0.06);
}

.page-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 18px;
}

.page-title .gold {
  color: var(--gold-500);
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16.5px;
  max-width: 720px;
  line-height: 1.85;
}

/* ===== 通用板块样式 ===== */
section {
  padding: 90px 32px;
  position: relative;
}

.sec-tag {
  color: var(--gold-500);
  font-size: 13.5px;
  letter-spacing: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.sec-tag::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--gold-500);
}

.sec-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.sec-desc {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 760px;
  margin-bottom: 52px;
  line-height: 1.8;
}

/* 按钮规范 */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--green-950);
  text-decoration: none;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(194, 160, 90, 0.4);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--gold-300);
  color: var(--gold-300);
  background: rgba(194, 160, 90, 0.08);
  transform: translateY(-2px);
}

.btn-outline-green {
  border: 1.5px solid var(--green-700);
  color: var(--green-800);
  padding: 12px 32px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-outline-green:hover {
  background: var(--green-800);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== 底部 CTA 区域 ===== */
.cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(42, 101, 83, 0.6), transparent 70%),
    linear-gradient(160deg, var(--green-950) 0%, var(--green-900) 50%, var(--green-850) 100%);
  text-align: center;
  padding: 110px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(194, 160, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(194, 160, 90, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta .wrap {
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-weight: 700;
}

.cta p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.85;
}

/* ===== 页脚 Footer ===== */
footer {
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 32px 36px;
  font-size: 13.5px;
  border-top: 1px solid rgba(194, 160, 90, 0.15);
  margin-top: auto;
}

.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.foot-brand {
  font-family: 'Noto Serif SC', serif;
  color: var(--gold-300);
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-weight: 700;
}

.foot-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
}

.foot-col h4 {
  color: var(--gold-300);
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 600;
}

.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.foot-col ul li a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.foot-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .nav-links {
    gap: 16px;
  }
  .nav-link {
    font-size: 13.5px;
  }
  .foot-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--green-950);
    flex-direction: column;
    padding: 28px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(194, 160, 90, 0.25);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 16px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  section {
    padding: 64px 20px;
  }

  .wrap {
    padding: 0 20px;
  }

  .foot-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
