/* =========================================================
   攻略宝 AIGEO 平台 - 前台样式（紫蓝渐变主题）
   严格按 UI 设计图还原：主色紫蓝渐变，白色卡片，浅灰底
   ========================================================= */

:root {
  /* 主色系 */
  --p1: #6C5CE7;
  --p2: #4E7BFF;
  --p3: #8B7BFF;
  --p-light: #F1EFFF;
  --grad: linear-gradient(135deg, #6C5CE7 0%, #4E7BFF 100%);
  --grad-soft: linear-gradient(135deg, #F3F0FF 0%, #EAF1FF 100%);
  --grad-hero: linear-gradient(135deg, #5B5BE8 0%, #6E7BFF 45%, #8B7BFF 100%);
  --grad-purple: linear-gradient(135deg, #8B5CF6 0%, #6C5CE7 100%);

  /* 功能色 */
  --blue: #3B6EF6;
  --blue-bg: #EAF1FF;
  --green: #22C55E;
  --green-bg: #E9FBF0;
  --orange: #FF8A3D;
  --orange-bg: #FFF3E9;
  --purple: #7C5CFF;
  --purple-bg: #F1EDFF;
  --red: #F5455C;
  --red-bg: #FFEEF1;
  --cyan: #06B6D4;
  --cyan-bg: #E6FAFE;

  /* 中性色 */
  --text: #1F2233;
  --text2: #4A4F66;
  --sub: #7A8096;
  --sub2: #A0A5B9;
  --line: #EEF0F7;
  --line2: #E4E7F2;
  --bg: #F5F6FB;
  --card: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 6px 24px rgba(31, 34, 51, .06);
  --shadow-lg: 0 12px 40px rgba(108, 92, 231, .16);
  --shadow-grad: 0 10px 26px rgba(108, 92, 231, .3);

  --max: 1280px;
  --header-h: 66px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--p1); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
input, textarea { color: var(--text); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mb0 { margin-bottom: 0; }
.flex { display: flex; } .flex-c { display: flex; align-items: center; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.f1 { flex: 1; } .tc { text-align: center; } .tr { text-align: right; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 顶栏 ============ */
.header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(31,34,51,.04); }
.header-in { max-width: var(--max); margin: 0 auto; height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; white-space: nowrap; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; box-shadow: var(--shadow-grad); }
.logo .t1 { color: var(--p1); }
.logo .t2 { color: var(--text); }

.city-pick { position: relative; }
.city-btn { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 8px; background: var(--bg); color: var(--text2); font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: .2s; }
.city-btn:hover { background: var(--p-light); color: var(--p1); }
.city-btn svg { width: 11px; height: 11px; }
.city-panel { position: absolute; top: 42px; left: 0; width: 520px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px 20px; display: none; z-index: 950; border: 1px solid var(--line); }
.city-panel.show { display: block; }
.city-panel .tt { font-size: 13px; color: var(--sub); margin-bottom: 10px; }
.city-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.city-grid a { text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 13.5px; color: var(--text2); }
.city-grid a:hover, .city-grid a.on { background: var(--p-light); color: var(--p1); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { position: relative; padding: 8px 14px; border-radius: 8px; color: var(--text2); font-size: 14.5px; transition: .2s; white-space: nowrap; }
.nav a:hover { color: var(--p1); background: var(--p-light); }
.nav a.active { color: var(--p1); font-weight: 700; }
.nav a.active:after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 18px; height: 3px; border-radius: 2px; background: var(--grad); }

.header-right { display: flex; align-items: center; gap: 12px; }
.btn-ai { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--grad-soft); color: var(--p1); font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid #E1E3FF; transition: .2s; }
.btn-ai:hover { background: var(--p-light); box-shadow: 0 4px 14px rgba(108,92,231,.18); }
.btn-login { height: 36px; line-height: 36px; padding: 0 20px; border-radius: 18px; background: var(--grad); color: #fff !important; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-grad); }
.btn-reg { height: 36px; line-height: 36px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--p1); color: var(--p1); font-size: 14px; font-weight: 600; box-sizing: border-box; }
.btn-reg { line-height: 34px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 20px; background: var(--bg); cursor: pointer; }
.user-chip img, .user-chip .av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.user-chip span { font-size: 13.5px; color: var(--text2); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 通用卡片 / 区块 ============ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.sec { margin-top: 20px; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-hd h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.sec-hd h2:before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--grad); }
.sec-hd .more { font-size: 13px; color: var(--sub); display: flex; align-items: center; gap: 3px; }
.sec-hd .more:hover { color: var(--p1); }
.tabs { display: flex; gap: 4px; }
.tabs a { padding: 5px 14px; border-radius: 16px; font-size: 13.5px; color: var(--sub); transition: .2s; }
.tabs a:hover { color: var(--p1); }
.tabs a.on { background: var(--p-light); color: var(--p1); font-weight: 600; }

/* ============ 首页 Hero ============ */
.hero { position: relative; background: var(--grad-hero); padding: 44px 0 96px; overflow: hidden; }
.hero:before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.10); }
.hero:after { content: ""; position: absolute; left: 30%; bottom: -180px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero-in { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; align-items: flex-start; }
.hero-left { flex: 1; color: #fff; padding-top: 8px; }
.hero-left h1 { font-size: 40px; line-height: 1.28; font-weight: 800; letter-spacing: 1px; }
.hero-left h1 em { font-style: normal; }
.hero-left .lead { margin-top: 12px; font-size: 14.5px; opacity: .92; }
.hero-search { margin-top: 24px; display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px; max-width: 660px; box-shadow: 0 14px 36px rgba(48,42,120,.24); }
.hero-search .sel { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--text2); font-size: 14px; border-right: 1px solid var(--line); cursor: pointer; height: 34px; white-space: nowrap; }
.hero-search input { flex: 1; border: 0; height: 46px; padding: 0 14px; font-size: 14.5px; background: transparent; }
.hero-search .go { height: 46px; padding: 0 30px; border: 0; border-radius: 11px; background: var(--grad); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-grad); }
.hero-tags { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.85); }
.hero-tags a { padding: 4px 12px; border-radius: 14px; background: rgba(255,255,255,.16); transition: .2s; }
.hero-tags a:hover { background: rgba(255,255,255,.3); color: #fff; }
.hero-right { width: 300px; display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.hero-robot { width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.42), rgba(255,255,255,.08)); display: flex; align-items: center; justify-content: center; font-size: 76px; box-shadow: inset 0 0 40px rgba(255,255,255,.3); }
.hero-bubble { margin-top: 14px; background: #fff; color: var(--text); border-radius: 14px; padding: 12px 16px; font-size: 13px; box-shadow: 0 10px 26px rgba(40,36,100,.2); text-align: center; line-height: 1.7; }
.hero-bubble b { color: var(--p1); }

/* ============ 四大入口 ============ */
.entry-row { position: relative; z-index: 5; margin-top: -64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.entry { background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; transition: .25s; border: 1px solid transparent; }
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #E6E4FF; color: inherit; }
.entry .ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.entry .ic svg { width: 26px; height: 26px; }
.entry h3 { font-size: 16px; margin-bottom: 5px; }
.entry p { font-size: 12.5px; color: var(--sub); line-height: 1.6; min-height: 40px; }
.entry .go { font-size: 12.5px; color: var(--p1); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.ic-blue { background: var(--blue-bg); color: var(--blue); }
.ic-green { background: var(--green-bg); color: var(--green); }
.ic-orange { background: var(--orange-bg); color: var(--orange); }
.ic-purple { background: var(--purple-bg); color: var(--purple); }

/* ============ 城市分站 ============ */
.city-strip { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.city-strip .hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.city-strip .hd h2 { font-size: 16px; }
.city-strip .hd span { font-size: 12.5px; color: var(--sub); }
.city-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.city-row::-webkit-scrollbar { height: 4px; }
.city-row::-webkit-scrollbar-thumb { background: #DDD; border-radius: 2px; }
.city-item { flex-shrink: 0; width: 92px; text-align: center; padding: 10px 0; border-radius: 12px; background: var(--bg); transition: .2s; }
.city-item:hover, .city-item.on { background: var(--grad-soft); color: var(--p1); }
.city-item .cn { font-size: 13.5px; font-weight: 600; }
.city-item .cs { font-size: 11px; color: var(--sub2); margin-top: 2px; }
.city-item.on .cs { color: var(--p1); opacity: .75; }

/* ============ 首页三栏 ============ */
.home-cols { display: grid; grid-template-columns: 1.5fr 1.55fr 1fr; gap: 16px; margin-top: 20px; }

.news-item { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item h4 { font-size: 14.5px; line-height: 1.5; font-weight: 600; }
.news-item h4:hover { color: var(--p1); }
.news-item .meta { font-size: 12px; color: var(--sub2); margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.news-item .meta .tag { color: var(--blue); background: var(--blue-bg); padding: 1px 7px; border-radius: 4px; font-size: 11.5px; }

.shop-mini { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shop-mini:last-child { border-bottom: 0; }
.shop-mini .thumb { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--grad-soft); flex-shrink: 0; }
.shop-mini .info { flex: 1; min-width: 0; }
.shop-mini h4 { font-size: 14px; margin-bottom: 5px; }
.shop-mini h4:hover { color: var(--p1); }
.shop-mini .stars { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.shop-mini .stars b { color: var(--orange); font-size: 13px; }
.shop-mini .stars .sc { color: var(--orange); letter-spacing: -1px; font-size: 12px; }
.shop-mini .stars .tp { color: var(--purple); background: var(--purple-bg); padding: 1px 6px; border-radius: 4px; font-size: 11px; }
.shop-mini .sub { font-size: 12px; color: var(--sub); margin-top: 4px; }
.shop-mini .dist { font-size: 12px; color: var(--sub2); }

.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hot-item { text-align: center; padding: 14px 4px; border-radius: 12px; background: var(--bg); transition: .2s; }
.hot-item:hover { background: var(--grad-soft); color: var(--p1); }
.hot-item .ic { width: 34px; height: 34px; margin: 0 auto 7px; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--p1); box-shadow: 0 2px 8px rgba(31,34,51,.06); }
.hot-item .ic svg { width: 18px; height: 18px; }
.hot-item .t { font-size: 12.5px; color: var(--text2); }
.hot-item .s { font-size: 11px; color: var(--sub2); }

/* ============ 通栏 AI 条 ============ */
.ai-bar { margin-top: 20px; border-radius: var(--radius); background: var(--grad); color: #fff; padding: 20px 26px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-grad); position: relative; overflow: hidden; }
.ai-bar:after { content: ""; position: absolute; right: 140px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.14); }
.ai-bar .txt { flex: 1; position: relative; z-index: 2; }
.ai-bar h3 { font-size: 19px; margin-bottom: 6px; }
.ai-bar p { font-size: 13px; opacity: .9; }
.ai-bar .feat { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; opacity: .92; flex-wrap: wrap; }
.ai-bar .feat span { display: flex; align-items: center; gap: 5px; }
.ai-bar .btn-w { position: relative; z-index: 2; height: 42px; padding: 0 26px; border-radius: 21px; background: #fff; color: var(--p1); font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; border: 0; }

/* ============ 列表页 ============ */
.crumb { font-size: 13px; color: var(--sub); padding: 16px 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb a:hover { color: var(--p1); }
.layout-2 { display: grid; grid-template-columns: 250px 1fr; gap: 16px; margin-top: 14px; align-items: start; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px 8px; margin-bottom: 14px; }
.side-card .tt { font-size: 14px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.side-card .tt:before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); }
.cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text2); }
.cat-list a:hover { background: var(--bg); color: var(--p1); }
.cat-list a.on { background: var(--grad-soft); color: var(--p1); font-weight: 600; }
.cat-list a .n { font-size: 11.5px; color: var(--sub2); }

.filter-bar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filter-bar .sorts { display: flex; gap: 6px; }
.filter-bar .sorts a { padding: 6px 14px; border-radius: 8px; font-size: 13.5px; color: var(--sub); }
.filter-bar .sorts a:hover { color: var(--p1); }
.filter-bar .sorts a.on { background: var(--grad); color: #fff; font-weight: 600; }
.filter-bar .total { font-size: 13px; color: var(--sub2); }

.list-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 18px; margin-top: 14px; }
.item-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-row .thumb { width: 168px; height: 118px; border-radius: 12px; object-fit: cover; background: var(--grad-soft); flex-shrink: 0; }
.item-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-row h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.item-row h3:hover { color: var(--p1); }
.item-row .desc { font-size: 13px; color: var(--sub); line-height: 1.7; flex: 1; }
.item-row .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.item-row .price-row { font-size: 18px; font-weight: 800; color: var(--red); }
.item-row .price-row small { font-size: 12px; font-weight: 400; }
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 5px; font-size: 11.5px; line-height: 1.6; }
.badge-top { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-gray { background: var(--bg); color: var(--sub); }

.empty { text-align: center; padding: 70px 20px; color: var(--sub2); }
.empty .ec { font-size: 46px; margin-bottom: 12px; opacity: .5; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0; flex-wrap: wrap; }
.pg-item { min-width: 36px; height: 36px; padding: 0 12px; border-radius: 9px; background: #fff; color: var(--text2); font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.pg-item:hover { color: var(--p1); }
.pg-item.active { background: var(--grad); color: #fff; font-weight: 600; box-shadow: var(--shadow-grad); }
.pg-dot { color: var(--sub2); padding: 0 4px; }

/* ============ 详情页 ============ */
.detail-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.detail-card h1 { font-size: 25px; line-height: 1.45; margin-bottom: 14px; }
.detail-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--sub2); padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.article-body { font-size: 15.5px; line-height: 1.95; color: var(--text2); padding: 22px 0; }
.article-body h3 { font-size: 17px; margin: 22px 0 10px; color: var(--text); }
.article-body h2 { font-size: 19px; margin: 24px 0 12px; color: var(--text); }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: 10px; margin: 10px 0; }
.article-body a { color: var(--p1); text-decoration: underline; }
.article-body blockquote { margin: 16px 0; padding: 12px 18px; background: var(--grad-soft); border-left: 3px solid var(--p1); border-radius: 0 8px 8px 0; color: var(--text2); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.gallery img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; cursor: pointer; }

.contact-box { background: var(--grad-soft); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-box .l .k { font-size: 12.5px; color: var(--sub); }
.contact-box .l .v { font-size: 24px; font-weight: 800; color: var(--p1); letter-spacing: .5px; }
.btn-main { height: 44px; padding: 0 26px; border-radius: 22px; background: var(--grad); color: #fff !important; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-grad); }
.btn-main:hover { filter: brightness(1.06); color: #fff !important; }
.btn-line { height: 44px; padding: 0 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line2); color: var(--text2) !important; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.btn-line:hover { border-color: var(--p1); color: var(--p1) !important; }
.btn-sm { height: 34px; padding: 0 16px; border-radius: 17px; font-size: 13px; }

/* 商家详情头图 */
.shop-hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grad); height: 210px; display: flex; align-items: flex-end; }
.shop-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-hero .mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,60,.15) 0%, rgba(20,16,60,.78) 100%); }
.shop-hero .cnt { position: relative; z-index: 2; padding: 22px 26px; color: #fff; display: flex; align-items: center; gap: 16px; width: 100%; }
.shop-hero .logo { width: 74px; height: 74px; border-radius: 14px; background: #fff; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--p1); font-weight: 800; }
.shop-hero h1 { font-size: 24px; margin-bottom: 8px; }
.shop-hero .m { display: flex; align-items: center; gap: 14px; font-size: 13px; opacity: .94; flex-wrap: wrap; }

/* AI 导购块 */
.ai-guide { border-radius: var(--radius); background: var(--grad-soft); border: 1px solid #E4E1FF; padding: 18px 22px; display: flex; gap: 16px; align-items: center; }
.ai-guide .av { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ai-guide h4 { font-size: 15.5px; color: var(--p1); margin-bottom: 5px; }
.ai-guide p { font-size: 12.5px; color: var(--sub); }
.ai-guide .qs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ai-guide .qs span { padding: 5px 13px; background: #fff; border-radius: 14px; font-size: 12.5px; color: var(--text2); cursor: pointer; border: 1px solid #E7E5FF; }
.ai-guide .qs span:hover { color: var(--p1); border-color: var(--p1); }

/* 商家卡片（横排） */
.shop-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .25s; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.shop-card .cover { height: 150px; background: var(--grad-soft); position: relative; }
.shop-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-card .bd { padding: 14px 16px 16px; }
.shop-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.shop-card .meta { font-size: 12.5px; color: var(--sub); display: flex; align-items: center; justify-content: space-between; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* 职位卡片 */
.job-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; transition: .25s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.job-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.job-card .sal { color: var(--red); font-weight: 800; font-size: 16px; white-space: nowrap; }
.job-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.job-card .tags span { padding: 3px 9px; background: var(--bg); border-radius: 5px; font-size: 12px; color: var(--text2); }
.job-card .foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--sub2); padding-top: 12px; border-top: 1px solid var(--line); }
.job-card .comp { font-size: 13px; color: var(--text2); display: flex; align-items: center; gap: 8px; }

/* ============ 表单 ============ */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
.form-row { margin-bottom: 20px; }
.form-row > label { display: block; font-size: 13.5px; color: var(--text2); margin-bottom: 8px; font-weight: 600; }
.form-row > label .req { color: var(--red); margin-left: 3px; }
.form-row .hint { font-size: 12px; color: var(--sub2); margin-top: 6px; }
.inp { width: 100%; height: 44px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 14px; background: #FAFBFF; transition: .2s; }
.inp:focus { border-color: var(--p1); background: #fff; box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
textarea.inp { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
select.inp { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A8096' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chip-group { display: flex; gap: 9px; flex-wrap: wrap; }
.chip { padding: 7px 16px; border-radius: 18px; border: 1px solid var(--line2); background: #fff; font-size: 13.5px; color: var(--text2); cursor: pointer; }
.chip:hover { border-color: var(--p1); color: var(--p1); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.upload-box { width: 120px; height: 120px; border: 1.5px dashed var(--line2); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--sub2); cursor: pointer; background: #FAFBFF; transition: .2s; position: relative; overflow: hidden; }
.upload-box:hover { border-color: var(--p1); color: var(--p1); }
.upload-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-grid { display: flex; gap: 12px; flex-wrap: wrap; }

/* 一句话发布 */
.ai-publish { border-radius: var(--radius); background: var(--grad); color: #fff; padding: 24px 28px; box-shadow: var(--shadow-grad); position: relative; overflow: hidden; }
.ai-publish:after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.1); }
.ai-publish h3 { font-size: 20px; margin-bottom: 6px; position: relative; z-index: 2; }
.ai-publish p { font-size: 13px; opacity: .9; position: relative; z-index: 2; }
.ai-publish .box { position: relative; z-index: 2; margin-top: 16px; background: rgba(255,255,255,.16); border-radius: 12px; padding: 12px; display: flex; gap: 10px; }
.ai-publish textarea { flex: 1; border: 0; background: transparent; color: #fff; resize: none; height: 60px; font-size: 14px; line-height: 1.7; }
.ai-publish textarea::placeholder { color: rgba(255,255,255,.7); }
.ai-publish .send { align-self: flex-end; height: 40px; padding: 0 22px; border-radius: 10px; background: #fff; color: var(--p1); font-weight: 700; border: 0; cursor: pointer; }
.ai-publish .steps-line { display: flex; gap: 22px; margin-top: 14px; font-size: 12.5px; opacity: .9; position: relative; z-index: 2; flex-wrap: wrap; }
.ai-publish .steps-line span { display: flex; align-items: center; gap: 6px; }
.ai-publish .steps-line i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; }

/* ============ 用户中心 ============ */
.user-hero { border-radius: var(--radius); background: var(--grad); padding: 26px 28px; color: #fff; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow-grad); position: relative; overflow: hidden; }
.user-hero:after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.12); }
.user-hero .av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.4); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.user-hero h2 { font-size: 20px; margin-bottom: 6px; }
.user-hero .sub { font-size: 13px; opacity: .9; }
.user-stats { display: flex; gap: 34px; margin-top: 4px; }
.user-stats .st { text-align: center; }
.user-stats .st b { display: block; font-size: 20px; font-weight: 800; }
.user-stats .st span { font-size: 12px; opacity: .85; }
.vip-card { border-radius: 14px; background: var(--grad-purple); color: #fff; padding: 18px 20px; box-shadow: 0 8px 22px rgba(139,92,246,.3); }
.vip-card h4 { font-size: 15px; margin-bottom: 5px; }
.vip-card p { font-size: 12px; opacity: .88; margin-bottom: 12px; }
.vip-card .b { height: 32px; padding: 0 16px; border-radius: 16px; background: rgba(255,255,255,.9); color: var(--purple); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text2); }
.menu-list a:hover, .menu-list a.on { background: var(--grad-soft); color: var(--p1); font-weight: 600; }
.menu-list a .ic { width: 20px; text-align: center; }

/* ============ 登录注册 ============ */
.auth-wrap { min-height: calc(100vh - 66px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(160deg, #F1F0FF 0%, #EAF1FF 60%, #F5F6FB 100%); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(31,34,51,.1); padding: 38px 36px; }
.auth-card h1 { font-size: 23px; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; font-size: 13px; color: var(--sub); margin-bottom: 26px; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 11px; padding: 4px; margin-bottom: 22px; }
.auth-tabs a { flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 14px; color: var(--sub); }
.auth-tabs a.on { background: #fff; color: var(--p1); font-weight: 700; box-shadow: 0 2px 8px rgba(31,34,51,.07); }
.code-row { display: flex; gap: 10px; }
.code-row .inp { flex: 1; }
.code-row .get { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--p1); background: #fff; color: var(--p1); font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.code-row .get:disabled { border-color: var(--line2); color: var(--sub2); cursor: not-allowed; }
.auth-btn { width: 100%; height: 46px; border-radius: 11px; border: 0; background: var(--grad); color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-grad); margin-top: 6px; }
.auth-other { margin-top: 22px; text-align: center; font-size: 13px; color: var(--sub); }
.auth-other .wx { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 22px; border-radius: 22px; background: #F0FBF2; color: #07C160; font-weight: 600; cursor: pointer; }

/* ============ AI 悬浮窗 ============ */
.ai-fab { position: fixed; right: 26px; bottom: 92px; width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; box-shadow: 0 10px 30px rgba(108,92,231,.45); z-index: 980; transition: .25s; }
.ai-fab:hover { transform: scale(1.06); }
.ai-fab .dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FF4D4F; border: 2px solid #fff; }

.ai-panel { position: fixed; right: 26px; bottom: 92px; width: 380px; height: 560px; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(31,34,51,.22); z-index: 990; display: none; flex-direction: column; overflow: hidden; }
.ai-panel.show { display: flex; }
.ai-panel .hd { background: var(--grad); color: #fff; padding: 15px 18px; display: flex; align-items: center; gap: 10px; }
.ai-panel .hd .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ai-panel .hd h4 { font-size: 15px; }
.ai-panel .hd .st { font-size: 11.5px; opacity: .85; }
.ai-panel .hd .close { margin-left: auto; cursor: pointer; opacity: .85; font-size: 18px; }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); }
.ai-msg { display: flex; gap: 10px; margin-bottom: 14px; }
.ai-msg .av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--grad); color: #fff; }
.ai-msg .bb { background: #fff; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; line-height: 1.75; box-shadow: 0 2px 10px rgba(31,34,51,.05); max-width: 82%; word-break: break-word; }
.ai-msg.me { flex-direction: row-reverse; }
.ai-msg.me .av { background: #CBD0E0; }
.ai-msg.me .bb { background: var(--grad); color: #fff; }
.ai-msg .bb a { color: var(--p1); text-decoration: underline; }
.ai-quick { padding: 0 16px 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.ai-quick span { padding: 5px 12px; border-radius: 14px; background: var(--p-light); color: var(--p1); font-size: 12px; cursor: pointer; }
.ai-quick span:hover { background: #E6E1FF; }
.ai-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #fff; }
.ai-foot input { flex: 1; height: 40px; border: 1px solid var(--line2); border-radius: 20px; padding: 0 16px; background: #FAFBFF; }
.ai-foot .send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; font-size: 16px; }

/* ============ 移动端底部导航 ============ */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: 58px; background: #fff; border-top: 1px solid var(--line); z-index: 960; padding-bottom: env(safe-area-inset-bottom); }
.tabbar-in { display: flex; height: 58px; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--sub2); }
.tabbar a.on { color: var(--p1); }
.tabbar a .ic { font-size: 19px; line-height: 1; }
.tabbar .center { position: relative; }
.tabbar .center .btn { width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-top: -22px; box-shadow: 0 8px 20px rgba(108,92,231,.4); }
.tabbar .center span { margin-top: 2px; color: var(--p1); }

/* ============ 页脚 ============ */
.footer { background: #fff; margin-top: 40px; padding: 34px 0 26px; border-top: 1px solid var(--line); }
.footer-in { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.footer-links { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; }
.footer h4 { font-size: 14px; margin-bottom: 12px; }
.footer .links a { display: block; font-size: 13px; color: var(--sub); padding: 5px 0; }
.footer .links a:hover { color: var(--p1); }
.footer .about p { font-size: 13px; color: var(--sub); line-height: 1.9; }
.footer-bot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--sub2); text-align: center; line-height: 1.9; }

/* ============ Toast / 弹窗 ============ */
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); background: rgba(31,34,51,.9); color: #fff; padding: 10px 22px; border-radius: 22px; font-size: 13.5px; z-index: 2000; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; top: 92px; }
.modal-mask { position: fixed; inset: 0; background: rgba(20,22,40,.45); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: 86vh; overflow-y: auto; padding: 26px 28px; }
.modal h3 { font-size: 18px; margin-bottom: 16px; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, #F0F1F6 25%, #F7F8FC 37%, #F0F1F6 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 广告位 */
.ad-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 18px 0 0; }
.ad-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--grad-soft); transition: transform .18s, box-shadow .18s; }
.ad-item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(108,92,231,.16); }
.ad-item img { display: block; width: 100%; height: auto; }
.ad-banner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 18px 0; background: var(--grad-soft); }
.ad-banner img { display: block; width: 100%; height: auto; }
.ad-side { display: block; border-radius: var(--radius); overflow: hidden; margin-top: 14px; box-shadow: var(--shadow); background: var(--grad-soft); }
.ad-side img { display: block; width: 100%; }

/* =========================================================
   响应式（H5）
   ========================================================= */
@media (max-width: 1100px) {
  .home-cols { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .nav { display: none; }
  .header-in { gap: 10px; }
  .logo { font-size: 16px; }
  .logo .mark { width: 26px; height: 26px; font-size: 13px; }
  .city-btn { height: 30px; padding: 0 9px; font-size: 12.5px; }
  .btn-ai span { display: none; }
  .btn-ai { padding: 0 12px; }
  .btn-reg { display: none; }
  .btn-login { padding: 0 14px; font-size: 13px; height: 32px; line-height: 32px; }

  .hero { padding: 26px 0 76px; }
  .hero-left h1 { font-size: 25px; }
  .hero-right { display: none; }
  .hero-search { max-width: none; }
  .hero-search .sel { display: none; }
  .hero-search .go { padding: 0 20px; font-size: 14px; }
  .hero-tags { font-size: 12px; }

  .entry-row { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -56px; }
  .entry { padding: 14px 12px; gap: 10px; }
  .entry .ic { width: 42px; height: 42px; border-radius: 11px; }
  .entry .ic svg { width: 21px; height: 21px; }
  .entry h3 { font-size: 14px; }
  .entry p { min-height: 0; font-size: 11.5px; display: none; }

  .home-cols { grid-template-columns: 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .hot-grid { grid-template-columns: repeat(3, 1fr); }
  .form-2, .form-3 { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 18px; }
  .footer { padding-bottom: 78px; }

  .tabbar { display: block; }
  .ai-fab { bottom: 76px; right: 16px; width: 52px; height: 52px; font-size: 22px; }
  .ai-panel { right: 0; left: 0; bottom: 0; width: auto; height: 76vh; border-radius: 18px 18px 0 0; }
  .ai-panel.show { display: flex; }

  .detail-card { padding: 18px 16px; }
  .detail-card h1 { font-size: 20px; }
  .article-body { font-size: 15px; }
  .item-row { gap: 12px; }
  .item-row .thumb { width: 108px; height: 82px; }
  .item-row h3 { font-size: 14.5px; }
  .item-row .desc { display: none; }
  .shop-hero { height: 180px; }
  .shop-hero h1 { font-size: 18px; }
  .shop-hero .logo { width: 56px; height: 56px; }
  .form-card { padding: 20px 16px; }
  .city-panel { width: calc(100vw - 32px); left: -60px; }
  .city-grid { grid-template-columns: repeat(4, 1fr); }
  .ai-bar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .ai-bar:after { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .entry-row { gap: 8px; }
  .entry { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .user-hero { flex-direction: column; text-align: center; }
  .user-stats { justify-content: center; gap: 24px; }
}

/* =========================================================
   v1.1 方块化 · 模块化 · AI 化 + 响应式重构
   本段为覆盖层，原样式保持不变
   ========================================================= */

:root {
  --r-block: 12px;        /* 标准方块圆角 */
  --r-block-sm: 8px;      /* 小方块圆角 */
  --r-block-lg: 16px;     /* 大方块圆角 */
  --edge: rgba(108, 92, 231, .10);
  --glow: 0 6px 22px rgba(108, 92, 231, .14);
}

/* ---------- 1. 方块化：全站去掉胶囊 / 圆形，统一为圆角方块 ---------- */
.btn-ai, .btn-login, .btn-reg, .tabs a, .chip, .user-chip,
.city-btn, .btn-main, .btn-line, .auth-btn, .code-row .get,
.ai-quick span, .hero-tags a, .pg-item, .filter-bar .sorts a,
.ai-foot input, .ai-foot .send, .tabbar .center .btn {
  border-radius: var(--r-block-sm) !important;
}
.user-chip img, .user-chip .av, .ai-msg .av, .ai-panel .hd .av,
.ai-guide .av, .user-hero .av, .hero-robot, .ai-fab, .vip-card .b {
  border-radius: var(--r-block) !important;
}
.ai-fab { border-radius: var(--r-block-lg) !important; }
.hero-robot { border-radius: 26px !important; }
.card, .city-strip, .list-card, .filter-bar, .side-card,
.detail-card, .form-card, .shop-card, .job-card, .entry,
.auth-card, .ad-item, .ad-banner, .ad-side, .ai-guide, .ai-publish,
.user-hero, .ai-bar, .contact-box, .shop-hero, .vip-card {
  border-radius: var(--r-block-lg);
}
.ai-panel { border-radius: var(--r-block-lg); }

/* ---------- 2. 小鸥形象 ---------- */
.xiaoou {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.ai-fab .xiaoou { width: 40px !important; height: 40px !important; }
.hero-robot .xiaoou { width: 132px !important; height: 132px !important; }
.btn-ai .xiaoou { width: 22px !important; height: 22px !important; }
.ai-panel .hd .av .xiaoou { width: 26px !important; height: 26px !important; }
.ai-msg .av .xiaoou { width: 22px !important; height: 22px !important; }

/* 悬浮球：渐变方块底 + 小鸥，带呼吸光环 */
.ai-fab {
  width: 62px; height: 62px;
  background: #fff;
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(108, 92, 231, .26);
  overflow: hidden;
}
.ai-fab:before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft);
  z-index: 0;
}
.ai-fab .xiaoou { position: relative; z-index: 1; }
.ai-fab .dot { z-index: 2; }

/* ---------- 3. 全站防挤压（根治标签竖排 / 按钮换行 / 内容被裁） ---------- */
.header-in { flex-wrap: nowrap; }
.logo, .city-pick, .header-right { flex-shrink: 0; }
.nav { min-width: 0; }
.nav a { white-space: nowrap; flex-shrink: 0; }
.btn-ai, .btn-login, .btn-reg, .user-chip { flex-shrink: 0; white-space: nowrap; }

.tabs { flex-wrap: wrap; }
.tabs a { white-space: nowrap; flex-shrink: 0; }

.sec-hd { flex-wrap: wrap; gap: 8px 10px; }
.sec-hd h2 { white-space: nowrap; }
.sec-hd .more { white-space: nowrap; flex-shrink: 0; }

.news-item .meta .tag, .badge, .job-card .tags span,
.shop-mini .stars .tp, .detail-meta span { white-space: nowrap; }

.filter-bar .sorts { flex-wrap: wrap; }
.item-row .foot { flex-wrap: wrap; gap: 8px; }
.contact-box > * { flex-shrink: 0; }
.city-row > * { flex-shrink: 0; }
.ai-bar .feat { flex-wrap: wrap; }

/* ---------- 4. AI 化视觉：网格底纹 · 渐变描边 · 微光 ---------- */
.hero { background-image: var(--grad-hero), radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0); background-size: auto, 22px 22px; }
.card, .job-card, .shop-card, .entry { border: 1px solid transparent; }
.card:hover, .job-card:hover { border-color: rgba(108, 92, 231, .14); }
.sec-hd h2:before { width: 5px; height: 15px; border-radius: 3px; }

.badge { border-radius: 6px; }
.badge-purple { background: var(--purple-bg); }

/* 统一的模块小标题（方块 + 渐变条） */
.mod-tt { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.mod-tt:before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--grad); }

/* ---------- 5. 演示数据提示条 ---------- */
.demo-bar-wrap { background: #FFFBF2; border-bottom: 1px solid #FFE8C7; }
.demo-bar-wrap .demo-bar { margin: 0; padding: 9px 0; background: transparent; border: 0; border-radius: 0; }
.demo-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 0; padding: 10px 16px;
  border-radius: var(--r-block);
  background: linear-gradient(135deg, #FFF7E6 0%, #FFF1F0 100%);
  border: 1px solid #FFE0B2;
  color: #A65B00; font-size: 13px;
}
.demo-bar b { color: #D46B08; }
.demo-bar .x { margin-left: auto; cursor: pointer; opacity: .65; font-size: 15px; line-height: 1; }
.demo-bar .x:hover { opacity: 1; }
.badge-demo {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 7px; border-radius: 5px; font-size: 11px;
  background: #FFF3E0; color: #D46B08; border: 1px solid #FFE0B2;
  white-space: nowrap; flex-shrink: 0;
}

/* ---------- 6. 响应式：新增断点，修复双栏被裁 / 导航重叠 ---------- */
@media (max-width: 1240px) {
  .layout-2 { grid-template-columns: 216px 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .header-in { gap: 14px; }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .home-cols { grid-template-columns: 1fr 1fr; }
}
/* 侧栏提前堆叠，避免资讯页右栏被挤压裁切 */
@media (max-width: 1024px) {
  .layout-2 { grid-template-columns: 1fr; }
  .side-card:first-child .cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
}

@media (max-width: 900px) {
  /* 顶栏：隐藏副标题，收紧间距，杜绝「登录」换行 */
  .logo .t2 { display: none; }
  .header-in { gap: 8px; padding: 0 12px; }
  .btn-ai { padding: 0 10px; }
  .btn-ai span { display: inline; font-size: 12.5px; }
  .btn-login { padding: 0 14px; }

  /* Hero：保留小鸥形象（改为上下布局） */
  .hero-in { flex-direction: column; align-items: stretch; }
  .hero-right { display: flex; width: auto; margin-top: 20px; padding-top: 0; align-items: flex-start; flex-direction: row; gap: 14px; }
  .hero-robot { width: 88px; height: 88px; flex-shrink: 0; }
  .hero-robot .xiaoou { width: 66px !important; height: 66px !important; }
  .hero-bubble { margin-top: 0; text-align: left; flex: 1; }

  .side-card:first-child .cat-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* 超窄：顶栏只留品牌图标 + 城市 + 小鸥 + 登录 */
  .logo .t1 { display: none; }
  .header-in { gap: 6px; }
  .city-btn { font-size: 12px; padding: 0 8px; }
  .btn-ai { padding: 0 8px; }
  .btn-ai span { display: none; }
  .hero-left h1 { font-size: 22px; }
  .hero-search { padding: 5px; }
  .hero-search .go { padding: 0 16px; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hot-grid { grid-template-columns: repeat(3, 1fr); }
  .side-card:first-child .cat-list { grid-template-columns: 1fr; }
  .detail-card h1 { font-size: 19px; }
}

@media (max-width: 420px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .entry-row { grid-template-columns: 1fr 1fr; }
  .entry h3 { font-size: 13px; }
  .ai-fab { width: 54px; height: 54px; bottom: 72px; right: 12px; }
  .ai-fab .xiaoou { width: 34px !important; height: 34px !important; }
}

