/*
Theme Name: 应用精选
Author: 应用精选
Description: 一款现代化 WordPress 主题，专注于 macOS 软件发现与使用技巧。包含玻璃拟态导航、深浅双色模式、点阵 Hero、应用卡片网格、自定义「应用」内容类型、弹窗登录、QQ / 微博第三方登录、可选经典编辑器、页脚友情链接与备案号、内置 SEO 优化（Meta / Open Graph / JSON-LD 结构化数据 / 站长平台验证）、独立主题设置页。
Version: 1.7.26
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: macgf
Tags: blog, portfolio, custom-menu, custom-logo, featured-images, translation-ready, theme-options, dark-mode, two-columns, responsive-layout
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --canvas: #ffffff;
  --canvas-soft: #fafafa;
  --canvas-tint: #f5f5f7;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, .74);
  --ink: #101010;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --line: #e5e7eb;
  --line-soft: #f0f0f1;
  --btn: #101010;
  --btn-ink: #ffffff;
  --accent: #07c160;
  --accent-blue: #6889b0;
  --dot: rgba(16, 16, 16, .16);
  --shadow-sm: 0 1px 2px rgba(16, 16, 16, .04), 0 1px 1px rgba(16, 16, 16, .03);
  --shadow-md: 0 14px 40px rgba(16, 16, 16, .09), 0 2px 8px rgba(16, 16, 16, .04);
  --shadow-lg: 0 28px 70px rgba(16, 16, 16, .16);
  --radius: 14px;
  --maxw: 1440px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111113;
  --canvas-soft: #18181b;
  --canvas-tint: #1b1b1f;
  --card: #1c1c1f;
  --glass: rgba(24, 24, 27, .76);
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --line: #2c2c31;
  --line-soft: #222226;
  --btn: #f4f4f5;
  --btn-ink: #111113;
  --dot: rgba(255, 255, 255, .16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .6);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
/* WordPress 会把 emoji 转成 s.w.org 的 SVG <img>；无内在尺寸时会被撑成巨大图片，这里约束为内联小图标。 */
img.emoji { display: inline !important; width: 1.15em !important; height: 1.15em !important; max-width: none !important; vertical-align: -.15em; margin: 0 1px; }
svg { max-width: 100%; display: inline-block; vertical-align: middle; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
::selection { background: rgba(104, 137, 176, .28); }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; border-radius: 4px; }
.sr-only, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 300;
  background: var(--btn); color: var(--btn-ink); padding: 10px 18px;
  border-radius: 10px; font-size: 13px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 860px; }
.muted { color: var(--muted); }

/* ==========================================================================
   3. Header — liquid glass bar
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; --macgf-logo-h: 30px; }
.brand-logo {
  height: var(--macgf-logo-h); width: auto; display: flex; align-items: center; gap: 5px;
  font-size: calc(var(--macgf-logo-h) * .633); font-weight: 900; letter-spacing: -.06em; color: var(--ink);
}
.brand-mark {
  width: var(--macgf-logo-h); height: var(--macgf-logo-h); border-radius: 9px;
  background: linear-gradient(145deg, #2f6bff, #7a3cff 55%, #ff4d8d);
  color: #fff; display: grid; place-items: center; font-size: calc(var(--macgf-logo-h) * .533); font-weight: 800;
  box-shadow: 0 3px 10px rgba(70, 80, 220, .3);
}
.brand-text { font-style: italic; }
.brand-logo-img {
  display: block; height: var(--macgf-logo-h); width: auto; max-width: 200px;
  object-fit: contain; object-position: left center;
}
.badge-beta {
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  background: var(--ink); color: var(--canvas); border-radius: 5px; padding: 3px 6px;
}
.product-switcher { position: relative; flex-shrink: 0; }
.switcher-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.switcher-trigger:hover { border-color: var(--muted-2); }
.switcher-dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(145deg, #a5b4fc, #6366f1); }
.switcher-menu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 268px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .22s var(--ease);
  max-height: 70vh; overflow-y: auto;
}
.product-switcher.is-open .switcher-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.switcher-option {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 10px; border-radius: 10px; font-size: 12px;
  color: var(--ink); text-decoration: none; background: transparent; border: 0;
  cursor: pointer; font-family: inherit;
}
.switcher-option:hover, .switcher-option.is-active { background: var(--canvas-tint); }
.switcher-option.is-active .switcher-option__title { color: var(--accent); }
.switcher-option__icon { width: 26px; height: 26px; border-radius: 8px; background: var(--canvas-tint); display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.switcher-option__icon svg { width: 13px; height: 13px; color: var(--accent); }
.macgf-menu-icon-emoji { font-size: 13px; line-height: 1; font-style: normal; }
.macgf-menu-icon-img { width: 13px; height: 13px; object-fit: contain; border-radius: 3px; }
.switcher-option__title { font-weight: 700; display: block; }
.switcher-option__desc { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.pill-soon { margin-left: auto; font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.header-divider { width: 1px; height: 18px; background: var(--line); flex-shrink: 0; }

.primary-nav { flex-shrink: 0; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-link:hover, .primary-nav .current-menu-item > .nav-link { background: var(--canvas-tint); color: var(--ink); }
.nav-link svg { opacity: .65; width: 14px; height: 14px; }
.nav-link .macgf-menu-icon-emoji, .sub-menu a .macgf-menu-icon-emoji { font-size: 14px; line-height: 1; font-style: normal; }
.nav-link .macgf-menu-icon-img, .sub-menu a .macgf-menu-icon-img { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }
.sub-menu a svg { width: 13px; height: 13px; opacity: .7; }
.nav-caret { width: 10px; height: 10px; opacity: .5; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; padding: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); list-style: none;
  display: grid; gap: 1px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .2s var(--ease); z-index: 95;
}
.sub-menu--wide { min-width: 420px; grid-template-columns: 1fr 1fr; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; font-size: 12px; color: var(--ink-2);
}
.sub-menu a:hover { background: var(--canvas-tint); color: var(--ink); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.wechat-dot { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.theme-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas-soft); }
.theme-switch button { width: 26px; height: 24px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); }
.theme-switch button.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.theme-switch svg { width: 13px; height: 13px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { border-color: var(--muted-2); }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  color: var(--muted); font-size: 12px; min-width: 128px;
}
.search-trigger:hover { border-color: var(--muted-2); }
.search-trigger svg { width: 14px; height: 14px; }
.kbd {
  margin-left: auto; font-size: 10px; font-weight: 700; line-height: 1;
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 5px; color: var(--muted-2);
  background: var(--canvas-soft);
}
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 9px; background: var(--btn); color: var(--btn-ink);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: transform .2s var(--ease), opacity .2s;
}
.btn-sm:hover { transform: translateY(-1px); opacity: .88; color: var(--btn-ink); }
.btn-sm svg { width: 13px; height: 13px; }
.menu-toggle { display: none; }

/* online bar */
.online-bar { border-top: 1px solid var(--line-soft); }
.online-inner { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }
.online-left, .online-stats { display: flex; align-items: center; gap: 12px; }
.online-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .14); }
.avatars { display: flex; padding-left: 6px; }
.avatars span {
  width: 21px; height: 21px; border-radius: 50%; margin-left: -6px;
  border: 2px solid var(--canvas); font-size: 9px; font-weight: 700; color: #fff;
  display: grid; place-items: center;
}
.online-stats b { color: var(--ink); font-weight: 700; margin-left: 4px; }

