/* 利川人 WAP 手机端样式 */
:root {
    --brand: #0f766e;
    --brand-2: #14b8a6;
    --gold: #f59e0b;
    --ink: #0f172a;
    --gray: #64748b;
    --line: #eef2f4;
    --bg: #f4f6f7;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.65 "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, li { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 8px; }

.wrap { padding: 0 12px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
    font-size: 15px; font-weight: 600;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #f97316); }
.btn-ghost { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.btn-block { display: flex; width: 100%; }

/* 头部 */
.wap-header {
    position: sticky; top: 0; z-index: 90; background: linear-gradient(135deg, #0b4f47, #14b8a6);
    color: #fff; padding: 10px 12px calc(10px);
}
.wap-header .bar { display: flex; align-items: center; gap: 8px; height: 40px; }
.wap-header .logo { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.wap-header .city { font-size: 12px; opacity: .85; border-left: 1px solid rgba(255,255,255,.35); padding-left: 8px; }
.wap-header .right { margin-left: auto; font-size: 13px; }
.wap-search {
    display: flex; align-items: center; background: #fff; border-radius: 999px;
    height: 40px; padding: 0 6px 0 16px; margin-top: 4px;
}
.wap-search input { flex: 1; border: 0; outline: 0; font-size: 14px; background: transparent; height: 38px; }
.wap-search button { border: 0; height: 32px; padding: 0 16px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 13px; }

/* 卡片区块 */
.card { background: #fff; border-radius: 12px; padding: 12px; margin: 10px 12px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px; }
.sec-title h2 { font-size: 16px; }
.sec-title span { font-size: 12px; color: var(--gray); }

/* 分类宫格 */
.cate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cate-grid a {
    background: #fff; border-radius: 12px; padding: 12px 4px; text-align: center; font-size: 12.5px;
}
.cate-grid .ic {
    width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* 板块宫格 */
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.board-grid a {
    background: #fff; border-radius: 10px; padding: 10px 4px; text-align: center;
    font-size: 13px; color: #334155;
}
.board-grid a b { display: block; font-weight: 500; }
.board-grid a span { font-size: 11px; color: #94a3b8; }

/* 景区横滑 */
.scenic-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 12px 10px; -webkit-overflow-scrolling: touch; }
.scenic-scroll::-webkit-scrollbar { display: none; }
.scenic-card {
    flex: none; width: 148px; height: 92px; border-radius: 12px; color: #fff; position: relative;
    overflow: hidden; padding: 10px; background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.scenic-card b { font-size: 14px; }
.scenic-card p { position: absolute; left: 10px; bottom: 8px; right: 10px; margin: 0; font-size: 11px; opacity: .9; }

/* 信息流 */
.post-list { padding: 0 12px; }
.post-item {
    display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 10px;
}
.post-item .thumb {
    width: 86px; height: 70px; border-radius: 8px; flex: none; display: grid; place-items: center;
    color: #fff; font-size: 18px; background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.post-item .main { flex: 1; min-width: 0; }
.post-item .t { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item .m { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: #94a3b8; margin-top: 6px; }
.post-item .p { color: #ef4444; font-weight: 700; font-size: 15px; margin-top: 4px; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 11px; background: #e8f6f4; color: var(--brand); margin-right: 4px; }
.tag-top { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.tag-rec { background: #fee2e2; color: #ef4444; }
.tag-type { background: #eef2ff; color: #4f46e5; }

/* 筛选 */
.filter { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; }
.filter::-webkit-scrollbar { display: none; }
.filter a { flex: none; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 13px; color: #475569; }
.filter a.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }

/* 详情 */
.detail-box { background: #fff; padding: 14px; margin: 10px 12px; border-radius: 12px; }
.detail-box h1 { font-size: 18px; line-height: 1.5; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #94a3b8; margin-top: 8px; }
.detail-price { color: #ef4444; font-size: 22px; font-weight: 700; margin: 10px 0; }
.detail-content { font-size: 15px; line-height: 1.9; color: #334155; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.gallery img { width: 100%; height: 88px; object-fit: cover; border-radius: 8px; }
.contact li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }

/* 底部操作条 */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff;
    border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.action-bar .btn { flex: 1; height: 42px; }

/* 底部导航 */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff;
    border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { text-align: center; padding: 7px 0 6px; font-size: 11px; color: #64748b; }
.tabbar a .ic { display: block; font-size: 19px; line-height: 22px; }
.tabbar a.on { color: var(--brand); font-weight: 600; }

/* 表单 */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.input, .select, .textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font-size: 15px; font-family: inherit; outline: 0; padding: 0 12px; height: 44px;
}
.textarea { height: 120px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; background: #fff; }
.uploader { display: flex; gap: 8px; flex-wrap: wrap; }
.uploader .item { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; }
.uploader .item img { width: 100%; height: 100%; object-fit: cover; }
.uploader .item .del { position: absolute; top: 0; right: 0; width: 20px; height: 20px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; display: grid; place-items: center; }
.uploader .add { width: 76px; height: 76px; border: 1px dashed #cbd5e1; border-radius: 8px; display: grid; place-items: center; color: var(--gray); font-size: 22px; background: #fff; }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 14px 12px 20px; }
.pagination a, .pagination span { padding: 8px 14px; background: #fff; border-radius: 8px; font-size: 13px; }
.pagination .active span { background: var(--brand); color: #fff; }

/* 会员中心 */
.u-head { background: linear-gradient(135deg, #0b4f47, #14b8a6); color: #fff; padding: 22px 16px 26px; }
.u-head .av { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.u-head b { font-size: 17px; }
.u-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; margin: -14px 12px 10px; border-radius: 12px; padding: 14px 0; text-align: center; }
.u-stats b { display: block; font-size: 19px; color: var(--brand); }
.u-stats span { font-size: 12px; color: var(--gray); }
.u-menu { background: #fff; border-radius: 12px; margin: 10px 12px; }
.u-menu a { display: flex; justify-content: space-between; padding: 14px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.u-menu a:last-child { border: 0; }

/* 其他 */
.empty { text-align: center; padding: 50px 0; color: var(--gray); font-size: 14px; }
.alert { padding: 10px 12px; border-radius: 10px; background: #e8f6f4; color: var(--brand); font-size: 13.5px; margin: 10px 12px; }
.crumb { font-size: 12.5px; color: var(--gray); padding: 10px 12px 0; }
.wap-footer { text-align: center; color: #94a3b8; font-size: 12px; padding: 16px 12px 24px; }
.wap-footer a { margin: 0 6px; }
.auth-box { margin: 26px 12px; background: #fff; border-radius: 14px; padding: 22px; }
.auth-box h2 { font-size: 19px; text-align: center; margin-bottom: 18px; }
.auth-box .btn { width: 100%; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; margin-top: 14px; color: var(--gray); }
