/* SA2 客户安装选择 — Apple.com.cn 风格（大留白 / 浅灰分区 / 胶囊按钮） */

:root {
  --ap-bg: #ffffff;
  --ap-bg-alt: #f5f5f7;
  --ap-text: #1d1d1f;
  --ap-secondary: #6e6e73;
  --ap-link: #0066cc;
  --ap-link-hover: #0077ed;
  --ap-blue: #0071e3;
  --ap-blue-hover: #0077ed;
  --ap-border: #d2d2d7;
  --ap-code-bg: #f5f5f7;
  --ap-selected: #e8f1fc;
  --ap-nav-bg: rgba(251, 251, 253, 0.82);
  --ap-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --ap-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ap-radius-tile: 18px;
  --ap-pill: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--ap-bg);
  color: var(--ap-text);
  font-family: var(--ap-font);
  line-height: 1.47059;
  margin: 0;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ap-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— 顶栏 —— */
.get-nav {
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--ap-nav-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.get-nav__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 980px;
  min-height: 48px;
  padding: 0 22px;
}

.get-nav__brand {
  align-items: center;
  display: inline-flex;
  text-decoration: none !important;
}

/* 注册商标字标：CAS 深蓝 · STK 纯黑 */
.casstk-wordmark {
  display: inline-block;
  font-family: var(--ap-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.casstk-wordmark__cas {
  color: #003366;
}

.casstk-wordmark__stk {
  color: #000;
}

.get-nav__links {
  display: flex;
  gap: 1.35rem;
}

.get-nav__links a {
  color: var(--ap-text);
  font-size: 12px;
  opacity: 0.88;
  text-decoration: none !important;
}

.get-nav__links a:hover {
  opacity: 1;
  text-decoration: none !important;
}

/* —— Hero（安装工具页：紧凑，非产品展示） —— */
.get-hero {
  background: linear-gradient(180deg, #fbfbfd 0%, var(--ap-bg-alt) 100%);
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
}

.get-hero__eyebrow {
  color: var(--ap-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.4rem;
}

.get-hero__brand {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.get-hero__title {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.2rem 0 0.55rem;
}

.get-hero__lead {
  color: var(--ap-secondary);
  font-size: 15px;
  font-weight: 400;
  margin: 0 auto;
  max-width: 36em;
}

.get-br {
  display: none;
}

.get-meta {
  color: var(--ap-secondary);
  font-size: 13px;
  margin: 1rem 0 0;
}

.get-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.1rem;
}

.get-pill {
  align-items: center;
  border-radius: var(--ap-pill);
  display: inline-flex;
  font-size: 14px;
  font-weight: 400;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.5rem 1.1rem;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.get-pill:hover {
  text-decoration: none !important;
}

.get-pill--primary {
  background: var(--ap-blue);
  color: #fff !important;
}

.get-pill--primary:hover {
  background: var(--ap-blue-hover);
  color: #fff !important;
}

.get-pill--ghost {
  background: transparent;
  border: 1px solid var(--ap-blue);
  color: var(--ap-blue) !important;
}

.get-pill--ghost:hover {
  background: rgba(0, 113, 227, 0.06);
}

/* —— 主体 —— */
.get-page {
  margin: 0 auto;
  max-width: 920px;
  padding: 1.75rem 1.5rem 3rem;
}

.get-step {
  margin-bottom: 1.65rem;
}

.get-step__label {
  color: var(--ap-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.get-options {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.get-options--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.get-options--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.get-option {
  background: var(--ap-bg-alt);
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 0.15rem 0.7rem;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  padding: 0.85rem 0.95rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.get-option:hover {
  background: #efeff2;
}

.get-option.is-selected {
  background: var(--ap-selected);
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.15);
}

.get-option__icon {
  color: var(--ap-secondary);
  display: block;
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 22px;
  margin-top: 0.1rem;
  width: 22px;
}

.get-option__icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.get-option__icon--sm {
  height: 20px;
  width: 20px;
}

.get-option.is-selected .get-option__icon {
  color: var(--ap-blue);
}

.get-option__title {
  color: var(--ap-text);
  display: block;
  font-size: 15px;
  font-weight: 600;
  grid-column: 2;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.get-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #0066cc;
  color: #fff;
  vertical-align: middle;
  margin-left: 4px;
}

.get-option__desc {
  color: var(--ap-secondary);
  display: block;
  font-size: 12.5px;
  grid-column: 2;
  line-height: 1.4;
}

.get-arch,
.get-pack {
  display: none;
  margin-bottom: 1.65rem;
}

.get-arch.is-visible,
.get-pack.is-visible {
  display: block;
}

/* —— 结果区 —— */
.get-result {
  background: var(--ap-bg-alt);
  border-radius: 14px;
  margin-top: 0.25rem;
  padding: 1.25rem 1.2rem 1.15rem;
}

.get-result__head {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.get-result__badge {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--ap-blue);
  display: inline-flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.get-result__badge svg {
  height: 14px;
  width: 14px;
}

.get-result__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.2rem;
}

.get-result__summary {
  color: var(--ap-secondary);
  font-size: 13px;
  margin: 0;
}

.get-cmd-block {
  margin-bottom: 1.25rem;
}

.get-cmd-block__label {
  color: var(--ap-secondary);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.get-cmd {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 14px;
  display: flex;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
}

.get-cmd pre {
  color: var(--ap-text);
  flex: 1;
  font-family: var(--ap-mono);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.get-copy {
  background: var(--ap-blue);
  border: none;
  border-radius: var(--ap-pill);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.get-copy:hover {
  background: var(--ap-blue-hover);
}

.get-copy.is-done {
  background: #34c759;
}

.get-download {
  margin-top: 0.35rem;
}

.get-download__hint {
  color: var(--ap-secondary);
  font-size: 14px;
  margin: 0 0 0.85rem;
}

.get-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.get-btn {
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-pill);
  color: var(--ap-text) !important;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.get-btn:hover {
  background: #fafafa;
  border-color: #b0b0b5;
  text-decoration: none !important;
}

.get-btn--primary {
  background: var(--ap-blue);
  border-color: var(--ap-blue);
  color: #fff !important;
}

.get-btn--primary:hover {
  background: var(--ap-blue-hover);
  border-color: var(--ap-blue-hover);
  color: #fff !important;
}

.get-note {
  color: var(--ap-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin: 1.25rem 0 0;
}

.get-note code {
  background: #fff;
  border-radius: 6px;
  font-family: var(--ap-mono);
  font-size: 12px;
  padding: 0.1em 0.35em;
}

/* —— 页脚 —— */
.get-footer {
  background: var(--ap-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ap-secondary);
  font-size: 12px;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}

.get-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.get-footer__links a {
  color: var(--ap-secondary);
  text-decoration: none !important;
}

.get-footer__links a:hover {
  color: var(--ap-text);
  text-decoration: underline !important;
}

.get-footer__copy {
  margin: 0;
}

@media (min-width: 700px) {
  .get-br {
    display: inline;
  }
}

@media (max-width: 1100px) {
  .get-options--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .get-options {
    grid-template-columns: 1fr;
  }

  .get-options--4 {
    grid-template-columns: 1fr;
  }

  .get-options--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .get-nav__links {
    gap: 0.85rem;
  }

  .get-nav__links a:nth-child(n + 3) {
    display: none;
  }

  .get-hero {
    padding: 1.75rem 1.15rem 1.4rem;
  }

  .get-hero__lead {
    font-size: 14px;
  }

  .get-page {
    padding: 1.35rem 1.15rem 2.5rem;
  }

  .get-options--2 {
    grid-template-columns: 1fr;
  }

  .get-result {
    border-radius: 12px;
    padding: 1.1rem 1rem;
  }

  .get-result__title {
    font-size: 17px;
  }

  .get-cmd {
    flex-direction: column;
  }

  .get-copy {
    align-self: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .get-option,
  .get-pill,
  .get-btn,
  .get-copy {
    transition: none;
  }

  .get-btn:hover,
  .get-copy:hover {
    transform: none;
  }
}