/* notice bar（顶部公告栏，替换今日在线） */
.notice-bar { border-top: 1px solid var(--line-soft); }
.notice-inner { height: 42px; display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--muted); }
.notice-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); flex: 0 0 auto; padding-right: 14px; border-right: 1px solid var(--line-soft); }
.notice-label svg { color: var(--accent); }
.notice-viewport { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; }
.notice-track { position: relative; height: 100%; }
.notice-item { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; white-space: nowrap; }
.notice-item.is-active { position: relative; opacity: 1; visibility: visible; transform: none; }
.notice-item__icon { font-size: 14px; line-height: 1; flex: 0 0 auto; }
.notice-item__text { color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
a.notice-item__text:hover { color: var(--accent); }
.notice-dots { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.notice-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: all .25s var(--ease); }
.notice-dot.is-active { width: 14px; border-radius: 4px; background: var(--accent); }
/* 全部平铺模式 */
.notice-bar.mode-list .notice-inner { height: auto; min-height: 42px; padding: 8px 0; flex-wrap: wrap; gap: 6px 14px; }
.notice-bar.mode-list .notice-viewport { overflow: visible; }
.notice-bar.mode-list .notice-track { display: flex; flex-wrap: wrap; gap: 6px 18px; height: auto; }
.notice-bar.mode-list .notice-item { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) {
  .notice-inner { gap: 10px; }
  .notice-label { padding-right: 10px; }
  .notice-label span { display: none; }
  .notice-bar.mode-list .notice-track { flex-direction: column; gap: 4px; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero { position: relative; overflow: visible; padding: 66px 0 30px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--dot) .9px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, #000 78%, transparent 100%);
  opacity: .48;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 30px; align-items: center; }
.hero-title { font-size: clamp(48px, 6.1vw, 88px); line-height: 1.06; font-weight: 800; letter-spacing: -.055em; }
.hero-subtitle {
  margin-top: 4px; font-size: clamp(28px, 4vw, 58px); line-height: 1.16;
  font-weight: 800; letter-spacing: -.05em; white-space: nowrap;
  background: linear-gradient(90deg, #9a9aa2 0%, #a9a9b0 38%, rgba(161, 161, 170, .1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .hero-subtitle { background: linear-gradient(90deg, #8b8b94 0%, #8b8b94 35%, rgba(139, 139, 148, .08) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-subtitle .apple { font-size: .9em; }
.hero-desc { margin: 24px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--btn); color: var(--btn-ink);
  font-size: 13px; font-weight: 700; box-shadow: 0 6px 18px rgba(16, 16, 16, .16);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16, 16, 16, .22); color: var(--btn-ink); }
.hero-mini-icons { display: flex; align-items: center; padding-left: 8px; }
.hero-mini-icons span {
  width: 30px; height: 30px; margin-left: -8px; border-radius: 9px;
  border: 2px solid var(--canvas); display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .25s var(--ease);
}
.hero-mini-icons:hover span { transform: translateY(-4px); }

/* tilted app icon wall */
.icon-wall {
  position: relative; height: 430px; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 54% 50%, #000 34%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 54% 50%, #000 34%, rgba(0, 0, 0, .35) 70%, transparent 100%);
}
.icon-wall-grid {
  position: absolute; top: -20%; left: -14%; width: 132%;
  display: grid; grid-template-columns: repeat(11, 1fr); gap: 10px;
  transform: rotate(-19deg) skewX(5deg) scale(1.04);
  transform-origin: center center;
}
.app-tile {
  aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: rgba(255, 255, 255, .95);
  background: linear-gradient(145deg, var(--c1, #d4d4d8), var(--c2, #a1a1aa));
  box-shadow: 0 8px 20px rgba(16, 16, 16, .13), inset 0 1px 0 rgba(255, 255, 255, .55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  animation: tile-float 9s ease-in-out infinite;
}
.app-tile:nth-child(3n) { animation-delay: -2.4s; }
.app-tile:nth-child(4n) { animation-delay: -4.1s; }
.app-tile:nth-child(5n) { animation-delay: -6.3s; }
@keyframes tile-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* dotted divider */
.dot-divider {
  height: 8px; border: 0; margin: 0;
  background-image: radial-gradient(circle at 4px 4px, var(--dot) 1px, transparent 1.4px);
  background-size: 9px 8px; opacity: .8;
}

/* ==========================================================================
   5. Sections, filters, app cards
   ========================================================================== */
.section { padding: 52px 0 0; }
.section-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 8px; margin-bottom: 22px; }
.section-title { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.section-desc { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.section-filter {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.section-filter:hover { border-color: var(--muted-2); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--muted-2); transform: translateY(-1px); }
.chip.is-active { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.app-card { min-width: 0; }
.app-thumb {
  position: relative; display: block; aspect-ratio: 1.8 / 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--canvas-tint);
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.app-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.app-card:hover .app-thumb { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.app-card:hover .app-thumb img { transform: scale(1.05); }
/* 方形小图标封面：同图模糊铺底 + 原图标完整居中，避免图标被放大成巨图 */
.app-thumb__blur { position: absolute; inset: -14%; background-size: cover; background-position: center; filter: blur(22px) saturate(1.25); transform: scale(1.08); opacity: .72; z-index: 0; }
.app-thumb__blur::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.62)); }
.app-thumb img.app-thumb__square { position: relative; z-index: 1; width: auto; height: 76%; max-width: 76%; object-fit: contain; border-radius: 16%; box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08); }
.app-card:hover .app-thumb img.app-thumb__square { transform: scale(1.06); }
.app-thumb-fallback {
  position: relative; overflow: hidden;
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1, #dbeafe), var(--c2, #f5f5f7) 60%, var(--c3, #fce7f3));
  color: rgba(16, 16, 16, .32); font-size: 34px; font-weight: 800; letter-spacing: -.04em;
}
.app-thumb-fallback::after {
  content: ""; position: absolute; inset: 12% 10%; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .35);
}
.badge-overlay {
  position: absolute; top: 9px; left: 9px; z-index: 2; font-size: 9.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: #27272a;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.app-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; min-width: 0; }
.app-icon {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, var(--c1, #818cf8), var(--c2, #6366f1));
  box-shadow: 0 2px 5px rgba(0, 0, 0, .14);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.app-name { font-size: 13px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-cat { margin-left: auto; flex-shrink: 0; font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.app-desc {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.app-stats { display: flex; align-items: center; gap: 13px; margin-top: 10px; font-size: 10.5px; color: var(--muted-2); }
.app-stats span { display: inline-flex; align-items: center; gap: 4px; }
.app-stats svg { width: 12px; height: 12px; opacity: .7; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--muted); font-size: 13px; }
.empty-state strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.load-more-wrap { display: flex; justify-content: center; padding: 40px 0 70px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 24px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink-2); font-size: 12.5px; font-weight: 700;
  transition: all .25s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost[disabled] { opacity: .5; cursor: default; transform: none; }
.btn-ghost.is-loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* blog post list (index / archive fallback) */
.post-list { display: grid; gap: 0; }
.post-row {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft); align-items: center;
}
.post-row__thumb { aspect-ratio: 1.8 / 1; border-radius: 11px; overflow: hidden; background: var(--canvas-tint); }
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row__cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-blue); }
.post-row__title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0; }
.post-row__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-row__excerpt { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin: 0; }
.post-row__meta { margin-top: 9px; font-size: 11px; color: var(--muted-2); display: flex; gap: 14px; }

/* pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 40px 0 70px; }
.page-numbers {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.page-numbers:hover, .page-numbers.current { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }

/* ==========================================================================
   6. Page header (archive / search / page)
   ========================================================================== */
.page-hero { padding: 60px 0 26px; border-bottom: 1px solid var(--line-soft); }
.page-hero__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.page-hero__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.045em; margin-top: 10px; }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-hero__tools { display: flex; align-items: center; gap: 14px; padding-bottom: 6px; }
.page-hero__count { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.page-hero__select-wrap { position: relative; display: inline-flex; align-items: center; }
.page-hero__select-wrap::after { content: ''; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.page-hero__select { appearance: none; -webkit-appearance: none; padding: 8px 34px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; outline: none; }
.page-hero__select:hover { border-color: var(--muted-2); }
.page-hero__desc { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; max-width: 640px; line-height: 1.85; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs .sep { opacity: .45; }

/* ==========================================================================
   7. Single article
   ========================================================================== */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding: 46px 0 86px; }
.article-wrap--full { grid-template-columns: minmax(0, 760px); justify-content: center; }
.article-wrap--app { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 34px; align-items: start; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.breadcrumbs .sep { color: var(--muted-2); }
.article { min-width: 0; }
.entry-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.045em; line-height: 1.22; margin: 0 0 16px; }
/* 标题旁的编辑按钮（仅管理员/编辑可见） */
.macgf-edit-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0; vertical-align: middle; text-decoration: none; transition: color .18s, border-color .18s, background .18s; }
.macgf-edit-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--card-hover, var(--card)); }
.entry-title .macgf-edit-btn { font-size: 12px; padding: 6px 12px; }
.entry-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.entry-meta .author-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(145deg, #818cf8, #6366f1); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.entry-thumb { margin: 28px 0 30px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.entry-thumb img { width: 100%; height: auto; }
.entry-content { font-size: 15px; line-height: 1.95; color: var(--ink-2); word-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--ink); margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.entry-content h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }
.entry-content h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.entry-content p { margin: 0 0 18px; }
.entry-content a { color: var(--accent-blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 24px; }
.entry-content li { margin: 6px 0; }
.entry-content img, .entry-content .wp-block-image img { border-radius: 12px; height: auto; }
.entry-content blockquote {
  margin: 26px 0; padding: 16px 22px; border-left: 3px solid var(--ink);
  background: var(--canvas-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); font-style: normal;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { background: #18181b; color: #e4e4e7; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.7; }
.entry-content code { background: var(--canvas-tint); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.entry-content pre code { background: none; padding: 0; }
/* 主题内置 Prism 代码块：保持与正文一致的视觉，并保证行号左侧留白 */
.entry-content pre[class*="language-"],
.entry-content pre[class*="language-"] code { font-size: 13px; line-height: 1.7; }
.entry-content pre[class*="language-"] { padding: 18px 20px; border-radius: 12px; margin: 22px 0; }
.entry-content pre[class*="language-"].line-numbers { padding-left: 3.8em; }
.entry-content pre[class*="language-"] code { font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; }
/* 避免正文 .comment 评论卡片样式误命中 Prism 的注释 token */
.entry-content pre span.token.comment,
.entry-content pre span.token.prolog,
.entry-content pre span.token.doctype,
.entry-content pre span.token.cdata { background: none; border: 0; border-radius: 0; padding: 0; position: static; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 13.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--canvas-soft); font-weight: 700; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }
.entry-content .wp-block-button__link { display: inline-block; border-radius: 999px; padding: 11px 22px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.entry-tags a { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.entry-tags a:hover { color: var(--ink); border-color: var(--muted-2); }

/* app side（左侧信息栏） */
.app-side { position: sticky; top: 92px; min-width: 0; }
.app-side__card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px; margin-bottom: 18px; }
.app-side__card h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 13px; font-weight: 800; }
.app-side__toc ul { list-style: none; margin: 0; padding: 0; }
.app-side__toc li { border-left: 2px solid transparent; }
.app-side__toc a { display: block; padding: 7px 10px; font-size: 12px; color: var(--muted); border-radius: 0 7px 7px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-side__toc a:hover { color: var(--ink); background: var(--canvas-soft); }
.app-side__toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--accent); background: var(--canvas-soft); }
.app-side__rank ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.app-side__rank li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); min-width: 0; }
.app-side__rank li:last-child { border-bottom: none; }
.rank-num { flex: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted); background: var(--canvas-tint); }
.rank-num--1 { background: #fef0c7; color: #b45309; }
.rank-num--2 { background: #e8e8ec; color: #52525b; }
.rank-num--3 { background: #fbe8d8; color: #b45309; }
.rank-icon { flex: none; width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.rank-icon--fallback { display: grid; place-items: center; background: linear-gradient(145deg, var(--c1, #818cf8), var(--c2, #6366f1)); color: #fff; font-size: 11px; font-weight: 800; }
.app-side__rank a { flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-side__rank a:hover { color: var(--accent); }
.app-side__rank small { flex: none; font-size: 10px; color: var(--muted-2); }

/* app gallery（顶部截图画廊） */
.app-gallery { display: flex; gap: 12px; overflow-x: auto; padding: 2px 0 12px; margin: 0 0 8px; scrollbar-width: thin; }
.app-gallery__item { flex: 0 0 auto; width: 300px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--canvas-soft); line-height: 0; }
.app-gallery__item img { width: 100%; height: 170px; object-fit: cover; object-position: top; }
.app-gallery__item:hover { border-color: var(--muted-2); }

/* app detail box */
.app-detail-hero { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin: 26px 0 30px; }
.app-detail-hero__icon { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff; background: linear-gradient(145deg, var(--c1, #818cf8), var(--c2, #6366f1)); box-shadow: var(--shadow-md); }
.app-detail-hero__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.app-detail-hero__name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.app-detail-hero__desc { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; line-height: 1.7; }
.app-detail-hero__meta { display: flex; align-items: center; gap: 14px; }
.app-detail-hero__meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted-2); }
.app-detail-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.app-detail-actions .btn-download { justify-content: center; min-width: 104px; }
.btn-download { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 9px; background: var(--btn); color: var(--btn-ink); font-size: 12px; font-weight: 700; }
.btn-download--ghost { background: var(--card); color: var(--ink-2); border: 1px solid var(--line); }
.btn-download:hover { color: var(--btn-ink); transform: translateY(-1px); }
.btn-download--ghost:hover { color: var(--ink); }
.app-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 26px 0; }
.app-specs div { background: var(--card); padding: 14px 16px; text-align: center; }
.app-specs dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; }
.app-specs dd { margin: 5px 0 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.entry-section-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 30px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ai-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6366f1); letter-spacing: .02em; }

/* download box（网盘 / 历史版本） */
.download-box { margin: 30px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.download-box__head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); background: var(--card); }
.download-box__title { display: inline-flex; align-items: center; gap: 0; margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.download-box__title::before { content: ""; display: inline-block; width: 3px; height: 15px; margin-right: 10px; border-radius: 2px; background: var(--accent-blue); }
.download-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 20px; border-bottom: 1px dashed var(--line-soft); }
.download-item:last-child { border-bottom: none; }
.download-item__ver { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; background: var(--canvas-tint); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: -.01em; }
.download-item__date { font-size: 12px; color: var(--muted-2); }
.download-item__note { font-size: 12px; color: var(--muted); flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-item__pan { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 11px; font-weight: 600; }
.download-item__pass { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.download-item__pass code { padding: 2px 8px; border-radius: 6px; background: var(--canvas-tint); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 700; color: var(--ink); }
.download-item__copy { border: none; background: none; padding: 0 4px; line-height: 1; font-size: 11px; font-weight: 700; color: var(--accent-blue); cursor: pointer; }
.download-item__copy:hover, .download-item__copy.is-copied { color: var(--accent); }
.download-item__btn { margin-left: auto; height: 32px; padding: 0 14px; font-size: 11.5px; border-radius: 8px; }
.download-box__foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted-2); }
@media (max-width: 640px) {
	.download-item { align-items: flex-start; flex-direction: column; }
	.download-item__btn { margin-left: 0; align-self: stretch; justify-content: center; }
}

.related { margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--line); }
.related__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.related .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* sidebar */
.sidebar { min-width: 0; }
.widget { margin-bottom: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.widget__title { font-size: 13px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; }
.widget ul { list-style: none; }
.widget li { border-bottom: 1px solid var(--line-soft); padding: 8px 0; font-size: 12px; color: var(--ink-2); }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { text-decoration: underline; }
.widget_search .search-field { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--ink); font-size: 12px; }
.widget_tag_cloud .tagcloud a { display: inline-block; font-size: 11px !important; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; margin: 0 5px 7px 0; color: var(--muted); }

/* comments */
.comments-area { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); }
.comments-title { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; margin-bottom: 24px; }
.comments-title svg { color: var(--muted-2); }
.comment-reply-title { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
/* 无评论时：评论区不再重复分隔线与双倍留白，只保留一条线 */
.comments-area.no-comments { margin-top: 40px; padding-top: 0; border-top: 0; }
.comments-area.no-comments .comment-reply-title { margin-top: 0; padding-top: 28px; border-top: 1px solid var(--line); }

/* 评论列表：卡片式 */
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment { position: relative; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.comment-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.comment-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--accent-blue), #8b6ff0); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.comment-author { font-weight: 700; color: var(--ink); font-size: 13px; }
.comment-date::before { content: '·'; margin-right: 10px; color: var(--muted-2); }
.comment-content { font-size: 13px; color: var(--ink-2); margin-top: 10px; line-height: 1.8; }
.comment-content p { margin: 0 0 8px; }
.comment-content p:last-child { margin-bottom: 0; }
.comment .reply { margin-top: 10px; }
.comment-reply-link { font-size: 11.5px; font-weight: 600; color: var(--accent-blue); }
.comment-reply-link::before { content: '↩ '; }
.comment-list .children { list-style: none; margin: 14px 0 0 30px; padding-left: 16px; border-left: 2px solid var(--line); }
.no-comments { font-size: 12px; color: var(--muted); padding: 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }

/* 评论表单：网格卡片 */
.comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; padding: 26px; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas-soft); }
.comment-notes, .logged-in-as, .comment-form-cookies-consent, .form-submit { grid-column: 1 / -1; }
.comment-notes { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11.5px; color: var(--muted); }
.comment-notes svg { color: var(--accent); flex: none; }
.comment-field { display: flex; flex-direction: column; gap: 7px; }
.comment-field:first-of-type { grid-column: 1 / -1; }
.comment-field label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.field-required { color: #ef4444; }
.field-optional { color: var(--muted-2); font-weight: 400; font-size: 10.5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; margin: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font-size: 13px; transition: border-color .18s, box-shadow .18s;
}
.comment-form textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.comment-form input::placeholder, .comment-form textarea::placeholder { color: var(--muted-2); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(104, 137, 176, .16); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; color: var(--muted); }
.comment-form-cookies-consent input { width: 14px; height: 14px; accent-color: var(--ink); margin: 0; }
.comment-form-cookies-consent label { margin: 0; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.form-submit { display: flex; justify-content: flex-end; margin: 0; }
.comment-submit { background: var(--btn); color: var(--btn-ink); padding: 11px 26px; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.comment-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.logged-in-as { margin: 0; font-size: 12px; color: var(--muted); }
.logged-in-as a { color: var(--accent-blue); }

/* 404 */
.error-404 { text-align: center; padding: 100px 20px 130px; }
.error-404__code { font-size: clamp(90px, 18vw, 190px); font-weight: 800; letter-spacing: -.08em; line-height: 1; color: var(--canvas-tint); -webkit-text-stroke: 1px var(--line); }
.error-404__title { font-size: 24px; font-weight: 800; margin: 10px 0 12px; }
.error-404__desc { color: var(--muted); font-size: 13px; margin-bottom: 26px; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 30px; background: var(--canvas); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)); gap: 44px; }
.footer-brand { font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.footer-desc { font-size: 12px; line-height: 1.9; color: var(--muted); max-width: 480px; margin: 14px 0 0; }
.footer-col h4 { font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.footer-col a { font-size: 11.5px; color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* 页脚友情链接 */
.footer-links {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.footer-links__title { font-size: 12px; font-weight: 800; color: var(--ink); flex: none; }
.footer-links__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-links__list a { font-size: 11.5px; color: var(--muted); }
.footer-links__list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) { .footer-links { flex-direction: column; gap: 10px; } }

.footer-bottom {
  margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11px; color: var(--muted-2);
}

/* ==========================================================================
   9. Overlays: search modal, mobile menu, back to top
   ========================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(16, 16, 16, .42); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.modal-backdrop.is-open { display: block; animation: fade-in .2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.search-modal {
  width: min(620px, 92vw); margin: 13vh auto 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: modal-in .28s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
.search-modal__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-modal__head svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-modal__input { flex: 1; border: 0; outline: 0; background: none; color: var(--ink); font-size: 15px; }
.search-modal__input::placeholder { color: var(--muted-2); }
.search-modal__esc { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }
.search-modal__body { padding: 16px 18px 20px; }
.search-modal__hint { font-size: 12px; color: var(--muted); line-height: 1.8; }
.search-modal__results { display: grid; gap: 4px; margin-top: 10px; max-height: 46vh; overflow-y: auto; }
.search-modal__results a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; font-size: 13px; }
.search-modal__results a:hover { background: var(--canvas-tint); }
.search-modal__results small { display: block; color: var(--muted); font-size: 11px; }
.search-modal__foot { padding: 10px 18px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted-2); }

.mobile-panel-backdrop {
  position: fixed; inset: 0; z-index: 205; background: rgba(16, 16, 16, .38);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-panel-backdrop.is-open { opacity: 1; visibility: visible; }
html[data-theme="dark"] .mobile-panel-backdrop { background: rgba(0, 0, 0, .6); }
.mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); z-index: 210;
  background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 20px; overflow-y: auto; transform: translateX(102%); transition: transform .3s var(--ease);
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mobile-panel__actions { display: flex; align-items: center; gap: 6px; }
.mobile-panel ul { list-style: none; }
.mobile-panel li a { display: block; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 600; }
.mobile-panel .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 14px; display: block; min-width: 0; }
.mobile-panel .sub-menu a { font-size: 12px; font-weight: 400; color: var(--muted); border: 0; padding: 8px 10px; }
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 40px; height: 40px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--ink-2);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); }

/* ==========================================================================
   10. WordPress core helpers
   ========================================================================== */
.alignleft { float: left; margin: 0 20px 18px 0; }
.alignright { float: right; margin: 0 0 18px 20px; }
.aligncenter { display: block; margin: 0 auto 18px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.sticky { position: relative; }
.bypostauthor { display: block; }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { margin: 0; }
.gallery-icon img { width: 100%; border-radius: 8px; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-trigger { min-width: 40px; justify-content: center; }
  .search-trigger .search-trigger__text, .search-trigger .kbd { display: none; }
}
@media (max-width: 1024px) {
  .header-inner { gap: 12px; }
  .primary-nav .nav-link { padding: 0 9px; }
  .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-wrap--app { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .app-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .app-side__card { margin-bottom: 0; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sidebar .widget { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .primary-nav, .product-switcher, .header-divider, .online-stats, .wechat-dot { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding: 44px 0 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-subtitle { white-space: normal; }
  .icon-wall { height: 280px; }
  .icon-wall-grid { top: -16%; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .header-inner { height: 56px; }
  .brand-logo { font-size: calc(var(--macgf-logo-h, 30px) * .567); }
  .badge-beta, .theme-switch { display: none; }
  .search-trigger { display: none; }
  .btn-sm { padding: 0 11px; font-size: 11px; }
  .online-inner { height: 38px; }
  .avatars span:nth-child(n+6) { display: none; }
  .hero-title { font-size: clamp(42px, 11vw, 60px); }
  .hero-subtitle { font-size: clamp(28px, 8vw, 44px); }
  .hero-desc { font-size: 12.5px; }
  .icon-wall { height: 210px; }
  .icon-wall-grid { gap: 8px; }
  .app-tile { border-radius: 10px; font-size: 15px; }
  .section { padding-top: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title { font-size: 23px; }
  .app-grid { gap: 22px 12px; }
  .app-name { font-size: 12px; }
  .app-cat { display: none; }
  .post-row { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .post-row__title { font-size: 15px; }
  .post-row__excerpt { display: none; }
  .app-detail-hero { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .app-detail-actions { grid-column: 1 / -1; flex-direction: row; }
  .app-side { grid-template-columns: 1fr; }
  .app-gallery__item { width: 240px; }
  .app-gallery__item img { height: 140px; }
  .app-detail-hero__icon { width: 62px; height: 62px; border-radius: 17px; font-size: 26px; }
  .app-detail-hero__name { font-size: 19px; }
  .article-wrap { padding: 30px 0 60px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col ul { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   12. Supplements — 后台菜单、WordPress 列表与小工具兼容
   ========================================================================== */
.brand .custom-logo { height: var(--macgf-logo-h, 30px); width: auto; max-width: 150px; object-fit: contain; }
.primary-nav .default-nav { list-style: none; display: flex; align-items: center; gap: 2px; }
.primary-nav .menu-item-has-children > .nav-link::after {
  content: ""; width: 6px; height: 6px; margin-left: 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5;
}
.pagination ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination li { display: block; }
/* 文章底部「同类应用」：3 个紧凑卡片横排（小图标 + 标题 + 两行简介） */
.article .related .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.article .related .app-card {
  display: block; min-width: 0; padding: 14px; border: 1px solid var(--line-soft);
  border-radius: 12px; background: var(--card); transition: background .2s var(--ease), border-color .2s var(--ease);
}
.article .related .app-card:hover { background: var(--canvas-soft); border-color: var(--line); }
.article .related .app-thumb,
.article .related .app-cat,
.article .related .app-stats { display: none; }
.article .related .app-meta { margin-top: 0; }
.article .related .app-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; flex-shrink: 0; }
.article .related .app-name { font-size: 13px; }
.article .related .app-desc {
  margin: 8px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.error-404 .search-form { margin-left: auto; margin-right: auto; }
.widget_search form { display: flex; gap: 8px; }
.widget_search .search-submit { height: 36px; padding: 0 14px; border-radius: 9px; background: var(--btn); color: var(--btn-ink); font-size: 12px; font-weight: 700; }
.widget_calendar table { width: 100%; font-size: 11px; border-collapse: collapse; }
.widget_calendar td, .widget_calendar th { padding: 5px; text-align: center; }
.mobile-panel .menu-item-has-children > a::after { content: "⌄"; float: right; opacity: .5; }
.footer-menu { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.footer-menu a { font-size: 11.5px; color: var(--muted); }
.footer-menu a:hover { color: var(--ink); }

@media (max-width: 620px) {
  .article .related .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .article .related .app-card { padding: 11px; }
  .article .related .app-icon { width: 30px; height: 30px; font-size: 13px; }
  .comment-list .children { margin-left: 12px; padding-left: 12px; }
  .comment-form { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .comments-area { margin-top: 40px; }
}

/* ==========================================================================
   登录卡片弹窗 · v1.1
   ========================================================================== */
button.btn-sm { border: 0; cursor: pointer; font-family: inherit; line-height: 1; }
body.macgf-modal-open { overflow: hidden; }

.macgf-modal {
  position: fixed; inset: 0; z-index: 220; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.macgf-modal.is-open { display: flex; }
.macgf-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 16, 20, .46);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: macgf-fade-in .22s var(--ease);
}
html[data-theme="dark"] .macgf-modal__backdrop { background: rgba(0, 0, 0, .62); }

.macgf-modal__card {
  position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 32px 30px 26px;
  animation: macgf-pop-in .28s var(--ease);
}
@keyframes macgf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes macgf-pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.macgf-modal__close {
  position: absolute; top: 14px; right: 16px;
  width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .2s, color .2s;
}
.macgf-modal__close:hover { background: var(--canvas-tint); color: var(--ink); }

.macgf-modal__head { text-align: center; margin-bottom: 24px; }
.macgf-modal__logo {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 13px;
  display: grid; place-items: center; font-size: 23px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
}
.macgf-modal__head h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.macgf-modal__head p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.macgf-login-form { display: grid; gap: 14px; }
.macgf-field { display: grid; gap: 7px; }
.macgf-field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.macgf-field input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--canvas-soft); color: var(--ink);
  font-size: 13px; font-family: inherit; outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.macgf-field input::placeholder { color: var(--muted-2); }
.macgf-field input:focus {
  border-color: var(--accent-blue);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(104, 137, 176, .16);
}
.macgf-remember { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.macgf-remember input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

.macgf-login-message { display: none; padding: 9px 12px; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.macgf-login-message.is-visible { display: block; }
.macgf-login-message.is-error { background: rgba(244, 63, 94, .09); color: #e11d48; border: 1px solid rgba(244, 63, 94, .2); }
.macgf-login-message.is-ok { background: rgba(7, 193, 96, .09); color: #059669; border: 1px solid rgba(7, 193, 96, .2); }

.macgf-login-submit {
  position: relative; height: 44px; border: 0; border-radius: 10px;
  background: var(--btn); color: var(--btn-ink);
  font-size: 13.5px; font-weight: 700; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .2s var(--ease), opacity .2s;
}
.macgf-login-submit:hover { transform: translateY(-1px); opacity: .9; }
.macgf-login-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.macgf-login-submit__spinner { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: macgf-spin .7s linear infinite; }
.macgf-login-submit.is-busy .macgf-login-submit__spinner { display: block; }
@keyframes macgf-spin { to { transform: rotate(360deg); } }

.macgf-login-links { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 12px; }
.macgf-login-links a { color: var(--muted); }
.macgf-login-links a:hover { color: var(--accent-blue); }

.macgf-oauth { margin-top: 22px; }
.macgf-oauth__divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 11px; }
.macgf-oauth__divider::before, .macgf-oauth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.macgf-oauth__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.macgf-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 600;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.macgf-oauth-btn:hover { transform: translateY(-1px); border-color: var(--muted-2); box-shadow: var(--shadow-md); }
.macgf-oauth-btn__icon {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 800; flex: none;
}
.macgf-oauth-btn--qq .macgf-oauth-btn__icon { background: #12b7f5; }
.macgf-oauth-btn--weibo .macgf-oauth-btn__icon { background: #e6162d; }
.macgf-oauth-btn.is-unconfigured { opacity: .72; }
.macgf-oauth__hint { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--muted-2); line-height: 1.7; }

@media (max-width: 480px) {
  .macgf-modal { padding: 14px; }
  .macgf-modal__card { padding: 26px 20px 22px; border-radius: 16px; }
  .macgf-oauth__buttons { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .macgf-modal__backdrop, .macgf-modal__card { animation: none; }
}

/* ==========================================================================
   15. 图片灯箱
   ========================================================================== */
#macgf-lightbox {
  position: fixed; inset: 0; z-index: 100000;
  display: none; align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 72px);
  background: rgba(10, 10, 14, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#macgf-lightbox.is-open { display: flex; animation: macgf-lb-in .18s ease-out; }
body.macgf-lightbox-open { overflow: hidden; }
@keyframes macgf-lb-in { from { opacity: 0; } to { opacity: 1; } }
.macgf-lightbox__img {
  display: block; max-width: 100%; max-height: 86vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.macgf-lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.macgf-lightbox__close:hover { background: rgba(255, 255, 255, .2); }
.macgf-lightbox__caption {
  position: absolute; bottom: 22px; left: 24px; right: 24px;
  margin: 0; text-align: center; color: rgba(255, 255, 255, .82);
  font-size: 12.5px; line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  #macgf-lightbox.is-open { animation: none; }
}

/* ==========================================================================
   16. 多网盘下载地址
   ========================================================================== */
.download-item { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.download-item__meta { display: flex; align-items: center; justify-content: flex-start; gap: 18px; flex-wrap: nowrap; margin-bottom: 0; }
.download-item__spec-tier, .download-item__spec-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; background: var(--canvas-tint); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.download-item__spec-chip { color: var(--accent-blue); }
.download-item__middle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; text-align: center; }
.download-item__middle .download-item__note { flex: 0 1 auto; }
.download-item__links { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.download-item__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.download-item__entry { display: inline-flex; align-items: center; gap: 8px; }
.download-item__pass {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 6px 8px; border: 1px solid var(--line-soft);
  border-radius: 10px; background: var(--canvas-soft);
}
.download-item__pass code { padding: 2px 6px; }
.download-item__actions .download-item__btn { margin-left: 0; height: 30px; padding: 0 8px; font-size: 11px; gap: 6px; }
.pan-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 4px; background: var(--pan-bg); color: #fff; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
@media (max-width: 640px) {
  .download-item { grid-template-columns: 1fr; gap: 8px; }
  .download-item__meta { flex-wrap: wrap; gap: 14px; }
  .download-item__middle { justify-content: flex-start; text-align: left; }
  .download-item__middle .download-item__note { flex-basis: auto; }
  .download-item__links { flex-direction: column; align-items: stretch; justify-content: stretch; }
  .download-item__actions { justify-content: stretch; }
  .download-item__entry { flex: 1 1 100%; justify-content: space-between; }
  .download-item__actions .download-item__btn { justify-content: center; }
}

/* ==========================================================================
   16. 新增页面：分类总览 / 图标墙 / 友情链接 / 标签云 / 登录页
   ========================================================================== */
.page-head { position: relative; padding: 56px 0 34px; }
.page-head__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; }
.page-head__title { font-size: clamp(30px, 5vw, 50px); font-weight: 800; letter-spacing: -.045em; margin: 10px 0 12px; }
.page-head__desc { color: var(--muted); font-size: 14px; max-width: 620px; margin: 0; }
.page-head__count { position: absolute; right: 0; bottom: 38px; color: var(--muted); font-size: 13px; }

/* 分类文件夹 */
.cat-folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; padding-bottom: 60px; }
.cat-folder { border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.cat-folder:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-folder__trigger { display: block; width: 100%; text-align: left; padding: 18px 18px 16px; }
.cat-folder__stage { display: block; position: relative; height: 110px; margin-bottom: 14px; }
.cat-folder__back { position: absolute; left: 30px; right: 30px; top: 18px; bottom: 8px; background: var(--canvas-tint); border-radius: 12px; }
.cat-folder__card { position: absolute; width: 92px; height: 76px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; padding: 8px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.cat-folder__card--1 { left: 20px; top: 8px; transform: rotate(-8deg); }
.cat-folder__card--2 { right: 20px; top: 14px; transform: rotate(7deg); }
.cat-folder__card img, .cat-folder__app-fallback { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.cat-folder__app-fallback { display: grid; place-items: center; background: linear-gradient(145deg, #e0e7ff, #fce7f3); font-weight: 700; color: #4338ca; }
.cat-folder__flap { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--canvas-tint); border-radius: 0 0 12px 12px; transition: transform .35s var(--ease); transform-origin: top; }
.cat-folder.is-open .cat-folder__flap { transform: rotateX(-150deg); }
.cat-folder.is-open .cat-folder__card--1 { transform: rotate(-12deg) translate(-8px, -6px); }
.cat-folder.is-open .cat-folder__card--2 { transform: rotate(12deg) translate(8px, -6px); }
.cat-folder__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-folder__name { font-size: 15px; font-weight: 700; }
.cat-folder__count { font-size: 12px; color: var(--muted); }
.cat-folder__desc { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.cat-folder__panel { max-height: 0; overflow: hidden; padding: 0 18px; transition: max-height .3s var(--ease), padding .3s var(--ease); border-top: 1px solid transparent; }
.cat-folder.is-open .cat-folder__panel { max-height: 260px; padding: 12px 18px 16px; border-top-color: var(--line-soft); }
.cat-folder__panel ul { list-style: none; margin: 0 0 10px; }
.cat-folder__panel li { font-size: 13px; padding: 4px 0; color: var(--ink-2); }
.cat-folder__panel li a:hover { color: var(--accent-blue); }
.cat-folder__more { font-size: 12px; color: var(--accent-blue); font-weight: 600; }

/* 图标墙 */
.icon-wall-page { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; padding-bottom: 64px; }
.icon-wall-page__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-soft); cursor: grab; touch-action: none; transition: box-shadow .2s var(--ease); user-select: none; }
.icon-wall-page__item:hover { box-shadow: var(--shadow-md); }
.icon-wall-page__item.is-dragging { cursor: grabbing; z-index: 10; box-shadow: var(--shadow-lg); opacity: .92; }
.icon-wall-page__visual { width: 58px; height: 58px; border-radius: 15px; overflow: hidden; background: var(--canvas-tint); display: grid; place-items: center; }
.icon-wall-page__visual img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.icon-wall-page__fallback { font-size: 22px; font-weight: 800; color: #4338ca; }
.icon-wall-page__name { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-wall-page__cat { font-size: 10px; color: var(--muted); }

/* 友情链接页 */
.friend-group { margin-bottom: 42px; }
.friend-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.friend-group__head h2 { font-size: 19px; font-weight: 700; }
.friend-group__head span { font-size: 12px; color: var(--muted); }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; list-style: none; }
.friend-grid a { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 16px; border-radius: 16px; background: var(--canvas-soft); border: 1px solid var(--line-soft); transition: transform .2s var(--ease), background .2s var(--ease); }
.friend-grid a:hover { transform: translateY(-2px); background: var(--canvas-tint); }
.friend-grid__mark { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.friend-grid__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.friend-grid__body strong { font-size: 14px; }
.friend-grid__body > span { font-size: 12px; color: var(--muted); }
.friend-grid__desc { margin-top: 3px; font-size: 11px; color: var(--muted-2); }
.friend-grid__arrow { color: var(--muted); font-size: 16px; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-bottom: 64px; }
.tag-cloud a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--canvas-soft); border: 1px solid var(--line-soft); line-height: 1.2; transition: background .2s var(--ease), transform .2s var(--ease); }
.tag-cloud a:hover { background: var(--canvas-tint); transform: translateY(-2px); }
.tag-cloud__icon { width: 14px; height: 14px; color: var(--muted); }
.tag-cloud__count { font-size: .72em; color: var(--muted); }

/* 登录页 */
.login-page { padding: 40px 20px 80px; }
.login-page__grid { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.login-page__visual { border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 22px; overflow: hidden; }
.login-page__visual-head { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.login-page__tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; opacity: .85; }
.login-page__tile { aspect-ratio: 1; border-radius: 7px; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.login-page__visual > p { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.login-page__card { border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 30px; box-shadow: var(--shadow-sm); }
.login-page__brand { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, #2f6bff, #7a3cff 55%, #ff4d8d); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.login-page__card h1 { font-size: 24px; font-weight: 800; }
.login-page__sub { color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
@media (max-width: 760px) {
  .login-page__grid { grid-template-columns: 1fr; }
  .login-page__visual { display: none; }
  .page-head__count { position: static; display: block; margin-top: 10px; }
}

/* Hero App Stack */
.app-stack { position: relative; display: flex; align-items: center; gap: 6px; }
.app-stack__icon { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; border: 2px solid var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; background: linear-gradient(145deg, #e0e7ff, #fce7f3); font-weight: 700; font-size: 14px; transition: transform .2s var(--ease); }
.app-stack__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-stack__icon:hover { transform: translateY(-4px); }
.app-stack__popover { position: absolute; top: 100%; width: 288px; max-width: calc(100vw - 32px); border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 30; margin-top: 0; }
.app-stack__icon:hover + .app-stack__popover, .app-stack__popover:hover { opacity: 1; pointer-events: auto; transform: translateY(0); }
.app-stack__cover { display: block; height: 130px; overflow: hidden; background: var(--canvas-tint); }
.app-stack__cover img { width: 100%; height: 100%; object-fit: cover; }
.app-stack__info { display: flex; align-items: center; gap: 10px; padding: 12px; }
.app-stack__icon-sm { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.app-stack__icon-sm img { width: 100%; height: 100%; object-fit: cover; }
.app-stack__copy { display: flex; flex-direction: column; min-width: 0; }
.app-stack__copy strong { font-size: 13px; }
.app-stack__copy span { font-size: 11px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-tile--image img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* 下载登录限制 */
.download-locked { text-align: center; padding: 34px 20px; border: 1px dashed var(--line); border-radius: 14px; background: var(--canvas-soft); }
.download-locked__icon { font-size: 28px; }
.download-locked strong { display: block; margin: 8px 0 4px; font-size: 15px; }
.download-locked p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

/* 应用结构化区块 */
.app-structured { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.app-structured__block { padding: 18px; border-radius: 14px; background: var(--canvas-soft); border: 1px solid var(--line-soft); }
.app-structured__block h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.app-structured__block p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0; }

/* 等级徽章与评论增强 */
.level-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(104,137,176,.14); color: var(--accent-blue); font-size: 10px; font-weight: 700; }
.comment-level { margin-left: 4px; }
.comment-hq { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 10px; color: #b45309; background: rgba(245,158,11,.12); padding: 1px 7px; border-radius: 6px; }
.comment-hq__star { color: #f59e0b; }
.comment-env { display: block; margin-top: 6px; font-size: 11px; color: var(--muted-2); }
.comment-report { margin-top: 6px; font-size: 11px; color: var(--muted); border: 0; background: none; padding: 0; }
.comment-report:hover { color: #dc2626; }
.online-cards { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 28px; }
.online-card { display: flex; flex-direction: column; gap: 3px; width: 160px; padding: 12px; border-radius: 12px; background: var(--canvas-soft); border: 1px solid var(--line-soft); }
.online-card__avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg,#f59e0b,#ea580c); color: #fff; display: grid; place-items: center; font-weight: 700; }
.online-card__body { display: flex; align-items: center; gap: 6px; }
.online-card__body strong { font-size: 12px; }
.online-card__meta { font-size: 10px; color: var(--muted-2); }

/* 悬浮快捷入口 */
.macgf-floating-shortcuts { position: fixed; right: 18px; bottom: 64px; z-index: 80; }
.macgf-floating-action { width: 42px; height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--accent); }
.macgf-floating-action svg { width: 22px; height: 22px; }
.macgf-floating-wechat__popover { position: absolute; right: 52px; bottom: 0; width: 178px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateX(8px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.macgf-floating-wechat__popover.is-open { opacity: 1; pointer-events: auto; transform: none; }
.macgf-floating-wechat__qr { display: block; width: 150px; height: 150px; background: var(--canvas-tint); border-radius: 10px; overflow: hidden; }
.macgf-floating-wechat__qr img { width: 100%; height: 100%; object-fit: contain; }
.macgf-floating-wechat__caption { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* 站点提示层 */
.macgf-prompt-layer { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(0,0,0,.25); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 20px; }
.macgf-prompt { position: relative; max-width: 420px; width: 100%; border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow-lg); }
.macgf-prompt__close { position: absolute; top: 10px; right: 12px; font-size: 22px; color: var(--muted); }
.macgf-prompt p { margin: 0; font-size: 14px; line-height: 1.7; }

/* 举报弹窗 */
.report-modal { position: fixed; inset: 0; z-index: 220; display: none; place-items: center; background: rgba(0,0,0,.3); padding: 20px; }
.report-modal.is-open { display: grid; }
.report-modal__card { position: relative; width: 100%; max-width: 420px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow-lg); }
.report-modal__close { position: absolute; top: 10px; right: 12px; font-size: 22px; color: var(--muted); }
.report-modal__card h3 { font-size: 16px; margin-bottom: 6px; }
.report-modal__card > p { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.report-modal__options { display: flex; flex-direction: column; gap: 7px; }
.report-modal__options label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.report-modal__note { width: 100%; margin-top: 12px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--canvas-soft); color: var(--ink); resize: vertical; }
.report-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.report-modal__msg { min-height: 16px; margin-top: 8px !important; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .macgf-floating-shortcuts { right: 12px; bottom: 56px; }
  .cat-folder-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* 提交应用页 */
.submit-notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); }
.submit-notice--ok { background: var(--canvas-tint); color: var(--ink); }
.submit-notice--error { background: #fff2f0; border-color: #ffccc7; color: #a8071a; }
.submit-notice a { margin-left: 8px; text-decoration: underline; }
.submit-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 28px; padding-bottom: 64px; align-items: start; }
.submit-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.submit-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.submit-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.submit-field--full { grid-column: 1 / -1; }
.submit-field > span { font-weight: 600; color: var(--ink); }
.submit-field > span b { color: #e24b4a; }
.submit-field input, .submit-field select, .submit-field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--canvas-soft); color: var(--ink); font-size: 13px; font-family: inherit; outline: none; transition: border-color .2s var(--ease); }
.submit-field input:focus, .submit-field select:focus, .submit-field textarea:focus { border-color: var(--accent); }
.submit-field textarea { resize: vertical; line-height: 1.6; }
.submit-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.submit-form__foot p { margin: 0; font-size: 12px; color: var(--muted); }
.submit-submit { border: 0; border-radius: 10px; background: var(--ink); color: var(--card); padding: 11px 22px; font-size: 13px; font-weight: 700; cursor: pointer; flex: none; }
.submit-submit:hover { opacity: .85; }
.submit-aside { background: var(--canvas-soft); border: 1px solid var(--line-soft); border-radius: 16px; padding: 22px; }
.submit-aside h3 { font-size: 15px; margin: 0 0 12px; }
.submit-aside ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
@media (max-width: 860px) {
  .submit-layout { grid-template-columns: 1fr; }
  .submit-form__grid { grid-template-columns: 1fr; }
  .submit-form__foot { flex-direction: column; align-items: stretch; }
}
