/* ============================================================
 * 鸟人助手 — 中转页
 * 美学方向: New Editorial Pop
 *   - 深紫黑底 + 高对比排版
 *   - 序号、装饰大字、网格纹理
 *   - Bricolage Grotesque + Noto Sans SC
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700;12..96,800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  /* 主调:深紫黑背景 + 亮紫强调 */
  --bg-0: #0b0a18;
  --bg-1: #14122a;
  --bg-2: #1c1936;
  --bg-3: #2a274d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text-0: #ffffff;
  --text-1: rgba(255, 255, 255, 0.72);
  --text-2: rgba(255, 255, 255, 0.44);
  --text-3: rgba(255, 255, 255, 0.22);

  --accent: #a78bfa;        /* 亮紫 */
  --accent-hot: #c4b5fd;    /* hover 高亮 */
  --accent-deep: #7c6bff;   /* 深紫(按钮背景) */
  --accent-glow: rgba(167, 139, 250, 0.35);

  --brand-green: #4ade80;      /* 亮绿(新手引导) */
  --brand-green-deep: #22c55e; /* 深绿(hover) */

  --font-display: 'Bricolage Grotesque', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* ============================================================
 * 页面底色:网格 + 顶部柔光 + 噪点
 * ============================================================ */
.page {
  position: relative;
  min-height: 100vh;
  padding: 48px 56px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* 顶部柔光 */
.page::before {
  content: '';
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse at center, rgba(124, 107, 255, 0.45) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
}

/* 网格纹理(用 SVG data-url,极细) */
.page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* ============================================================
 * 主内容:左 LOGO + 右 装饰大字(不对称)
 * ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  padding: 80px 0 64px;
  z-index: 1;
}

.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero__logo {
  display: block;
  height: 1.5em;
  width: auto;
  flex-shrink: 0;
}

.hero__title-text {
  flex: 1;
  min-width: 0;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 900;
}

.hero__sub {
  margin: 24px 0 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-1);
}

/* 右侧装饰:大号杂志感文字 */
.hero__right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero__display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.18) 0%, rgba(167, 139, 250, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
  position: absolute;
  right: -16px;
  bottom: -32px;
  white-space: nowrap;
}

.hero__display sup {
  font-size: 0.32em;
  font-weight: 500;
  vertical-align: top;
  margin-left: 8px;
  color: var(--accent);
}

/* ============================================================
 * 下载列表(序号 + 下划线滑动)
 * ============================================================ */
.download-section {
  position: relative;
  z-index: 1;
}

.download-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.download-section__head h2 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0;
}

.download-section__head .count {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.16em;
}

.download-list {
  display: flex;
  flex-direction: column;
}

.dl-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 28px 8px;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease, color 0.25s ease;
}

.dl-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dl-btn:hover {
  padding-left: 24px;
}

.dl-btn:hover::after {
  width: 100%;
}

.dl-btn__index {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  width: 36px;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.dl-btn:hover .dl-btn__index {
  color: var(--accent);
}

.dl-btn__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-0);
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.dl-btn__icon svg {
  width: 20px;
  height: 20px;
}

.dl-btn:hover .dl-btn__icon {
  border-color: var(--accent);
  color: var(--accent);
}

.dl-btn__label {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1;
}

.dl-btn__hint {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  flex-shrink: 0;
  margin-right: 16px;
}

.dl-btn__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.dl-btn__arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.dl-btn:hover .dl-btn__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-0);
}

.dl-btn:hover .dl-btn__arrow svg {
  transform: translateX(2px);
}

/* ============================================================
 * 底部 footer
 * ============================================================ */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
 * 引导弹窗
 * ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 18, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-mask.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  color: var(--text-0);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(167, 139, 250, 0.1);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.modal-mask.is-visible .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 22px;
  border-bottom: 1px solid var(--line);
}

.modal__mascot {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  padding: 6px;
  flex-shrink: 0;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
  margin: 0;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transition: all 0.2s ease;
}

.modal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal__close svg {
  width: 14px;
  height: 14px;
}

.modal__body {
  padding: 24px 24px 28px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal__hint {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-1);
}

.modal__warn {
  font-size: 12px;
  color: #ff8585;
  margin: -10px 0 14px;
  line-height: 1.6;
  padding: 10px 14px;
  background: rgba(255, 80, 80, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 80, 80, 0.18);
}

.modal__recommend {
  text-align: center;
  margin: 22px 0;
  color: var(--text-1);
  font-size: 13.5px;
  line-height: 1.8;
}

/* 选项列表 */
.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 14px;
  color: var(--text-0);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-weight: 500;
}

.option:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateX(2px);
}

.option__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-3);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option__icon svg {
  width: 18px;
  height: 18px;
}

.option__label {
  flex: 1;
}

.option__arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option__arrow svg {
  width: 12px;
  height: 12px;
}

.option:hover .option__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-0);
}

/* 老手/新手(图1 双按钮) */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.modal-actions .option {
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
  padding: 22px 22px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 130px;
  position: relative;
  overflow: hidden;
}

