/* SpaceSniffer Site - Shared Styles */
:root {
  --primary: #2196F3;
  --primary-dark: #1565C0;
  --primary-light: #64B5F6;
  --accent: #FF6D00;
  --text: #333;
  --text-light: #666;
  --text-white: #fff;
  --bg: #f5f7fa;
  --bg-white: #fff;
  --bg-dark: #1a2332;
  --border: #e0e4e8;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
}
.site-logo img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 60px 20px 50px;
  text-align: center;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero h1 { font-size: 36px; margin-bottom: 12px; line-height: 1.3; }
.hero p { font-size: 17px; opacity: .9; max-width: 700px; margin: 0 auto 24px; }
.hero-tags { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tag {
  background: rgba(255,255,255,.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(4px);
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--text-white); }
.btn-primary:hover { background: #e65100; transform: translateY(-1px); }
.btn-white { background: var(--bg-white); color: var(--primary-dark); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
}
.section-title span { color: var(--primary); }
.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 15px;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--text-white);
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.screenshot-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .2s;
}
.screenshot-item:hover { box-shadow: var(--shadow-lg); }
.screenshot-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.screenshot-item .caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-light);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.info-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.info-item .label { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.info-item .value { font-size: 18px; font-weight: 600; color: var(--primary-dark); }

/* Content Block */
.content-block {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.content-block h2 { font-size: 20px; margin-bottom: 16px; color: var(--primary-dark); }
.content-block h3 { font-size: 17px; margin: 16px 0 8px; color: var(--text); }
.content-block p { font-size: 15px; color: var(--text-light); margin-bottom: 10px; }
.content-block ul, .content-block ol {
  margin: 10px 0 10px 20px;
  font-size: 15px;
  color: var(--text-light);
}
.content-block li { margin-bottom: 6px; }
.content-block code {
  background: #f0f4f8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-dark);
}
.content-block pre {
  background: #1a2332;
  color: #e0e4e8;
  padding: 16px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  margin: 12px 0;
}
.content-block pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Steps */
.steps-list { counter-reset: step; }
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  counter-increment: step;
}
.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-num::before { content: counter(step); }
.step-content h3 { font-size: 16px; margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--text-light); }

/* Download Section */
.download-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 2px solid var(--primary);
  text-align: center;
}
.download-box h2 { font-size: 22px; margin-bottom: 8px; }
.download-box .version { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  transition: all .2s;
}
.download-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.download-meta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

/* FAQ */
.faq-list {}
.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.faq-q { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.faq-q::before { content: "Q: "; color: var(--primary); }
.faq-a { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.faq-a::before { content: "A: "; color: var(--accent); font-weight: 600; }

/* Comparison Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th {
  background: var(--primary);
  color: var(--text-white);
  padding: 10px 14px;
  text-align: left;
}
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:hover td { background: #f0f4f8; }
.compare-table .highlight { color: var(--primary); font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #b0bec5;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-links a { color: #b0bec5; font-size: 14px; }
.footer-links a:hover { color: var(--text-white); }
.footer-disclaimer {
  font-size: 12px;
  color: #78909c;
  margin-top: 12px;
  border-top: 1px solid #2c3e50;
  padding-top: 12px;
}

/* 固定行列布局 */
.features-grid.cols-3-rows-2 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
}
.features-grid.cols-3-rows-2 .feature-card:nth-child(n+7) {
  display: none;
}
.screenshots-grid.cols-2-rows-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
}
.screenshots-grid.cols-2-rows-2 .screenshot-item:nth-child(n+5) {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 20px; gap: 10px; }
  .site-nav { gap: 14px; }
  .hero { padding: 40px 16px 30px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .section { padding: 24px 16px; }
  .section-title { font-size: 20px; }
  .features-grid:not(.cols-3-rows-2) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .features-grid.cols-3-rows-2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .features-grid.cols-3-rows-2 .feature-card:nth-child(n+5) { display: none; }
  .features-grid.cols-3-rows-2 .feature-card:nth-child(n+7) { display: block; }
  .screenshots-grid:not(.cols-2-rows-2) { grid-template-columns: 1fr; }
  .screenshots-grid.cols-2-rows-2 { grid-template-columns: 1fr; grid-template-rows: auto; }
  .screenshots-grid.cols-2-rows-2 .screenshot-item:nth-child(n+5) { display: block; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
