/* RestMan DevKit 推广站点样式 */

/* Nudge CSS Variables */
:root {
  /* Appearance */
  --site-bg: #ffffff;
  --site-fg: #1a1a2e;
  --site-accent: #0078d4;
  --site-on-accent: #ffffff;
  --site-surface: #f8f9fa;
  --site-muted: #6c757d;
  --site-border: #e9ecef;
  --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Radius */
  --site-radius: 8px;

  /* Spacing */
  --site-space: 1;

  /* Typography */
  --site-type: 1;

  /* Motion */
  --site-motion: 1;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--site-font);
  font-size: calc(16px * var(--site-type));
  line-height: 1.6;
  color: var(--site-fg);
  background: var(--site-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(24px * var(--site-space));
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0078d4 0%, #00a4ef 100%);
  color: white;
  padding: calc(80px * var(--site-space)) 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(48px * var(--site-space));
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: calc(48px * var(--site-type));
  font-weight: 700;
  margin-bottom: 12px;
}

.tagline {
  font-size: calc(24px * var(--site-type));
  opacity: 0.95;
  margin-bottom: 8px;
}

.desc {
  font-size: calc(16px * var(--site-type));
  opacity: 0.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--site-radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all calc(180ms * var(--site-motion));
}

.btn-primary {
  background: white;
  color: var(--site-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-preview {
  border-radius: calc(var(--site-radius) * 2);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Common */
section {
  padding: calc(80px * var(--site-space)) 0;
}

.section-title {
  font-size: calc(36px * var(--site-type));
  font-weight: 700;
  text-align: center;
  margin-bottom: calc(48px * var(--site-space));
  color: var(--site-fg);
}

/* Features Grid */
.features {
  background: var(--site-surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(24px * var(--site-space));
}

.feature-card {
  background: var(--site-bg);
  padding: calc(32px * var(--site-space));
  border-radius: var(--site-radius);
  border: 1px solid var(--site-border);
  transition: all calc(180ms * var(--site-motion));
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: calc(18px * var(--site-type));
  margin-bottom: 8px;
  color: var(--site-fg);
}

.feature-card p {
  color: var(--site-muted);
  font-size: 14px;
}

/* Screenshots */
.screenshots {
  background: var(--site-bg);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(32px * var(--site-space));
}

.screenshot-item {
  border-radius: var(--site-radius);
  overflow: hidden;
  border: 1px solid var(--site-border);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-item figcaption {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--site-muted);
  background: var(--site-surface);
}

/* Install Steps */
.install {
  background: var(--site-surface);
}

.install-steps {
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--site-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.step-content h3 {
  font-size: calc(18px * var(--site-type));
  margin-bottom: 4px;
}

.step-content p {
  color: var(--site-muted);
}

.step-content code {
  background: var(--site-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--site-accent);
}

.install-cta {
  text-align: center;
  margin-top: 48px;
}

/* Platform Grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(32px * var(--site-space));
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  padding: calc(32px * var(--site-space));
  text-align: center;
  transition: all calc(180ms * var(--site-motion));
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--site-accent);
}

.platform-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.platform-card h3 {
  font-size: calc(20px * var(--site-type));
  margin-bottom: 8px;
  color: var(--site-fg);
}

.platform-card > p {
  color: var(--site-muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.platform-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.platform-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--site-fg);
  border-bottom: 1px solid var(--site-border);
}

.platform-features li:last-child {
  border-bottom: none;
}

.platform-features li::before {
  content: "✓ ";
  color: var(--site-accent);
  font-weight: bold;
  margin-right: 8px;
}

.btn-platform {
  display: inline-block;
  padding: 12px 24px;
  background: var(--site-accent);
  color: var(--site-on-accent);
  border-radius: var(--site-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all calc(180ms * var(--site-motion));
}

.btn-platform:hover {
  background: #005a9e;
  transform: translateY(-2px);
}

.platform-note {
  text-align: center;
  margin-top: 48px;
  padding: 24px;
  background: var(--site-surface);
  border-radius: var(--site-radius);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.platform-note p {
  margin: 0;
  color: var(--site-muted);
  font-size: 15px;
}

/* Privacy */
.privacy {
  background: var(--site-bg);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(32px * var(--site-space));
}

.privacy-item {
  text-align: center;
  padding: calc(32px * var(--site-space));
}

.privacy-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.privacy-item h3 {
  font-size: calc(18px * var(--site-type));
  margin-bottom: 8px;
}

.privacy-item p {
  color: var(--site-muted);
  font-size: 14px;
}

/* Shortcuts */
.shortcuts {
  background: var(--site-surface);
}

.shortcuts-table {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  background: var(--site-bg);
  border-radius: var(--site-radius);
  overflow: hidden;
  border: 1px solid var(--site-border);
}

.shortcuts-table th,
.shortcuts-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--site-border);
}

.shortcuts-table th {
  background: var(--site-surface);
  font-weight: 600;
}

.shortcuts-table tr:last-child td {
  border-bottom: none;
}

kbd {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 13px;
}

/* Footer */
.footer {
  background: var(--site-fg);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  text-align: center;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: calc(48px * var(--site-space)) 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: calc(36px * var(--site-type));
  }

  .tagline {
    font-size: calc(20px * var(--site-type));
  }

  .section-title {
    font-size: calc(28px * var(--site-type));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
