:root {
  /* 炭灰琥珀：炭灰头部 + 琥珀黄点缀 + 暖浅灰内容区（2026-11-21 由电报蓝双色改来） */
  --head-1: #3a3c41; --head-2: #2a2b2f; --head-3: #202124; /* 炭灰：头部、电脑端左侧面板 */
  --amber: #f0b54a; --amber-2: #d99a2b; --amber-soft: #f8ecd3; /* 琥珀黄：按钮、选中标签、LOGO */
  --ink: #1d1d1f; /* 琥珀色块上的文字 */
  --bg: #ecebe7; --fg: #1d1e21; --muted: #6c6b68;
  --card: #f8f7f4; --card-hover: #fff;
  --line: #dcdad4; --line-strong: #cac7bf;
  --accent: #a3690c; /* 浅底上的文字链接用深琥珀，保证看得清 */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 26px -18px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 32px -18px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-lg: 20px; /* 名片、商城大卡、便当格统一的大圆角 */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; background: var(--bg); }
body {
  min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd {
  font: 12px var(--mono); padding: 2px 7px; color: var(--muted);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
}


/* ---------- 头部（紧凑） ---------- */
.hero { position: relative; z-index: 0; max-width: 1080px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 14px) 16px 0; color: #fff; }
/* 炭灰头部铺满整屏宽度，并向下延伸盖住分类栏 */
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: -66px; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: linear-gradient(160deg, var(--head-1), var(--head-2) 70%); border-radius: 0 0 26px 26px;
}
.bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand act" "search search"; align-items: center; gap: 12px 10px; }
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.logo .mark { width: 100%; height: 100%; display: block; }
.logo .dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #34d399; border: 2px solid var(--head-2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #34d39988; } 70%, 100% { box-shadow: 0 0 0 7px #34d39900; } }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.title { font-size: 17px; font-weight: 750; line-height: 1.25; letter-spacing: 0.02em; white-space: nowrap; color: #fff; }
.slogan { font-size: 11.5px; font-weight: 400; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-actions { grid-area: act; display: flex; gap: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 99px;
  font-size: 13px; font-weight: 600; transition: 0.2s; color: #fff;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn .i { width: 15px; height: 15px; }
.btn:hover { background: rgba(255, 255, 255, 0.24); }
.btn.pri { border: 0; color: var(--ink); background: var(--amber); }
.btn.pri:hover { background: #f5c266; }

.search {
  grid-area: search; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 14px;
  border-radius: 14px; background: #fff; cursor: text; transition: 0.25s;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.6);
}
.search:focus-within { box-shadow: 0 0 0 3px var(--amber); }
.search .i { width: 18px; height: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }

/* ---------- 分类栏（吸顶） ---------- */
.tabs-wrap {
  position: sticky; top: 0; z-index: 10; margin-top: 10px; padding: 8px 0;
  border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s;
}
.tabs-wrap.stuck { background: var(--head-2); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.6); }
.tabs {
  max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 32px; padding: 0 13px; border-radius: 99px; font-size: 13px; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1); transition: 0.2s;
}
.tab:hover { background: rgba(255, 255, 255, 0.18); }
.tab.active { color: var(--ink); font-weight: 650; background: var(--amber); }
.tab .n { font-size: 11px; opacity: 0.7; margin-left: 4px; }

@media (min-width: 760px) {
  .hero { padding-top: 22px; }
  .bar { grid-template-columns: auto minmax(0, 420px) auto; grid-template-areas: "brand search act"; justify-content: space-between; gap: 20px; }
  .logo { width: 42px; height: 42px; border-radius: 13px; }
  .logo .i { width: 22px; height: 22px; }
  .title { font-size: 19px; }
  .slogan { font-size: 12.5px; }
  .tabs-wrap { margin-top: 14px; }
  .tabs { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 480px) {
  .btn:not(.pri) span { display: none; }
  .btn:not(.pri) { width: 34px; padding: 0; }
}
@media (max-width: 350px) { .slogan { display: none; } }

/* ---------- 分组 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 20px; }
.group { margin-top: 22px; animation: rise 0.6s both; }
main > .group:first-child { margin-top: 30px; }
main > .profile + .group { margin-top: 26px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.group-head { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 14px; }
.group-head h2 { font-size: 18px; font-weight: 700; letter-spacing: 0.03em; }
.group-head small { font-size: 12.5px; color: var(--muted); }
.group-head::after { content: ""; flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--line-strong), transparent); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.grid.tg { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }

/* ---------- 卡片 ---------- */
.card {
  position: relative; display: flex; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s; overflow: hidden; isolation: isolate;
}
.card:hover { transform: translateY(-2px); background: var(--card-hover); box-shadow: var(--shadow-hover); }

/* 图标：渐变玻璃方块 + 高光 + 同色辉光 */
.icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.42), transparent 52%), linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), inset 0 -6px 12px -6px rgba(0, 0, 0, 0.35), 0 10px 22px -10px var(--c1);
  transition: transform 0.3s;
}
.icon .i { width: 23px; height: 23px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.icon.img { position: relative; background: none; overflow: hidden; box-shadow: none; }
.icon.img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); pointer-events: none; }
.icon.img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.l1 { display: flex; align-items: center; gap: 8px; }
.l1 h3 { font-size: 15.5px; font-weight: 650; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px;
  color: var(--ink); background: var(--amber-soft);
}
.desc { font-size: 12.8px; color: var(--muted); line-height: 1.55; }
.l3 { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.dom { font: 11.5px var(--mono); color: var(--muted); }
.go { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--fg); transition: color 0.25s; }
.go .i { width: 15px; height: 15px; transition: transform 0.25s; }
.card:hover .go { color: var(--accent); }
.card:hover .go .i { transform: translateX(3px); }

