/* ==========================================================================
   appcratehq · 前台（发现 / 排行榜 / 分类浏览 / 应用详情）
   严格对照 redesign/redesign.css 与 redesign/*.html 落地：
   色彩、圆角、字号、间距全部沿用原型令牌，不另造视觉语言。
   本表最后载入，只作用于 .of-market（主站）与 .app-detail-page（详情页），
   不触碰后台 .admin-view。
   ========================================================================== */

/* ---------- 设计令牌（对齐 redesign.css :root） ---------- */
.of-market,
.app-detail-page {
  --of-bg: #ffffff;
  --of-bg-alt: #f3f6f4;
  --of-text: #15201c;
  --of-text-2: #55635d;
  --of-text-3: #7f8d87;
  --of-line: #cfd8d3;
  --of-line-2: #e5eae7;
  --of-primary: #0c8264;
  --of-primary-hover: #0a6e54;
  --of-tint: #e2f1ea;
  --of-fill: #edf1ef;
  --of-fill-hover: #e0e7e3;
  --of-dark: #14211c;
  --of-star: #e8a020;
  --of-danger: #c4322a;
  --of-r-sm: 10px;
  --of-r-md: 14px;
  --of-r-lg: 16px;
  --of-r-xl: 22px;
  --of-nav-h: 52px;
}

.of-market {
  min-width: 0;
  background: var(--of-bg);
  color: var(--of-text);
  font-family: "Avenir Next", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
.app-detail-page {
  background: var(--of-bg);
  color: var(--of-text);
  font-family: "Avenir Next", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 原型 body 是纯白底：旧版整站 mint 底会让内容区发灰（--of-bg-alt 只用于页脚与悬停） */
body[data-app-role="frontend"],
body[data-app-role="local"] { background: #ffffff; }

/* 详情页不在 .of-market 内，图标描边/尺寸需要自己兜一套（否则 <circle>/<path> 会被填成实心） */
.app-detail-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 原型内容宽度 1200 + 左右 22（覆盖旧版 1240 / 96） */
.of-market .of-container {
  width: auto;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- 顶部导航（原型 .nav） ---------- */
#of-topbar { position: sticky; top: 0; z-index: 60; }

/* 吸顶由外层 #of-topbar（sticky/top:0/z-index:60，对应原型 .nav）提供；
   内层只负责视觉。用 min-height 兜底：极端窄视口也不让内容溢出盖住下方 */
.of-market .of-navbar {
  position: relative;
  min-height: var(--of-nav-h);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--of-line-2);
}
.of-market .of-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: auto;
  max-width: 1200px;
  height: auto;
  min-height: var(--of-nav-h);
  margin-inline: auto;
  padding-inline: 22px;
}
.of-market .of-nav-inner .of-logo { gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.of-market .of-nav-inner .of-logo > svg { width: 30px; height: 30px; stroke-width: 1.7; color: var(--of-primary); }
.of-market .of-nav-inner .of-logo > span {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding-bottom: 3px;
  font-family: "Avenir Next", "Nunito Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}
.of-market .of-nav-inner .of-logo > span::after {
  position: absolute;
  right: -18px;
  bottom: -2px;
  left: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--of-primary);
  content: "";
}
.of-market .of-nav-inner .of-logo-light {
  display: inline-block;
  margin-left: 1px;
  color: var(--of-primary);
  font-family: inherit;
  font-size: 0.92em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.of-market .of-nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
/* 触控目标：导航链接原本只有行高（约 21px），用 min-height 撑出可点区域，文字位置不变。 */
.of-market .of-nav a { padding: 0; color: var(--of-text); font-size: 15px; font-weight: 500; opacity: 0.82; display: inline-flex; align-items: center; min-height: 40px; }
.of-market .of-nav a:hover { opacity: 1; color: var(--of-text); }
.of-market .of-nav .of-nav-active { opacity: 1; font-weight: 600; color: var(--of-primary); }

.of-market .of-nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.of-market .of-nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 190px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--of-r-sm);
  background: var(--of-fill);
  color: var(--of-text-3);
}
.of-market .of-nav-search:focus-within { box-shadow: 0 0 0 3px var(--of-tint); }
.of-market .of-nav-search svg { width: 14px; height: 14px; stroke-width: 2; color: var(--of-text-3); }
.of-market .of-nav-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--of-text); }
.of-market .of-nav-search input::placeholder { color: var(--of-text-3); }

/* 导航里的登录按钮（原型为 btn-blue 默认尺寸） */
.of-market #front-account-slot .of-button { padding: 9px 18px; font-size: 14px; min-height: 0; }
.of-market .front-user-name { font-size: 14.5px; color: var(--of-text); }

/* ---------- 按钮（原型 .btn） ---------- */
.of-market .of-button,
.app-detail-page .of-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 0;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--of-r-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.of-market .of-button:active,
.app-detail-page .of-button:active { transform: scale(0.96); }
.of-market .of-button svg,
.app-detail-page .of-button svg { width: 13px; height: 13px; }

