/* ============================================================
   SEO × GEO 新增样式
   涵盖：TL;DR块 / Taxonomy落地页 / 实体页 / Newsletter归档
   / FAQ块 / 博客产品捆绑 / AI-lead段
   加载方式：wp_enqueue_style('ep-seo-geo', ...)
   ============================================================ */

/* ── TL;DR 快速答案块（博客文章，GEO 核心）──────────────────────── */
.ep-tldr {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: 1.125rem 1.375rem;
  margin: 0 0 2rem;
}

.ep-tldr-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #b45309;
  margin: 0 0 .5rem;
}

.ep-tldr-text {
  font-size: .9375rem;
  line-height: 1.65;
  color: #1a1918;
  margin: 0;
  font-weight: 400;
}

/* ── AI-lead paragraph（产品页，Answer-first 格式）──────────────── */
.pd-ai-lead {
  font-size: .9375rem;
  line-height: 1.7;
  color: #3a3632;
  background: #f9f7f4;
  border-left: 3px solid #8b7355;
  padding: .875rem 1.125rem;
  margin: 0 0 1.5rem;
  border-radius: 0 6px 6px 0;
}

/* ── FAQ 通用块（博客 / Taxonomy / 实体页）──────────────────────── */
.ep-faq-block {
  margin: 2rem 0;
}

.ep-faq-block__heading {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1918;
  margin: 0 0 1rem;
}

.ep-faq-item {
  border: 1px solid #e8e4de;
  border-radius: 8px;
  margin-bottom: .5rem;
  overflow: hidden;
  transition: box-shadow .15s;
}

.ep-faq-item[open] {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.ep-faq-item > summary {
  padding: .875rem 1.125rem;
  font-size: .9375rem;
  font-weight: 500;
  color: #1a1918;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf9f7;
  user-select: none;
}

.ep-faq-item > summary::-webkit-details-marker { display: none; }

.ep-faq-item > summary::after {
  content: '+';
  font-size: 1.125rem;
  color: #8b7355;
  flex-shrink: 0;
  margin-left: .75rem;
  transition: transform .2s;
}

.ep-faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.ep-faq-item__a {
  padding: .875rem 1.125rem 1rem;
  font-size: .875rem;
  line-height: 1.7;
  color: #4b4540;
  border-top: 1px solid #f0ede8;
}

/* ── Taxonomy SEO 内容区（brand/category 归档页底部）───────────── */
.ep-taxonomy-seo {
  padding: 3rem 0 4rem;
  background: #faf9f7;
  border-top: 1px solid #f0ede8;
}

.ep-tax-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e4de;
}

.ep-tax-stat {}

.ep-tax-stat-num {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: #1a1918;
  line-height: 1;
  margin-bottom: .25rem;
}

.ep-tax-stat-label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9a9390;
}

.ep-tax-about {
  margin-bottom: 2.5rem;
}

.ep-tax-about-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1a1918;
  margin: 0 0 1rem;
}

.ep-tax-about-body {
  font-size: .9375rem;
  line-height: 1.75;
  color: #4b4540;
  max-width: 720px;
}

.ep-tax-about-body p { margin: 0 0 1em; }
.ep-tax-about-body p:last-child { margin: 0; }

.ep-tax-faq {
  margin-bottom: 2.5rem;
}

.ep-tax-faq-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1918;
  margin: 0 0 1rem;
}

.ep-tax-related-links {
  padding-top: 1.5rem;
  border-top: 1px solid #e8e4de;
}

.ep-tax-related-title {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8b7355;
  margin: 0 0 .75rem;
}

.ep-tax-related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ep-tax-tag {
  font-size: .75rem;
  padding: .25rem .75rem;
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 20px;
  color: #4b4540;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.ep-tax-tag:hover {
  border-color: #8b7355;
  color: #8b7355;
}

/* ── 博客产品捆绑（文章底部）───────────────────────────────────── */
.ep-blog-products {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: #faf9f7;
  border-radius: 12px;
  border: 1px solid #e8e4de;
}

.ep-blog-products h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1918;
  margin: 0 0 1rem;
}

