/* ==========================================================
   云云发 · 全站视觉系统
   浅色内容 + 深色头图，强调"人 & AI 共同发布"
   ========================================================== */
:root {
  --brand: #2f5bea;
  --brand-deep: #1c3fc4;
  --brand-2: #7c5cff;
  --teal: #00c2a8;
  --ink: #0b1220;
  --ink-2: #243049;
  --muted: #67748c;
  --muted-2: #8b97ab;
  --line: #e7ebf3;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
  --shadow: 0 12px 32px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --grad: linear-gradient(120deg, #2f5bea 0%, #7c5cff 55%, #00c2a8 120%);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 235, 243, .9);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px;
  letter-spacing: .3px; flex: 0 0 auto; white-space: nowrap;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 6px 16px rgba(47, 91, 234, .35);
}
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 1.6px; }

/* 导航：不允许任何一项折行；空间不足时整条横向滚动 */
.nav {
  display: flex; gap: 2px; margin-left: 0;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--ink-2);
  font-size: 14.5px; font-weight: 500; transition: .18s;
  white-space: nowrap; flex: 0 0 auto;
}
.nav a:hover { background: #eef2fe; color: var(--brand); }
.nav a.on { color: var(--brand); background: #eef2fe; font-weight: 600; }

.topbar .spacer { flex: 1; }
.topbar .btn { flex: 0 0 auto; padding: 9px 16px; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(47, 91, 234, .25); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #c9d4ee; color: var(--brand); }
.btn-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-dark:hover { background: rgba(255, 255, 255, .2); }

/* ---------- 深色头图 ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(124, 92, 255, .55), transparent 60%),
    radial-gradient(760px 420px at 88% 0%, rgba(0, 194, 168, .38), transparent 60%),
    linear-gradient(160deg, #0b1220 0%, #131c33 55%, #0d1526 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .35; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 68px; padding-bottom: 64px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; letter-spacing: .4px;
}
.hero h1 {
  margin: 20px 0 14px; font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.18; letter-spacing: -1px; font-weight: 800;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8fb0ff, #6ff0dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0; max-width: 720px; color: rgba(255, 255, 255, .78); font-size: 16px; }
.hero .stat-row { display: flex; gap: 40px; margin-top: 34px; flex-wrap: wrap; }
.hero .stat b { display: block; font-size: 26px; letter-spacing: -.5px; }
.hero .stat span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }

/* 搜索框 */
.search-box {
  margin-top: 30px; display: flex; gap: 10px; padding: 10px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px; max-width: 720px; backdrop-filter: blur(8px);
}
.search-box input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: #fff; padding: 8px 12px; font-size: 15px;
}
.search-box input::placeholder { color: rgba(255, 255, 255, .55); }
.search-box .btn { background: #fff; color: var(--ink); }
.search-box .btn:hover { background: #eef2fe; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); align-items: center; }
.hot-tags a { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .82); }
.hot-tags a:hover { background: rgba(255, 255, 255, .18); }

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.4px; }
.section-head .sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more { color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 28px; }

/* ---------- 行业 / 城市网格 ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--ink-2); transition: .18s; box-shadow: var(--shadow-sm);
}
.chip:hover { border-color: #c3d0f0; color: var(--brand); transform: translateY(-1px); }
.chip b { font-weight: 600; }
.chip .dot { color: var(--muted-2); font-size: 12px; }

.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.industry-card {
  display: flex; gap: 14px; align-items: center; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: .2s; box-shadow: var(--shadow-sm);
}
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd9f4; }
.industry-card .ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, #eef2fe, #f3efff); font-size: 20px;
}
.industry-card .nm { font-weight: 600; font-size: 15px; display: block; }
.industry-card .ct {
  font-size: 12.5px; color: var(--muted); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}

/* ---------- 信息卡片（纯文字紧凑版） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: .2s; box-shadow: var(--shadow-sm);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); opacity: .75;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3dcf3; }
.card:hover::before { opacity: 1; }
.card .cover { aspect-ratio: 16 / 10; background: #eef1f7; overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .cover-ph {
  display: grid; place-items: center; position: relative;
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(0, 194, 168, .16), transparent 60%),
    linear-gradient(140deg, #f4f6ff, #eef7f5);
}
.card .cover-ph span {
  font-size: 46px; font-weight: 800; letter-spacing: -2px;
  color: rgba(47, 91, 234, .18);
  transition: .25s;
}
.card:hover .cover-ph span { transform: scale(1.06); color: rgba(47, 91, 234, .3); }
.card .body { padding: 14px 18px 14px 21px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
  background: #eef2fe; color: var(--brand); font-weight: 600; line-height: 1.7;
}
.badge.ai { background: linear-gradient(120deg, #eef2fe, #eefaf7); color: #0b8f7d; }
.badge.soft { background: #f1f3f8; color: var(--muted); }
.card h3 { margin: 0; font-size: 16px; line-height: 1.5; letter-spacing: -.2px; font-weight: 700; }
.card h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a:hover { color: var(--brand); }
.card .sum { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted-2); margin-top: auto; padding-top: 2px; }
.card .price { color: #d9480f; font-weight: 700; font-size: 14.5px; }
.card .who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-dot {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--grad); color: #fff; font-size: 10px;
  display: grid; place-items: center; font-weight: 700;
}

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2);
}
.pager a:hover { border-color: #c3d0f0; color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .gap { border: 0; background: transparent; }

/* ---------- 面包屑 ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-style: normal; color: #c3cad8; }

/* ---------- 列表页头 ---------- */
.page-head { padding: 30px 0 8px; }
.page-head h1 { margin: 8px 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.6px; }
.page-head .desc { margin: 0; color: var(--muted); max-width: 860px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 26px; }
.filter-bar form { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.filter-bar input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; outline: none;
}
.filter-bar input:focus { border-color: #b9c8ee; box-shadow: 0 0 0 4px rgba(47, 91, 234, .1); }
.filter-bar select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; padding: 26px 0 60px; align-items: start; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.article h1 { margin: 12px 0 16px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; letter-spacing: -.6px; }
.article .byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; padding-bottom: 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.article .byline .avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.article .summary-box {
  margin: 24px 0; padding: 18px 20px; border-radius: 14px;
  background: linear-gradient(120deg, #f3f6ff, #f2fbf9);
  border: 1px solid #e3eafc; font-size: 14.5px; color: var(--ink-2);
}
.article .summary-box strong { display: block; font-size: 12.5px; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; text-transform: uppercase; }
/* 要点：给搜索引擎和 AI 抽的短句列表，和摘要共用一套配色 */
.article .points-box {
  margin: -8px 0 24px; padding: 16px 20px 16px 20px; border-radius: 14px;
  border: 1px dashed #dfe6f5; background: #fbfcff; font-size: 14.5px; color: var(--ink-2);
}
.article .points-box strong { display: block; font-size: 12.5px; letter-spacing: 1px; color: var(--brand); margin-bottom: 8px; text-transform: uppercase; }
.article .points-box ul { margin: 0; padding-left: 20px; }
.article .points-box li { margin: 6px 0; line-height: 1.7; }
/* 常见问题：可见区块与 FAQPage 结构化数据一一对应 */
.article .faq-box { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.article .faq-box h2 { font-size: 18px; margin: 0 0 16px; }
.article .faq-box dt { font-weight: 600; color: var(--ink); margin: 14px 0 6px; font-size: 15px; }
.article .faq-box dd { margin: 0; color: var(--ink-2); line-height: 1.8; font-size: 15px; }

/* 步骤（HowTo）：有序列表，和 HowTo 结构化数据同一份内容。
   编号用 <ol> 自带，所以后台录入时会去掉「1.」「第一步」这类前缀。 */
.article .steps-box { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.article .steps-box h2 { font-size: 18px; margin: 0 0 16px; }
.article .steps-box ol { margin: 0; padding-left: 22px; counter-reset: step; list-style: none; }
.article .steps-box li {
  position: relative; padding: 0 0 14px 34px; color: var(--ink-2);
  line-height: 1.8; font-size: 15px;
}
.article .steps-box li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 600; line-height: 24px; text-align: center;
}
.article-body { font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.article-body p { margin: 0 0 18px; }
.article-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.article-figures img { border-radius: 12px; border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { padding: 14px 16px; border-radius: 12px; background: #f8fafd; border: 1px solid var(--line); }
.fact dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-weight: 600; }
.cite-box {
  margin-top: 28px; padding: 16px 18px; border-radius: 12px;
  background: #0b1220; color: rgba(255, 255, 255, .82); font-size: 13.5px;
}
.cite-box b { color: #fff; }
.cite-box a { color: #8fb0ff; }

.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.side .panel { padding: 20px; }
.side h3 { margin: 0 0 14px; font-size: 15px; }
.side .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side .kv:last-child { border-bottom: 0; }
.side .kv span { color: var(--muted); }
.side .kv b { font-weight: 600; text-align: right; }
.side .link-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.side .link-list li:last-child { border-bottom: 0; }
.side .link-list a:hover { color: var(--brand); }
.cta-card { background: linear-gradient(150deg, #131c33, #0b1220); color: #fff; border-radius: var(--radius); padding: 24px; }
.cta-card h3 { margin: 0 0 8px; color: #fff; }
.cta-card p { margin: 0 0 16px; color: rgba(255, 255, 255, .7); font-size: 13.5px; }

/* ---------- AI 区块 ---------- */
.ai-strip { background: linear-gradient(150deg, #0d1526, #16203a); color: #fff; border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.ai-strip::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .5), transparent 65%); }
.ai-strip h2 { margin: 0 0 12px; font-size: 26px; position: relative; }
.ai-strip p { margin: 0; color: rgba(255, 255, 255, .75); max-width: 720px; position: relative; }
.ai-strip .code {
  margin-top: 22px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 18px 20px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.8px; line-height: 1.8; color: #cfe0ff; overflow-x: auto; position: relative;
}
.ai-strip .code .k { color: #7c9cff; }
.ai-strip .code .s { color: #6ff0dd; }
.ai-strip .actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; position: relative; }

/* ---------- 页脚 ---------- */
.footer { background: #0b1220; color: rgba(255, 255, 255, .66); margin-top: 60px; padding: 48px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer a { font-size: 13.5px; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .about p { font-size: 13.5px; margin: 12px 0 0; max-width: 320px; }
.footer .brand { color: #fff; }
.footer .brand small { color: rgba(255, 255, 255, .5); }
.footer .bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.footer .cite { color: rgba(255, 255, 255, .5); }
.footer .legal-links { margin-top: 12px; padding-top: 0; border-top: none; gap: 18px; }
.footer .legal-links a { display: inline; padding: 0; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* ---------- 评论 ---------- */
.comments { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.comments h2 { margin: 0 0 18px; font-size: 18px; }
.comments ul { display: flex; flex-direction: column; gap: 16px; }
.comments li { display: flex; gap: 12px; }
.comments .c-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden;
  background: #eef2fe; color: var(--brand); font-size: 10px; font-weight: 700;
  display: grid; place-items: center; text-align: center; line-height: 1.2;
}
.comments .c-meta { font-size: 12.5px; color: var(--muted-2); margin-bottom: 4px; }
.comments p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.comments .c-empty { color: var(--muted); font-size: 14px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 8px; }

/* ---------- 响应式 ---------- */
/* 中等宽度先隐藏次要按钮，保住导航不挤 */
@media (max-width: 1180px) {
  .hide-md { display: none !important; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .topbar .wrap { gap: 12px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
}
@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .topbar .wrap { gap: 10px; height: 58px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 15px; }
  .brand small { font-size: 9px; letter-spacing: 1px; }
  .topbar .btn { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
  .topbar .btn-ghost { display: none; }
  .topbar .spacer { min-width: 0; }

  .filter-bar { gap: 8px; }
  .filter-bar form { flex-wrap: wrap; gap: 8px; min-width: 0; }
  .filter-bar form input { flex: 1 1 100%; }
  .filter-bar select { flex: 1 1 0; min-width: 0; padding: 11px 10px; }
  .filter-bar .btn { flex: 0 0 auto; padding: 11px 18px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 14.5px; }
  .hero .stat-row { gap: 22px; margin-top: 26px; }
  .hero .stat b { font-size: 22px; }
  .article { padding: 22px; }
  .ai-strip { padding: 24px; }
  .ai-strip h2 { font-size: 21px; }
  .footer .cols { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .search-box .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .industry-card { padding: 12px 13px; gap: 10px; }
  .industry-card .ico { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
  .industry-card .nm { font-size: 14px; }
  .industry-card .ct { max-width: 96px; font-size: 11.5px; }
  .section { padding: 38px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 20px; }
}

/* ---------- 隐私政策 / 用户协议 ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.6px; }
.legal .updated { color: var(--muted-2); font-size: 13px; margin: 0 0 22px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; padding-top: 6px; scroll-margin-top: 80px; }
.legal p { color: var(--ink-2); margin: 0 0 12px; }
.legal ol, .legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal li { margin: 6px 0; }
.legal code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.legal a { color: var(--brand); }
.legal strong { color: var(--ink); }
.legal .toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 24px; }
.legal .toc b { display: block; margin-bottom: 8px; font-size: 14px; }
.legal .toc ol { margin: 0; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; font-size: 13.5px; }
.legal .legal-foot { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .legal .toc ol { grid-template-columns: 1fr; }
  .legal h1 { font-size: 24px; }
  .panel-pad { padding: 20px; }
}

/* 隐私政策 / 用户协议长文（沿用旧站正文，红色敏感信息高亮是应用市场审核要求，必须保留） */
.legal-doc { line-height: 1.85; font-size: 15px; }
.legal-doc h2 { font-size: 20px; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-doc h3 { font-size: 16.5px; margin: 24px 0 8px; }
.legal-doc h4 { font-size: 15px; margin: 18px 0 6px; color: var(--ink-2); }
.legal-doc p { margin: 0 0 12px; color: var(--ink-2); }
.legal-doc .section { margin: 0 0 26px; }
.legal-doc .sub-title { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; }
.legal-doc .desc { margin: 0 0 10px; color: var(--ink-2); }
.legal-doc .sensitive { color: #c80000; font-weight: 800; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin: 6px 0; color: var(--ink-2); }
.legal-doc a { color: var(--brand); word-break: break-all; }
@media (max-width: 720px) {
  .legal-doc { font-size: 14.5px; }
  .legal-doc h2 { font-size: 18px; }
  .legal-doc .sub-title { font-size: 16px; }
}

/* 卡片：距离与阅读量 */
.card .meta-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.card .dist { background: #eef7f4; color: #0b8f7d; font-weight: 600; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; }
.card .views { color: var(--muted-2); }

/* ---------- 访客位置条 ---------- */
.visitor-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 16px; margin: 0 0 14px; font-size: 13.5px; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.visitor-bar b { color: var(--ink); }
.visitor-bar .vb-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.visitor-bar .vb-dot { width: 8px; height: 8px; border-radius: 50%; background: #0b8f7d; box-shadow: 0 0 0 3px rgba(11,143,125,.14); }
.visitor-bar .vb-tip { color: var(--muted-2); font-size: 12px; }
.visitor-bar .vb-right { display: flex; gap: 8px; }
.visitor-bar .vb-right a { padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 13px; }
.visitor-bar .vb-right a.on { background: var(--brand); color: #fff; font-weight: 600; }

/* ==========================================================
   网页版：登录 / 注册 / 发布 / 我的
   和 App 保持同一套视觉：白卡片 + 品牌蓝主按钮
   ========================================================== */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 64px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.4px; }
.auth-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-foot { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 600; }
.auth-tip { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted-2); }
.auth-tip a { color: var(--muted); text-decoration: underline; }

.form-err {
  margin: 0 0 16px; padding: 11px 14px; border-radius: 10px;
  background: #fff1f0; border: 1px solid #ffd6d2; color: #c81e1e;
  font-size: 13.5px; line-height: 1.6;
}

.web-form { display: block; }
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.field > span i {
  font-style: normal; font-weight: 400; color: var(--muted-2);
  font-size: 12px; margin-left: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-size: 14.5px; font-family: inherit; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 91, 234, .12);
}
.field textarea { resize: vertical; min-height: 180px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-block { display: block; width: 100%; text-align: center; justify-content: center; margin-top: 10px; }

.publish-form { display: grid; gap: 18px; max-width: 880px; }
.publish-form .panel { margin: 0; }
.form-h2 { margin: 0 0 16px; font-size: 16px; color: var(--ink); letter-spacing: -.2px; }
.form-h2-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.form-h2-row .form-h2 { margin: 0; }
.form-h2-tip { font-size: 13px; color: var(--muted); }
.form-actions { display: flex; gap: 12px; margin-top: 6px; }

.cat-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* 二级分类：只显示在当前选中的那一类里 */
.cat-sub {
  display: none; width: 100%; margin-top: 10px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.cat-radio input:checked + .cat-box .cat-sub { display: block; }
.cat-radio { display: block; cursor: pointer; position: relative; }
.cat-radio input { position: absolute; opacity: 0; pointer-events: none; }
.cat-box {
  display: block; padding: 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  transition: all .15s;
}
.cat-box b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.cat-box i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.5; display: block; }
.cat-radio input:checked + .cat-box {
  border-color: var(--brand); background: #f2f5ff;
  box-shadow: 0 6px 18px rgba(47, 91, 234, .12);
}

.me-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; padding-bottom: 56px; }
.me-card { text-align: center; }
.me-avatar {
  width: 76px; height: 76px; margin: 4px auto 12px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }
.me-card h2 { margin: 0 0 4px; font-size: 18px; }
.me-username { margin: 0 0 10px; font-size: 13px; color: var(--muted-2); }
.me-sign { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.me-stats { display: flex; justify-content: center; gap: 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.me-stats div { text-align: center; }
.me-stats b { display: block; font-size: 20px; color: var(--ink); }
.me-stats span { font-size: 12px; color: var(--muted-2); }

.my-posts { list-style: none; margin: 0; padding: 0; }
.my-posts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.my-posts li:last-child { border-bottom: 0; }
.my-post-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.my-post-title:hover { color: var(--brand); }
.my-post-meta { display: flex; gap: 14px; margin-top: 5px; font-size: 12.5px; color: var(--muted-2); flex-wrap: wrap; }
.empty-box { padding: 40px 0; text-align: center; color: var(--muted); }
.empty-box p { margin: 0 0 14px; }

@media (max-width: 860px) {
  .me-grid { grid-template-columns: 1fr; }
  .cat-pick { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .auth-wrap { padding: 20px 0 40px; }
}

/* ==========================================================
   发布页：手动 / AI 两种方式（navbar 式切换）
   ========================================================== */
.form-ok {
  margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #eafaf1; border: 1px solid #b9ecd0; color: #10794a; font-size: 14px;
}

.pub-tabs {
  display: flex; gap: 8px; padding: 6px; margin: 0 0 20px;
  background: #eef1f8; border-radius: 14px; max-width: 880px;
}
.pub-tab {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 12px 18px; border-radius: 10px; color: var(--ink-2);
  transition: .18s; position: relative;
}
.pub-tab b { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pub-tab i { font-size: 12.5px; color: var(--muted-2); font-style: normal; }
.pub-tab:hover { background: #fff; }
.pub-tab.on { background: #fff; box-shadow: var(--shadow-sm); }
.pub-tab.on b { color: var(--brand); }
.tab-new {
  font-size: 11px; font-weight: 700; color: #fff; background: #ff5c7a;
  padding: 1px 6px; border-radius: 999px; line-height: 1.5;
}

/* ---------- AI 帮我发 ---------- */
.ai-card { max-width: 880px; }
.ai-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.ai-head .form-h2 { margin-bottom: 6px; }
.ai-sub { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 560px; }
.ai-model {
  display: flex; flex-direction: column; gap: 3px; align-self: flex-start;
  padding: 12px 16px; background: #f4f7ff; border: 1px solid #dbe4fb;
  border-radius: var(--radius-sm); min-width: 210px;
}
.ai-model-label { font-size: 11.5px; color: var(--muted-2); letter-spacing: .4px; }
.ai-model b { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.ai-model a { font-size: 12.5px; color: var(--brand); margin-top: 2px; }

.ai-raw {
  width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.85; font-family: inherit; color: var(--ink);
  background: #fbfcfe; resize: vertical; transition: .18s;
}
.ai-raw:focus { outline: 0; border-color: #b7c8f5; background: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 234, .08); }
.ai-raw::placeholder { color: #a6b0c2; }

.ai-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 20px; }
.ai-chips > span { font-size: 12.5px; color: var(--muted-2); }
.ai-chips .chip {
  cursor: pointer; font-family: inherit; padding: 6px 14px; font-size: 13px;
  box-shadow: none; background: #fff; color: var(--muted);
}
.ai-chips .chip:hover { color: var(--brand); border-color: #c3d0f0; }

.ai-side { background: #f8fafd; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.ai-side b { font-size: 13px; color: var(--ink-2); }
.ai-side ul { margin: 8px 0 0; padding-left: 18px; }
.ai-side li { font-size: 12.5px; color: var(--muted); line-height: 1.9; }

.ai-hint { font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 420px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* AI 整理完的提示条 */
.ai-result {
  max-width: 880px; margin: 0 0 18px; padding: 14px 18px;
  background: linear-gradient(120deg, #f2f6ff, #f4fbf8); border: 1px solid #d6e2fb;
  border-radius: var(--radius-sm);
}
.ai-result-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--brand); }
.ai-result-meta { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.ai-result details { margin-top: 8px; }
.ai-result summary { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.ai-result pre {
  margin: 8px 0 0; padding: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap;
  max-height: 180px; overflow: auto; font-family: inherit; line-height: 1.7;
}

/* ==========================================================
   我的 · 我的模型（BYOK）
   ========================================================== */
.me-grid { margin-bottom: 20px; }
.ai-panel { margin-top: 4px; scroll-margin-top: 84px; }
.ai-panel-desc { margin: -6px 0 20px; font-size: 13.5px; color: var(--muted); line-height: 1.85; max-width: 860px; }
.ai-now { color: var(--brand); }

.mode-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.mode-card {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fbfcfe; cursor: pointer; transition: .18s;
}
.mode-card:hover { border-color: #c9d4ee; }
.mode-card input { margin: 0 0 6px; accent-color: var(--brand); }
.mode-card b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.mode-card i { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.6; display: block; }
.mode-card.on { background: #f2f6ff; border-color: #b7c8f5; box-shadow: 0 0 0 3px rgba(47, 91, 234, .06); }

.model-list { display: grid; gap: 10px; margin-bottom: 16px; }
.model-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.model-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.model-main b { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tag-default {
  font-size: 11px; font-weight: 700; color: #10794a; background: #e4f7ec;
  padding: 1px 8px; border-radius: 999px;
}
.model-sub { font-size: 12.5px; color: var(--muted); }
.model-sub code { background: #f2f4f9; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.model-url { font-size: 12px; color: var(--muted-2); word-break: break-all; }
.model-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.model-ops form { display: inline; }
.btn-xs { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-ghost.danger { color: #d6455d; border-color: #f3d3d9; }
.btn-ghost.danger:hover { background: #fdf3f5; border-color: #eab6c1; color: #c02f47; }
.test-out { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.test-out.ok { color: #10794a; }
.test-out.bad { color: #d6455d; }
.empty-box.slim { padding: 18px 0; }

.model-add {
  border: 1px dashed #cdd8ef; border-radius: var(--radius-sm);
  background: #fbfcfe; padding: 0 18px; margin: 6px 0 26px;
}
.model-add[open] { background: #fff; border-style: solid; padding-bottom: 20px; }
.model-add summary {
  padding: 16px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand);
  list-style: none;
}
.model-add summary::-webkit-details-marker { display: none; }
.model-add summary::before { content: "＋ "; font-weight: 700; }
.model-add[open] summary::before { content: "－ "; }
.model-form { padding-top: 4px; }
.field-tip { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.field-tip a { color: var(--brand); }

.prov-h3 { margin: 6px 0 4px; font-size: 15px; color: var(--ink); }
.prov-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--muted-2); }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 26px; }
.prov-card {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: .18s;
}
.prov-card:hover { border-color: #c9d4ee; box-shadow: var(--shadow-sm); }
.prov-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prov-top b { font-size: 14px; color: var(--ink); }
.prov-tag {
  font-size: 11px; font-weight: 700; color: #8a5a00; background: #fff4d9;
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.prov-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.prov-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prov-foot a { font-size: 12.5px; color: var(--brand); }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; color: var(--brand); font-family: inherit; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

.key-guide {
  padding: 20px 24px; border-radius: var(--radius-sm);
  background: #f8fafd; border: 1px solid var(--line);
}
.key-guide h3 { margin: 0 0 12px; font-size: 15px; color: var(--ink); }
.key-guide ol { margin: 0; padding-left: 20px; }
.key-guide li { font-size: 13.5px; color: var(--ink-2); line-height: 2; }
.key-guide code {
  background: #eef2f8; padding: 1px 6px; border-radius: 5px; font-size: 12.5px;
  color: #2b3a58;
}
.key-note {
  margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}

@media (max-width: 860px) {
  .mode-pick { grid-template-columns: 1fr; }
  .pub-tabs { flex-direction: column; }
  .ai-head { flex-direction: column; gap: 14px; }
  .ai-model { min-width: 0; width: 100%; }
  .model-item { grid-template-columns: 1fr; }
  .model-ops { justify-content: flex-start; }
  .key-guide { padding: 16px 18px; }
}

/* ==================== 常见问题（FAQ） ==================== */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-item > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 44px 16px 18px; font-weight: 700; color: var(--ink); font-size: 15px;
  line-height: 1.6;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-item[open] > summary { border-bottom: 1px dashed var(--line); }
.faq-a {
  padding: 14px 18px 16px; color: var(--ink-2); font-size: 14px; line-height: 1.95;
}
@media (max-width: 640px) {
  .faq-item > summary { font-size: 14px; padding: 14px 40px 14px 16px; }
  .faq-a { font-size: 13.5px; }
}

/* ===== 多语言：语言切换器与内容语言提示 ===== */
.lang-switch{position:relative;margin:0 6px}
.lang-switch>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border:1px solid var(--line);border-radius:10px;font-size:13px;color:var(--ink);white-space:nowrap;user-select:none;line-height:1.2}
.lang-switch>summary::-webkit-details-marker{display:none}
.lang-switch>summary::marker{content:""}
.lang-switch[open]>summary,.lang-switch>summary:hover{background:#f4f6f9}
.lang-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:158px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 36px rgba(15,23,42,.14);padding:6px;display:flex;flex-direction:column;gap:2px}
.lang-menu a{padding:8px 10px;border-radius:8px;font-size:13.5px;color:var(--ink);text-decoration:none;white-space:nowrap}
.lang-menu a:hover{background:#f4f6f9}
.lang-menu a.on{font-weight:600;color:var(--brand);background:#f4f6f9}
.lang-note{margin:18px 0 0;padding:11px 15px;background:#f6f8fb;border:1px solid var(--line);border-radius:10px;font-size:13px;line-height:1.6;color:var(--muted)}
@media (max-width:720px){
  .lang-switch{margin-left:auto}
  .lang-menu{right:-40px}
}

/* 首页需求词云：密排，纯内链，不抢视觉 */
.chip-grid.terms{gap:8px}
.chip-grid.terms .chip{padding:7px 12px;font-size:13px}

/* ==========================================================
   网页版 · 我的管理后台（/me）
   ========================================================== */
.my-post-row{display:flex;gap:14px;align-items:flex-start;justify-content:space-between}
.my-post-row>div{min-width:0}
.my-post-row .my-post-title{display:inline-block}
.mg-del{flex:0 0 auto;margin-top:2px}
.link-btn.danger{color:#d6455d}
.mg-badge{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11.5px;line-height:1.7}
.mg-badge.off{background:#fdf3f5;color:#c02f47;border:1px solid #f3d3d9}

#words .field textarea{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font:inherit;font-size:14px;line-height:1.65;resize:vertical;background:#fff;color:var(--ink)}
#words .field textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(47,91,234,.1)}

.mg-words{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.mg-word{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 12px;background:#f4f6fb;
  border:1px solid var(--line);border-radius:999px;font-size:13.5px;color:var(--ink-2)}
.mg-x{border:0;background:transparent;color:var(--muted-2);font-size:16px;line-height:1;
  cursor:pointer;padding:0 4px;border-radius:50%}
.mg-x:hover{color:#d6455d;background:#fff}

.mg-follows{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.mg-follow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.mg-follow:last-child{border-bottom:0}
.mg-follow .avatar-dot{width:38px;height:38px;flex:0 0 38px;overflow:hidden;font-size:14px}
.mg-follow .avatar-dot img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.mg-follow-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.mg-follow-main b{font-size:14.5px;color:var(--ink)}
.mg-follow-main span{font-size:12.5px;color:var(--muted-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){
  .my-post-row{flex-direction:column;gap:6px}
  .mg-follow{flex-wrap:wrap}
}

/* 官方 AI 身份的固定头像（情报官 / AI 专属发布），图片代替首字块 */
.avatar-dot.avatar-img { object-fit: cover; background: #f3f5fa; }
.avatar.avatar-img { object-fit: cover; border-radius: 50%; }

/* ==========================================================
   顶部导航 · 手机端「下载 App」入口
   宽屏那边是文字按钮（.btn.hide-md），但窄屏的
   .topbar .btn-ghost { display:none } 会把它一起藏掉，
   手机上就再也找不到下载入口了。所以单独做一个「图标 + 短词」
   的按钮，只在窄屏出现；同窗口跳转，手机不额外开标签页。
   ========================================================== */
.topbar .btn-dl { display: none; }
.topbar .btn-pub-sm { display: none; }

/* 900px 以下导航条已经收起（.nav 隐藏），右侧空间够，
   这里就把下载按钮放出来——平板竖屏（768/820）也能直接下载。 */
@media (max-width: 900px) {
  .topbar .btn-dl {
    display: inline-flex; align-items: center; gap: 4px;
    flex: 0 0 auto; padding: 7px 10px; border-radius: 10px;
    border: 1px solid rgba(47, 91, 234, .38); background: #fff;
    color: var(--brand); font-size: 13px; font-weight: 600;
    line-height: 1.2; white-space: nowrap; text-decoration: none;
  }
  .topbar .btn-dl:active { background: #eef2fe; }
}

@media (max-width: 720px) {
  /* 手机上 header 里要塞下：品牌 + 语言 + 下载 + 发布。
     外语的短文案仍比中文长（Publier / Anzeigen / Publicar），
     所以这里把几处间距各收一点，凑出 20 多像素，避免整页横向滚动。 */
  .topbar .wrap { gap: 8px; }
  .brand { font-size: 16px; gap: 7px; }
  .lang-switch { margin: 0 2px; }
  .lang-switch > summary { padding: 7px 8px; }

  .topbar .btn-dl { gap: 3px; padding: 7px 9px; }
  /* 发布按钮在窄屏换成短文案，长语言（法语/德语/西语）才装得下。
     注意完整按钮用的是 .pub-full 而不是 .hide-md：
     .hide-md 从 1180 就开始隐藏，会让平板宽度（768/1024）没有发布入口。 */
  .topbar .pub-full { display: none; }
  .topbar .btn-pub-sm { display: inline-flex; }
  /* 手机屏幕窄：语言切换只留地球图标，把宽度让给下载按钮和发布按钮 */
  .lang-switch > summary span { display: none; }
}

/* 小屏（≤340px，如 iPhone SE 一代）连短词也放不下，只留下载图标 */
@media (max-width: 340px) {
  .topbar .btn-dl span { display: none; }
  .topbar .btn-dl { padding: 7px 8px; }
}