.of-market .of-button-primary,
.app-detail-page .of-button-primary { background: var(--of-primary); border-color: transparent; color: #fff; }
.of-market .of-button-primary:hover,
.app-detail-page .of-button-primary:hover { background: var(--of-primary-hover); color: #fff; }
.of-market .of-button-gray { background: var(--of-fill); color: var(--of-text); }
.of-market .of-button-gray:hover { background: var(--of-fill-hover); color: var(--of-text); }
.of-market .of-button-outline,
.app-detail-page .of-button-outline { background: transparent; border: 0; color: var(--of-primary); box-shadow: inset 0 0 0 1px var(--of-primary); }
.of-market .of-button-outline:hover,
.app-detail-page .of-button-outline:hover { background: var(--of-tint); color: var(--of-primary); }
.of-market .of-button-white,
.app-detail-page .of-button-white { background: #fff; color: var(--of-primary); }
.of-market .of-button-white:hover { background: #f0f0f2; color: var(--of-primary); }
.of-market .of-button-lg,
.app-detail-page .of-button-lg { font-size: 16px; padding: 12px 26px; }
.of-market .of-button-small,
.app-detail-page .of-button-small { font-size: 13px; padding: 6px 14px; }

/* ---------- 应用图标（原型 .app-icon，22% 圆角） ---------- */
.of-market .of-app-icon,
.app-detail-page .of-app-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 43px;
  height: 43px;
  border-radius: 22%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 0;
}
.of-market .of-app-icon svg,
.app-detail-page .of-app-icon svg { width: 52%; height: 52%; stroke-width: 1.8; }
.of-market .of-app-icon-s56,
.app-detail-page .of-app-icon-s56 { width: 56px; height: 56px; }
.of-market .of-app-icon-s64,
.app-detail-page .of-app-icon-s64 { width: 64px; height: 64px; }
.of-market .of-app-icon-s72,
.app-detail-page .of-app-icon-s72 { width: 72px; height: 72px; }
.of-market .of-app-icon-s96,
.app-detail-page .of-app-icon-s96 { width: 96px; height: 96px; }
.of-market .of-app-icon-cat { width: 44px; height: 44px; }

.of-market .of-orange, .app-detail-page .of-orange { background: #fbeadb; color: #d96a12; }
.of-market .of-blue, .app-detail-page .of-blue { background: #e2ecfb; color: #2f6bd0; }
.of-market .of-mint, .app-detail-page .of-mint { background: #ddf3e9; color: #0e8f6e; }
.of-market .of-lilac, .app-detail-page .of-lilac { background: #eee9fb; color: #7350c8; }
.of-market .of-peach, .app-detail-page .of-peach { background: #fceadf; color: #e07a3f; }
.of-market .of-slate, .app-detail-page .of-slate { background: #e8edf1; color: #5a6b7a; }
.of-market .of-app-icon-button { display: block; width: auto; height: auto; min-height: 0; padding: 0; border: 0; background: transparent; line-height: 0; }

/* ---------- Hero（原型 .hero） ---------- */
.of-market .of-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-block: 72px 64px;
  text-align: left;
  scroll-margin-top: 64px;
}
.of-market .of-hero[hidden] { display: none; }
.of-market .of-hero-copy { max-width: none; }
.of-market .of-overline,
.of-market .of-hero-copy .of-overline {
  margin: 0 0 8px;
  color: var(--of-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}
.of-market .of-hero-copy h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.06;
}
.of-market .of-hero-copy h1 em { color: var(--of-primary); font-style: normal; }
.of-market .of-hero-description { margin: 18px 0 0; max-width: 30em; color: var(--of-text-2); font-size: 17px; line-height: 1.55; }
.of-market .of-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.of-market .of-hero-actions .of-button { min-height: 0; padding: 12px 26px; font-size: 16px; }
.of-market .of-hero-actions .of-button svg { width: 13px; height: 13px; }
.of-market .of-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--of-text-3); font-size: 12px; }
.of-market .of-hero-meta b { color: var(--of-text); font-weight: 600; margin-right: 2px; }

/* 编辑推荐卡（原型 .today-card：深绿渐变 + 白字） */
.of-market .of-hero-featured { width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.of-market .of-today-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 420px;
  padding: 26px 28px;
  border: 0;
  border-radius: var(--of-r-xl);
  background: linear-gradient(165deg, #0a3b2e 0%, #0c6b52 52%, #12946f 100%);
  color: #fff;
  text-align: left;
  overflow: hidden;
}
.of-market .of-today-card::before,
.of-market .of-today-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  pointer-events: none;
}
.of-market .of-today-card::before { width: 260px; height: 260px; right: -70px; top: -70px; background: #2bb894; }
.of-market .of-today-card::after { width: 220px; height: 220px; left: -60px; bottom: -80px; background: #9fe8d2; }
.of-market .of-today-card:hover { transform: none; box-shadow: none; }
.of-market .of-today-tag {
  position: relative;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.of-market .of-today-body { position: relative; display: flex; flex-direction: column; margin-top: auto; }
.of-market .of-today-title { font-size: 27px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.18; }
.of-market .of-today-desc {
  margin: 10px 0 20px;
  max-width: 22em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.of-market .of-today-app { display: flex; align-items: center; gap: 13px; }
.of-market .of-today-app .of-app-icon { box-shadow: none; }
.of-market .of-today-app-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.of-market .of-today-app-meta strong { font-size: 15px; font-weight: 600; color: #fff; }
.of-market .of-today-app-meta small { color: rgba(255, 255, 255, 0.75); font-size: 12px; }
.of-market .of-today-cta { flex: none; padding: 6px 14px; border-radius: var(--of-r-sm); background: #fff; color: var(--of-primary); font-size: 13px; font-weight: 600; }
.of-market .of-today-card:hover .of-today-cta { background: #f0f0f2; color: var(--of-primary); }
.of-market .of-today-dots { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.of-market .of-hero-carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #cfd8d3; }
.of-market .of-hero-carousel-dot.active { width: 18px; border-radius: 5px; background: var(--of-primary); }

/* ---------- 区块标题（原型 .section / .section-head） ---------- */
.of-market .of-section { padding-top: 56px; padding-bottom: 0; scroll-margin-top: 64px; }
.of-market .of-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.of-market .of-section-head h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
.of-market .of-section-head .of-sub { margin: 6px 0 0; color: var(--of-text-2); font-size: 13px; }
.of-market .of-more { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--of-primary); font-size: 13px; font-weight: 500; }
.of-market .of-more:hover { text-decoration: underline; }
.of-market .of-more svg { width: 11px; height: 11px; stroke-width: 2.2; }

/* ---------- 分类入口（原型 .cat-row / .cat-card） ---------- */
.of-market .of-cat-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}
.of-market .of-cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--of-line-2);
  border-radius: var(--of-r-md);
  background: #fff;
  color: var(--of-text);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.of-market .of-cat-card:hover { border-color: var(--of-line); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); transform: none; }
.of-market .of-cat-copy { display: flex; flex-direction: column; min-width: 0; }
.of-market .of-cat-copy strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--of-text); }
.of-market .of-cat-copy small { color: var(--of-text-3); font-size: 11.5px; }

/* ---------- 本周必备货架（原型 .shelf / .app-card） ---------- */
.of-market .of-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 172px;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.of-market .of-shelf > * { scroll-snap-align: start; }
.of-market .of-app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--of-text);
  text-align: left;
}
.of-market .of-app-card .of-app-icon { margin-bottom: 12px; transition: transform 0.25s ease; }
.of-market .of-app-card:hover .of-app-icon { transform: translateY(-2px); }
.of-market .of-app-card:hover { border: 0; box-shadow: none; transform: none; }
.of-market .of-app-card-name { margin: 0 0 2px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.of-market .of-app-card-desc {
  margin: 0 0 8px;
  color: var(--of-text-2);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.of-market .of-app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.of-market .of-app-card-platform { color: var(--of-text-3); font-size: 11.5px; }
.of-market .of-app-card-cta { font-size: 13px; padding: 6px 14px; }

/* ---------- 排行榜列表（原型 .rank-list / .rank-row） ---------- */
.of-market .of-rank-list { list-style: none; margin: 0; padding: 0; border-top: 0; }
.of-market .of-tabs + .of-rank-list { margin-top: 10px; }
.of-market .of-rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--of-line-2);
}
.of-market .of-rank-item:last-child { border-bottom: 0; }
.of-market .of-rank-item:hover { background: var(--of-bg-alt); }
.of-market .of-rank-no {
  width: 30px;
  flex: none;
  text-align: center;
  color: var(--of-text-3);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.of-market .of-rank-no.top-rank { color: var(--of-text-3); }
.of-market .of-rank-main { min-width: 0; flex: 1; display: block; }
.of-market .of-rank-name { padding: 0; border: 0; background: transparent; color: var(--of-text); font-size: 14.5px; font-weight: 600; text-align: left; }
.of-market .of-rank-name:hover { color: var(--of-primary); }
.of-market .of-rank-main p { margin: 1px 0 0; overflow: hidden; color: var(--of-text-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.of-market .of-rank-tags { display: flex; gap: 6px; flex: none; }
.of-market .of-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--of-fill);
  color: var(--of-text-2);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}
.of-market .of-tag-soft { background: var(--of-tint); color: var(--of-primary); }
.of-market .of-rank-metric { display: none; }
.of-market .of-rank-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--of-text-3); font-size: 12px; }
.of-market .of-rank-foot a { color: var(--of-primary); font-weight: 500; }
.of-market .of-rank-foot a:hover { text-decoration: underline; }
.of-market .of-rank-foot svg { width: 11px; height: 11px; stroke-width: 2.2; vertical-align: -1px; }

.of-market .of-empty { padding: 44px 12px; color: var(--of-text-2); text-align: center; }
.of-market .of-empty svg { width: 22px; height: 22px; margin-bottom: 8px; color: var(--of-text-3); }
.of-market .of-empty h3 { margin: 0 0 5px; color: var(--of-text); font-size: 15px; }
.of-market .of-empty p { margin: 0; font-size: 12px; }

/* ---------- 新鲜上线（原型 .fresh-grid / .fresh-card） ---------- */
.of-market .of-fresh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.of-market .of-fresh-card {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--of-line-2);
  border-radius: var(--of-r-lg);
  background: #fff;
  color: var(--of-text);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.of-market .of-fresh-card:hover { border-color: var(--of-line); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.of-market .of-fresh-copy { display: flex; flex-direction: column; min-width: 0; }
.of-market .of-fresh-copy strong { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.of-market .of-fresh-copy small {
  margin: 0 0 6px;
  color: var(--of-text-2);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.of-market .of-fresh-copy em { color: var(--of-text-3); font-size: 11.5px; font-style: normal; }
.of-market .of-fresh-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--of-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- 页脚（原型 .footer） ---------- */
.of-market .of-footer {
  margin-top: 72px;
  padding: 36px 0 42px;
  border-top: 1px solid var(--of-line-2);
  background: var(--of-bg-alt);
  font-size: 12px;
  color: var(--of-text-2);
}
.of-market .of-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--of-line-2);
}
.of-market .of-footer-grid h3 { margin: 0 0 10px; color: var(--of-text); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.of-market .of-footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* 触控目标：页脚链接原本只有行高（约 18-21px），低于 44px 推荐值。
   用 min-height + inline-flex 撑出可点区域，文字基线与视觉间距保持不变。 */
.of-market .of-footer-grid a,
.of-market .of-footer-grid button { padding: 0; border: 0; background: none; color: var(--of-text-2); font-size: 12px; text-align: left; display: inline-flex; align-items: center; min-height: 32px; }
.of-market .of-footer-grid a:hover,
.of-market .of-footer-grid button:hover { color: var(--of-text); }
.of-market .of-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; color: var(--of-text-3); font-size: 12px; }
.of-market .of-footer-bottom .of-footer-links { display: flex; gap: 16px; }
.of-market .of-footer-bottom a,
.of-market .of-footer-bottom button { padding: 0; border: 0; background: none; color: var(--of-text-3); font-size: 12px; display: inline-flex; align-items: center; min-height: 32px; }
.of-market .of-footer-bottom a:hover,
.of-market .of-footer-bottom button:hover { color: var(--of-text); }

/* ==========================================================================
   排行榜 / 分类浏览（独立页，对照 redesign/charts.html、category.html）
   ========================================================================== */
.of-page { background: var(--of-bg); }
.of-page-market { min-height: calc(100vh - var(--of-nav-h)); }
.of-page-shell { padding-block: 0 64px; }

#charts-page:focus,
#category-page:focus,
#app-detail-page:focus,
#checkout-page:focus { outline: none; }

/* 面包屑（原型 .crumb） */
.of-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 0; color: var(--of-text-3); font-size: 13px; }
.of-crumb a { color: var(--of-text-2); }
.of-crumb a:hover { color: var(--of-text); text-decoration: underline; }

/* 页头（原型 .page-head） */
.of-page-head { padding: 44px 0 8px; }
.of-page-head h1 { margin: 0; font-size: 42px; font-weight: 700; letter-spacing: -0.02em; }
.of-page-lead { margin: 10px 0 0; max-width: 40em; color: var(--of-text-2); font-size: 15px; }
.of-page-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border: 0; }
.of-head-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* 分段控件（原型 .seg） */
.of-market .of-seg { display: inline-flex; flex: none; padding: 2px; border-radius: var(--of-r-sm); background: var(--of-fill); }
.of-market .of-seg button { border: 0; border-radius: 8px; padding: 6px 16px; background: transparent; color: var(--of-text-2); font-size: 13px; font-weight: 600; transition: background 0.2s ease, color 0.2s ease; }
.of-market .of-seg button.on { background: #fff; color: var(--of-text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); }

/* 筛选胶囊（原型 .chip） */
.of-market .of-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.of-market .of-chip,
.of-market .of-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 8px 15px;
  border: 0;
  border-radius: 8px;
  background: var(--of-fill);
  color: var(--of-text);
  font-size: 13px !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.of-market .of-chip:hover,
.of-market .of-filter-chip:hover { background: var(--of-fill-hover); color: var(--of-text); }
.of-market .of-chip.on,
.of-market .of-filter-chip.on { background: var(--of-primary); color: #fff; }
.of-market .of-filter-reset { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--of-fill); color: var(--of-text-2); font-size: 12px; }
.of-market .of-filter-reset:hover { background: var(--of-fill-hover); color: var(--of-text); }
.of-market .of-filter-reset svg { width: 11px; height: 11px; stroke-width: 2.2; }

/* 榜单类型标签（原型 .charts-tabs：下划线标签，15px） */
.of-market .of-tabs { display: flex; gap: 26px; margin: 0 0 6px; border-bottom: 1px solid var(--of-line-2); }
.of-market .of-tabs button {
  padding: 10px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--of-text-2);
  font-size: 15px;
  font-weight: 500;
}
.of-market .of-tabs button:hover { color: var(--of-text); }
.of-market .of-tabs button.on { border-color: var(--of-primary); color: var(--of-text); font-weight: 600; }

/* 分类浏览（原型 .browse） */
.of-market .of-browse { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; padding: 30px 0 20px; margin-top: 0; }
.of-market .of-browse-side { position: sticky; top: calc(var(--of-nav-h) + 20px); }
.of-market .of-browse-side h3 { margin: 0 0 12px; padding-left: 10px; color: var(--of-text-3); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: none; }
.of-market .of-browse-side h3:not(:first-child) { margin-top: 0; }
.of-market .of-side-list { display: grid; gap: 2px; margin: 0 0 26px; padding: 0; list-style: none; }
.of-market .of-side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--of-r-sm);
  background: transparent;
  color: var(--of-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.of-market .of-side-item > svg { width: 16px; height: 16px; color: var(--of-text-3); stroke-width: 1.7; }
.of-market .of-side-item:hover { background: var(--of-fill); }
.of-market .of-side-item.on { background: var(--of-fill); color: var(--of-text); font-weight: 600; }
.of-market .of-side-item.on > svg { color: var(--of-text); }
.of-market .of-side-count { flex: none; margin-left: auto; color: var(--of-text-3); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.of-market .of-side-note { display: block; padding: 6px 10px; color: var(--of-text-3); font-size: 12px; }

.of-market .of-browse-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.of-market .of-browse-head h1 { margin: 0; color: var(--of-text); font-size: 30px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.15; }
.of-market .of-browse-head p { margin: 4px 0 0; color: var(--of-text-2); font-size: 13px; }
.of-market .of-browse-filters { justify-content: flex-start; gap: 8px; margin: 0 0 22px; }

.of-market .of-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.of-market .of-grid-card {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--of-line-2);
  border-radius: var(--of-r-lg);
  background: #fff;
  color: var(--of-text);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.of-market .of-grid-card:hover { border-color: var(--of-line); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); transform: none; }
.of-market .of-grid-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.of-market .of-grid-copy strong { margin: 0 0 2px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.of-market .of-grid-desc {
  margin: 0 0 8px;
  color: var(--of-text-2);
  font-size: 12.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.of-market .of-grid-facts { display: flex; align-items: center; gap: 8px; color: var(--of-text-3); font-size: 11.5px; }
.of-market .of-grid-facts i { color: var(--of-line); font-style: normal; }
.of-market .of-grid-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.of-market .of-grid-note { color: var(--of-text-3); font-size: 11.5px; }
.of-market .of-grid-cta { font-size: 13px; padding: 6px 14px; }

/* 独立页的窄页脚（原型 charts/category 只保留 footer-bottom） */
.of-market .of-footer-slim { margin-top: 40px; padding: 24px 0 40px; border-top: 1px solid var(--of-line-2); color: var(--of-text-3); font-size: 12px; }
.of-market .of-footer-slim .of-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.of-market .of-footer-slim .of-footer-links { display: flex; gap: 16px; }
.of-market .of-footer-slim a,
.of-market .of-footer-slim button { padding: 0; border: 0; background: none; color: var(--of-text-3); font-size: 12px; display: inline-flex; align-items: center; min-height: 32px; }
.of-market .of-footer-slim a:hover,
.of-market .of-footer-slim button:hover { color: var(--of-text); }

/* ==========================================================================
   应用详情页（对照 redesign/app-detail.html）
   ========================================================================== */
.app-detail-page { min-height: calc(100vh - 34px); }
.app-detail-page .app-detail-shell { max-width: 1200px; margin: 0 auto; padding: 0 22px 0; }

/* 面包屑 */
.app-detail-page .app-detail-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 22px 0 0; color: var(--of-text-3); font-size: 13px; }
.app-detail-page .app-detail-crumb a { color: var(--of-text-2); }
.app-detail-page .app-detail-crumb a:hover { color: var(--of-text); text-decoration: underline; }
.app-detail-page .app-detail-back { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--of-text-2); font-size: 13px; }
.app-detail-page .app-detail-back:hover { color: var(--of-text); text-decoration: underline; }

/* 头部 */
.app-detail-page .app-detail-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 26px 0 34px;
  border-bottom: 0;
}
.app-detail-page .app-detail-icon { width: 128px; height: 128px; border-radius: 22%; }
.app-detail-page .app-detail-icon svg { width: 52%; height: 52%; stroke-width: 1.8; }
.app-detail-page .app-detail-info { min-width: 0; flex: 1; }
.app-detail-page .app-detail-title { margin: 0; color: var(--of-text); font-size: 30px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.15; }
.app-detail-page .app-detail-author { margin: 4px 0 0; color: var(--of-primary); font-size: 14px; font-weight: 400; }
.app-detail-page .app-detail-summary { margin: 10px 0 0; max-width: 34em; color: var(--of-text-2); font-size: 15px; line-height: 1.6; }
.app-detail-page .app-detail-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--of-text-2); font-size: 13px; }
.app-detail-page .app-detail-facts b { color: var(--of-text); font-weight: 600; }
.app-detail-page .app-detail-sep { color: var(--of-line); }
.app-detail-page .app-detail-facts a { color: var(--of-primary); }

.app-detail-page .app-detail-action-area { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.app-detail-page .app-detail-action-row { display: flex; align-items: stretch; gap: 12px; }
.app-detail-page .app-detail-actions { display: flex; align-items: stretch; gap: 12px; margin: 0; }
.app-detail-page .app-detail-action-row .of-button { padding: 12px 26px; font-size: 16px; }
.app-detail-page .app-detail-action-row .of-button svg { width: 12px; height: 12px; }
.app-detail-page .app-detail-action-area .app-detail-note { margin: 0; color: var(--of-text-3); font-size: 11.5px; }

/* 截图（原型 .shots：横向滚动 + 窗口框）
   老 application.css 给 .app-detail-screenshots 设了 repeat(3,1fr) 与 figure aspect-ratio 16/10，
   会把原型的「540px 固定宽度横滑」压成三列等分并把窗口裁掉 —— 这里必须显式重置。 */
.app-detail-page .app-detail-shots { margin: 0; overflow-x: auto; }
.app-detail-page .app-detail-screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 540px;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.app-detail-page .app-detail-screenshots figure {
  margin: 0;
  scroll-snap-align: start;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  background: transparent;
}
.app-detail-page .app-detail-shot-win {
  border: 1px solid var(--of-line-2);
  border-radius: var(--of-r-sm);
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}
.app-detail-page .app-detail-shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f3f5; border-bottom: 1px solid var(--of-line-2); }
.app-detail-page .app-detail-shot-bar i { width: 10px; height: 10px; border-radius: 50%; }
.app-detail-page .app-detail-shot-bar i:nth-child(1) { background: #ff5f57; }
.app-detail-page .app-detail-shot-bar i:nth-child(2) { background: #febc2e; }
.app-detail-page .app-detail-shot-bar i:nth-child(3) { background: #28c840; }
.app-detail-page .app-detail-shot-bar span { margin-left: 8px; color: var(--of-text-3); font-size: 11px; }
.app-detail-page .app-detail-screenshot { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.app-detail-page .app-detail-screenshot img { display: block; width: 100%; height: 300px; object-fit: cover; background: var(--of-fill); }
.app-detail-page .app-detail-screenshot:hover img { opacity: 0.94; }
.app-detail-page .app-detail-screenshots figcaption { margin-top: 10px; color: var(--of-text-3); font-size: 12px; text-align: center; }

/* 子导航（原型 .subnav：居中 + 下划线） */
.app-detail-page .app-detail-subnav {
  position: sticky;
  top: var(--of-nav-h);
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border-top: 1px solid var(--of-line-2);
  border-bottom: 1px solid var(--of-line-2);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.app-detail-page .app-detail-subnav a {
  padding: 13px 2px;
  border-bottom: 2px solid transparent;
  color: var(--of-text-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.app-detail-page .app-detail-subnav a:hover { color: var(--of-text); text-decoration: none; }
.app-detail-page .app-detail-subnav a.on { border-color: var(--of-primary); color: var(--of-text); font-weight: 600; }

/* 区块（原型 .detail-section：860 窄栏） */
.app-detail-page .app-detail-section { max-width: 860px; padding: 44px 0 8px; margin: 0; scroll-margin-top: calc(var(--of-nav-h) + 10px); }
.app-detail-page .app-detail-section h2 { margin: 0 0 16px; color: var(--of-text); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.app-detail-page .app-detail-lead { margin: 0 0 14px; max-width: none; color: var(--of-text); font-size: 15px; line-height: 1.65; }
.app-detail-page .app-detail-note { margin: 10px 0 0; color: var(--of-text-3); font-size: 12px; }

/* 简介要点（原型 .feature-list） */
.app-detail-page .app-detail-features { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.app-detail-page .app-detail-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--of-text); font-size: 14.5px; }
.app-detail-page .app-detail-features svg { width: 17px; height: 17px; flex: none; margin-top: 3px; stroke: var(--of-primary); fill: none; stroke-width: 2.2; }

/* 应用内购项目（原型 .iap-list） */
.app-detail-page .app-detail-iap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--of-line-2); }
.app-detail-page .app-detail-iap-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--of-line-2); }
.app-detail-page .app-detail-iap-list strong { display: block; color: var(--of-text); font-size: 14.5px; font-weight: 600; }
.app-detail-page .app-detail-iap-list span { display: block; margin-top: 2px; color: var(--of-text-2); font-size: 12.5px; }
.app-detail-page .app-detail-iap-list b { flex: none; color: var(--of-text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-detail-page .app-detail-iap-buy {
  flex: none;
  padding: 6px 14px;
  border: 0;
  border-radius: var(--of-r-sm);
  background: var(--of-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.app-detail-page .app-detail-iap-buy:hover { background: var(--of-primary-hover); }
.app-detail-page .app-detail-iap-price { display: flex; align-items: center; gap: 12px; }
.app-detail-page .app-detail-iap-foot { margin: 10px 0 0; color: var(--of-text-3); font-size: 12px; }

/* 新功能（原型 .version-row / .notes-list） */
.app-detail-page .app-detail-version-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.app-detail-page .app-detail-version-row strong { color: var(--of-text); font-size: 16px; font-weight: 600; }
.app-detail-page .app-detail-version-row span { color: var(--of-text-3); font-size: 13px; }
.app-detail-page .app-detail-notes { margin: 0; padding-left: 20px; color: var(--of-text); font-size: 14.5px; line-height: 1.8; }

/* 评分及评论（暂无数据时的说明态） */
.app-detail-page .app-detail-rating-empty { margin: 0; color: var(--of-text-3); font-size: 14px; }

/* 相关信息（原型 .info-grid / .info-row） */
.app-detail-page .app-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.app-detail-page .app-detail-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--of-line-2);
  font-size: 13px;
}
.app-detail-page .app-detail-info-row dt { color: var(--of-text-3); flex: none; }
.app-detail-page .app-detail-info-row dd { margin: 0; text-align: right; color: var(--of-text); }
.app-detail-page .app-detail-info-row dd a { color: var(--of-primary); white-space: nowrap; }

/* 常见问题（原型 .faq） */
.app-detail-page .app-detail-faq { border-top: 1px solid var(--of-line-2); }
.app-detail-page .app-detail-faq details { border-bottom: 1px solid var(--of-line-2); }
.app-detail-page .app-detail-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  color: var(--of-text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.app-detail-page .app-detail-faq summary::-webkit-details-marker { display: none; }
.app-detail-page .app-detail-faq summary::after { content: '+'; color: var(--of-text-3); font-size: 18px; font-weight: 400; }
.app-detail-page .app-detail-faq details[open] summary::after { content: '–'; }
.app-detail-page .app-detail-faq details p { margin: 0 0 14px; padding: 0; color: var(--of-text-2); font-size: 14px; line-height: 1.6; }

/* 更多类似产品（复用首页货架） */
.app-detail-page .app-detail-more { max-width: 1200px; padding-bottom: 56px; }
.app-detail-page .app-detail-more h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.app-detail-page .app-detail-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 22px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.app-detail-page .app-detail-more-card { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 0; border: 0; background: none; color: var(--of-text); text-align: left; scroll-snap-align: start; }
.app-detail-page .app-detail-more-card .of-app-icon { margin-bottom: 12px; }
.app-detail-page .app-detail-more-card strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.app-detail-page .app-detail-more-card p { margin: 0 0 8px; color: var(--of-text-2); font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-detail-page .app-detail-more-card .of-app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }

/* 详情页窄页脚 */
.app-detail-page .app-detail-footer { margin-top: 40px; border-top: 1px solid var(--of-line-2); background: var(--of-bg-alt); padding: 18px 0; color: var(--of-text-3); font-size: 12px; }
.app-detail-page .app-detail-footer .inner { max-width: 1200px; margin: 0 auto; padding: 0 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.app-detail-page .app-detail-footer .links { display: flex; gap: 16px; }
.app-detail-page .app-detail-footer a,
.app-detail-page .app-detail-footer button { padding: 0; border: 0; background: none; color: var(--of-text-3); font-size: 12px; }
.app-detail-page .app-detail-footer a:hover,
.app-detail-page .app-detail-footer button:hover { color: var(--of-text); }

/* ==========================================================================
   响应式（对齐 redesign.css 的 1024 / 720 两档，另保留 1080/860/620 细调）
   ========================================================================== */
@media (max-width: 1080px) {
  .of-market .of-fresh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-market .of-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-market .of-browse { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .app-detail-page .app-detail-icon { width: 104px; height: 104px; }
}

@media (max-width: 1024px) {
  .of-market .of-hero { grid-template-columns: 1fr; gap: 36px; padding-block: 48px; }
  .of-market .of-browse { grid-template-columns: 1fr; }
  .of-market .of-browse-side { position: static; }
  /* 原型 ≤1024px 隐藏搜索框（.nav-search），不让导航换行溢出盖住内容 */
  .of-market .of-nav-search { display: none; }
  .app-detail-page .app-detail-hero { flex-wrap: wrap; }
  .app-detail-page .app-detail-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 860px) {
  .of-market .of-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-market .of-shelf { grid-auto-columns: 150px; gap: 18px; }
  .app-detail-page .app-detail-screenshots { grid-auto-columns: 86vw; }
  .app-detail-page .app-detail-section { padding-top: 36px; }
}

@media (max-width: 720px) {
  /* 原型 ≤720px 隐藏导航链接（.nav-links） */
  .of-market .of-nav { display: none; }
  .of-market .of-fresh-grid,
  .of-market .of-app-grid,
  .of-market .of-footer-grid { grid-template-columns: 1fr; }
  .of-market .of-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .of-market .of-page-head h1 { font-size: 32px; }
  .of-market .of-browse-head h1 { font-size: 24px; }
  .of-market .of-today-card { min-height: 360px; padding: 22px; }
  .of-market .of-hero-copy h1 { font-size: 36px; }
  .of-market .of-hero-actions .of-button { flex: 1 1 140px; }
  .of-market .of-rank-tags { display: none; }
  .of-market .of-rank-item { gap: 12px; }
  .app-detail-page .app-detail-hero { flex-direction: column; align-items: flex-start; }
  .app-detail-page .app-detail-action-area { align-items: flex-start; }
  .app-detail-page .app-detail-action-row { flex-wrap: wrap; }
  .app-detail-page .app-detail-screenshots { grid-auto-columns: 86vw; }
  .app-detail-page .app-detail-subnav { justify-content: flex-start; gap: 20px; padding-inline: 4px; }
  .app-detail-page .app-detail-info-row { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .of-market .of-today-card,
  .of-market .of-app-card,
  .of-market .of-cat-card,
  .of-market .of-fresh-card,
  .of-market .of-grid-card { transition: none; }
  .of-market .of-today-card:hover,
  .of-market .of-app-card:hover .of-app-icon,
  .of-market .of-cat-card:hover { transform: none; }
}

.of-market .home-ad-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; padding-top: 18px; }
.of-market .home-ad-list[hidden] { display: none; }
.of-market .home-ad-card,
.app-detail-page .detail-ad-card { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--of-line-2); border-radius: var(--of-r-md); background: var(--of-bg); color: var(--of-text); text-decoration: none; }
.of-market .home-ad-card { min-height: 120px; }
.of-market .home-ad-card img { width: 42%; min-height: 120px; object-fit: cover; }
.of-market .storefront-ad-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px; }
.of-market .storefront-ad-copy small,
.app-detail-page .storefront-ad-copy small { color: var(--of-text-3); font-size: 12px; }
.of-market .storefront-ad-copy strong,
.app-detail-page .storefront-ad-copy strong { color: var(--of-text); font-size: 15px; line-height: 1.4; }
.app-detail-page .app-detail-ad-slot { width: min(100%, 280px); margin-top: 8px; }
.app-detail-page .detail-ad-card { flex-direction: column; width: 100%; }
.app-detail-page .detail-ad-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.app-detail-page .detail-ad-card .storefront-ad-copy { gap: 4px; padding: 10px 12px; }
.of-market .home-ad-card:focus-visible,
.app-detail-page .detail-ad-card:focus-visible { outline: 3px solid var(--of-primary); outline-offset: 3px; }
@media (max-width: 640px) {
  .of-market .home-ad-card { min-height: 104px; }
  .of-market .home-ad-card img { min-height: 104px; }
  .app-detail-page .app-detail-ad-slot { width: min(100%, 360px); }
}

/* 首页移动端专属：窄屏采用紧凑导航、分类 chips 与列表式产品；桌面沿用货架布局。 */
@media (min-width: 960px) {
  #home-releases { display: none; }
}
@media (max-width: 959px) {
  #of-topbar .of-navbar { min-height: 0; }
  #of-topbar .of-nav-inner {
    min-height: 54px;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 18px 10px;
  }
  #of-topbar .of-nav-actions { display: contents; }
  #of-topbar .of-logo { order: 0; min-height: 54px; }
  #of-topbar #front-account-slot { order: 1; margin-left: auto; }
  #of-topbar #front-account-slot .of-button { min-height: 44px; padding: 8px 13px; }
  #of-topbar .of-nav-search {
    display: flex;
    order: 2;
    width: 100%;
    height: 42px;
    padding: 0 13px;
    border-radius: 12px;
  }
  #of-topbar .of-nav-search input { font-size: 16px; }
  .of-market #rankings,
  .of-market #new-releases { display: none; }
  .of-market .of-container { padding-inline: 18px; }
  .of-market .of-hero { gap: 22px; padding-block: 30px 26px; text-align: center; }
  .of-market .of-hero-copy .of-overline { margin-bottom: 7px; }
  .of-market .of-hero-copy h1 { font-size: 32px; line-height: 1.16; }
  .of-market .of-hero-description { max-width: 25em; margin: 12px auto 0; font-size: 14px; }
  .of-market .of-hero-actions { gap: 9px; margin-top: 18px; }
  .of-market .of-hero-actions .of-button { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .of-market .of-hero-meta { justify-content: center; gap: 5px 12px; margin-top: 14px; font-size: 11px; }
  .of-market .of-hero-featured { display: none; }
  .of-market .of-section { padding-top: 26px; scroll-margin-top: 116px; }
  .of-market #categories { display: none; }
  .of-market .of-section-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 12px; }
  .of-market .of-section-head h2 { font-size: 21px; }
  .of-market .of-section-head .of-sub { margin-top: 3px; font-size: 12px; }
  .of-market .of-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
    overflow: visible;
    padding: 0;
  }
  .of-market .of-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--of-line);
    border-radius: 999px;
    background: #fff;
    color: var(--of-text);
    font-size: 12px;
    white-space: nowrap;
  }
  .of-market .of-cat-chip.on { border-color: var(--of-primary); background: var(--of-primary); color: #fff; }
  .of-market .of-cat-chip .of-icon { width: 14px; height: 14px; }
  .of-market .of-cat-chip small { font-size: 10px; color: var(--of-text-3); }
  .of-market .of-cat-chip.on small { color: rgba(255,255,255,.8); }
  .of-market .of-shelf { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto; gap: 9px; overflow: visible; padding: 0; scroll-snap-type: none; }
  .of-market .of-app-row {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    min-height: 78px;
    padding: 10px;
    border: 1px solid var(--of-line-2);
    border-radius: 13px;
    background: #fff;
    color: var(--of-text);
    text-align: left;
    cursor: pointer;
  }
  .of-market .of-app-row-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 1px; }
  .of-market .of-app-row-name { font-size: 14px; font-weight: 600; }
  .of-market .of-app-row-desc { display: block; min-width: 0; max-width: 100%; overflow: hidden; color: var(--of-text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .of-market .of-app-row-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--of-text-3); font-size: 10px; }
  .of-market .of-app-row-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
  .of-market .of-app-row-cta { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .of-market .of-feed { border-radius: 13px; }
  .of-market .of-feed-row { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 66px; padding: 10px; border: 0; background: #fff; text-align: left; cursor: pointer; font-family: inherit; }
  .of-market .of-feed-row + .of-feed-row { border-top: 1px solid var(--of-line-2); }
  .of-market .of-feed-copy { display: block; flex: 1; min-width: 0; overflow: hidden; }
  .of-market .of-feed-title, .of-market .of-feed-desc { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .of-market .of-feed-ver { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--of-tint); color: var(--of-primary); font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; font-style: normal; font-weight: 600; }
  .of-market .of-feed-desc { color: var(--of-text-2); font-size: 11px; }
  .of-market .of-feed-date { flex: 0 0 auto; }
  .of-market .of-ad-slot { margin-top: 18px; }
  .of-market .of-footer { margin-top: 30px; padding-bottom: 24px; }
  .of-market .of-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-market .of-footer-grid > :last-child { grid-column: 1 / -1; }
}
