/* MarkMate Docs - Shared Styles */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
  --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --border: #334155;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.logo img { width: 32px; height: 32px; border-radius: 7px; }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); background: var(--bg); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 24px; box-shadow: var(--shadow-lg); }

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-alt);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Sections */
.section { padding: 60px 0; }

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.feature-card {
  padding: 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.feature-card .icon { font-size: 28px; margin-bottom: 12px; }

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }

.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Export formats */
.export-formats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.format-badge {
  padding: 8px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}/* Shortcuts table */
.shortcuts {
  max-width: 680px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.shortcuts th, .shortcuts td {
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
}

.shortcuts th {
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.shortcuts td { border-bottom: 1px solid var(--border); }

.shortcuts kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

/* Privacy */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-content h2 { margin-top: 40px; margin-bottom: 12px; font-size: 22px; }
.privacy-content h3 { margin-top: 24px; margin-bottom: 8px; font-size: 17px; }
.privacy-content p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.7; }
.privacy-content ul { margin-bottom: 12px; padding-left: 20px; }
.privacy-content ul li { margin-bottom: 6px; color: var(--text-secondary); }
.privacy-content .last-updated { font-size: 13px; color: var(--text-secondary); margin-top: 48px; }

/* CTA Bar */
.cta-bar {
  text-align: center;
  padding: 60px 0;
  background: var(--bg-alt);
  margin: 60px 0 0;
  border-top: 1px solid var(--border);
}

.cta-bar h2 { font-size: 26px; margin-bottom: 12px; }
.cta-bar p { color: var(--text-secondary); margin-bottom: 24px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 13px; color: var(--text-secondary); }/* Comparison section */
.comparison {
  max-width: 720px;
  margin: 0 auto;
}

.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td { padding: 12px 16px; font-size: 14px; text-align: center; }
.comp-table th { font-weight: 600; border-bottom: 2px solid var(--border); }
.comp-table th:first-child { text-align: left; }
.comp-table td { border-bottom: 1px solid var(--border); }
.comp-table td:first-child { text-align: left; font-weight: 500; }
.comp-table .check { color: #10b981; font-weight: 700; }
.comp-table .cross { color: var(--text-secondary); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
}/* Feedback section */
.feedback-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.feedback-card {
  padding: 20px 28px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  min-width: 160px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.feedback-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feedback-card .icon { font-size: 24px; margin-bottom: 8px; display: block; }
.feedback-card .label { font-size: 14px; font-weight: 600; }/* ===========================================
   Download page v2.1.0 — Compact 4-col layout
   =========================================== */

/* Download page hero — 加 icon + 按钮 + 平台徽章 */
.hero-download {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-download .hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.hero-download h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero-download .subtitle {
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-download .subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-download .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-download .hero-platforms {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-download .hero-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* 小号 section title（克制不抢戏） */
.section-title-sm {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.section-subtitle a {
  color: var(--accent);
  text-decoration: none;
}

.section-subtitle a:hover {
  text-decoration: underline;
}

/* 1 列横条：产品速览（紧凑横向卡片） */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-mini:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature-mini .icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.feature-mini .feature-text {
  flex: 1;
  min-width: 0;
}

.feature-mini h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-mini p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 2x2 布局：下载区（紧凑卡片） */
.download-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dl-card {
  display: block;
  padding: 20px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  text-align: left;
}

.dl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.dl-card-primary {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
  border-color: var(--accent);
}

.dl-platform {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-recommend {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}

.dl-arch {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.dl-name {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
  word-break: break-all;
  line-height: 1.4;
}

.dl-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.dl-meta span:last-child {
  color: var(--accent);
  font-weight: 600;
}

.dl-action {
  display: block;
  text-align: center;
  padding: 8px 0;
  background: var(--bg);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
}

.dl-card:hover .dl-action {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* 2x2 布局：截图（hover 放大） */
.screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.shot-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shot-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.shot-img-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.shot-card:hover img {
  transform: scale(1.05);
}

.shot-card figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}

/* 紧凑 2 列：版本历史（时间线式） */
.changelog {
  max-width: 800px;
  margin: 0 auto;
}

.cl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cl-item:last-child {
  border-bottom: none;
}

.cl-item-latest {
  background: linear-gradient(90deg, rgba(16,185,129,0.04), transparent);
  border-radius: var(--radius);
  padding-left: 16px;
  padding-right: 16px;
}

.cl-version {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cl-version-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.cl-date {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cl-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.cl-badge-latest {
  background: #10b981;
  color: #fff;
}

.cl-badge-major {
  background: #ef4444;
  color: #fff;
}

.cl-badge-minor {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.cl-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cl-changes li {
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive — 降级 */
@media (max-width: 768px) {
  .download-row,
  .screenshot-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cl-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-download h1 {
    font-size: 30px;
  }
  .hero-download .subtitle {
    font-size: 15px;
  }
}
