/*
 * go9k.top 专用下载页样式（按 2026-11-17 定稿原型：浅绿底 + 橙色新人横幅 + 网站图标 + 粉色成人专区）。
 * 手机优先，不加载大图和自定义字体，保证低端安卓机在慢网络下首屏马上出来。
 * 首屏要求：成人专区必须在手机首屏内完整露出。go9k.js 按真实可视高度给 <html> 逐级加
 * g-fit-1 ~ g-fit-6，下面的同名规则一级比一级紧凑（只在手机宽度下生效）。
 * @author node
 */
:root {
  --g-bg: #eef8f4;
  --g-ink: #13201c;
  --g-sub: #5d6d68;
  --g-line: #dcebe5;
  --g-green: #12855f;
  --g-green-press: #0d704f;
  --g-green-soft: #e3f4ec;
  --g-pink: #e2456f;
  --g-pink-ink: #b3244c;
  --g-warn: #8a5a00;
  --g-warn-bg: #fff4dc;
  --g-radius: 16px;
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, #f7fcfa 0, var(--g-bg) 420px);
  background-color: var(--g-bg);
  color: var(--g-ink);
  font: 15px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g-green); }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

.g-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* 顶栏 */
.g-header { background: #fff; border-bottom: 1px solid var(--g-line); }
.g-header-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.g-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--g-ink); text-decoration: none; font-size: 18px; }
.g-brand img { border-radius: 9px; }
.g-kf { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px 5px 11px; border-radius: 999px; background: var(--g-green-soft); color: var(--g-green); font-size: 14px; font-weight: 600; text-decoration: none; }
.g-kf svg { flex: none; width: 17px; height: 17px; }

/* 手机：两栏都“拆开”，设备卡片和扫码排到最后（点“其他机型下载”才展开并滑过去） */
.g-main { display: flex; flex-direction: column; }
.g-col { display: contents; }
.g-devices { order: 20; }
.g-qr { order: 21; }

.g-title { margin: 14px 0 12px; font-size: 26px; text-align: center; letter-spacing: .5px; }
.g-title i { color: var(--g-green); font-style: normal; margin: 0 4px; }

