/* 旅韩助手 · 社区页面通用样式（与 guide.css 同色系） */
:root{--pink:#ff4f7b;--ink:#1f2330;--sub:#6b7080;--bg:#fff6f8;--card:#fff;--line:#f0e3e7}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--ink);padding-bottom:132px}
header{background:linear-gradient(135deg,#ff6b8f,#ff9a6b);color:#fff;padding:20px 18px 30px;border-radius:0 0 22px 22px}
header h1{margin:0;font-size:21px}
header p{margin:6px 0 0;font-size:14px;opacity:.95}
header a{color:#fff}
main{max-width:560px;margin:-18px auto 0;padding:0 14px}
.card{background:var(--card);border-radius:16px;padding:16px;box-shadow:0 4px 16px rgba(255,79,123,.08);margin-bottom:14px}
.card h2{font-size:17px;margin:0 0 10px;color:var(--pink)}
.tip{font-size:12px;color:var(--sub);margin-top:10px;line-height:1.6}
.disclaimer{font-size:12px;color:var(--sub);text-align:center;margin:6px 0 14px;line-height:1.6}
.warn{background:#fff4e5;border:1px solid #ffd8a8;color:#8a5300;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.6;margin-bottom:12px}
nav{position:fixed;left:0;right:0;bottom:0;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--line);display:flex;z-index:10}
nav a{flex:1;border:0;background:none;font-size:11px;color:var(--sub);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none}
nav a i{font-style:normal;font-size:20px}
nav a.on{color:var(--pink);font-weight:700}
.userbar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}
.userbar .who{font-weight:600}
.btn{display:inline-block;border:0;border-radius:12px;padding:11px 16px;font-size:15px;font-weight:700;font-family:inherit;text-decoration:none;text-align:center;cursor:pointer}
.btn.primary{background:var(--pink);color:#fff}
.btn.ghost{background:#ffe8ee;color:var(--pink)}
.btn.gray{background:#eef0f4;color:#444}
.btn.sm{padding:6px 11px;font-size:13px;border-radius:10px}
.btn.block{display:block;width:100%}
.btn:disabled{opacity:.55}
.mbadge{display:inline-block;font-size:11px;padding:1px 6px;border-radius:8px;background:linear-gradient(135deg,#ffb300,#ff7b00);color:#fff;font-weight:700;margin-left:4px;vertical-align:1px}
.boards{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;-webkit-overflow-scrolling:touch}
.boards button{flex:none;border:0;border-radius:20px;padding:7px 13px;font-size:14px;background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(0,0,0,.05);font-family:inherit}
.boards button.on{background:var(--pink);color:#fff;font-weight:700}
.post{display:flex;gap:12px;background:var(--card);border-radius:16px;padding:14px;box-shadow:0 4px 16px rgba(255,79,123,.08);margin-bottom:12px;text-decoration:none;color:inherit}
.post .txt{flex:1;min-width:0}
.post h3{margin:0;font-size:16px;line-height:1.4}
.post .ex{font-size:13px;color:var(--sub);margin:6px 0 0;line-height:1.55;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.post .cover{flex:none;width:84px;height:84px;border-radius:12px;object-fit:cover;background:#f3eef0}
.meta{font-size:12px;color:var(--sub);margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
.tag{font-size:12px;padding:2px 8px;border-radius:20px;background:#ffe8ee;color:var(--pink)}
label.f{display:block;font-size:13px;color:var(--sub);margin:12px 0 6px;font-weight:600}
input.f,textarea.f,select.f{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:16px;font-family:inherit;background:#fff;color:var(--ink)}
textarea.f{min-height:160px;resize:vertical;line-height:1.6}
.err{display:none;background:#ffecec;color:#c62828;border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:12px}
.ok{display:none;background:#e8f7ee;color:#1b7a3d;border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:12px}
.tabs{display:flex;gap:8px;margin-bottom:6px}
.tabs button{flex:1;border:0;border-radius:12px;padding:10px;font-size:15px;font-family:inherit;background:#f6eef1;color:var(--sub)}
.tabs button.on{background:var(--pink);color:#fff;font-weight:700}
.body{font-size:15px;line-height:1.75;white-space:pre-wrap;word-break:break-word;margin:12px 0 0}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}
.gallery.one{grid-template-columns:1fr}
.gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;background:#f3eef0;cursor:zoom-in}
.gallery.one img{aspect-ratio:auto;max-height:480px;object-fit:contain}
.cmt{border-top:1px solid var(--line);padding:10px 0}
.cmt .who{font-size:13px;font-weight:600}
.cmt .ct{font-size:14px;line-height:1.6;margin:4px 0 0;white-space:pre-wrap;word-break:break-word}
.linkbtn{border:0;background:none;color:var(--sub);font-size:12px;padding:0 4px;cursor:pointer;font-family:inherit}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.thumbs div{position:relative}
.thumbs img{width:72px;height:72px;object-fit:cover;border-radius:10px}
.thumbs button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#333;color:#fff;font-size:13px;line-height:22px;padding:0}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center;z-index:50}
.lightbox img{max-width:100%;max-height:100%}
.empty,.loading{text-align:center;padding:28px 10px;color:var(--sub);font-size:14px}
.qr{border:2px dashed #ffc2d1;border-radius:14px;padding:22px 10px;text-align:center;color:var(--sub);font-size:14px;background:#fffafc}
.steps{margin:0;padding-left:20px}
.steps li{font-size:15px;line-height:1.7;margin-bottom:6px}
.rules li{font-size:14px;line-height:1.7}
.fab{position:fixed;right:18px;bottom:calc(76px + env(safe-area-inset-bottom));background:var(--pink);color:#fff;border-radius:28px;padding:13px 18px;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 6px 18px rgba(255,79,123,.35);z-index:11}
table.adm{width:100%;border-collapse:collapse;font-size:13px}
table.adm th,table.adm td{border-bottom:1px solid var(--line);padding:7px 4px;text-align:left;vertical-align:top}
.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
body.pwa-hasbar .fab{bottom:calc(140px + env(safe-area-inset-bottom))}
.mbadge.pro{background:linear-gradient(135deg,#8e44ff,#ff4f7b)}
table.tiers{width:100%;border-collapse:collapse;font-size:14px;text-align:center}
table.tiers th,table.tiers td{border-bottom:1px solid var(--line);padding:9px 4px}
table.tiers th{font-size:14px}
table.tiers td:first-child,table.tiers th:first-child{text-align:left;color:var(--sub)}
table.tiers .price{font-size:18px;font-weight:800;color:var(--pink)}
.yes{color:#1b7a3d;font-weight:700}.no{color:#c0c4cc}
table.tiers .mbadge{white-space:nowrap;margin:0}
.article h2{font-size:17px;margin:0 0 10px;color:#ff4f7b}
.article h3{font-size:15px;margin:14px 0 6px}
.article p,.article li{font-size:15px;line-height:1.7;margin:0 0 8px}
.article ul,.article ol{margin:0 0 10px;padding-left:20px}
.article a{color:#2c7be5}
.toc{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.toc a{text-decoration:none;border-radius:20px;padding:7px 12px;font-size:13px;background:#ffe8ee;color:#ff4f7b;font-weight:600}
.mbadge.biz{background:linear-gradient(135deg,#1e88e5,#00acc1)}
.tag.biz{background:#e3f2fd;color:#1565c0;font-weight:700}
.pending{background:#fff4e5;color:#8a5300;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.6;margin-bottom:12px}
.footlinks{text-align:center;font-size:12px;margin:0 0 14px}.footlinks a{color:#2c7be5;margin:0 6px}
/* ---- 同路社区首页 + 交友 ---- */
.dot{position:absolute;top:-6px;right:-10px;min-width:17px;height:17px;border-radius:9px;background:#ff3b30;color:#fff;font-size:11px;line-height:17px;text-align:center;padding:0 4px;font-weight:700}
.sech{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}
.sech h2{margin:0;font-size:17px;color:var(--ink)}
.sech a{font-size:13px;color:var(--sub);text-decoration:none}
.frow{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.frow::-webkit-scrollbar{display:none}
.fcard{flex:none;width:118px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.07);text-decoration:none;color:inherit;position:relative;cursor:pointer}
.fcard .ph{width:100%;aspect-ratio:3/4;background:#f6e9ee center/cover no-repeat;display:flex;align-items:center;justify-content:center;font-size:40px}
.fcard .in{padding:7px 8px 9px}
.fcard .nm{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcard .mt{font-size:11px;color:var(--sub);margin-top:3px;line-height:1.5}
.fcard .pp{position:absolute;top:6px;left:6px;font-size:11px;background:rgba(255,79,123,.92);color:#fff;border-radius:9px;padding:1px 7px}
.fcard.lk .ph{filter:saturate(.8)}
.fcard.lk .lock{position:absolute;inset:0 0 auto 0;aspect-ratio:3/4;display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.4)}
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.fgrid .fcard{width:auto}
.vbadge{display:inline-block;font-size:11px;padding:1px 6px;border-radius:8px;background:#e6f6ec;color:#1b7a3d;font-weight:700;margin-left:4px;vertical-align:1px}
.g-m{color:#2c7be5}.g-f{color:#ff4f7b}
.slist .post{box-shadow:none;border-bottom:1px solid var(--line);border-radius:0;padding:10px 2px;margin:0}
.slist .post:last-child{border-bottom:0}
.slist .post .cover{width:68px;height:68px}
.rank{flex:none;width:20px;font-weight:800;color:#c0c4cc;font-size:15px;padding-top:1px}
.rank.t{color:var(--pink)}
.antiscam{background:#fff4e5;border:1px solid #ffd8a8;color:#8a5300;border-radius:12px;padding:10px 12px;font-size:13px;line-height:1.6;margin-bottom:12px}
.filters{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.filters select,.filters input{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 10px;font-size:14px;font-family:inherit;background:#fff}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:12px;padding:3px 9px;border-radius:12px;background:#f6eef1;color:var(--ink)}
.pgal{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.pgal img{flex:none;width:86%;max-width:420px;aspect-ratio:3/4;object-fit:cover;border-radius:14px;scroll-snap-align:start;background:#f6e9ee;cursor:zoom-in}
.ph0{width:100%;aspect-ratio:3/4;max-width:300px;margin:0 auto;border-radius:14px;background:#f6e9ee;display:flex;align-items:center;justify-content:center;font-size:72px}
.actbar{position:fixed;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);padding:8px 14px;display:flex;gap:8px;z-index:9}
.actbar .btn{flex:1}
.bitem{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.bitem:last-child{border-bottom:0}
.bitem i{font-style:normal;width:40px;height:40px;border-radius:12px;background:#fff0f4;display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}
.bitem a{flex:1;text-decoration:none;color:var(--ink);min-width:0}
.bitem a b{display:block;font-size:15px}
.bitem a small{color:var(--sub);font-size:12px}
.jbtn{flex:none;border:1px solid var(--pink);background:#fff;color:var(--pink);border-radius:16px;padding:4px 12px;font-size:13px;font-family:inherit;cursor:pointer}
.jbtn.on{background:#f3f3f5;color:#999;border-color:#e0e0e5}
.thr{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.thr .av{flex:none;width:48px;height:48px;border-radius:50%;background:#f6e9ee center/cover;display:flex;align-items:center;justify-content:center;font-size:22px;position:relative}
.thr .tx{flex:1;min-width:0}
.thr .tx b{font-size:15px}
.thr .tx p{margin:3px 0 0;font-size:13px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thr .tm{font-size:11px;color:var(--sub);flex:none;text-align:right}
.msgs{display:flex;flex-direction:column;gap:8px;padding-bottom:10px}
.msg{max-width:78%;padding:9px 12px;border-radius:14px;font-size:15px;line-height:1.55;white-space:pre-wrap;word-break:break-word;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.05);align-self:flex-start}
.msg.me{align-self:flex-end;background:#ffe3eb}
.msg .mt{display:block;font-size:11px;color:var(--sub);margin-top:3px}
.msg.flag{border:1px solid #ffb74d}
.msg .fw{display:block;font-size:12px;color:#8a5300;background:#fff4e5;border-radius:8px;padding:4px 7px;margin-top:6px}
.sendbar{position:fixed;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);padding:8px 10px;display:flex;gap:8px;z-index:9}
.sendbar textarea{flex:1;border:1px solid var(--line);border-radius:12px;padding:9px 11px;font-size:15px;font-family:inherit;resize:none;height:42px}
.rate .big{font-size:26px;font-weight:800;width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;font-family:inherit}
.rate .cur{font-size:13px;color:var(--sub);margin:12px 0 6px;font-weight:700}
.quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.quick button{border:0;border-radius:16px;padding:6px 12px;background:#f6eef1;font-family:inherit;font-size:13px;cursor:pointer}

/* ---- 同路社区：首页头图、分段标签、交友、按行程找话题 ---- */
header.thero{padding:18px 18px 34px}
.thero-in{max-width:560px;margin:0 auto;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.thero h1{font-size:22px;letter-spacing:.5px}
.thero-act{display:flex;flex-direction:column;gap:6px;align-items:flex-end}
.thero-act a{position:relative;text-decoration:none;font-size:13px;font-weight:700;color:#fff;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.45);border-radius:14px;padding:5px 12px;white-space:nowrap}
.seg{display:flex;gap:6px;overflow-x:auto;background:#fff;border-radius:14px;padding:5px;margin:0 0 14px;box-shadow:0 4px 16px rgba(255,79,123,.08);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.seg::-webkit-scrollbar{display:none}
.seg button{flex:1 0 auto;border:0;border-radius:10px;background:none;font-family:inherit;font-size:14px;color:var(--sub);padding:8px 10px;cursor:pointer;white-space:nowrap}
.seg button.on{background:linear-gradient(135deg,#ff6b8f,#ff9a6b);color:#fff;font-weight:800}
.meet{border-radius:18px;padding:14px;margin-bottom:14px;background:linear-gradient(160deg,#ffe3ec 0%,#fff 55%);border:1.5px solid #ffc6d6}
.meet-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.meet-hd b{display:block;font-size:18px;color:var(--pink)}
.meet-hd small{display:block;font-size:12px;color:var(--sub);margin-top:3px}
.journey{margin-bottom:14px}
.jh{font-size:16px;margin:0 2px 10px;color:var(--ink)}
.stage{position:relative;background:#fff;border-radius:16px;padding:12px 14px 6px 40px;margin-bottom:10px;box-shadow:0 4px 16px rgba(255,79,123,.08)}
.stage:before{content:'';position:absolute;left:21px;top:38px;bottom:16px;width:2px;background:#ffd5df;border-radius:1px}
.stage-t{font-size:14px;font-weight:800;color:var(--ink);margin:0 0 4px -28px;display:flex;align-items:center;gap:8px}
.stage-t span{width:22px;height:22px;border-radius:50%;background:var(--pink);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center}
.topic{display:flex;align-items:center;gap:10px;padding:9px 0;text-decoration:none;color:var(--ink);border-bottom:1px dashed var(--line)}
.topic:last-child{border-bottom:0}
.topic em{font-style:normal;font-size:19px;flex:none;width:26px;text-align:center}
.topic span{flex:1;min-width:0}
.topic b{display:block;font-size:15px}
.topic small{display:block;font-size:12px;color:var(--sub);margin-top:1px}
.topic:after{content:'›';color:#d0b8c0;font-size:20px;flex:none}
.fab.pill{padding:12px 18px;border-radius:24px;font-size:15px;background:linear-gradient(135deg,#ff6b8f,#ff9a6b)}
.pact{border-left:4px solid #ff9a6b}
/* 全部频道页：分组卡片 */
.chgroup{background:#fff;border-radius:16px;padding:12px 14px 4px;margin-bottom:12px;box-shadow:0 4px 16px rgba(255,79,123,.08)}
.chgroup h2{font-size:16px;margin:0 0 4px;color:var(--ink)}
.chgroup h2 small{font-weight:400;font-size:12px;color:var(--sub);margin-left:6px}
.chpills{display:flex;gap:6px;overflow-x:auto;margin:0 0 12px;scrollbar-width:none}
.chpills::-webkit-scrollbar{display:none}
.chpills a{flex:none;text-decoration:none;font-size:13px;padding:6px 12px;border-radius:16px;background:#fff;color:var(--pink);border:1px solid #ffc6d6;font-weight:600}
