/* ============================================
   TYPOGRAPHY — Nicolo-Pro
   中文字体排版 · 标题 · 正文 · WordPress 内容区
   ============================================ */

/* ── 标题全局 ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-heading);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-body); }
h5 { font-size: var(--text-small); }
h6 { font-size: var(--text-micro); }

/* ── 段落 ── */
p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

/* ── 链接 ── */
a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* ════════════════════════════════════════
   区块标签（Section Label）
   ════════════════════════════════════════ */
.section-label {
  display: inline-block;
  font-size: var(--text-small);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

/* ════════════════════════════════════════
   区块标题（Section Title）
   ════════════════════════════════════════ */
.section-title {
  font-size: var(--text-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-heading);
  margin-bottom: var(--space-4);
}

/* ════════════════════════════════════════
   区块副标题（Section Subtitle）
   ════════════════════════════════════════ */
.section-subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: var(--line-height-normal);
}

/* ════════════════════════════════════════
   区块头部容器
   ════════════════════════════════════════ */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ════════════════════════════════════════
   WordPress 正文内容区（.entry-content）
   ════════════════════════════════════════ */
.entry-content {
  font-size: var(--text-body);
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

/* 标题 */
.entry-content h2 {
  font-size: var(--text-h2);
  margin: var(--space-12) 0 var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-light);
}

.entry-content h3 {
  font-size: var(--text-h3);
  margin: var(--space-8) 0 var(--space-4);
}

.entry-content h4 {
  font-size: var(--text-body);
  margin: var(--space-6) 0 var(--space-3);
}

/* 段落 — 中文段首缩进 */
.entry-content p {
  text-indent: 2em;
  margin-bottom: var(--space-4);
}

.entry-content p:first-child {
  text-indent: 0;
}

/* 列表 */
.entry-content ul,
.entry-content ol {
  margin: var(--space-4) 0 var(--space-6);
  padding-left: var(--space-6);
}

.entry-content ul {
  list-style: disc;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: var(--space-2);
}

.entry-content li:last-child {
  margin-bottom: 0;
}

/* 引用块 — 左侧金色竖线 */
.entry-content blockquote {
  margin: var(--space-8) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.entry-content blockquote p {
  text-indent: 0;
  margin-bottom: 0;
}

/* 表格 */
.entry-content table {
  width: 100%;
  margin: var(--space-6) 0;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  text-align: left;
}

.entry-content th {
  background: var(--color-primary-pale);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

/* 图片 */
.entry-content img {
  border-radius: var(--radius-md);
  margin: var(--space-6) auto;
}

/* 内容内链接 */
.entry-content a {
  color: var(--color-accent);
}

.entry-content a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* 行内代码 */
.entry-content code {
  padding: 0.15em 0.4em;
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.9em;
}

/* 预格式代码块 */
.entry-content pre {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--color-gray-900);
  color: var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: var(--text-small);
  line-height: 1.6;
}

.entry-content pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
