/* 打垂小匠 · 移动端 UI(静态预览)
   设计语言:白底 / 墨绿主色 / 橙色点缀 / 胶囊按钮 / 圆角12卡片 */
:root {
  --green: #1e7b5e;          /* 主色·墨绿 */
  --green-dark: #17604a;
  --green-bg: #e8f5ef;       /* 浅绿底(胶囊/标签底) */
  --orange: #f08a4b;         /* 点缀·问标签 */
  --text: #1f2329;
  --text-2: #5f6672;
  --text-3: #9aa1ac;
  --bg: #f5f6f8;
  --line: #eceef1;
  --card-r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: 0; cursor: pointer; background: none; }
input { font: inherit; border: 0; outline: none; }

/* 手机壳:桌面访问时居中模拟手机宽度 */
.phone { max-width: 420px; margin: 0 auto; min-height: 100vh; background: #fff; position: relative; }
@media (min-width: 480px) { .phone { box-shadow: 0 0 40px rgba(0,0,0,.08); } }

/* ── 顶栏 + 搜索 ── */
.top { background: #fff; padding: 10px 14px 8px; position: sticky; top: 0; z-index: 20; }
.brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.brand { font-weight: 700; font-size: 17px; color: var(--green); letter-spacing: .5px; }
.brand::before { content: "⚖"; margin-right: 4px; }
.brand-row .link { color: var(--text-2); font-size: 13px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 20px; padding: 9px 14px; }
.search input { flex: 1; background: none; font-size: 14px; }
.search .icon { color: var(--text-3); font-size: 15px; }

/* ── 分类 Tab(横滑 + 九宫格) ── */
.tabs-wrap { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.tabs { flex: 1; display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; white-space: nowrap; padding: 4px 0; color: var(--text-2); font-size: 15px; }
.tab.on { color: var(--green); font-weight: 700; }
.tab.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -6px; width: 18px; height: 3px; border-radius: 3px; background: var(--green); }
.grid-btn { color: var(--text-3); font-size: 15px; padding: 4px 2px 4px 6px; border-left: 1px solid var(--line); }

/* ── 问答卡片 ── */
.q-list { padding: 6px 14px 90px; }
.q-card { background: #fff; border-radius: var(--card-r); padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(31,35,41,.04); }
.q-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag-q { background: var(--orange); color: #fff; border-radius: 6px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.tag-area { color: var(--text-3); font-size: 12px; }
.q-title { font-size: 16px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.q-text { color: var(--text-2); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.q-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.ava-stack { display: flex; }
.ava-stack span { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #7bc4a8, var(--green)); border: 2px solid #fff; margin-left: -8px; color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.ava-stack span:first-child { margin-left: 0; }
.ava-stack em { font-style: normal; color: var(--text-3); font-size: 12px; margin-left: 8px; }
.btn-answer { background: var(--green-bg); color: var(--green); border-radius: 16px; padding: 6px 16px; font-size: 13px; font-weight: 600; }

/* ── 文章卡片(左文右图) ── */
.a-card { background: #fff; border-radius: var(--card-r); padding: 14px; margin-bottom: 10px; display: flex; gap: 12px; box-shadow: 0 1px 4px rgba(31,35,41,.04); }
.a-main { flex: 1; min-width: 0; }
.a-title { font-size: 16px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-meta { margin-top: 8px; color: var(--text-3); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.a-meta .hot { color: var(--orange); }
.a-pic { position: relative; width: 108px; height: 78px; flex: none; }
.a-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--green-bg); }
.a-pic .corner { position: absolute; left: 0; bottom: 0; background: rgba(31,35,41,.72); color: #fff; font-size: 11px; border-radius: 0 8px 0 8px; padding: 2px 8px; }

/* ── 律师卡片 ── */
.l-card { background: #fff; border-radius: var(--card-r); padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(31,35,41,.04); }
.l-head { display: flex; gap: 12px; }
.l-ava { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: linear-gradient(150deg, #7bc4a8, var(--green)); flex: none; color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.l-info { flex: 1; min-width: 0; }
.l-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.l-badge { font-size: 11px; border-radius: 4px; padding: 1px 6px; }
.b-v { background: #fdf1e7; color: #c8741f; }
.b-h { background: var(--green-bg); color: var(--green); }
.l-stat { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.l-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.l-tag { background: var(--green-bg); color: var(--green); font-size: 11px; border-radius: 4px; padding: 2px 8px; }
.l-intro { color: var(--text-2); font-size: 13px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.l-price { color: var(--orange); font-weight: 700; font-size: 14px; }
.l-price em { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 2px; }
.btn-green { background: var(--green); color: #fff; border-radius: 16px; padding: 7px 18px; font-size: 13px; font-weight: 600; }

/* ── 底部导航 ── */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 30; }
.tabbar a { flex: 1; text-align: center; padding: 7px 0 9px; color: var(--text-3); font-size: 11px; }
.tabbar a .ico { display: block; font-size: 19px; line-height: 1.25; }
.tabbar a.on { color: var(--green); font-weight: 600; }

/* ── 底部弹层:全部类型 ── */
.sheet-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.sheet { position: fixed; left: 50%; transform: translate(-50%, 100%); bottom: 0; width: 100%; max-width: 420px; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 16px 30px; z-index: 91; transition: transform .25s; max-height: 72vh; overflow-y: auto; }
.open .sheet-mask { opacity: 1; pointer-events: auto; }
.open .sheet { transform: translate(-50%, 0); }
.sheet h3 { text-align: center; font-size: 17px; margin-bottom: 14px; }
.sheet .close { position: absolute; right: 14px; top: 12px; color: var(--text-3); font-size: 17px; padding: 4px 8px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; text-align: center; }
.sheet-grid a { display: block; }
.sheet-grid .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--green-bg); color: var(--green); font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 5px; }
.sheet-grid span { font-size: 12px; color: var(--text-2); }

/* ── 区块标题 ── */
.sec { padding: 14px 14px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; }
.sec-h h2 { font-size: 17px; }
.sec-h .more { color: var(--text-3); font-size: 12px; }

/* ── 类目页 ── */
.cat-intro { background: var(--green-bg); border-radius: 0 0 16px 16px; padding: 16px 14px 14px !important; margin-bottom: 6px; }
.cat-name { font-size: 20px; color: var(--green); }
.cat-desc { color: var(--text-2); font-size: 13px; line-height: 1.7; margin-top: 6px; }
.cat-desc strong { color: var(--green-dark); }
.cat-stats { display: flex; gap: 14px; margin-top: 10px; color: var(--text-2); font-size: 12px; }
.cat-stats b { color: var(--green); font-size: 15px; }
.subcats { background: #fff; border-radius: var(--card-r); overflow: hidden; }
.subcats li + li { border-top: 1px solid var(--line); }
.subcats a { display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.subcats .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--green-bg); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none; }
.subcats a > span:not(.ico):last-child { margin-left: auto; color: var(--text-3); font-size: 12px; }

/* ── 问答卡片·答案区 ── */
.ans { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin-top: 10px; }
.ans-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ans-ava { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,#7bc4a8,var(--green)); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.ans-head b { font-size: 13px; }
.ans-badge { background: var(--green-bg); color: var(--green); font-size: 10px; border-radius: 3px; padding: 0 5px; }
.ans-text { color: var(--text-2); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ans-more { display: block; color: var(--green); font-size: 12px; margin-top: 4px; }
.q-foot .btn-answer:only-child { margin-left: auto; }
.ans-btn { display: block; margin: 8px 0 0 auto; width: fit-content; background: var(--green-bg); color: var(--green); border-radius: 16px; padding: 5px 16px; font-size: 13px; font-weight: 600; }

/* 首篇热门文章:上图下文 */
.a-card-top { display: block; }
.a-pic-wide { position: relative; height: 150px; margin-bottom: 10px; }
.a-pic-wide img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: var(--green-bg); }
.a-card-top .a-title { font-size: 17px; }
.a-desc { color: var(--text-2); font-size: 13px; line-height: 1.6; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-home .a-card .a-title { -webkit-line-clamp: 1; }  /* 左文右图:标题一行(仅首页) */
.a-pic-wide .corner { position: absolute; left: 0; bottom: 0; background: rgba(31,35,41,.72); color: #fff; font-size: 11px; border-radius: 0 8px 0 8px; padding: 2px 8px; z-index: 2; }

/* ── 页脚 ── */
.site-foot { background: #fff; border-top: 1px solid var(--line); text-align: center; padding: 22px 16px 34px; margin-top: 10px; }
.foot-logo { color: var(--green); font-weight: 700; font-size: 16px; }
.foot-links { display: flex; justify-content: center; gap: 18px; margin: 10px 0 8px; }
.foot-links a { color: var(--text-2); font-size: 13px; }
.site-foot p { color: var(--text-3); font-size: 11px; }

/* ── 面包屑 ── */
.crumb { display: flex; gap: 8px; align-items: center; padding: 10px 14px 0; font-size: 12px; color: var(--text-3); }
.crumb a { color: var(--text-2); }
.crumb em { font-style: normal; color: var(--text); font-weight: 600; }

/* ── 咨询表单 ── */
.ask-form { background: var(--green-bg); border-radius: 14px; margin: 14px; padding: 16px; }
.ask-form h2 { font-size: 17px; color: var(--green-dark); margin-bottom: 10px; }
.ask-form input, .ask-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfe5da; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; margin-bottom: 9px; box-sizing: border-box; }
.ask-form textarea { min-height: 72px; resize: none; }
.ask-form button { width: 100%; background: var(--green); color: #fff; border-radius: 22px; padding: 11px; font-size: 15px; font-weight: 600; }
.ask-form .tip { color: var(--text-3); font-size: 11px; margin-top: 8px; text-align: center; }

/* ── 律师店铺页(AI 风格) ── */
.pg-shop .phone { background: linear-gradient(180deg, #f2fbf7 0%, #fff 240px); }
.shop-banner { background: radial-gradient(120% 90% at 20% 0%, #2ec58e 0%, var(--green) 45%, #10402f 100%); color: #fff; padding: 12px 16px 26px; border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.shop-banner::after { content: ""; position: absolute; right: -30px; top: -30px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.10); box-shadow: 0 0 60px rgba(46,197,142,.55); }
.shop-banner::before { content: ""; position: absolute; left: -40px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.06); }
.shop-nav { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 2; }
.shop-anchor { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; font-size: 13px; color: rgba(255,255,255,.85); }
.shop-anchor::-webkit-scrollbar { display: none; }
.shop-head { display: flex; gap: 14px; margin-top: 18px; position: relative; z-index: 2; align-items: center; }
.shop-ava { width: 76px; height: 76px; border-radius: 20px; background: linear-gradient(150deg, #7bc4a8, #10402f); border: 2px solid rgba(255,255,255,.7); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.shop-head h1 { font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-sub { font-size: 12px; opacity: .85; margin-top: 3px; }
.shop-sub b { color: #b7f5dd; }
.shop-slogan { font-size: 12px; opacity: .75; margin-top: 5px; }
.shop-sec { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(16,64,47,.05); scroll-margin-top: 8px; }
.shop-sec h2 { font-size: 16px; color: var(--green-dark); margin-bottom: 10px; }
.shop-p { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.shop-sec .facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; font-size: 13px; margin-bottom: 8px; }
.shop-sec .facts dt { color: var(--text-3); }
.honor-row li { padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.honor-row li:last-child { border: 0; }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 8px; }
.ach { background: linear-gradient(160deg, var(--green-bg), #fff); border: 1px solid #d4ece1; border-radius: 10px; padding: 10px 4px; }
.ach b { display: block; font-size: 18px; color: var(--green); }
.ach span { font-size: 11px; color: var(--text-3); }
.flower-count { float: right; color: var(--orange); font-size: 14px; }
.good-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.good-item:last-child { border: 0; }
.good-item .ans-ava { flex: none; }
.stars { color: var(--orange); margin-left: 8px; font-size: 12px; }
.pub-list li { padding: 6px 0; font-size: 13px; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.pub-list li:last-child { border: 0; }

/* ── 详情页关键词飘蓝 ── */
.kw { color: #2563eb; border-bottom: 1px dashed #93c5fd; }

/* ── 详情页正文 ── */
.detail h1 { font-size: 19px; line-height: 1.5; margin: 12px 0 6px; }
.detail .meta { color: var(--text-3); font-size: 12px; margin-bottom: 12px; }
.detail p { color: var(--text-2); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.detail h3 { font-size: 16px; margin: 18px 0 8px; }

/* ── 城市选择页 ── */
.city-list li + li { border-top: 1px solid var(--line); }
.city-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; background: #fff; border-radius: 10px; }
.city-list b { font-size: 16px; }
.city-list span { color: var(--text-3); font-size: 12px; }
.city-list em { margin-left: auto; color: var(--text-3); font-style: normal; }
.city-now { background: var(--green-bg); color: var(--green); font-size: 12px; border-radius: 10px; padding: 2px 10px; }
.l-link { display: block; }

/* 店铺页·鲜花墙 */
.flower-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fl { background: linear-gradient(160deg, #fff5f0, #fff); border: 1px solid #f5ddca; border-radius: 10px; padding: 10px 4px; text-align: center; }
.fl-ico { display: block; font-size: 26px; line-height: 1.3; }
.fl-n { font-size: 11px; color: var(--text-2); }
.fl:active { transform: scale(.94); }

/* 店铺页·精选案例 */
.case-h { margin-top: 16px !important; font-size: 15px; }
.case-h .meta { font-weight: 400; font-size: 11px; color: var(--text-3); margin-left: 8px; }
.case-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 10px; }
.case-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.case-top b { font-size: 14px; }
.case-line { color: var(--text-2); font-size: 13px; }
.case-result { color: var(--green-dark); font-size: 13px; font-weight: 600; margin-top: 4px; }
.case-meta { color: var(--text-3); font-size: 11px; margin-top: 4px; }
.case-more summary { text-align: center; color: var(--green); font-size: 13px; padding: 10px 0 2px; cursor: pointer; }

/* ── 城市选择页(356城) ── */
.city-hot h2, .city-region h2 { font-size: 16px; margin: 16px 0 10px; }
.hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hot-grid a { display: block; text-align: center; padding: 10px 0; background: var(--green-bg); border-radius: 10px; color: var(--green-dark); font-size: 13px; }
.hot-grid a:active { background: #d7ede2; }
.region h3 { font-size: 13px; color: var(--green); margin: 14px 0 8px; }
.region-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.region-cities a { padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; color: var(--text-2); }
.subcats a { text-align: left; justify-content: flex-start; }
.subcats li { text-align: left; }

/* ── 城市新闻列表 ── */
.news-list { background: #fff; border-radius: var(--card-r); padding: 4px 14px; }
.news-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.news-list li:last-child { border: 0; }
.news-list li a { display: block; line-height: 1.5; }
.news-list .meta { display: block; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.n-tag { background: var(--green-bg); color: var(--green); font-size: 10px; border-radius: 3px; padding: 1px 6px; margin-right: 6px; vertical-align: 2px; }

/* ── 律师页·在线咨询操作条(介绍下方,大图标) ── */
.lawyer-actions { display: flex; gap: 8px; margin-top: 14px; background: var(--green-bg); border-radius: 14px; padding: 12px 8px; }
.la-big { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 12px; padding: 12px 4px; background: #fff; border: 1px solid var(--line); }
.la-big .ico { font-size: 26px; }
.la-big b { font-size: 14px; }
.la-big em { font-style: normal; font-size: 11px; color: var(--orange); font-weight: 600; }
.la-big.la-online { background: var(--green); border-color: var(--green); }
.la-big.la-online b, .la-big.la-online em { color: #fff; }
.la-big.la-online em { color: #ffe9c7; }
.la-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); background: none; border: 0; }
.la-btn .ico { font-size: 30px; line-height: 1.2; }
.la-btn.la-form { color: var(--green); font-weight: 700; }
.la-btn:active { transform: scale(.95); }
.wx-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 99; }
.wx-modal.open { opacity: 1; pointer-events: auto; }
.wx-box { background: #fff; border-radius: 14px; padding: 20px 24px; text-align: center; width: 260px; }
.wx-box h3 { margin-bottom: 10px; }
.qr-img { width: 180px; height: 180px; margin: 0 auto; border: 1px dashed var(--green); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; background: var(--green-bg); }
.wx-box p { font-size: 12px; color: var(--text-2); margin: 10px 0; }
.wx-close { background: var(--green-bg); color: var(--green); border-radius: 16px; padding: 6px 30px; font-size: 13px; }

/* ── 商户管理中心 ── */
.bell { position: relative; font-size: 19px; background: none; border: 0; }
.bell-badge { position: absolute; top: -6px; right: -10px; background: #ef4444; color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 6px 0 10px; }
.cal-dim { text-align: center; font-size: 11px; color: var(--text-3); padding: 2px 0; }
.cal-d { text-align: center; padding: 6px 0; border-radius: 8px; font-size: 12px; color: var(--text-3); background: var(--bg); }
.cal-d.off { opacity: .4; }
.cal-d.on { background: #fde68a; color: #92400e; font-weight: 700; }
.cal-d.today { border: 2px solid var(--green); color: var(--green); font-weight: 700; }
.bk-list { font-size: 13px; }
.bk-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.bk-list em { float: right; font-style: normal; color: var(--text-3); font-size: 11px; }
.st-new { background: #fee2e2; color: #dc2626; font-size: 10px; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.st-replied { background: var(--green-bg); color: var(--green); font-size: 10px; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.subcats a em { margin-left: auto; color: var(--text-3); font-size: 11px; font-style: normal; }
.subcats a em.add-only { color: var(--green); }
.subcats a em.edit-left { color: var(--orange); }

/* ── 商户管理中心(微信式工作台) ── */
.pg-portal .phone { background: var(--bg); }
.pt-top { background: radial-gradient(120% 90% at 20% 0%, #2ec58e 0%, var(--green) 45%, #10402f 100%); padding: 10px 14px 0; border-radius: 0 0 22px 22px; }
.pt-bar { display: flex; align-items: center; justify-content: space-between; }
.pt-home { color: #fff; font-weight: 700; font-size: 14px; }
.pt-title { color: rgba(255,255,255,.85); font-size: 13px; }
.pt-user { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.pt-user-info h1 { font-size: 18px; color: #fff; display: flex; align-items: center; gap: 6px; }
.pt-user-info p { color: rgba(255,255,255,.8); font-size: 12px; margin-top: 3px; }
.pt-shop-link { color: #ffe9c7; }
.pt-rank { display: flex; margin-top: 14px; background: rgba(255,255,255,.12); border-radius: 14px 14px 0 0; padding: 12px 0 10px; }
.pt-rank-item { flex: 1; text-align: center; color: #fff; }
.pt-rank-item b { display: block; font-size: 19px; }
.pt-rank-item span { font-size: 10px; opacity: .8; }
.task-progress { float: right; font-size: 12px; color: var(--green); font-weight: 600; }
.task-bar { height: 5px; background: var(--green-bg); border-radius: 3px; overflow: hidden; margin: 8px 0 10px; }
.task-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7bc4a8, var(--green)); border-radius: 3px; }
.task-list { font-size: 14px; }
.task-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--text-2); }
.task-list li.done { color: var(--text-3); text-decoration: line-through; }
.task-list a { display: flex; justify-content: space-between; color: var(--text); }
.task-list em { font-style: normal; color: var(--orange); font-size: 12px; }
.pt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; text-align: center; }
.pt-grid a { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); position: relative; }
.pt-grid .ico { font-size: 26px; }
.pt-grid em { font-style: normal; font-size: 10px; color: var(--text-3); }
.pt-grid b { font-weight: 600; color: var(--text); }
.reddot { position: absolute; top: -4px; right: 14px; background: #ef4444; color: #fff; font-size: 10px; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* ── 视频号式单元格编辑 ── */
.wx-cells li { background: #fff; }
.wx-cells li + li { border-top: 1px solid var(--line); }
.wx-cells a, .wx-cells li { display: flex; align-items: center; justify-content: space-between; padding: 14px; font-size: 15px; }
.wx-cells em { font-style: normal; color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.wx-cells em.ok { color: var(--green); }
.wx-ava-row { cursor: pointer; }
.wx-ava { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--green-bg); }
.wx-group-title { padding: 10px 14px 4px; font-size: 12px; color: var(--text-3); }

/* 咨询单页 */
.c-input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 14px; box-sizing: border-box; }
.pay-box { text-align: center; padding: 6px 0; }
.pay-box .qr-img { margin: 0 auto 10px; width: 170px; height: 170px; }
.pay-amt { color: var(--orange); font-size: 17px; }

/* 推荐律师:细边框卡片 */
.page-city .l-card, .page-cityfield .l-card { border: 1px solid #dfe3e8; box-shadow: none; }

/* 新闻/文章/问答卡片:细边框(城市页与类目页) */
.page-city .news-list, .page-cityfield .news-list { border: 1px solid #dfe3e8; border-radius: 12px; }
.page-city .a-card, .page-cityfield .a-card { border: 1px solid #dfe3e8; box-shadow: none; }
.page-city .q-card, .page-cityfield .q-card { border: 1px solid #dfe3e8; box-shadow: none; }

/* 入驻页:级联下拉与选项加大(与输入框同规格) */
.page-join select { width: 100%; padding: 10px; border: 1px solid #cfe5da; border-radius: 8px; font: inherit; font-size: 14px; background: #fff; height: 44px; box-sizing: border-box; }
.page-join #jTag2 { font-size: 14px; }
.page-join #jTag2 label { background: #fff; border: 1px solid #cfe5da; border-radius: 8px; padding: 9px 10px; }
.page-join #jTag2 input[type=checkbox] { width: 17px; height: 17px; }

/* 律师登录页(独立页,自带头部) */
.page-portal-login { background: #f5f6f8; font: 15px/1.6 -apple-system, "PingFang SC", sans-serif; color: #1f2329; margin: 0; }
.page-portal-login .login-box { max-width: 400px; margin: 0 auto; padding: 16px; min-height: 100vh; box-sizing: border-box; }
.page-portal-login h1 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 14vh 0 18px; color: #1e7b5e; }
.page-portal-login h1::before { content: "⚖"; font-size: 24px; }
.page-portal-login .lg-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 9px; padding: 10px; font-size: 13px; margin-bottom: 10px; }
.page-portal-login .lg-input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 9px; font: inherit; box-sizing: border-box; margin-bottom: 10px; }
.page-portal-login .lg-btn { width: 100%; background: #1e7b5e; color: #fff; border: 0; border-radius: 9px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.page-portal-login .lg-note { text-align: center; color: #9aa1ac; font-size: 12px; margin-top: 12px; }
.page-portal-login .lg-note a { color: #1e7b5e; }

/* 朋友圈动态流(店铺页/动态页共用) */
.moment { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.mm-head { display: flex; gap: 10px; align-items: center; }
.mm-ava { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(150deg,#7bc4a8,#10402f); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.mm-head b { font-size: 14px; }
.mm-head em { display: block; font-style: normal; font-size: 11px; color: #9aa1ac; margin-top: 2px; }
.mm-text { font-size: 14px; color: #374151; line-height: 1.65; margin: 8px 0; }
.moment .grid-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.mm-foot { display: flex; gap: 8px; margin-top: 10px; border-top: 1px solid #f3f4f6; padding-top: 8px; }
.mm-flower { background: #e8f5ef; color: #17604a; border: 0; border-radius: 14px; padding: 5px 14px; font-size: 12px; cursor: pointer; }
.year-h { display: flex; align-items: center; gap: 10px; color: #1e7b5e; font-weight: 700; font-size: 14px; margin: 16px 0 8px; }
.year-h::before, .year-h::after { content: ""; height: 1px; background: #cfe5da; flex: 1; }

/* 店铺页:荣誉/公益/精彩回答列表 + 好评(预览样式) */
.shop-sec .honor-row li { padding: 8px 0; font-size: 14px; border-bottom: 1px dashed #eceef1; list-style: none; }
.shop-sec .honor-row { list-style: none; margin: 0; padding: 0; }
.shop-sec .honor-row li:last-child, .shop-sec .pub-list li:last-child { border: 0; }
.shop-sec .pub-list li { padding: 8px 0; font-size: 13px; color: #5f6672; border-bottom: 1px dashed #eceef1; list-style: none; }
.shop-sec .pub-list { list-style: none; margin: 0; padding: 0; }
.shop-sec .qa-list { list-style: none; margin: 0; padding: 0; }
.shop-sec .qa-list li { padding: 8px 0; border-bottom: 1px dashed #eceef1; font-size: 14px; }
.shop-sec .qa-list li:last-child { border: 0; }
.good-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eceef1; font-size: 13px; }
.good-item:last-child { border: 0; }
.good-item .ans-ava { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(150deg,#7bc4a8,#1e7b5e); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.good-item b { font-size: 13px; }
.good-item p { margin: 3px 0 0; color: #5f6672; }
.stars { color: #f08a4b; margin-left: 8px; font-size: 12px; }

/* 新闻列表:标题与文章标题同号(一行),摘要两行 */
.news-list .n-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-list .n-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #5f6672; font-size: 13px; line-height: 1.55; margin-top: 3px; }
.news-list .n-link { display: block; }

/* 纯文字文章卡(第2/3条无图) */
.a-card-text { border: 1px solid #dfe3e8; box-shadow: none; }

/* 城市页/类目页:压缩模块间距与底部留白 */
.page-city .q-list, .page-cityfield .q-list { padding: 6px 14px 24px; }
.page-city .sec, .page-cityfield .sec { padding: 8px 14px 0; }
.page-city .sec-h h2, .page-cityfield .sec-h h2 { font-size: 16px; margin: 4px 0 6px; }
.page-city .q-list[style*="padding-top:8px"], .page-cityfield .q-list[style*="padding-top:8px"] { padding-top: 0 !important; }
.page-city .l-card, .page-cityfield .l-card, .page-city .a-card, .page-cityfield .a-card, .page-city .q-card, .page-cityfield .q-card, .page-city .news-list, .page-cityfield .news-list { margin-bottom: 8px; }

/* 律师列表行副标题(替代价格) */
.l-sub { color: #5f6672; font-size: 12px; }

/* 后台筛选栏:输入框与下拉同高、按钮对齐 */
.adm-main form input[type=text], .adm-main form input:not([type]), .adm-main form input[type=password], .adm-main form input[type=number], .adm-main form input[type=date], .adm-main form textarea, .adm-main form select {
  height: 34px; padding: 0 10px; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; background: #fff !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}
.adm-main form select { height: 34px; }
.adm-main form .btn { height: 34px; padding: 0 16px; }

/* 后台表格:字号加大 */
.adm-main table { font-size: 16px; }
.adm-main table th { font-size: 14px; }
.adm-main table td, .adm-main table th { padding: 12px 12px; }
.adm-main .muted { font-size: 14px; }

/* 后台滑块开关 */
.switch{position:relative;display:inline-block;width:46px;height:24px;vertical-align:middle}
.switch input{opacity:0;width:0;height:0}
.switch i{position:absolute;inset:0;background:#cbd5e1;border-radius:24px;transition:.2s;cursor:pointer}
.switch i::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.switch input:checked + i{background:#1e7b5e}
.switch input:checked + i::after{transform:translateX(22px)}
.switch-lab{font-size:13px;color:#5f6672;margin:0 18px 0 6px;vertical-align:middle}

/* 列表内嵌开关 */
.inline-sw { display: inline; }
