/*
Theme Name: Haijiao SEO
Theme URI: https://www.heimizhou.net/
Author: Codex
Description: SEO content theme for work introductions, categories, tags, and related reading.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: haijiao-seo
*/

:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #60656f;
  --line: #dcdfd7;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --soft: #e8f3f0;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(31, 42, 38, 0.08);
}

* { box-sizing: border-box; }
body {
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 223, 215, 0.86);
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(16px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-size: 20px; font-weight: 800; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.nav-links a, .chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover, .chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 40px; align-items: end; padding: 64px 0 44px; }
.hero h1, .page-title { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: 0; }
.hero p, .lead { max-width: 680px; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}
.button.secondary { background: transparent; color: var(--accent-strong); }
.hero-panel, .card, .article { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.hero-panel { padding: 24px; box-shadow: var(--shadow); }
.kicker { color: var(--accent-strong); font-weight: 800; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.metric { display: block; border-top: 1px solid var(--line); padding-top: 14px; }
.metric strong { display: block; font-size: 28px; line-height: 1; }
.metric span, .meta { color: var(--muted); font-size: 14px; }
.section { padding: 40px 0; }
.section-header { display: grid; gap: 10px; margin-bottom: 22px; }
.section-header h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.section-header p { max-width: 720px; margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; overflow: hidden; }
.card img, .feature-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #edf0ea; }
.card-body { padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-list.large { gap: 10px; }
.page-head { padding: 56px 0 12px; }
.content-page { max-width: 860px; padding-top: 52px; }
.content-header { display: grid; gap: 14px; padding-bottom: 24px; }
.content-header h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; }
.content-header p { margin: 0; color: var(--muted); font-size: 18px; }
.content-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }
.content-meta a { color: var(--accent-strong); font-weight: 700; }
.article.simple-article { padding: 26px 0 0; border: 0; background: transparent; }
.article.simple-article h2 { margin: 0 0 18px; font-size: 24px; }
.article p { margin: 0 0 22px; color: #3e444c; font-size: 18px; line-height: 2; text-align: justify; text-indent: 2em; word-break: break-word; }
.content-cta { margin: 30px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.content-cta strong { display: block; margin-bottom: 8px; font-size: 20px; }
.content-cta p { margin: 0 0 16px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 32px 0; color: var(--muted); }
@media (max-width: 820px) {
  .container { width: min(100% - 24px, 1120px); }
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; }
  .hero, .grid, .grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .metric-row { grid-template-columns: 1fr; }
}
