/* 效率工坊 - 数字工具评测与效率提升指南
   OKLCH暖色调，编辑性极简风格 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --bg: oklch(0.93 0.015 85);
  --bg-card: oklch(0.98 0.008 85);
  --text: oklch(0.15 0.01 85);
  --text-muted: oklch(0.42 0.02 85);
  --accent: oklch(0.52 0.12 25);
  --accent-hover: oklch(0.45 0.14 25);
  --border: oklch(0.85 0.02 85);
  --shadow: 0 1px 3px oklch(0.15 0.01 85 / 0.08);
  --tag-bg: oklch(0.88 0.04 85);
  --tag-text: oklch(0.35 0.06 85);
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.65rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.5rem; }
h4 { font-size: 1.1rem; margin: 1.2rem 0 0.4rem; }

p { margin-bottom: 1.2rem; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.nav-brand a {
  color: inherit;
  border-bottom: none;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: none;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 0 3rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}

.article-card:hover {
  box-shadow: 0 3px 12px oklch(0.15 0.01 85 / 0.12);
  transform: translateY(-1px);
}

.article-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.article-card h2 a {
  color: var(--text);
  border-bottom: none;
}

.article-card h2 a:hover { color: var(--accent); }

.article-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-card .summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-card .tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  margin-right: 0.4rem;
}

/* Blog Post */
.blog-post { padding: 2rem 0 3rem; }

.blog-post h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.blog-post .post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-post ul, .blog-post ol {
  margin: 0 0 1.2rem 1.5rem;
}

.blog-post li { margin-bottom: 0.4rem; }

.blog-post blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
}

th, td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text);
}

tr:nth-child(even) td {
  background: oklch(0.98 0.008 85 / 0.5);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  border-bottom: none;
}

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

.breadcrumb span { margin: 0 0.4rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: none;
}

.btn:hover { background: var(--accent-hover); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  list-style: none;
}

.social-links a {
  color: var(--accent);
  border-bottom: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer a { color: var(--text-muted); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { gap: 1rem; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem; }
}

/* Print */
@media print {
  .nav, .footer { display: none; }
  body { font-size: 14px; }
  .container { max-width: 100%; }
}
