/* ============================================================
   设计令牌（沿用你原网站的色板、字体、圆角、阴影，仅作为参考）
   ============================================================ */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-hover: #f0f2f8;
  --border: #e2e6ef;
  --border-strong: #c5cde0;
  --text: #0f1629;
  --text-muted: #5a6580;
  --text-dim: #8892a8;
  --accent: #4d6bfe;
  --accent-hover: #3b54e0;
  --accent-light: #edf0ff;
  --accent-strong: #1a2b4a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 22, 41, 0.06), 0 4px 12px rgba(15, 22, 41, 0.06);
  --shadow-lg: 0 4px 16px rgba(15, 22, 41, 0.10), 0 12px 40px rgba(15, 22, 41, 0.08);
  --maxw: 960px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ============================================================
   基础重置
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

/* ============================================================
   Hero：标题 + 描述 + 下载按钮
   ============================================================ */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero__kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  color: var(--accent-strong);
}

.hero__desc {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(77, 107, 254, 0.30);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-download:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(77, 107, 254, 0.40);
}

.btn-download:active { transform: scale(0.98); }

.hero__meta {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ============================================================
   详细介绍 + 3 张实机截图
   ============================================================ */
.details {
  padding: 16px 0 64px;
}

.details__intro {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-bottom: 48px;
}

.details__intro h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}

.details__intro p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.details__intro p:last-child { margin-bottom: 0; }
.details__intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.details__intro strong { color: var(--text); }

.screenshots__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screenshots__hint {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.screenshot {
  position: relative;
  aspect-ratio: 9 / 20;
  margin: 0;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}

.screenshot:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot__placeholder {
  text-align: center;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.screenshot__placeholder span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.screenshot__placeholder small {
  font-size: 0.76rem;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.footer__inner {
  padding: 36px 0 40px;
  text-align: center;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, transform 0.1s, background 0.15s;
}

.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* 微信图标是位图（外部资源），用 opacity 控制其色调一致 */
.contact-btn img {
  width: 22px;
  height: 22px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.contact-btn:hover img { opacity: 1; }

.footer__note {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer__note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.footer__note a:hover { color: var(--accent); }

.footer__copy {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ============================================================
   弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 41, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: var(--text-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.modal__close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal__content h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  padding-right: 32px; /* 给关闭按钮留位 */
}

.modal__body p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.modal__body p:last-child { margin-bottom: 0; }

.modal__hint {
  margin-top: 12px !important;
  font-size: 0.84rem !important;
  color: var(--text-dim) !important;
}

.modal__hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 邮箱 / 微信号 复制区 */
.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 6px 0 4px;
}

.copy-field code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s;
}

.copy-btn:hover { background: var(--accent-hover); }
.copy-btn.is-copied { background: #16a34a; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 720px) {
  .hero { padding: 64px 0 40px; }
  .details__intro { padding: 24px; }
  .details__intro h2 { font-size: 1.2rem; }
  .details__intro p  { font-size: 0.92rem; }
  .screenshots { gap: 12px; }
}

@media (max-width: 560px) {
  :root { --maxw: 100%; }

  .wrap { width: min(100% - 24px, var(--maxw)); }

  .hero { padding: 48px 0 32px; }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  /* 介绍正文：手机尺寸下缩小字号、限制行宽 */
  .details__intro {
    padding: 18px;
    margin-bottom: 32px;
  }
  .details__intro h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .details__intro p {
    font-size: 0.86rem;
    line-height: 1.7;
    /* 限制单行长度：约 24 个汉字宽 */
    max-width: 24em;
  }

  /* 窄屏下三张截图改成单列，避免太挤 */
  .screenshots { grid-template-columns: 1fr; }
  .screenshot { max-width: 260px; margin: 0 auto; }

  .modal__content { padding: 24px; }
}
