:root {
    --primary: #2f9e6e;
    --primary-dark: #267f58;
    --bg: #f4f6f5;
    --card: #ffffff;
    --text: #222;
    --muted: #8a9490;
    --danger: #d9534f;
    --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 70px;
}
a { color: inherit; text-decoration: none; }

/* 顶部栏 */
.topbar {
    position: sticky; top: 0; z-index: 10;
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    font-size: 18px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.topbar .sub { font-size: 12px; font-weight: 400; opacity: .85; margin-top: 2px; }

/* 底部导航 */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #e8eceb;
    height: 56px; z-index: 20;
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 11px; color: var(--muted); gap: 2px;
}
.bottom-nav a.active { color: var(--primary); }
.bottom-nav .icon { font-size: 20px; line-height: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.bottom-nav .icon img { width: 22px; height: 22px; object-fit: contain; display: block; }

/* 卡片 */
.container { padding: 12px 12px 78px; max-width: 640px; margin: 0 auto; }
.card {
    display: block;
    background: var(--card); border-radius: var(--radius);
    padding: 14px; margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; }
.desc { font-size: 13px; color: #555; margin-top: 6px; line-height: 1.6; }

/* 领队卡片 */
.leader-card { display: flex; gap: 12px; align-items: flex-start; }
.avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #35b281, #1f7a53);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; flex-shrink: 0;
}
img.avatar { object-fit: cover; background: #eef2ef; }
.tag {
    display: inline-block; font-size: 11px;
    background: #e8f6ef; color: var(--primary-dark);
    border-radius: 4px; padding: 2px 8px; margin-right: 6px; margin-top: 4px;
}
.difficulty-简单 { background: #e8f6ef; color: var(--primary-dark); }
.difficulty-中等 { background: #fff4e0; color: #c07f00; }
.difficulty-困难 { background: #fdeaea; color: var(--danger); }
.tag-level-1 { background: #e8f6ef; color: var(--primary-dark); }
.tag-level-2 { background: #e7f0fb; color: #2d6cb5; }
.tag-level-3 { background: #fff4e0; color: #c07f00; }
.tag-level-4 { background: #fdeaea; color: var(--danger); }
.tag-level-5 { background: #4a3030; color: #ffd7d7; }

/* 徽章 */
.badge { font-size: 11px; border-radius: 4px; padding: 2px 8px; }
.badge-pending  { background: #fff4e0; color: #c07f00; }
.badge-approved { background: #e8f6ef; color: var(--primary-dark); }
.badge-rejected { background: #fdeaea; color: var(--danger); }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 5px; color: #444; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; border: 1px solid #d8dedb; border-radius: 8px;
    padding: 10px 12px; font-size: 14px; background: #fff; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
}
.form-group textarea { min-height: 90px; resize: vertical; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
/* 隐藏常驻城市后：带队年限保持原宽度并靠左 */
.form-row.only-one .form-group { flex: 0 1 calc(50% - 5px); }

/* 表单区块标题 + 右侧开关 */
.form-section > .section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.form-section > .section-head > h3 { font-size: 15px; margin: 0; padding-left: 9px; border-left: 3px solid var(--primary); line-height: 1.3; }
.sw-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #7d8b84; cursor: pointer; user-select: none; }
.sw-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-wrap .sw { position: relative; flex: 0 0 auto; width: 34px; height: 20px; border-radius: 20px; background: #d9e1dc; transition: background .2s; }
.sw-wrap .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.18); transition: transform .2s; }
.sw-wrap input:checked + .sw { background: var(--primary); }
.sw-wrap input:checked + .sw::after { transform: translateX(14px); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 按钮 */
.btn {
    display: inline-block; width: 100%;
    background: var(--primary); color: #fff;
    border: none; border-radius: 8px;
    padding: 12px; font-size: 15px; text-align: center; cursor: pointer;
}
.btn:active { background: var(--primary-dark); }
.btn-outline {
    background: #fff; color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-sm { width: auto; padding: 6px 14px; font-size: 13px; }
.btn-danger { background: var(--danger); }
.btn-plain { background: #eee; color: #666; }

/* 提示条 */
.alert { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.alert-success { background: #e8f6ef; color: var(--primary-dark); }
.alert-error { background: #fdeaea; color: var(--danger); }

/* 空状态 */
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* 管理后台 */
.admin-body { padding-bottom: 30px; }
.admin-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 4px rgba(0,0,0,.04); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef1f0; vertical-align: top; }
.admin-table th { background: #f8fafa; font-weight: 600; color: #555; white-space: nowrap; }
.admin-nav { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-nav a {
    background: #fff; border-radius: 20px; padding: 8px 16px;
    font-size: 13px; color: #555; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.admin-nav a.active { background: var(--primary); color: #fff; }
.stat-grid { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stat-grid .card { flex: 1; min-width: 130px; text-align: center; margin-bottom: 0; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--primary); }
.reject-form { margin-top: 8px; }
.reject-form input { width: 100%; border: 1px solid #d8dedb; border-radius: 6px; padding: 6px 8px; font-size: 12px; margin-bottom: 6px; }

/* ===== 首页改版 ===== */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; background: #dfe6e3; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-item { min-width: 100%; height: var(--banner-h, 180px); }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 5px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.carousel-dots span.on { background: #fff; }

.search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-bar input { flex: 1; border: 1px solid #d8dedb; border-radius: 20px; padding: 9px 16px; font-size: 14px; outline: none; }
.search-bar input:focus { border-color: var(--primary); }
.search-bar button { border: none; border-radius: 20px; background: var(--primary); color: #fff; padding: 0 20px; font-size: 14px; }

.img-nav { display: flex; gap: 6px; margin-bottom: 12px; }
.img-nav a { flex: 1; background: #fff; border-radius: 10px; padding: 8px 2px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.img-nav img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.img-nav .t { font-size: 12px; color: #444; margin-top: 4px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notice-bar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 9px 12px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.notice-bar .n-icon { color: var(--primary); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.notice-viewport { flex: 1; height: 20px; overflow: hidden; position: relative; }
.notice-list { position: absolute; left: 0; right: 0; transition: transform .4s ease; }
.notice-list p { height: 20px; line-height: 20px; font-size: 13px; color: #555; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 10px; }
.section-head h3 { font-size: 16px; }
.section-head .more { font-size: 13px; color: var(--primary); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
/* 路线分类卡片：一体化纯色底，仅两种色调——内容卡统一浅绿，占位卡暖灰米色 */
.route-card { border-radius: 14px; padding: 26px 6px 22px; display: block; text-align: center; text-decoration: none; background: #e7f4ec; color: #1f7a4d; transition: transform .12s ease; }
.route-card:active { transform: scale(.97); }
.route-card .rc-ico { font-size: 30px; line-height: 1.2; margin-bottom: 8px; }
.route-card .rc-ico img { width: 42px; height: 42px; object-fit: contain; display: block; margin: 0 auto; }
.route-card h4 { font-size: 14px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-card .sub { font-size: 11px; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.route-card.rc-more { background: #f4f2ee; color: #8a8f98; }

.recent-item { display: flex; align-items: center; gap: 10px; }
.recent-item .r-avatar { width: 46px; height: 46px; border-radius: 10px; background: #e8f6ef; color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* 活动卡片（示例图样式） */
.act-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,.06); display: block; margin-bottom: 12px; }
.act-cover { position: relative; height: 130px; background: #dfe6e3; }
.act-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-cover .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #35b281, #1f7a53); color: #fff; font-size: 34px; font-weight: 700; }
.fee-badge { position: absolute; top: 10px; left: 10px; background: #ffd83d; color: #5a4500; font-weight: 700; font-size: 13px; border-radius: 16px; padding: 4px 12px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.act-people { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; background: rgba(20,20,20,.5); border-radius: 20px; padding: 3px 10px 3px 4px; }
.act-people .av { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.92); margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; font-weight: 700; }
.act-people .av:first-child { margin-left: 0; }
.act-people .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.act-people .n { color: #fff; font-size: 12px; margin-left: 6px; }
.act-body { padding: 12px 14px 12px; }
.act-body h4 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #666; margin-bottom: 0; }
.detail-btn { background: #ffd83d; color: #5a4500; font-weight: 700; font-size: 12.5px; border-radius: 18px; padding: 6px 14px; flex-shrink: 0; }

/* 分页 */
.pager { display: flex; gap: 6px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border-radius: 8px; background: #fff; font-size: 13px; color: #555; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.pager span.cur { background: var(--primary); color: #fff; }

/* ===== 活动详情页改版 ===== */
.tag-free { display:inline-block; background:#ffd83d; color:#8a6d00; font-weight:800; font-size:12px; border-radius:4px; padding:2px 8px; vertical-align:middle; }
.gallery { position:relative; border-radius:12px; overflow:hidden; background:#111; margin-bottom:10px; }
.gal-track { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.gal-track::-webkit-scrollbar { display:none; }
.gal-slide { flex:0 0 100%; scroll-snap-align:center; aspect-ratio:16/10; }
.gal-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.gal-dots { position:absolute; bottom:8px; left:0; right:0; display:flex; justify-content:center; gap:5px; pointer-events:none; }
.gal-dots span { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.55); transition:background .2s; }
.gal-dots span.on { background:#fff; }
.gal-count { position:absolute; bottom:6px; right:10px; color:#fff; font-size:11px; background:rgba(0,0,0,.35); border-radius:10px; padding:2px 8px; }
.d-row { display:flex; gap:10px; padding:10px 0; border-bottom:1px dashed #eef1ee; font-size:13.5px; align-items:flex-start; }
.d-row:last-child { border-bottom:none; }
.d-row .k { color:var(--muted); width:64px; flex-shrink:0; }
.d-row .v { flex:1; min-width:0; line-height:1.6; }
.btn-mini { background:#ffd83d; color:#5a4500; font-size:12px; font-weight:700; border-radius:14px; padding:4px 12px; flex-shrink:0; display:inline-block; }
.su-list { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.su-item { display:flex; flex-direction:column; align-items:center; width:52px; }
.su-item img, .su-item .avatar { width:40px !important; height:40px !important; font-size:15px !important; }
.su-item .nm { font-size:10px; color:var(--muted); max-width:52px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.warn-badge { display:inline-block; background:#ff7a1a; color:#fff; font-size:12px; font-weight:700; border-radius:4px; padding:3px 8px; }
.ri-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.ri-cell { background:#f6f8f6; border-radius:8px; padding:9px 6px; text-align:center; }
.ri-cell .k { font-size:11px; color:var(--muted); }
.ri-cell .v { font-size:15px; font-weight:800; margin-top:3px; word-break:break-all; }
.ri-cell .v .star { color:#ffb400; letter-spacing:1px; }
.ri-cell a { color:var(--primary); }
.ri-desc { background:#f6f8f6; border-radius:8px; padding:9px 12px; font-size:12.5px; margin-top:8px; }
.ri-desc b { display:block; font-size:14px; margin-bottom:2px; }
.prep-card { display:flex; justify-content:space-between; align-items:center; background:#fbf7ee; border-radius:8px; padding:10px 12px; margin-top:8px; font-size:13.5px; }
.prep-card .sub { font-size:12px; color:var(--muted); margin-top:2px; }
details.prep-body { margin-top:8px; font-size:13px; line-height:1.8; }
.desc-tabs { display:flex; gap:0; border-bottom:2px solid #eef1ee; margin-bottom:10px; flex-wrap:nowrap; overflow:hidden; }
.desc-tabs button { flex:1 1 0; min-width:0; border:none; background:none; padding:8px 1px; font-size:12.5px; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; white-space:nowrap; text-align:center; }
.desc-tabs button.on { color:#333; font-weight:700; border-bottom-color:#ffb400; }
.desc-pane { display:none; font-size:13.5px; line-height:1.9; word-break:break-word; }
.desc-pane.on { display:block; }
.desc-pane img, .desc-pane video { max-width:100%; border-radius:6px; }
.rte { }
.rte-bar { display:flex; gap:4px; flex-wrap:wrap; background:#f2f4f2; border:1px solid #e2e6e3; border-bottom:none; border-radius:8px 8px 0 0; padding:5px; }
.rte-bar button { border:1px solid #dfe3df; background:#fff; border-radius:5px; font-size:12px; padding:4px 8px; cursor:pointer; }
.rte-area { min-height:120px; border:1px solid #d8dedb; border-radius:0 0 8px 8px; padding:10px; background:#fff; font-size:14px; line-height:1.7; overflow-y:auto; }
.rte-area:focus { outline:2px solid var(--primary); outline-offset:-1px; }
.rte-area:empty:before { content:attr(data-placeholder); color:#b7bfb9; }
.rte-area img, .rte-area video { max-width:100%; }

/* ===== 公告模块 ===== */
.notice-bar .n-icon { text-decoration:none; }
.notice-bar .n-more { font-size:12px; color:var(--muted); flex-shrink:0; text-decoration:none; }
.notice-list p a { color:#555; text-decoration:none; }

.page-head { display:flex; align-items:center; justify-content:center; padding:6px 0 12px; }
.page-head h2 { font-size:17px; margin:0; }

/* 公告列表页 */
.notice-list-page { display:flex; flex-direction:column; gap:10px; padding-bottom:16px; }
.nl-card { display:flex; align-items:center; gap:10px; background:#fff; border-radius:10px; padding:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); text-decoration:none; }
.nl-thumb { width:78px; height:58px; border-radius:8px; background:#eef3f0; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:22px; }
.nl-thumb img { width:100%; height:100%; object-fit:cover; }
.nl-body { flex:1; min-width:0; }
.nl-title-row { display:flex; align-items:flex-start; gap:6px; }
.nl-dot { width:7px; height:7px; border-radius:50%; background:#e64545; flex-shrink:0; margin-top:6px; }
.nl-title { font-size:14px; font-weight:700; color:#333; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.nl-meta { font-size:12px; color:var(--muted); margin-top:5px; }
.nl-arrow { color:#c3cac5; font-size:20px; flex-shrink:0; }

/* 公告详情文章页 */
.article { background:#fff; border-radius:var(--radius); padding:16px 14px 18px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.art-title { font-size:18px; line-height:1.5; margin:0 0 8px; }
.art-meta { font-size:12px; color:var(--muted); padding-bottom:10px; border-bottom:1px solid #f0f2f0; margin-bottom:14px; }
.rich-content { font-size:14.5px; line-height:1.9; word-break:break-word; color:#333; }
.rich-content p { margin:0 0 10px; }
.rich-content img, .rich-content video { max-width:100%; width:auto; border-radius:8px; display:block; margin:8px auto; }
.rich-content h3, .rich-content h4, .rich-content h5 { margin:14px 0 8px; }
.rich-content ul, .rich-content ol { padding-left:22px; margin:0 0 10px; }
.rich-content blockquote { margin:10px 0; padding:8px 12px; background:#f6f8f6; border-left:3px solid var(--primary); border-radius:6px; color:#555; }
.rich-content a { color:var(--primary); }
.art-foot { display:flex; gap:10px; margin-top:18px; }

/* ===== 图库 ===== */
.media-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
.media-item { background:#fff; border-radius:10px; padding:8px; box-shadow:0 1px 4px rgba(0,0,0,.05); display:flex; flex-direction:column; gap:6px; }
.media-item img { width:100%; height:110px; object-fit:cover; border-radius:8px; background:#f2f4f2; display:block; }
.media-item .media-info { display:flex; align-items:center; gap:6px; font-size:11px; flex-wrap:wrap; }
.media-item form { margin-top:auto; }

/* 图库选择弹窗 */
.mp-mask { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:200; display:flex; align-items:center; justify-content:center; }
.mp-modal { background:#fff; border-radius:12px; width:min(560px, 92vw); max-height:80vh; display:flex; flex-direction:column; overflow:hidden; }
.mp-head { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid #eef1ee; }
.mp-close { cursor:pointer; color:#999; font-size:16px; padding:0 4px; }
.mp-tabs { display:flex; border-bottom:2px solid #eef1ee; }
.mp-tabs button { flex:1; border:none; background:none; padding:10px; font-size:14px; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; }
.mp-tabs button.on { color:var(--primary); font-weight:700; border-bottom-color:var(--primary); }
.mp-pane { padding:14px; overflow-y:auto; }
.mp-drop { border:2px dashed #cfd8d2; border-radius:10px; padding:34px 10px; text-align:center; color:var(--muted); font-size:13px; cursor:pointer; }
.mp-drop:hover { border-color:var(--primary); color:var(--primary); }
.mp-uploading { text-align:center; padding:10px; color:var(--muted); font-size:13px; }
.mp-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(110px, 1fr)); gap:8px; }
.mp-cell { aspect-ratio:4/3; border-radius:8px; overflow:hidden; cursor:pointer; background:#f2f4f2; border:2px solid transparent; }
.mp-cell:hover { border-color:var(--primary); }
.mp-cell img { width:100%; height:100%; object-fit:cover; display:block; }
.mp-empty { text-align:center; color:var(--muted); padding:30px 0; font-size:13px; grid-column:1/-1; }
.mp-filebar { display:flex; align-items:center; gap:8px; margin-top:6px; }
.mp-filebar a { font-size:12.5px; color:var(--primary); text-decoration:none; }
.mp-preview { max-height:64px; border-radius:6px; }
.media-item video { width:100%; height:110px; object-fit:cover; border-radius:8px; background:#222; display:block; }
.mp-cell { position:relative; }
.mp-cell video { width:100%; height:100%; object-fit:cover; display:block; background:#222; }
.mp-cell .mp-tag { position:absolute; right:4px; bottom:4px; background:rgba(0,0,0,.55); color:#fff; font-size:10px; border-radius:4px; padding:1px 5px; }

/* ===== 领队入驻 / 领队主页 ===== */
.form-section { background:#fff; border-radius:var(--radius); padding:14px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.form-section > h3 { font-size:15px; margin:0 0 10px; padding-left:9px; border-left:3px solid var(--primary); line-height:1.3; }
.card-flat { }
.ld-upload-preview { margin-bottom:6px; }
.ld-upload-preview img { width:110px; height:78px; object-fit:cover; border-radius:8px; display:block; }
.ld-upload-preview.round img { width:84px; height:84px; border-radius:50%; }
.ld-photo-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; }
.ld-photo-grid img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:8px; display:block; background:#f2f4f2; }
.agree-line { display:flex; align-items:flex-start; gap:7px; font-size:13px; color:#555; padding:12px 2px; line-height:1.6; }
.agree-line input { margin-top:3px; flex-shrink:0; }
.agree-txt { flex:1; min-width:0; }
.agree-txt a { color:var(--primary); text-decoration:underline; }
.btn-block { width:100%; padding:13px; font-size:15px; }

/* 领队主页 */
.leader-home { margin:-12px -12px 12px; }
.lh-cover { position:relative; height:220px; overflow:hidden; }
.lh-cover > img, .lh-cover-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.lh-cover-bg { background:linear-gradient(135deg, #2f9e6e, #1f6e4c); }
.lh-cover-mask { position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.62)); }
.lh-head { position:absolute; left:16px; right:16px; bottom:14px; display:flex; gap:12px; align-items:flex-end; }
.lh-avatar { width:64px; height:64px; border-radius:50%; border:3px solid rgba(255,255,255,.85); overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:700; color:var(--primary); flex-shrink:0; }
.lh-avatar img { width:100%; height:100%; object-fit:cover; }
.lh-title h1 { margin:0; color:#fff; font-size:20px; text-shadow:0 1px 4px rgba(0,0,0,.4); }
.lh-tags { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.lh-tag { background:rgba(255,255,255,.22); backdrop-filter:blur(4px); color:#fff; font-size:12px; border-radius:12px; padding:2px 10px; }
.lh-tag.hot { background:var(--primary); font-weight:700; }
.lh-body { padding:12px; }
.lh-cert { font-size:13.5px; }
.lh-cert-row { display:flex; padding:7px 0; border-bottom:1px dashed #eef1ee; }
.lh-cert-row:last-child { border-bottom:none; }
.lh-cert-row span { width:88px; color:var(--muted); flex-shrink:0; }
.lh-cert-row b { word-break:break-all; }

/* ===== 我的页面 ===== */
.me-card { position:relative; display:flex; flex-direction:column; justify-content:center; background:linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius:14px; padding:24px 16px; margin-bottom:12px; color:#fff; box-shadow:0 4px 14px rgba(47,158,110,.28); }
.me-gear { position:absolute; top:11px; right:12px; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.18); color:#fff; display:flex; align-items:center; justify-content:center; text-decoration:none; }
.me-gear:active { background:rgba(255,255,255,.3); }
.me-row { display:flex; align-items:center; gap:13px; }
.me-left { display:flex; gap:12px; align-items:center; min-width:0; }
.me-avatar { width:62px; height:62px; border-radius:50%; border:3px solid rgba(255,255,255,.85); overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:700; color:var(--primary); flex-shrink:0; }
.me-avatar img { width:100%; height:100%; object-fit:cover; }
.me-info { flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.me-line { display:flex; align-items:center; gap:8px; min-width:0; max-width:100%; padding-right:36px; }
.me-info h3 { margin:0; font-size:18px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.me-id { background:rgba(255,255,255,.2); border-radius:12px; padding:2px 10px; font-size:12px; white-space:nowrap; flex-shrink:0; }
.me-act { font-size:12px; color:rgba(255,255,255,.92); background:rgba(255,255,255,.16); border-radius:12px; padding:3px 10px; line-height:1.4; }
.me-act b { font-size:13px; font-weight:700; }
.me-stat { text-align:center; background:rgba(255,255,255,.16); border-radius:12px; padding:8px 14px; flex-shrink:0; }
.me-stat b { display:block; font-size:22px; }
.me-stat span { font-size:11px; opacity:.9; }
.me-links { display:flex; gap:16px; margin-top:12px; }
.me-links a { color:rgba(255,255,255,.92); font-size:13px; text-decoration:none; }

.me-nav { display:grid; grid-template-columns:repeat(5, 1fr); gap:4px; background:#fff; border-radius:var(--radius); padding:14px 6px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.me-nav a { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:12px; color:#444; text-decoration:none; }
.me-nav .mn-icon { width:44px; height:44px; border-radius:12px; background:#e8f6ef; display:flex; align-items:center; justify-content:center; font-size:22px; }

.svc-card { background:#fff; border-radius:var(--radius); margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); padding:4px 14px; }
.svc-card h3 { font-size:15px; margin:12px 0 4px; }
.svc-row { display:flex; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid #f2f4f2; text-decoration:none; color:#333; font-size:14.5px; }
.svc-row:last-child { border-bottom:none; }
.svc-icon { font-size:20px; width:26px; text-align:center; flex-shrink:0; }
.svc-label { flex:1; }
.svc-sub { font-size:12px; color:var(--muted); }

.my-filter { display:flex; gap:8px; margin-bottom:12px; }
.my-filter a { flex:1; text-align:center; background:#fff; border-radius:20px; padding:8px 0; font-size:13px; color:#555; text-decoration:none; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.my-filter a.on { background:var(--primary); color:#fff; font-weight:700; }

/* 意见反馈 */
.fb-item { border-bottom:1px solid #f2f4f2; padding:10px 0; }
.fb-item:last-child { border-bottom:none; }
.fb-content { font-size:13.5px; line-height:1.7; color:#444; }
.fb-meta { display:flex; justify-content:space-between; align-items:center; margin-top:5px; }
.fb-reply { background:#f6f8f6; border-radius:8px; padding:8px 10px; font-size:12.5px; margin-top:6px; color:#555; }

/* 户外安全中心 / 紧急救援 */
.safety-em { display:flex; align-items:center; gap:12px; background:#fff7f2; border:1px solid #ffe0cc; border-radius:12px; padding:14px; text-decoration:none; }
.safety-em .se-icon { width:52px; height:52px; border-radius:14px; background:#ff7a1a; display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; }
.safety-em .se-text { flex:1; display:flex; flex-direction:column; gap:3px; }
.safety-em .se-text b { color:#333; font-size:15px; }
.safety-em .se-text span { font-size:12px; color:var(--muted); }

.em-card { background:#fff; border-radius:var(--radius); padding:14px; margin-bottom:12px; box-shadow:0 1px 4px rgba(0,0,0,.04); }
.em-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.em-card-head b { font-size:15px; display:block; }
.em-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.em-cell { background:#f6f8f6; border-radius:10px; padding:10px; text-align:center; }
.em-cell span { font-size:11.5px; color:var(--muted); display:block; }
.em-cell b { font-size:16px; margin-top:2px; display:block; word-break:break-all; }
.em-here { background:#fff8ec; border-radius:10px; padding:10px 12px; margin-top:8px; font-size:13px; }
.em-here b { display:block; margin-bottom:3px; }
.em-call { background:#fff2f2; border:1px solid #ffd9d9; border-radius:10px; padding:12px 8px; text-align:center; text-decoration:none; color:#c0392b; display:flex; flex-direction:column; gap:2px; }
.em-call .em-call-icon { font-size:26px; }
.em-call b { font-size:24px; }
.em-tips { margin:0; padding-left:20px; font-size:13.5px; line-height:2; color:#555; }
.em-map-wrap { margin-top:10px; border-radius:10px; overflow:hidden; }

/* ===== 报名胶囊按钮 / 付款页 ===== */
.pill-btn { display:inline-block; min-width:200px; background:var(--primary); color:#fff; border-radius:24px; padding:12px 34px; font-size:15.5px; font-weight:700; text-decoration:none; box-shadow:0 4px 12px rgba(47,158,110,.32); }
.pay-option { display:flex; align-items:center; gap:10px; padding:12px 10px; border:1px solid #eef1ee; border-radius:10px; margin-bottom:8px; cursor:pointer; }
.pay-option:has(input:checked) { border-color:var(--primary); background:#f4fbf7; }
.pay-option input { width:16px; height:16px; }
.pay-option .po-ico { width:34px; height:34px; border-radius:9px; color:#fff; display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0; }
.pay-option .po-name { flex:1; display:flex; flex-direction:column; gap:2px; font-size:14.5px; }
.pay-option .po-name b { font-size:11.5px; color:var(--muted); font-weight:400; }
.pay-option .po-check { color:var(--primary); font-size:16px; visibility:hidden; }
.pay-option:has(input:checked) .po-check { visibility:visible; }
.notice-body { max-height:260px; overflow-y:auto; font-size:13.5px; background:#f9faf9; border-radius:10px; padding:10px 12px; }

/* ===== 领队展示（详情页 / 报名表单，仅头像+名称） ===== */
.leader-inline { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:inherit; }
.leader-inline .avatar { width:30px !important; height:30px !important; font-size:13px !important; }
.leader-inline span { font-weight:600; color:var(--text); }
.leader-pick { display:flex; flex-wrap:wrap; gap:8px; }
.lp-item {
    display:flex; align-items:center; gap:7px; padding:6px 12px 6px 8px;
    border:1px solid #e9eee9; border-radius:22px; cursor:pointer; background:#fff;
    max-width:100%;
}
.lp-item input { display:none; }
.lp-item .avatar { width:28px !important; height:28px !important; font-size:12px !important; }
.lp-item .lp-name { font-size:13.5px; color:#444; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lp-item.on { border-color:var(--primary); background:#f2faf6; }
.lp-item.on .lp-name { color:var(--primary-dark); font-weight:700; }

/* ===== 地图选点组件 ===== */
.loc-bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; }
.loc-bar .btn { margin:0; }
.loc-show { font-size:12px; color:var(--muted); word-break:break-all; }
.loc-map { height:260px; border-radius:10px; overflow:hidden; margin-top:8px; border:1px solid #e3e9e5; z-index:0; }
.loc-manual { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:8px; }
.loc-manual input { border:1px solid #d8dedb; border-radius:8px; padding:8px 10px; font-size:13px; }

/* ===== 活动列表：长条搜索框 + 难度标签筛选 ===== */
.search-bar { background:#fff; border-radius:24px; padding:5px 5px 5px 5px; box-shadow:0 1px 5px rgba(0,0,0,.07); margin-bottom:10px; }
.search-bar form { display:flex; align-items:center; width:100%; gap:6px; }
.search-bar .sb-cat { border:none; background:#eef4f0; border-radius:18px; padding:9px 4px 9px 12px; font-size:13px; color:#444; max-width:112px; outline:none; flex-shrink:0; }
.search-bar .sb-input { flex:1; border:none; background:transparent; padding:9px 6px; font-size:14px; outline:none; min-width:0; }
.search-bar .sb-btn { border:none; background:none; color:#9aa5a0; width:36px; height:36px; border-radius:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; cursor:pointer; padding:0; }
.search-bar .sb-btn:active { background:#f2f5f3; }
.tag-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.chip { padding:6px 15px; border-radius:17px; font-size:12.5px; background:#fff; color:#555; box-shadow:0 1px 3px rgba(0,0,0,.05); text-decoration:none; }
.chip.on { box-shadow:0 0 0 2px var(--primary) inset; font-weight:700; }
.chip-lv1 { background:#e8f6ef; color:#1f7a4d; }
.chip-lv2 { background:#e7f0fb; color:#2d6cb5; }
.chip-lv3 { background:#fff4e0; color:#c07f00; }
.chip-lv4 { background:#fdeaea; color:#c0392b; }
.chip-lv5 { background:#4a3030; color:#ffd7d7; }
.leader-pick .leader-inline .avatar { width:28px !important; height:28px !important; font-size:12px !important; }
.leader-pick .leader-inline span { font-size:13.5px; }

/* ===== 官方 / 领队 标识（与「免费」胶囊同尺寸，官方红 / 领队蓝） ===== */
.type-tag {
    display:inline-block; vertical-align:middle;
    font-size:12px; font-weight:800; line-height:1.5;
    border-radius:4px; padding:2px 8px; margin-right:4px;
    white-space:nowrap;
}
.type-official { background:#fdeaea; color:#d93025; box-shadow:inset 0 0 0 1px rgba(217,48,37,.18); }
.type-leader   { background:#e7f0fb; color:#2d6cb5; box-shadow:inset 0 0 0 1px rgba(45,108,181,.18); }

/* ===== 详情页封面左上角价格角标（黄色，与活动列表一致） ===== */
.gal-fee {
    position:absolute; top:10px; left:10px; z-index:3;
    background:#ffd83d; color:#5a4500; font-weight:800; font-size:13px;
    border-radius:16px; padding:4px 12px; box-shadow:0 1px 4px rgba(0,0,0,.22);
}

/* ===== 地点名称 + 查看地图 同行 ===== */
.loc-line { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.loc-line .btn-mini { flex-shrink:0; }

/* ===== 我的页：紧急救援宽屏橘色条 ===== */
.sos-bar {
    display:flex; align-items:center; gap:12px; text-decoration:none;
    background:linear-gradient(135deg,#ff7a18,#e8480f);
    border-radius:14px; padding:14px 16px; margin-bottom:12px;
    color:#fff; box-shadow:0 5px 16px rgba(232,72,15,.3);
}
.sos-bar:active { transform:translateY(1px); }
.sos-bar .sos-ic { font-size:26px; line-height:1; flex-shrink:0; }
.sos-bar .sos-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.sos-bar .sos-txt b { font-size:17px; font-weight:800; letter-spacing:.5px; }
.sos-bar .sos-txt i { font-style:normal; font-size:12px; opacity:.92; }
.sos-bar .sos-go { font-size:22px; opacity:.9; flex-shrink:0; }

/* ===== 领队列表页：领队入驻入口 ===== */
.leader-apply-bar {
    display:flex; align-items:center; gap:12px; text-decoration:none;
    background:linear-gradient(135deg,#eaf7f0,#dff2e8); border:1px solid #cfe9db;
    border-radius:14px; padding:13px 14px; margin-bottom:12px; color:var(--primary-dark);
}
.leader-apply-bar .la-ic { font-size:24px; line-height:1; flex-shrink:0; }
.leader-apply-bar .la-txt { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.leader-apply-bar .la-txt b { font-size:15px; }
.leader-apply-bar .la-txt i { font-style:normal; font-size:12px; color:#5b7a6b; }
.leader-apply-bar .la-go { font-size:13px; font-weight:700; flex-shrink:0; }

/* ===== 图片上传位：背景图 + 加号 ===== */
.up-row { display:flex; justify-content:center; margin-bottom:2px; }
label.up-tile {
    position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:2px; background-color:#f6f8f6; background-position:center; background-size:cover; background-repeat:no-repeat;
    border:1.5px dashed #cfd8d2; border-radius:12px; cursor:pointer; overflow:hidden;
    box-sizing:border-box; margin:0; padding:0; text-align:center;
}
/* 覆盖 .form-group label 的 display:block / margin，确保 + 号在框正中央 */
.form-group > label.up-tile { display:flex; margin-bottom:0; }
.up-tile input[type=file] { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; }
.up-tile.up-round { width:96px; height:96px; border-radius:50%; }
.up-tile.up-wide { width:100%; min-height:104px; }
.up-tile.up-lg { width:96px; height:96px; border-radius:50%; }
.up-tile.has-img { border-style:solid; border-color:#dfe7e2; }
.up-tile .up-plus { font-size:30px; font-weight:300; color:#b6c2bb; line-height:1; }
.up-tile .up-tip { font-size:11.5px; color:#9aa5a0; }
.up-tile .up-badge {
    position:absolute; left:50%; bottom:6px; transform:translateX(-50%);
    background:rgba(0,0,0,.55); color:#fff; font-size:11px; line-height:1;
    border-radius:10px; padding:4px 10px; white-space:nowrap;
}
.up-tile.up-round .up-badge { bottom:4px; }

/* ===== 我的资料：头像直接编辑 ===== */
.avatar-edit { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.avatar-edit-side { flex:1; min-width:0; }
.avatar-del {
    border:1px solid #e6c9c9; background:#fff; color:#c0392b; font-size:12.5px;
    border-radius:16px; padding:5px 14px; cursor:pointer;
}

/* ===== 集合点打卡 ===== */
.alert-warn { background:#fff4e0; color:#a56a00; }
.ck-card h3 { margin:0 0 6px; font-size:16px; }
.ck-point { display:flex; align-items:center; gap:8px; margin:12px 0 2px; font-size:13px; flex-wrap:wrap; }
.ck-point-label { color:var(--muted); font-size:12px; }
.ck-map { margin-left:auto; color:var(--primary); font-size:12.5px; text-decoration:none; border:1px solid #cfe6da; border-radius:12px; padding:2px 10px; }
.ck-loc { display:flex; gap:8px; align-items:flex-start; background:#f5f8f6; border-radius:12px; padding:12px; font-size:13px; margin-top:12px; }
.ck-loc #locText { display:flex; flex-direction:column; gap:3px; line-height:1.45; }
.ck-acc { font-size:11.5px; color:var(--muted); }
.ck-ok { color:var(--primary-dark); }
.ck-far { color:var(--danger); }
.ck-done { text-align:center; padding:18px 0 6px; }
.ck-done-icon { width:52px; height:52px; border-radius:50%; background:#e8f6ef; color:var(--primary); font-size:26px; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; }
.ck-done p { font-size:12px; color:var(--muted); margin:4px 0 0; }
.ck-link { display:inline-block; margin-left:8px; color:var(--primary-dark); background:#e8f6ef; border-radius:12px; padding:2px 10px; font-size:12px; text-decoration:none; }

/* ===== 领队带队签到 ===== */
.lc-route h3, .lc-item h3 { margin:0 0 6px; }
.lc-done { color:var(--primary-dark); }
.lc-back { font-size:12.5px; color:var(--muted); text-decoration:none; }
.lc-item { display:flex; align-items:center; gap:10px; }
.lc-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.lc-main b { font-size:14.5px; }
.lc-main .hint { font-size:11.5px; }
.lc-status { font-size:12px; color:#b26a00; background:#fff4e0; border-radius:10px; padding:2px 8px; align-self:flex-start; margin-top:2px; }
.lc-status.on { color:var(--primary-dark); background:#e8f6ef; }
.lc-act { flex:0 0 auto; }