.ep-blog-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.ep-blog-product-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.ep-blog-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.ep-blog-product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ep-blog-product-info {
  padding: .75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ep-blog-product-brand {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8b7355;
  margin: 0 0 .25rem;
}

.ep-blog-product-name {
  font-size: .875rem;
  font-weight: 500;
  color: #1a1918;
  margin: 0 0 .375rem;
  line-height: 1.3;
  flex: 1;
}

.ep-blog-product-price {
  font-size: .8125rem;
  color: #4b4540;
  margin: 0 0 .5rem;
}

.ep-blog-product-cta {
  font-size: .75rem;
  font-weight: 600;
  color: #8b7355;
  letter-spacing: .04em;
}

/* ── 文章内 FAQ 区块 ───────────────────────────────────────────── */
.ep-article-faq {
  margin: 2rem 0;
}

.ep-faq-heading {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

/* ── 实体页面（调香师 / 香调 / 产地）──────────────────────────── */
.ep-entity-intro {
  padding: 2.5rem 0;
  border-bottom: 1px solid #f0ede8;
}

.ep-entity-intro .prose {
  max-width: 720px;
  font-size: .9375rem;
  line-height: 1.75;
  color: #4b4540;
}

/* ── Newsletter 归档 ───────────────────────────────────────────── */
.ep-newsletter-content {
  font-size: .9375rem;
  line-height: 1.75;
}

.ep-newsletter-content img {
  max-width: 100%;
  height: auto;
}

/* ── GEO 监控面板（仪表盘）────────────────────────────────────── */
.ep-geo-monitor {
  font-size: 13px;
}

.ep-geo-monitor table {
  width: 100%;
  border-collapse: collapse;
}

.ep-geo-monitor th,
.ep-geo-monitor td {
  padding: 5px 8px;
  border-bottom: 1px solid #f0ede8;
  text-align: left;
}

.ep-geo-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.ep-geo-score--good { background: #f0fdf4; color: #16a34a; }
.ep-geo-score--warn { background: #fffbeb; color: #d97706; }
.ep-geo-score--bad  { background: #fef2f2; color: #dc2626; }

/* ── 响应式补丁 ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ep-tax-stats {
    gap: 1.25rem;
  }

  .ep-blog-products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ep-tldr {
    padding: .875rem 1rem;
  }
}

@media (max-width: 480px) {
  .ep-blog-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ── L2A-2: 产品页快速规格表（pd-spec-table，GEO 结构化数据）─────────────── */
/* 用于产品页摘要区域，Schema microdata 标记，AI 解析友好 */
.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: var(--text-sm);
}
.pd-spec-table caption { display: none; }
.pd-spec-table tr { border-bottom: 1px solid var(--ivory-warm, #ede9e3); }
.pd-spec-table tr:last-child { border-bottom: none; }
.pd-spec-table th {
  text-align: left;
  padding: .625rem .875rem .625rem 0;
  font-size: var(--text-2xs, .6875rem);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone, #8b7355);
  width: 40%;
  white-space: nowrap;
  vertical-align: top;
  background: transparent;
}
.pd-spec-table td {
  padding: .625rem 0;
  color: var(--ink, #1a1918);
  vertical-align: top;
  font-weight: 400;
}
@media (max-width: 600px) {
  .pd-spec-table th { width: 45%; padding-right: .5rem; }
}

/* ── 词典页样式（L4 Glossary）─────────────────────────────────────────────── */
.glossary-short-def {
  max-width: 580px;
  margin: 0 auto;
}

/* ── 后台样式辅助：FAQ 编辑器行 ─────────────────────────────────────────── */
.ep-faq-row .button:hover { background: #fef2f2; }
.ep-faq-row textarea { resize: vertical; min-height: 50px; }

/* ── 实体页与归档页统一卡片悬停 ──────────────────────────────────────────── */
.ep-blog-card { transition: box-shadow .2s, transform .2s; }
.ep-blog-card:hover {
  box-shadow: 0 4px 20px rgba(26, 25, 24, 0.08);
  transform: translateY(-2px);
}