/* 隐藏原图标方块 */
.modal-actions .option__icon { display: none; }

/* 右下角圆形箭头按钮 */
.modal-actions .option__corner {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal-actions .option__corner svg {
  width: 14px;
  height: 14px;
}

/* 默认:整张卡片铺满主题色(老手紫 / 新手绿),文字与箭头转深色保证对比 */
.modal-actions .option--action[data-act="old"] {
  background: var(--accent);
  border-color: var(--accent);
}
.modal-actions .option--action[data-act="new"] {
  background: var(--brand-green);
  border-color: var(--brand-green);
}
.modal-actions .option--action .option__title {
  color: var(--bg-0);
}
.modal-actions .option--action .option__sub {
  color: rgba(11, 10, 24, 0.62);
}
.modal-actions .option--action .option__corner {
  background: var(--bg-0);
  border-color: var(--bg-0);
  color: #fff;
}

/* hover:主题色加深,小圆箭头右移 */
.modal-actions .option--action[data-act="old"]:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.modal-actions .option--action[data-act="new"]:hover {
  background: var(--brand-green-deep);
  border-color: var(--brand-green-deep);
}
.modal-actions .option--action:hover .option__corner {
  transform: translateX(2px);
}

.modal-actions .option__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-0);
  display: block;
}

.modal-actions .option__sub {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* 「如何查看?」可展开 */
.help-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.help-toggle:hover {
  background: rgba(167, 139, 250, 0.18);
}

.help-toggle__caret {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.help-toggle.is-open .help-toggle__caret {
  transform: rotate(180deg);
}

.help-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 14px;
  font-size: 12.5px;
  color: var(--text-1);
  line-height: 1.7;
  display: none;
}

.help-panel.is-visible {
  display: block;
}

.help-panel__title {
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 6px;
}

.collapse-btn {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  background: transparent;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.collapse-btn:hover {
  color: var(--accent);
}

/* 收尾大按钮 */
.big-download {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: var(--bg-0);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  box-shadow: 0 16px 36px rgba(124, 107, 255, 0.4);
  margin-top: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.big-download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.big-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(124, 107, 255, 0.55);
}

.big-download:hover::after {
  transform: translateX(100%);
}

.big-download__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(11, 10, 24, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.big-download__icon svg {
  width: 18px;
  height: 18px;
}

.big-download__label {
  flex: 1;
}

.big-download__arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 10, 24, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.big-download__arrow svg {
  width: 12px;
  height: 12px;
}

.modal-support {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.modal-support strong {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
 * iOS 越狱版图文教程
 * ============================================================ */
.tut {
  margin: 2px 0 4px;
  border-top: 1px solid var(--line);
}

.tut__heading {
  padding: 16px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  text-align: center;
}

.tut__step { padding: 14px 0 4px; }

.tut__step-tit {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--text-0);
}

.tut__step-no {
  flex: none;
  width: 20px;
height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1430;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tut__step-text {
  margin: 8px 0 4px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.tut__img {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.tut__img--half {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.tut__copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}

.tut__copy {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--text-0);
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tut__copy-btn {
  flex: none;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #1a1430;
  font-size: 12.5px;
  font-weight: 700;
}

.tut__copy-btn.is-copied { background: #4ade80; }

.tut__qqcopy {
  color: var(--accent);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tut__qqcopy.is-copied { color: #4ade80; }

/* ============================================================
 * 微信内打开提示(微信拦截 APK,引导用浏览器打开)
 * ============================================================ */
.wx-tip {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(7, 6, 18, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 72px 40px 0;
  text-align: right;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wx-tip.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* 指向右上角 ··· 的箭头 */
.wx-tip__arrow {
  width: 46px;
  height: 46px;
  margin-right: 8px;
  background:
    radial-gradient(circle at center, transparent 10px, transparent 10px);
}

.wx-tip__arrow::before {
  content: '';
  display: block;
  width: 46px;
  height: 46px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M38 6c-2 8-8 13-16 15' stroke='%23a78bfa' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Cpath d='M18 18l5 5-7 1z' fill='%23a78bfa'/%3E%3C/svg%3E");
}

.wx-tip__title {
  margin: 14px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-0);
}

.wx-tip__desc {
  margin: 0 0 24px;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-1);
}

.wx-tip__close {
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--text-1);
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wx-tip__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 900px) {
  .page { padding: 32px 24px 56px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0 40px;
  }
  .hero__display { display: none; }
}

@media (max-width: 520px) {
  .dl-btn { gap: 12px; padding: 22px 4px; }
  .dl-btn__hint { display: none; }
  .dl-btn__label { font-size: 18px; }
  .wx-tip { padding: 60px 24px 0; align-items: center; text-align: center; }
  .wx-tip__arrow { margin-right: 0; }
  .hero__title {
    flex-wrap: wrap;
    font-size: 40px;
    gap: 14px;
  }
  .hero__logo { height: 1.3em; }
  .hero__title-text { flex: 1 1 100%; }
}