/* 新人横幅：整页最醒目的一块，右侧按钮就是主下载 */
.g-banner {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 14px; border-radius: 18px;
  background: linear-gradient(100deg, #ff5b2e 0%, #ff8a2b 55%, #ffb43c 100%);
  box-shadow: 0 8px 20px -10px rgba(255, 95, 40, .7); color: #fff;
}
.g-gift { flex: none; width: 46px; height: 46px; }
.g-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.g-tag { padding: 0 8px; border-radius: 999px; background: #fff; color: #e2401c; font-size: 12px; font-weight: 700; line-height: 1.6; }
.g-banner-text strong { margin-top: 3px; font-size: 20px; line-height: 1.25; white-space: nowrap; }
.g-banner-text em { font-style: normal; color: #fff3a6; }
.g-banner-sub { margin-top: 2px; font-size: 12px; opacity: .95; }
.g-banner-cta { flex: none; }
.g-get {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 14px;
  border: 0; border-radius: 16px; background: #1d2925; color: #ffe38a;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .08s ease;
}
/* 两行文字：“下载”大、白色，“免费领取”小、金色 */
.g-get span { display: block; }
.g-get span:first-child { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.g-get span:last-child { font-size: 12px; font-weight: 600; }
.g-get:active { transform: scale(.96); }
.g-get.is-wait { color: #c9d3cf; cursor: default; font-weight: 500; }
.g-get.is-off { background: #fff; color: #e2401c; }
.g-meta { margin: 8px 2px 0; color: var(--g-sub); font-size: 13px; }
.g-meta.is-warn { padding: 8px 10px; border-radius: 10px; background: var(--g-warn-bg); color: var(--g-warn); }

.g-more {
  display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none;
  color: var(--g-green); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.g-more span { display: inline-block; margin-left: 2px; }

/* 全球网站 */
.g-sites { margin-top: 12px; text-align: center; }
.g-sites h2 { font-size: 20px; }
.g-sites-sub { margin: 2px 0 12px; color: var(--g-sub); font-size: 13px; }
.g-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 4px; }
.g-grid li { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; font-size: 12px; line-height: 1.2; color: #2b3a35; white-space: nowrap; }
.g-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px;
  box-shadow: 0 3px 10px -4px rgba(19, 32, 28, .35), inset 0 0 0 1px rgba(19, 32, 28, .05);
}
.g-ico svg { width: 72%; height: 72%; }

/* 成人专区：粉色底和描边跟上面区分开，站名只显示文字、不放链接 */
.g-adult {
  margin-top: 16px; padding: 10px 8px 12px; border: 1px solid #f6b6c6; border-radius: 18px;
  background: linear-gradient(180deg, #fff0f3, #ffe4ea);
}
.g-adult-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.g-18 { flex: none; padding: 1px 7px; border-radius: 8px; background: var(--g-pink); color: #fff; font-size: 13px; font-weight: 800; }
.g-adult-head h2 { font-size: 17px; color: var(--g-pink-ink); }
.g-adult-tease { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--g-pink-ink); font-size: 12.5px; text-align: right; white-space: nowrap; }
.g-adult-tease svg { flex: none; width: 13px; height: 13px; }
.g-adult-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.g-adult-grid li { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; color: #8e1f40; font-size: 12.5px; font-weight: 600; line-height: 1.2; }
/* 站点图片：和图标一样大的圆形头像，两张图淡入淡出轮播；尺寸和 .g-adult-ico 一起随首屏收紧变小 */
.g-adult-pic {
  position: relative; display: block; width: 54px; height: 54px; border-radius: 50%;
  background: #f3b9c9; box-shadow: 0 4px 12px -6px rgba(226, 48, 95, .8);
}
.g-adult-pic img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 25%; opacity: 0; transition: opacity .8s ease; }
.g-adult-pic img.is-on { opacity: 1; }
.g-adult-pic b, .g-adult-ico b { position: absolute; padding: 0 4px; border: 1px solid #f39ab2; border-radius: 6px; background: #fff; color: var(--g-pink); font-size: 10px; line-height: 1.4; }
.g-adult-pic b { top: -4px; right: -8px; z-index: 1; }
/* 没配图片的站点：粉色圆形图标 */
.g-adult-ico {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(145deg, #ff6f8f, #e2305f); box-shadow: 0 4px 12px -5px rgba(226, 48, 95, .8);
}
.g-adult-ico svg { width: 56%; height: 56%; }
.g-adult-ico b { top: -4px; right: -8px; }

/* 页脚里的 18 岁提示：小字，放在页面最底部 */
.g-note { margin: 0 0 6px; color: var(--g-sub); font-size: 11.5px; line-height: 1.5; text-align: center; }

/* 设备卡片：默认显示；手机上排在页面最底部，点「其他机型下载」滑过来 */
.g-devices { margin-top: 24px; scroll-margin-top: 12px; }
.g-devices h2 { margin-bottom: 12px; font-size: 18px; text-align: center; }
.g-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--g-line); border-radius: var(--g-radius); background: #fff; }
.g-card.is-mine { border: 2px solid var(--g-green); padding: 11px; }
.g-card-name { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.g-card-name svg { flex: none; width: 18px; height: 18px; }
.g-rec { margin-left: auto; padding: 0 7px; border-radius: 999px; background: #ff6a3d; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.7; }
.g-dl, .g-dl-alt {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 8px; border-radius: 999px;
  font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.25;
}
.g-dl { background: var(--g-green); color: #fff; }
.g-dl:hover { background: var(--g-green-press); }
.g-dl-alt { min-height: 36px; border: 1px solid var(--g-line); background: #fff; color: #33433e; font-weight: 600; }
.g-dl.is-off, .g-dl-alt.is-off { background: #f1f4f3; color: #8a9893; font-weight: 500; }
.g-get:focus-visible, .g-dl:focus-visible, .g-dl-alt:focus-visible, .g-more:focus-visible, .g-kf:focus-visible { outline: 2px solid var(--g-ink); outline-offset: 2px; }

/* 电脑访问时的扫码区 */
.g-qr { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 14px; border: 1px solid var(--g-line); border-radius: var(--g-radius); background: #fff; }
.g-qr-code { flex: none; width: 132px; height: 132px; padding: 6px; border-radius: 10px; background: #fff; }
.g-qr-code img, .g-qr-code canvas { display: block; width: 120px; height: 120px; }
.g-qr p { margin: 0; }
.g-qr strong { display: block; font-size: 17px; }
.g-qr span { color: var(--g-sub); font-size: 14px; }

.g-foot { padding-top: 24px; padding-bottom: 28px; color: var(--g-sub); font-size: 12px; text-align: center; }
.g-foot p { margin: 0; }
.g-foot a { color: var(--g-sub); }
.g-foot span { margin: 0 8px; }

/* ---------- 矮屏手机逐级收紧（go9k.js 量出成人专区超出可视高度时才加） ---------- */
@media (max-width: 959px) {
  /* 1 级：收紧间距和标题 */
  .g-fit-1 .g-header-in { min-height: 48px; }
  .g-fit-1 .g-brand img { width: 30px; height: 30px; }
  .g-fit-1 .g-title { margin: 8px 0 8px; font-size: 22px; }
  .g-fit-1 .g-banner { padding-top: 10px; padding-bottom: 10px; }
  .g-fit-1 .g-more { margin-top: 4px; }
  .g-fit-1 .g-sites { margin-top: 6px; }
  .g-fit-1 .g-sites-sub { margin-bottom: 8px; }
  .g-fit-1 .g-grid { row-gap: 9px; }
  .g-fit-1 .g-adult { margin-top: 10px; padding-bottom: 10px; }
  .g-fit-1 .g-adult-head { padding-bottom: 7px; }
  /* 2 级：网站图标缩小一号 */
  .g-fit-2 .g-ico { width: 46px; height: 46px; border-radius: 14px; }
  /* 3 级：缩小图标和横幅 */
  .g-fit-3 .g-ico { width: 42px; height: 42px; border-radius: 12px; }
  .g-fit-3 .g-adult-ico, .g-fit-3 .g-adult-pic { width: 46px; height: 46px; }
  .g-fit-3 .g-gift { width: 38px; height: 38px; }
  .g-fit-3 .g-banner-text strong { font-size: 18px; }
  .g-fit-3 .g-get { min-height: 44px; }
  .g-fit-3 .g-sites h2 { font-size: 18px; }
  /* 4 级：去掉和顶栏重复的大标题、网站区副标题 */
  .g-fit-4 .g-title, .g-fit-4 .g-sites-sub { display: none; }
  .g-fit-4 .g-banner { margin-top: 8px; }
  /* 5 级：成人站点图标、图片再缩小 */
  .g-fit-5 .g-adult-ico, .g-fit-5 .g-adult-pic { width: 40px; height: 40px; }
  .g-fit-5 .g-adult-grid li { gap: 3px; }
  /* 6 级：去掉网站区标题，只留图标 */
  .g-fit-6 .g-sites h2 { display: none; }
  .g-fit-6 .g-sites { margin-top: 4px; }
}

/* 窄手机（360 宽左右）：横幅里礼物、标题、按钮三块挤在一行，标题缩小一号，避免“会员”被按钮挡住 */
@media (max-width: 374px) {
  .g-banner { gap: 8px; }
  .g-gift, .g-fit-3 .g-gift { width: 40px; height: 40px; }
  .g-banner-text strong, .g-fit-3 .g-banner-text strong { font-size: 18px; }
  /* 成人专区标题行：窄屏缩小一号，保证“热门成人网站，连上即看”一行放得下 */
  .g-adult-head { gap: 5px; }
  .g-adult-head h2 { font-size: 15px; }
  .g-adult-head .g-18 { padding: 0 5px; font-size: 12px; }
  .g-adult-tease { font-size: 11px; }
  .g-adult-grid { gap: 5px; }
}

/* 很窄的手机（320 宽）：再缩小一号 */
@media (max-width: 339px) {
  .g-banner { padding-left: 10px; padding-right: 10px; }
  .g-gift, .g-fit-3 .g-gift { width: 32px; height: 32px; }
  .g-banner-text strong, .g-fit-3 .g-banner-text strong { font-size: 16px; }
  .g-get { padding: 6px 9px; }
  .g-get span:first-child { font-size: 16px; }
  .g-grid li { font-size: 10.5px; }
  .g-adult-grid li { font-size: 11.5px; }
  .g-adult-tease { font-size: 10.5px; }
  .g-adult-head h2 { font-size: 14px; }
  .g-cards { gap: 8px; }
  .g-dl, .g-dl-alt { font-size: 13px; }
}

/* 平板：内容宽一些，图标大一些 */
@media (min-width: 600px) {
  .g-wrap { max-width: 620px; }
  .g-ico { width: 60px; height: 60px; }
  .g-adult-ico, .g-adult-pic { width: 60px; height: 60px; }
}

/* 电脑：左右两栏，设备卡片直接显示，不需要“其他机型下载” */
@media (min-width: 960px) {
  .g-wrap { max-width: 1080px; padding: 0 24px; }
  .g-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 28px; }
  .g-col { display: block; }
  .g-title { margin: 0 0 18px; font-size: 32px; text-align: left; }
  .g-banner { padding: 18px 18px 18px 20px; }
  .g-banner-text strong { font-size: 24px; }
  .g-banner-sub { font-size: 13px; }
  .g-get { min-height: 54px; padding: 8px 20px; font-size: 16px; }
  .g-more { display: none; }
  .g-devices { margin-top: 22px; }
  .g-devices h2 { text-align: left; }
  .g-sites { margin-top: 6px; padding: 20px; border: 1px solid var(--g-line); border-radius: 18px; background: #fff; }
  .g-adult { margin-top: 18px; padding: 14px 12px 16px; }
  .g-foot { padding-top: 36px; }
}

/* 手机上隐藏右下角的客服悬浮按钮：它会盖住首屏底部的成人专区；顶栏有「在线客服」入口。
   只隐藏“打开”按钮，聊天窗口打开后的“关闭”按钮（woot--close）照常显示 */
@media (max-width: 959px) {
  .woot-widget-bubble:not(.woot--close) { display: none !important; }
}

/* ---------- 下载后的弹窗：手机上是底部抽屉，电脑上居中 ---------- */
/* 弹窗打开时客服气泡会盖住弹窗底部；弹窗里有“联系在线客服”入口，先隐藏气泡 */
html.g-sheet-open .woot-widget-bubble { display: none !important; }
html.g-sheet-open { overflow: hidden; }
.g-sheet-backdrop { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .5); }
.g-sheet {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0;
  background: #fff; color: var(--g-ink);
}
.g-sheet h2 { padding-right: 36px; font-size: 20px; }
.g-sheet h3 { margin: 18px 0 8px; font-size: 15px; }
.g-sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f4f3; color: var(--g-sub); font-size: 20px; line-height: 1; cursor: pointer; }
.g-sheet-lead { margin: 8px 0 0; color: var(--g-sub); font-size: 15px; }
.g-tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--g-warn-bg); color: var(--g-warn); font-size: 14px; }
.g-sheet-steps { margin: 0; padding-left: 22px; font-size: 15px; list-style: decimal; }
.g-sheet-steps li { margin-bottom: 8px; }
.g-sheet-actions { display: grid; gap: 10px; margin-top: 18px; }
.g-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 10px 18px;
  border: 0; border-radius: 999px; background: var(--g-green); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.g-btn-ghost { background: var(--g-green-soft); color: var(--g-green); }
.g-link-btn { padding: 8px 0; border: 0; background: none; color: var(--g-green); font: inherit; font-size: 15px; text-align: center; text-decoration: none; cursor: pointer; }
.g-sheet-status { min-height: 1.6em; margin: 8px 0 0; color: var(--g-sub); font-size: 13px; text-align: center; }
.g-abi { margin-top: 12px; border-top: 1px solid var(--g-line); padding-top: 12px; font-size: 14px; }
.g-abi summary { color: var(--g-sub); cursor: pointer; }
.g-abi p { margin: 8px 0; color: var(--g-sub); }
.g-abi-opt { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f1f4f3; color: var(--g-ink); text-decoration: none; }
.g-abi-opt.is-on { background: var(--g-green-soft); color: var(--g-green); }
.g-abi-fb { margin-top: 14px !important; }
.g-abi-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.g-abi-reasons button { padding: 6px 12px; border: 0; border-radius: 999px; background: #f1f4f3; color: var(--g-ink); font: inherit; font-size: 13px; cursor: pointer; }
.g-sheet-help { margin: 16px 0 0; font-size: 14px; text-align: center; }
.g-sheet-help a { color: var(--g-sub); }
@media (min-width: 760px) {
  .g-sheet-backdrop { align-items: center; }
  .g-sheet { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-get, .g-adult-pic img { transition: none; }
}
