/* ==========================================================================
   Shadowrocket 5 Minimal Style (极简紧凑问答卡片风格)
   1:1 Reconstructed based on https://shadowrocket5.com/zh-CN/
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg-page: #f9fafb;
  --bg-white: #ffffff;

  --color-primary: #111827;
  --color-link: #2563eb;
  --color-border: #e5e7eb;

  --text-main: #111827;
  --text-muted: #4b5563;
  --text-dim: #6b7280;

  --max-width: 820px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  padding: 0;
}

.minimal-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px 70px;
}

/* Nav */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.top-nav a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.top-nav a:hover {
  text-decoration: underline;
}

/* Header */
.main-header {
  margin-bottom: 30px;
}

h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}

.hero-summary {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Notice Box */
.notice-box {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 32px;
}

.notice-box h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.notice-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice-box li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.notice-box li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #9ca3af;
}

/* Core Distinction Cards */
.core-block {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.core-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.core-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.micro-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 16px;
  background: #fbfbfd;
}

.micro-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.micro-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ Block */
.faq-block {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.faq-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.faq-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Download Cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.dl-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg-white);
}

.dl-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.dl-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.dl-btn {
  display: inline-block;
  background: #111827;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.dl-btn:hover {
  background: #374151;
}

/* Footer */
.minimal-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-dim);
}

@media (max-width: 640px) {
  h1 { font-size: 1.7rem; }
  .cards-grid, .dl-grid { grid-template-columns: 1fr; }
}
