/* ============================================================
   安卓频道 /android/ 四类页面样式（频道总页 / 子频道 / 列表 / 内容）
   复用 style.css 的 :root 变量；类名统一 and- 前缀，避免污染其他页面
   ============================================================ */

/* ---------- 公共：页头卡 ---------- */
.and-pagehead { margin: 14px 0 0; padding: 22px 26px; background: linear-gradient(135deg, var(--green-soft), #fff 62%), #fff; border: 1px solid var(--soft-line); border-radius: var(--radius); }
.and-pagehead h1 { margin: 0; font-size: 24px; font-weight: 700; color: var(--ink); }
.and-pagehead h1::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--green); margin-top: 8px; }
.and-pagehead p { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.and-pagehead .cnt { display: inline-block; margin-left: 12px; vertical-align: 5px; font-size: 12px; font-weight: 400; color: var(--green-dark); background: #fff; border: 1px solid #bbf7d0; border-radius: 12px; padding: 3px 12px; }

/* 频道总页页头：左文案 + 右双入口 */
.and-pagehead--channel { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.and-pagehead__lead { flex: 1; min-width: 320px; }
.and-entry { display: flex; gap: 14px; }
.and-entry a { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: var(--radius); font-weight: 600; font-size: 16px; transition: transform .18s ease, box-shadow .18s ease; }
.and-entry a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.and-entry .and-entry__app { background: var(--green-soft); color: var(--green-dark); border: 1px solid #cdeadb; }
.and-entry .and-entry__game { background: #fff7e8; color: #b45309; border: 1px solid #f5e0b8; }
.and-entry__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.and-entry__app .and-entry__ico { background: var(--green); }
.and-entry__game .and-entry__ico { background: #f59e0b; }
.and-entry__ico svg { width: 22px; height: 22px; }
.and-entry small { display: block; font-size: 11px; font-weight: 400; color: var(--faint); margin-top: 2px; }

/* ---------- 公共：吸顶分类胶囊条 ---------- */
.and-catbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.and-catbar a { padding: 6px 15px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: color .15s ease, background-color .15s ease; }
.and-catbar a:hover { color: var(--green-dark); background: var(--green-soft); }
.and-catbar a.is-on { background: var(--green); color: #fff; font-weight: 600; }

/* ---------- 公共：两栏布局 ---------- */
.and-layout { display: flex; gap: 20px; margin-top: 20px; margin-bottom: 24px; align-items: flex-start; }
.and-main { flex: 1; min-width: 0; }
.and-side { width: 300px; flex-shrink: 0; }

/* ---------- 公共：内容区块卡 ---------- */
.and-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.and-sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.and-sec__head h2 { font-size: 17px; font-weight: 700; color: var(--ink); padding-left: 12px; border-left: 4px solid var(--green); }
.and-sec__head h2.is-game { border-left-color: #f59e0b; }
.and-sec__head .more { font-size: 13px; color: var(--faint); }
.and-sec__head .more:hover { color: var(--green-dark); }
.and-sec > h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--green); }

/* ---------- 公共：应用商店式卡片网格 ---------- */
.and-appgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.and-appcard { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.and-appcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdeadb; }
.and-appcard__ico { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f4f3; box-shadow: 0 1px 5px rgba(17, 24, 39, .10); }
.and-appcard__t { min-width: 0; }
.and-appcard__t b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.and-appcard__t span { font-size: 11.5px; color: var(--faint); }
.and-appcard:hover .and-appcard__t b { color: var(--green-dark); }

/* 频道总页：竖排商店卡（图标在上，居中，悬停出下载按钮） */
.and-store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.and-storecard { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.and-storecard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdeadb; }
.and-storecard__ico { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; object-fit: cover; background: #f1f4f3; box-shadow: 0 2px 8px rgba(17, 24, 39, .10); }
.and-storecard h3 { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.and-storecard__meta { font-size: 12px; color: var(--faint); margin-top: 3px; }
.and-storecard__meta b { color: var(--green-dark); font-weight: 500; }
.and-storecard__dl { margin-top: 10px; display: inline-block; padding: 5px 22px; border-radius: 999px; border: 1px solid var(--green); color: var(--green-dark); font-size: 13px; transition: color .15s ease, background-color .15s ease; }
.and-storecard:hover .and-storecard__dl { background: var(--green); color: #fff; }
.and-storecard__new { position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 999px; }

/* 分类速达胶囊 */
.and-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.and-cats a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: #fff; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.and-cats a:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.and-cats--game a:hover { border-color: #f59e0b; color: #b45309; background: #fff7e8; }

.and-note { border: 1px dashed #cdeadb; background: var(--green-soft); border-radius: var(--radius); padding: 12px 16px; font-size: 12.5px; color: var(--green-dark); margin-bottom: 20px; }

/* ---------- 列表页：资源行 ---------- */
.and-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.and-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background-color .15s ease; }
.and-row:last-child { border-bottom: 0; }
.and-row:hover { background: #fafcfb; }
.and-row__ico { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; object-fit: cover; background: #f1f4f3; box-shadow: 0 1px 6px rgba(17, 24, 39, .10); }
.and-row__info { flex: 1; min-width: 0; }
.and-row__name { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.and-row:hover .and-row__name { color: var(--green-dark); }
.and-row__new { background: #ef4444; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.and-row__desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.and-row__tags { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.and-row__tags i { font-style: normal; font-size: 11px; color: var(--muted); background: #f1f4f3; padding: 1px 9px; border-radius: 999px; }
.and-row__right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.and-row__size { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--faint); min-width: 72px; text-align: right; }
.and-row__dl { padding: 8px 24px; border-radius: 999px; border: 1px solid var(--green); color: var(--green-dark); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.and-row:hover .and-row__dl { background: var(--green); color: #fff; }

/* ---------- 内容页：Hero ---------- */
.and-hero { display: flex; gap: 26px; margin-top: 14px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.and-hero__ico { width: 110px; height: 110px; border-radius: 26px; object-fit: cover; flex-shrink: 0; background: #f1f4f3; box-shadow: 0 6px 18px rgba(17, 24, 39, .14); }
.and-hero__info { flex: 1; min-width: 0; }
.and-hero__info h1 { font-size: 23px; font-weight: 700; color: var(--ink); }
.and-hero__sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.and-params { display: grid; grid-template-columns: repeat(4, auto); gap: 9px 34px; margin-top: 16px; font-size: 13px; justify-content: start; }
.and-params div { color: var(--ink); }
.and-params span { color: var(--faint); margin-right: 6px; }
.and-params a { color: var(--link); }
.and-params a:hover { color: var(--link-hover); }
.and-hero__actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
/* 三个操作按钮：等高等宽，仅颜色不同 */
.and-act { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 48px; min-width: 134px; padding: 0 22px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease; }
.and-act svg { width: 18px; height: 18px; flex-shrink: 0; }
.and-act--dl { background: var(--green); box-shadow: 0 6px 16px rgba(22, 163, 74, .26); }
.and-act--dl:hover { background: var(--green-dark); }
.and-act--pc { background: #2563eb; box-shadow: 0 6px 16px rgba(37, 99, 235, .22); }
.and-act--pc:hover { background: #1d4ed8; }
.and-act--report { background: #ea7a17; box-shadow: 0 6px 16px rgba(234, 122, 23, .22); }
.and-act--report:hover { background: #c2630f; }
.and-act--off { background: #cbd5d1; color: #fff; cursor: not-allowed; box-shadow: none; }
.and-hero__count { font-size: 12px; color: var(--faint); margin-left: 2px; }
/* 扫码区 */
.and-qr { flex-shrink: 0; text-align: center; border: 1px dashed #cdeadb; background: var(--green-soft); border-radius: var(--radius); padding: 14px 18px; }
.and-qr img { width: 112px; height: 112px; border-radius: 8px; margin: 0 auto 8px; background: #fff; padding: 6px; }
.and-qr b { display: block; font-size: 13px; color: var(--green-dark); }
.and-qr span { font-size: 11px; color: var(--muted); }

/* 正版购买条 */
.and-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; padding: 14px 18px; background: var(--green-soft); border: 1px solid var(--soft-line); border-radius: var(--radius); }
.and-buy__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.and-buy__price { color: #b45309; font-weight: 600; }
.and-buy a { display: inline-block; padding: 7px 18px; background: var(--green); color: #fff; border-radius: 8px; font-size: 13px; }
.and-buy a.and-buy--coupon { background: #b45309; }

/* ---------- 内容页：吸顶锚点导航 ---------- */
.and-anchorbar { position: sticky; top: 0; z-index: 30; display: flex; overflow-x: auto; margin-top: 16px; padding: 0 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.and-anchorbar a { flex: 0 0 auto; white-space: nowrap; padding: 13px 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease; }
.and-anchorbar a.is-active, .and-anchorbar a:hover { color: var(--green-dark); border-bottom-color: var(--green); }

/* ---------- 内容页：正文 ---------- */
.and-article p { margin: 0 0 13px; font-size: 14.5px; line-height: 1.9; color: var(--text); }
.and-article h3 { font-size: 15.5px; font-weight: 700; margin: 18px 0 10px; color: var(--green-dark); }
.and-article img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.and-article a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.and-article a:hover { color: var(--link-hover); }

/* 应用截图复用全局 .cover-grid--single 轮播（与电脑软件/单机游戏一致），此处不再单独定义 */

/* ---------- 内容页：相关推荐 ---------- */
.and-relgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.and-relcard { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.and-relcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdeadb; }
.and-relcard img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f1f4f3; }
.and-relcard__t { min-width: 0; }
.and-relcard__t b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.and-relcard__t span { font-size: 11.5px; color: var(--faint); }
.and-relcard:hover .and-relcard__t b { color: var(--green-dark); }

/* ---------- 内容页：相关文章 ---------- */
.and-newslist { display: grid; grid-template-columns: 1fr; gap: 0; }
.and-newsitem { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px 0; color: var(--ink); }
.and-newsitem::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.and-newsitem span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; transition: color .15s ease; }
.and-newsitem:hover span { color: var(--green-dark); }

/* ---------- 侧栏：排行 ---------- */
.and-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.and-panel h2, .and-panel h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--green); }
.and-panel h3.is-game { border-left-color: #f59e0b; }
.and-panel .box-title { display: flex; align-items: center; justify-content: space-between; }
.and-panel .box-title h2, .and-panel .box-title h3 { margin-bottom: 0; }
.and-rank { list-style: none; margin: 0; padding: 0; }
.and-rank li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.and-rank li:last-child { border-bottom: 0; }
.and-rank__no { width: 20px; height: 20px; border-radius: 6px; background: #eef1f3; color: var(--faint); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.and-rank li:nth-child(1) .and-rank__no { background: #ef4444; color: #fff; }
.and-rank li:nth-child(2) .and-rank__no { background: #f97316; color: #fff; }
.and-rank li:nth-child(3) .and-rank__no { background: #f59e0b; color: #fff; }
.and-rank__ico { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #f1f4f3; }
.and-rank__t { flex: 1; min-width: 0; }
.and-rank__t b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.and-rank__t span { font-size: 11px; color: var(--faint); }
.and-rank li:hover b { color: var(--green-dark); }

/* ---------- 侧栏：装机必备推广卡 ---------- */
.and-promo { background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: var(--radius); padding: 20px; color: #fff; margin-bottom: 20px; }
.and-promo h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.and-promo p { font-size: 12px; opacity: .85; margin-bottom: 12px; }
.and-promo a { display: inline-block; background: #fff; color: var(--green-dark); font-weight: 600; font-size: 13px; padding: 7px 20px; border-radius: 999px; }

/* 分页复用全局 .pager.xz-pager（含 .total 隐藏规则），此处不再单独定义 */
/* 浮动「顶部/底部」导航已迁至全局 footer + style.css 的 .xz-railnav，全站通用 */

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .and-layout { flex-direction: column; align-items: stretch; }
  .and-side { width: 100%; }
  .and-hero { flex-wrap: wrap; }
  .and-appgrid, .and-store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .and-params { grid-template-columns: repeat(2, auto); }
  .and-relgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .and-pagehead--channel .and-entry { width: 100%; }
  .and-row__desc { display: none; }
}
@media (max-width: 640px) {
  .and-appgrid, .and-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .and-relgrid { grid-template-columns: 1fr; }
  .and-hero { padding: 20px; }
  .and-hero__ico { width: 80px; height: 80px; border-radius: 20px; }
  .and-qr { display: none; }
  .and-entry a { flex: 1; justify-content: center; }
  .and-anchorbar a { padding: 12px 14px; font-size: 13.5px; }
  .and-newslist { grid-template-columns: 1fr; }
  .and-row { padding: 13px 14px; gap: 12px; }
  .and-row__size { display: none; }
  .and-row__dl { padding: 7px 16px; }
  .and-params { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .and-appcard, .and-storecard, .and-relcard, .and-shot, .and-entry a { transition: none; }
  .and-appcard:hover, .and-storecard:hover, .and-relcard:hover, .and-shot:hover, .and-entry a:hover { transform: none; }
}
