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

:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e1b4b;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page-accent: #dc4f3f;
  --page-accent-dark: #bf3b2f;
  --page-accent-soft: rgba(220, 79, 63, 0.1);
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --text: #1e1b4b;
  --muted: #65617a;
  --line: rgba(30, 27, 75, 0.11);
}

html {
  min-width: 320px;
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  padding: 24px;
  background: linear-gradient(145deg, #7657df 0%, #b84cb6 48%, #e65372 100%);
  -webkit-font-smoothing: antialiased;
}

body.page-web {
  --page-accent: #d98717;
  --page-accent-dark: #b96808;
  --page-accent-soft: rgba(217, 135, 23, 0.12);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.4);
  outline-offset: 3px;
}

.entry-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 4px 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}

.brand-link img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.24);
}

.home-link {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.page-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(30, 27, 75, 0.22);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.page-header {
  padding: 48px 52px 36px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--purple-dark);
  text-decoration: none;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--page-accent-soft);
  color: var(--page-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.page-content {
  padding: 36px 52px 48px;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
}

.guide-panel,
.action-panel,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.guide-panel,
.action-panel {
  padding: 28px;
}

h2 {
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.steps {
  margin: 20px 0 0 22px;
  color: var(--muted);
}

.steps li {
  padding-left: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.steps li + li {
  margin-top: 10px;
}

.action-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(155deg, var(--page-accent-soft), rgba(124, 58, 237, 0.06));
}

.action-panel h2 {
  font-size: 20px;
}

.action-panel p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  margin-top: 22px;
  background: var(--page-accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--page-accent) 30%, transparent);
  color: #fff;
}

.primary-action:hover {
  background: var(--page-accent-dark);
}

.secondary-action {
  margin-top: 10px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: var(--purple-dark);
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.guide-card {
  padding: 22px;
  background: #faf9ff;
}

.guide-card h3 {
  color: var(--purple-dark);
  font-size: 16px;
  line-height: 1.4;
}

.guide-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.faq {
  margin-top: 38px;
}

.faq h2 {
  margin-bottom: 14px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 18px 32px 18px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--purple);
  font-size: 22px;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 32px 18px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.page-footer nav {
  display: flex;
  gap: 16px;
}

.page-footer a {
  color: var(--purple-dark);
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .topbar {
    padding-bottom: 18px;
  }

  .brand-link {
    font-size: 17px;
  }

  .brand-link img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .page-card {
    border-radius: 24px;
  }

  .page-header {
    padding: 30px 22px 26px;
  }

  .lead {
    font-size: 15px;
  }

  .page-content {
    padding: 24px 22px 30px;
  }

  .entry-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .page-download .action-panel,
  .page-web .action-panel {
    order: -1;
  }

  .guide-panel,
  .action-panel {
    padding: 22px;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
