/* ==========================================================================
   闫宝龙 · 百度百科词条创建 —— GEO 增强样式
   仅补充原 Tailwind 产物中未包含的组件样式，不覆盖原有工具类
   ========================================================================== */

svg.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  background: transparent;
  padding: 1rem 0;
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}
.logo-name {
  color: #fff;
  transition: color 0.3s ease;
}
.logo-r {
  color: #f6d365;
  transition: color 0.3s ease;
}
.logo-sub {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #d69e2e;
}
.nav-link--gold {
  color: #f6d365;
}
.menu-btn {
  color: #fff;
  transition: color 0.3s ease;
}
.site-header.is-scrolled .logo-name {
  color: #1a365d;
}
.site-header.is-scrolled .logo-r {
  color: #d69e2e;
}
.site-header.is-scrolled .logo-sub {
  color: #4b5563;
  border-color: #d1d5db;
}
.site-header.is-scrolled .nav-link {
  color: #374151;
}
.site-header.is-scrolled .nav-link:hover {
  color: #d69e2e;
}
.site-header.is-scrolled .nav-link--gold {
  color: #b7791f;
}
.site-header.is-scrolled .menu-btn {
  color: #1a365d;
}

/* ---------- 首屏背景网格 ---------- */
.grid-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.grid-bg-sm {
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------- 核心信息（GEO 答案前置区） ---------- */
.geo-summary {
  background: #fff;
  padding: 4.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.geo-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .geo-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }
}
.geo-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #b7791f;
  background: #fdf6e3;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.geo-lead h2 {
  font-size: 1.75rem;
  line-height: 1.35;
  color: #1a365d;
  font-weight: 700;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .geo-lead h2 {
    font-size: 2rem;
  }
}
.geo-lead p {
  color: #4b5563;
  font-size: 0.975rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.geo-lead strong {
  color: #1a365d;
  font-weight: 600;
}
.geo-answer {
  background: #f8fafc;
  border-left: 3px solid #d69e2e;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  color: #374151 !important;
}
.geo-facts {
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 1rem;
  padding: 1.5rem;
}
.geo-facts h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}
.geo-facts dl {
  display: grid;
  gap: 0.6rem;
  margin: 0;
}
.geo-facts dl > div {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.55rem;
}
.geo-facts dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.geo-facts dt {
  flex: 0 0 4.75rem;
  color: #6b7280;
}
.geo-facts dd {
  flex: 1;
  margin: 0;
  color: #1f2937;
}
.geo-facts a {
  color: #1a365d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 培训课程广告 ---------- */
.training-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f2744 0%, #1a365d 55%, #2c5282 100%);
}
.training-section::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(214, 158, 46, 0.14);
  filter: blur(80px);
  pointer-events: none;
}
.training-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.5rem;
  padding: 2rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (min-width: 768px) {
  .training-card {
    padding: 3rem;
  }
}
.training-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.training-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #f6d365;
  background: rgba(246, 211, 101, 0.1);
  border: 1px solid rgba(246, 211, 101, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.training-title {
  font-size: 1.75rem;
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .training-title {
    font-size: 2.1rem;
  }
}
.training-desc {
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.9;
}
.training-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f6d365;
  font-size: 0.85rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(246, 211, 101, 0.4);
  padding-bottom: 0.2rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.training-top-link:hover {
  color: #fff;
  border-color: #fff;
}
.training-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .training-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.training-stats li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  padding: 1rem 0.75rem;
  text-align: center;
}
.training-stats strong {
  display: block;
  font-family: "Noto Serif SC", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #f6d365;
}
.training-stats span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}
.training-points {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .training-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 2rem;
  }
}
.training-points li {
  position: relative;
  padding-left: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.7;
}
.training-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #f6d365;
  font-weight: 700;
}
.training-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.training-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #d69e2e;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 0.6rem;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.training-btn:hover {
  background: #b7791f;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(214, 158, 46, 0.5);
}
.training-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f6d365;
  border: 1px solid rgba(246, 211, 101, 0.5);
  padding: 0.9rem 1.4rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}
.training-tel:hover {
  background: rgba(246, 211, 101, 0.12);
  color: #fff;
}
.training-note {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- FAQ（原生 details，无需 JS） ---------- */
.faq-item {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 500;
  color: #1f2937;
  list-style: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  background: rgba(239, 246, 255, 0.5);
  color: #1a365d;
}
.faq-icon {
  color: #9ca3af;
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: #2c5282;
}
.faq-a {
  margin: 0 1.25rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}
.faq-a p {
  margin: 0;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ---------- 页脚 ---------- */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
}
.footer-links a {
  color: #9ca3af;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
}

/* 原产物未生成的悬停色 */
.hover\:text-gold-300:hover {
  color: #f9e7b3;
}
.hover\:text-gold-400:hover {
  color: #f6d365;
}

/* ---------- 移动端细节 ---------- */
@media (max-width: 420px) {
  .logo-sub {
    display: none;
  }
  .geo-summary {
    padding: 3rem 0;
  }
  .training-section {
    padding: 3.5rem 0;
  }
}
