/* guide.css - 实用指南风 (star/movie)
   关键词: 大量留白 / 细线 / 浅色块 / 系统字体 / 单一强调色
*/
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1a1a1a;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

:root {
  --primary: #E11D48;
  --accent: #BE123C;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --radius: 6px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.guide-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.guide-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.guide-brand { display: flex; align-items: center; gap: 14px; }
.guide-logo {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  border-radius: var(--radius);
}
.guide-brand-text { display: flex; flex-direction: column; gap: 2px; }
.guide-name {
  font-size: 19px; font-weight: 700;
  color: var(--text);
}
.guide-name:hover { text-decoration: none; }
.guide-brand-text small { color: var(--text-muted); font-size: 12px; }
.guide-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.guide-nav-link {
  color: var(--text);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.guide-nav-link:hover {
  background: var(--bg);
  text-decoration: none;
}
.dot { color: var(--border); margin: 0 4px; }

/* Hero */
.guide-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 80px 32px 64px;
}
.guide-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.guide-hero h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.guide-hero p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 640px;
}

/* Main */
.guide-main { max-width: 1200px; margin: 0 auto; padding: 64px 32px; }

/* Content blocks (rankings, guides, etc.) */
.guide-section {
  margin-bottom: 64px;
}
.guide-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.guide-section-title h2 {
  font-size: 24px;
  font-weight: 700;
}
.guide-section-title .num {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
}
.guide-section-title .subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-left: auto;
}

/* Ranking list */
.guide-ranking { display: grid; gap: 12px; }
.guide-rank-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: border-color 0.2s;
}
.guide-rank-item:hover { border-color: var(--primary); }
.guide-rank-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}
.guide-rank-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.guide-rank-content p { color: var(--text-muted); font-size: 14px; }

/* Cards */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.guide-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.guide-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.guide-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* FAQ */
.guide-faq { display: grid; gap: 12px; }
.guide-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.guide-faq-q {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}
.guide-faq-a { color: var(--text); font-size: 15px; }

/* Comparison table */
.guide-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-table table { width: 100%; border-collapse: collapse; }
.guide-table th, .guide-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.guide-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr:hover { background: var(--bg); }

/* Article cards (homepage recent) */
.guide-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.guide-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s;
}
.guide-article-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.guide-article-card h3 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.guide-article-card .meta { color: var(--text-muted); font-size: 12px; }

/* Footer */
.guide-footer { background: #ffffff; border-top: 1px solid var(--border); margin-top: 96px; }
.guide-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 24px;
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 48px;
}
.guide-footer-brand strong {
  font-size: 18px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.guide-footer-brand p { color: var(--text-muted); font-size: 14px; }
.guide-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
.guide-footer-nav a { color: var(--text); font-size: 14px; }
.guide-footer-meta p { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.guide-footer-disclaimer { font-size: 12px; }
.guide-footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* Article detail page */
.article-main { max-width: 720px; margin: 0 auto; padding: 64px 32px; }
.article-main h1 { font-size: 36px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.article-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 40px; }
.article-content { font-size: 17px; line-height: 1.85; }
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.article-content h3 { font-size: 19px; font-weight: 600; margin: 32px 0 16px; }
.article-content p { margin-bottom: 20px; }
.article-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}
.article-content blockquote p { margin-bottom: 8px; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content ul.task-list { list-style: none; padding-left: 0; }
.article-content ul.task-list li {
  padding-left: 28px;
  position: relative;
}
.article-content ul.task-list li input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 6px;
}
.article-content .md-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.article-content .md-table th, .article-content .md-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.article-content .md-table th {
  background: var(--bg);
  font-weight: 600;
}
.article-content pre.md-code {
  background: #1a1a1a;
  color: #f3f4f6;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0;
}
.article-content .md-chart {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 16px;
}
.article-content .md-chart svg { width: 100%; height: auto; display: block; }
.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.article-content mark {
  background: rgba(225, 29, 72, 0.08);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
}
.article-content code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

/* List page */
.list-main { max-width: 960px; margin: 0 auto; padding: 64px 32px; }
.list-main h1 { font-size: 32px; margin-bottom: 32px; }
.list-grid { display: grid; gap: 16px; }
.list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-item h2 { font-size: 18px; font-weight: 600; }
.list-item .meta { color: var(--text-muted); font-size: 13px; }

/* Tag page */
.tag-main { max-width: 720px; margin: 0 auto; padding: 64px 32px; }
.tag-main h1 { font-size: 28px; margin-bottom: 24px; }
.tag-main .tag-tag {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* About page */
.about-main { max-width: 640px; margin: 0 auto; padding: 64px 32px; }
.about-main h1 { font-size: 32px; margin-bottom: 24px; }
.about-main p { margin-bottom: 16px; line-height: 1.8; }
.about-main h2 { font-size: 20px; margin: 32px 0 12px; }

/* 404 */
.error-main { text-align: center; padding: 120px 32px; }
.error-main h1 { font-size: 96px; font-weight: 700; color: var(--primary); }
.error-main p { color: var(--text-muted); margin: 16px 0 32px; }
.error-main a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius);
}
.error-main a:hover { background: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
  .guide-header-inner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px 20px; }
  .guide-nav { gap: 4px; }
  .guide-hero { padding: 56px 20px 40px; }
  .guide-hero h1 { font-size: 28px; }
  .guide-main { padding: 40px 20px; }
  .guide-footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .article-main { padding: 32px 20px; }
  .article-main h1 { font-size: 26px; }
  .article-content { font-size: 16px; }
}