/* 商城：色带卡 —— 图标和名称放在顶部的彩色色带里，描述在下方 */
.shops .card { display: grid; grid-template-columns: auto 1fr; align-content: start; column-gap: 12px; row-gap: 10px; padding: 0 0 14px; }
.shops .card::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 74px;
  background: linear-gradient(120deg, var(--c1), var(--c2));
}
.shops .meta { display: contents; }
.shops .icon { grid-row: 1; margin: 14px 0 0 14px; width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.shops .icon .i { width: 24px; height: 24px; }
.shops .l1 { grid-column: 2; grid-row: 1; height: 74px; padding-right: 14px; }
.shops .l1 h3 { color: #fff; font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); }
.shops .tag { color: #fff; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); }
.shops .desc { grid-column: 1 / -1; padding: 0 16px; }
.shops .l3 { grid-column: 1 / -1; padding: 0 16px; margin-top: 0; }

/* ---------- 首页商城大卡 ----------
 * 手机：卡包式堆叠 —— 往下滚时前面的卡收成一条色带叠在顶部（--i 是第几张，--peek 是每张露出的高度）
 * 平板 / 电脑：两列平铺，第一张横跨两列 */
:root { --base: 60px; --peek: 50px; --band: 58px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.scard {
  position: sticky; top: calc(var(--base) + var(--i, 0) * var(--peek)); z-index: 1;
  display: flex; flex-direction: column; min-height: var(--h, 0px);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--card-hover);
  box-shadow: 0 -10px 26px -14px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 30px -20px rgba(0, 0, 0, 0.45);
}
.searching .scard { position: relative; top: auto; min-height: 0; }
.scard .band {
  flex: none; height: var(--band); display: flex; align-items: center; gap: 11px; padding: 0 16px 0 14px; color: #fff;
  background: linear-gradient(120deg, var(--c1), var(--c2));
}
.scard .icon { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.scard h3 { font-size: 16.5px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18); }
.scard .tag { color: #fff; background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4); }
.scard .body {
  flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px;
  background: radial-gradient(70% 90% at 100% 0, color-mix(in srgb, var(--c1) 10%, transparent), transparent 70%);
}
.scard .rec {
  flex: none; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 650; letter-spacing: 0;
  color: var(--c2); background: #fff; text-shadow: none;
}
.scard .detail { font-size: 14.5px; line-height: 1.75; color: #3a3a3c; overflow-wrap: anywhere; }
.pay { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.pay > span { font-size: 12px; color: var(--muted); }
.pay ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pay li { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; color: var(--fg); background: color-mix(in srgb, var(--c1) 12%, #fff); }
.scard .cta { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scard .dom { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.enter {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 13.5px; font-weight: 650;
  color: #fff; background: linear-gradient(120deg, var(--c1), var(--c2));
}
.enter .i { width: 15px; height: 15px; transition: transform 0.25s; }
.scard:hover .enter .i { transform: translateX(3px); }
.side-index { display: none; }
/* 横屏等很矮的屏幕放不下堆叠，直接顺序排列 */
@media (max-height: 520px) { .scard { position: relative; top: auto; } }

@media (min-width: 760px) {
  .stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .scard { position: relative; top: auto; min-height: 0; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
  .scard:hover, .scard.hl, .bento .card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c1) 55%, transparent), var(--shadow-hover); }
  .scard .band { --band: 62px; padding: 0 20px 0 16px; gap: 13px; }
  .scard .icon { width: 40px; height: 40px; }
  .scard h3 { font-size: 17.5px; }
  .scard .body { padding: 20px 22px 18px; gap: 14px; }
  .scard .cta { padding-top: 8px; }
  .stack:not(.searching *) > .scard:first-child { grid-column: 1 / -1; }
  /* 主推卡占一行后，剩下的卡两两一排；如果最后剩一张，就让它也占满一行 */
  .stack:not(.searching *) > .scard:last-child:nth-child(even) { grid-column: 1 / -1; }
  .scard:first-child .band { --band: 72px; }
  .scard:first-child .icon { width: 46px; height: 46px; border-radius: 13px; }
  .scard:first-child h3 { font-size: 20px; }
  .scard:first-child .detail { font-size: 16px; }
}

/* ---------- 电脑端首页：左侧固定炭灰面板 + 右侧内容 ---------- */
@media (min-width: 1020px) {
  .home { --side: 340px; --pad: max(36px, (100vw - var(--side) - 1000px) / 2); }
  html:has(.home) { scroll-padding-top: 24px; }
  .home .hero { position: fixed; inset: 0 auto 0 0; width: var(--side); max-width: none; margin: 0; padding: 32px 26px 24px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
  .home .hero::before { position: fixed; inset: 0 auto 0 0; width: var(--side); border-radius: 0; background: linear-gradient(170deg, var(--head-1), var(--head-2) 60%, var(--head-3)); }
  .home .hero::after { content: ""; position: fixed; z-index: -1; top: 0; bottom: 0; left: var(--side); width: 3px; background: var(--amber); }
  .home .bar { display: flex; flex-direction: column; align-items: stretch; gap: 20px; flex: 1; }
  .home .logo { width: 48px; height: 48px; border-radius: 15px; }
  .home .title { font-size: 21px; }
  .home .search { flex: none; }
  .home .tabs-wrap { display: none; }
  .side-index { display: flex; flex-direction: column; gap: 2px; }
  .side-index p { margin: 6px 10px; font-size: 11.5px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); }
  .side-index a + p { margin-top: 16px; }
  .side-index a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 11px; font-size: 14px; color: rgba(255, 255, 255, 0.88); transition: background 0.2s; }
  .side-index a:hover { background: rgba(255, 255, 255, 0.08); }
  .side-index .sw { flex: none; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
  .side-index small { margin-left: auto; font-size: 11.5px; opacity: 0.65; }
  .home main, .home .more, .home .about, .home .foot, .home .empty { max-width: none; margin-left: calc(var(--side) + var(--pad)); margin-right: var(--pad); padding-left: 0; padding-right: 0; }
  .home main > .group:first-child, .home .profile { margin-top: 28px; }
  .home .about { margin-top: 34px; }
  .home .foot { text-align: left; }
  .home .grid.tg { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
  .stack { gap: 20px; }
  .scard:first-child .body { display: grid; grid-template-columns: 1fr 240px; gap: 14px 36px; padding: 24px 26px 20px; }
  .scard:first-child .pay { align-self: start; flex-direction: column; align-items: flex-start; }
  .scard:first-child .cta { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
  .stack:not(.searching *) > .scard:last-child:nth-child(even) .body { display: grid; grid-template-columns: 1fr 240px; gap: 14px 36px; }
  .stack:not(.searching *) > .scard:last-child:nth-child(even) .pay { align-self: start; flex-direction: column; align-items: flex-start; }
  .stack:not(.searching *) > .scard:last-child:nth-child(even) .cta { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
}

/* 机器人 / 商家 */
.tg .card { align-items: center; padding: 14px; }
.tg .icon { border-radius: 50%; }
.tg .l1 h3 { font-size: 14.5px; }
.tg .desc { font-size: 12.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.handle { font: 11.5px var(--mono); color: var(--muted); }
.acts { display: flex; gap: 6px; flex: none; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12px; white-space: nowrap;
  border: 1px solid var(--line-strong); transition: 0.2s;
}
.pill .i { width: 13px; height: 13px; }
.pill:hover { border-color: var(--amber-2); color: var(--accent); }
.pill.pri { border: 0; color: var(--amber); background: var(--head-2); }
.pill.pri:hover { filter: brightness(1.25); color: var(--amber); }

/* ---------- 首页个人名片 ---------- */
.home .hero-actions { display: none; } /* 首页的客服 / 频道按钮放进了名片 */
.home .bar { justify-content: flex-start; }
.profile {
  position: relative; margin-top: 30px; padding: 18px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--card-hover); box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "av who" "bio bio" "stats stats" "cta cta"; gap: 14px; align-items: center;
}
/* 名片顶部：炭灰横带 + 一道琥珀线 */
.profile::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 40px; background: linear-gradient(120deg, var(--head-1), var(--head-3)); }
.profile::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 40px; height: 3px; background: var(--amber); }
.searching .profile { display: none; }
.profile .av { grid-area: av; position: relative; width: 66px; height: 66px; }
.profile .av img { width: 100%; height: 100%; border-radius: 20px; display: block; box-shadow: 0 0 0 3px #fff, 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.profile .av i { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #34d399; border: 3px solid #fff; }
.profile .who { grid-area: who; min-width: 0; padding-top: 34px; }
.profile .who h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 750; letter-spacing: 0.02em; }
.profile .on { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; color: #0f8a5f; background: #def7ec; }
.profile .on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; }
.profile .who p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.profile .bio { grid-area: bio; font-size: 14px; line-height: 1.75; color: #3a3a3c; }
.profile .stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; background: var(--bg); }
.profile .stats div { padding: 10px 4px; text-align: center; }
.profile .stats div + div { box-shadow: -1px 0 0 var(--line); }
.profile .stats b { display: block; font-size: 17px; font-weight: 750; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile .stats span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.profile .cta { grid-area: cta; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile .cta a {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 13px; font-size: 14px; font-weight: 650;
  color: var(--fg); background: var(--bg); transition: 0.2s; white-space: nowrap;
}
.profile .cta a .i { width: 17px; height: 17px; }
.profile .cta a small { font: 12px var(--mono); opacity: 0.7; }
.profile .cta a.pri { color: var(--ink); background: var(--amber); box-shadow: 0 10px 20px -12px var(--amber-2); }
.profile .cta a:hover { filter: brightness(1.04); transform: translateY(-1px); }
@media (max-width: 370px) { .profile .cta a small { display: none; } }

/* ---------- 机器人 / 商家：便当格 ----------
 * 手机两列，主推占一整行；平板 / 电脑三列，主推占 2×2。
 * 6 个机器人在三列里正好铺满：主推 2×2 + 右侧 2 个 + 下面一行 3 个 */
.grid.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; grid-auto-flow: dense; }
.bento .card {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "icon . copy" "name name name" "desc desc desc" "handle handle open";
  gap: 0; padding: 14px; border-radius: var(--radius-lg); align-items: start;
  background: radial-gradient(130% 90% at 100% 0, color-mix(in srgb, var(--c1) 13%, transparent), transparent 60%), var(--card);
}
.bento .meta, .bento .acts { display: contents; }
.bento .icon { grid-area: icon; width: 42px; height: 42px; }
.bento .l1 { grid-area: name; margin-top: 12px; }
.bento .l1 h3 { font-size: 14.5px; white-space: normal; }
.bento .desc { grid-area: desc; margin-top: 4px; font-size: 12.5px; -webkit-line-clamp: 3; }
.bento .handle { grid-area: handle; align-self: center; margin-top: 12px; font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bento .copy { grid-area: copy; width: 32px; height: 32px; padding: 0; justify-content: center; border: 0; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.bento .copy span { display: none; }
.bento .pill.pri { grid-area: open; margin-top: 12px; height: 30px; }
/* 手机上小卡是奇数个时，最后一张占一整行，改成横排 */
.grid.bento:not(.duo) > .card:last-child:nth-child(even):not(.feat) {
  grid-column: 1 / -1; grid-template-columns: auto 1fr auto auto; grid-template-rows: auto auto auto; column-gap: 12px;
  grid-template-areas: "icon name copy open" "icon desc copy open" "icon handle copy open"; align-items: center;
}
.grid.bento:not(.duo) > .card:last-child:nth-child(even):not(.feat) :is(.l1, .handle, .pill.pri) { margin-top: 0; }
.grid.bento:not(.duo) > .card:last-child:nth-child(even):not(.feat) .desc { -webkit-line-clamp: 2; }

/* 主推大卡 */
.bento .card.feat {
  grid-column: 1 / -1; padding: 18px; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 16px 30px -18px var(--c1);
}
.bento .feat::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -50px; width: 190px; height: 190px; border-radius: 50%;
  background: var(--img, none) center / cover; opacity: 0.16; transform: rotate(-12deg);
}
.bento .feat::before {
  content: "推荐"; grid-area: name; justify-self: start; margin-top: 14px; padding: 2px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 650; color: var(--c2); background: #fff; /* 和商城卡的「推荐」同一样式 */
}
.bento .feat .icon { width: 54px; height: 54px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7); }
.bento .feat .l1 { margin-top: 44px; }
.bento .feat .l1 h3 { font-size: 19px; font-weight: 700; color: #fff; }
.bento .feat .desc { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); -webkit-line-clamp: unset; }
.bento .feat .handle { color: rgba(255, 255, 255, 0.75); }
.bento .feat .copy { color: #fff; background: rgba(255, 255, 255, 0.18); }
.bento .feat .pill.pri { height: 36px; padding: 0 18px; font-size: 13px; font-weight: 650; color: var(--c2); background: #fff; }
.bento .feat .pill.pri:hover { color: var(--c2); }

@media (min-width: 760px) {
  .profile { padding: 24px 26px; grid-template-columns: auto 1fr 340px; grid-template-areas: "av who stats" "av bio stats" "av cta stats"; gap: 6px 22px; align-items: start; }
  .profile::before { height: 52px; }
  .profile::after { top: 52px; }
  .profile .av { width: 84px; height: 84px; margin-top: 4px; }
  .profile .av img { border-radius: 24px; }
  .profile .who { padding-top: 52px; }
  .profile .who h2 { font-size: 23px; }
  .profile .bio { margin-top: 4px; }
  .profile .stats { grid-template-columns: 1fr 1fr; align-self: stretch; }
  .profile .stats div { display: flex; flex-direction: column; justify-content: center; padding: 14px 10px; }
  .profile .stats div + div { box-shadow: none; }
  .profile .stats div:nth-child(even) { box-shadow: -1px 0 0 var(--line); }
  .profile .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .profile .stats b { font-size: 22px; }
  .profile .cta { margin-top: 10px; grid-template-columns: auto auto; justify-content: start; }
  .profile .cta a { padding: 0 18px; }
  .grid.bento, .home .grid.bento { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .bento .card.feat { grid-column: span 2; grid-row: span 2; padding: 22px; }
  .bento .feat .icon { width: 64px; height: 64px; }
  .bento .feat::before { margin-top: 26px; }
  .bento .feat .l1 { margin-top: 58px; }
  .bento .feat .l1 h3 { font-size: 22px; }
  .bento .feat .desc { font-size: 15px; max-width: 30em; }
  .bento .feat::after { width: 240px; height: 240px; }
  /* 三列里不需要「最后一张占整行」 */
  .grid.bento:not(.duo) > .card:last-child:nth-child(even):not(.feat) {
    grid-column: auto; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "icon . copy" "name name name" "desc desc desc" "handle handle open"; align-items: start;
  }
  .grid.bento:not(.duo) > .card:last-child:nth-child(even):not(.feat) :is(.l1, .handle, .pill.pri) { margin-top: 12px; }
  .grid.bento:not(.duo) > .card:last-child:nth-child(even):not(.feat) .desc { margin-top: 4px; -webkit-line-clamp: 3; }
  /* 合作商家：并排横卡 */
  .grid.bento.duo, .home .grid.bento.duo { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
  .grid.bento.duo .card { grid-template-columns: auto 1fr auto auto; grid-template-rows: auto auto auto; column-gap: 14px;
    grid-template-areas: "icon name copy open" "icon desc copy open" "icon handle copy open"; align-items: center; }
  .grid.bento.duo :is(.l1, .handle, .pill.pri) { margin-top: 0; }
  .grid.bento.duo .icon { width: 48px; height: 48px; align-self: center; }
}

/* ---------- 其他 ---------- */
.hidden { display: none !important; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px 40px; }
.more { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.more .group-head { margin-top: 26px; }
.more .group-head a { color: var(--muted); }
.more .group-head a:hover { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px;
  color: var(--fg); background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: 0.2s;
}
.chip:hover { background: var(--card-hover); color: var(--accent); }
.chip.on { color: var(--amber); background: var(--head-2); }
.posts { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }
.posts a {
  display: block; height: 100%; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transition: 0.2s;
}
.posts a:hover { background: var(--card-hover); box-shadow: var(--shadow); }
.posts strong { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.45; }
.posts span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.about { max-width: 760px; margin: 34px auto 0; padding: 0 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.about h2 { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: 0.03em; margin-bottom: 8px; }
.about p + p { margin-top: 8px; }
.flinks { display: block; margin-top: 6px; }
.flinks a { color: var(--accent); }
.foot { text-align: center; font-size: 12px; color: var(--muted); padding: 30px 16px calc(env(safe-area-inset-bottom) + 36px); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 50;
  padding: 10px 18px; border-radius: 12px; font-size: 13.5px; background: var(--fg); color: #fff;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 专题页 / 教程页 ---------- */
.bar.slim { grid-template-columns: 1fr auto; grid-template-areas: "brand act"; }
.hero:has(.bar.slim) { padding-bottom: 14px; }
.hero:has(.bar.slim)::before { bottom: 0; border-radius: 0 0 22px 22px; }
.page { max-width: 820px; padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.page h1 { margin-top: 14px; font-size: 28px; font-weight: 750; line-height: 1.3; letter-spacing: 0.01em; text-wrap: balance; }
.page .date { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.page .group { animation: none; margin-top: 34px; }
.page .grid.tg { grid-template-columns: 1fr; }
.page .grid + .grid { margin-top: 12px; }
.prose { margin-top: 18px; font-size: 15px; line-height: 1.85; color: #3a3a3c; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 34px; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--fg); }
.prose h3 { margin-top: 24px; font-size: 16px; font-weight: 650; line-height: 1.45; color: var(--fg); }
.prose h2 + *, .prose h3 + * { margin-top: 8px; }
.prose strong { color: var(--fg); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--muted); }
.prose code { font: 0.9em var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--card); border: 1px solid var(--line); color: var(--fg); overflow-wrap: anywhere; }
.prose blockquote {
  padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.75;
  background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { color: var(--fg); font-weight: 650; border-bottom-color: var(--line-strong); white-space: nowrap; }
.faq { display: grid; gap: 10px; }
.faq div { padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.faq h3 { font-size: 14.5px; font-weight: 650; line-height: 1.5; }
.faq p { margin-top: 5px; font-size: 13.5px; line-height: 1.75; color: var(--muted); }
.page .posts { grid-template-columns: 1fr; }

@media (max-width: 640px) {
  .page h1 { font-size: 23px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 14px; gap: 12px; }
  .shops .icon { width: 44px; height: 44px; }
  .shops .card::before, .shops .l1 { height: 72px; }
  .tg .icon { width: 40px; height: 40px; }
  .tg .icon .i { width: 20px; height: 20px; }
  .pill.copy span { display: none; }
  .pill.copy { padding: 0 9px; }
  .search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
