/* ========================================
   新华保险项目文档 - 统一样式表
   与主网站 styles.css 设计体系保持一致
   ======================================== */

/* 导航栏 - 与主网站完全一致 */
.xh-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.xh-nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
}

.xh-nav-logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  text-decoration: none;
}

.xh-nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}

.xh-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.xh-nav-link:hover {
  color: #111827;
  background: #f0f2f5;
}

.xh-nav-link.active {
  color: #111827;
  font-weight: 600;
}

.xh-lang-toggle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  background: #f0f2f5;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5rem;
  line-height: 1;
}

.xh-lang-toggle:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  background: #eff6ff;
}

.xh-nav-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.xh-nav-toggle span {
  width: 24px;
  height: 2px;
  background: #111827;
  transition: all 0.3s;
}

.xh-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.xh-nav-toggle.active span:nth-child(2) { opacity: 0; }
.xh-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 页脚 - 与主网站一致 */
.xh-footer {
  background: #111827;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  font-family: 'Inter', -apple-system, sans-serif;
}

.xh-footer-logo {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.xh-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.xh-footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.xh-footer-link:hover { color: white; }

.xh-footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* 返回项目按钮 */
.xh-back-btn{position:fixed;top:18px;left:18px;z-index:9999;display:inline-flex;align-items:center;gap:6px;font-size:0.8125rem;font-weight:600;color:#3b82f6;background:#eff6ff;border:1px solid #e5e7eb;border-radius:6px;padding:0.375rem 0.75rem;text-decoration:none;transition:all .25s;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.08);}
.xh-back-btn:hover{background:#dbeafe;border-color:#3b82f6;box-shadow:0 4px 12px rgba(59,130,246,0.15);}

/* 文档内容增强 - 确保与主网站排版一致 */
.xh-doc-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.xh-doc-body h1,
.xh-doc-body h2,
.xh-doc-body h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #111827;
}

.xh-doc-body p {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.8;
}

.xh-doc-body table {
  font-family: 'Inter', -apple-system, sans-serif;
}

.xh-doc-body th {
  background: #111827;
  color: white;
  font-weight: 600;
}

.xh-doc-body td {
  color: #4b5563;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .xh-nav {
    padding: 1rem 1.5rem;
  }

  .xh-nav.scrolled {
    padding: 0.75rem 1.5rem;
  }

  .xh-nav-toggle {
    display: flex;
  }

  .xh-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    border-left: 1px solid #e5e7eb;
  }

  .xh-nav-links.active {
    right: 0;
  }

  .xh-nav-link {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
  }
}

/* 3个月时间线样式 */
.xh-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 30px 0 40px;
  position: relative;
}

.xh-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #111827, #3b82f6);
  border-radius: 2px;
}

.xh-timeline-month {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}

.xh-timeline-month .dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid #3b82f6;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.xh-timeline-month .month-label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.xh-timeline-month .month-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .xh-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .xh-timeline::before { display: none; }
  .xh-timeline-month .dot { width: 36px; height: 36px; font-size: 12px; }
}


/* ========================================
   标准导航栏类名（与主网站 styles.css 完全一致）
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  padding: 0.5rem 0;
  position: relative;
}
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo:hover::after {
  width: 100%;
}
.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}
.lang-toggle {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  background: #f0f2f5;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5rem;
  line-height: 1;
}
.lang-toggle:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  background: #eff6ff;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.nav-link:hover {
  color: #111827;
  background: #f0f2f5;
}
.nav-link.active {
  color: #3b82f6;
  background: #eff6ff;
  font-weight: 600;
}
.nav-link:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle:hover {
  background: #f0f2f5;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: #111827;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }
  .nav.scrolled {
    padding: 0.75rem 1.25rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 1002;
  }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding-top: 60px;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-link:hover {
    background: #f0f2f5;
  }
}

/* ========================================
   导航下滑白底条（与主站下滑白底衔接一致）
   ======================================== */
.nav-fill {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  height: 44px;
  background: transparent;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  border-bottom: 1px solid transparent;
}
.nav.scrolled + .nav-fill {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
  .nav-fill { top: 49px; height: 40px; }
}
