@charset "utf-8";
/* ===================================================================
   跟着大王去巡山 H5 公共样式（自适应：手机 / 平板 / PC）
   主色：山野绿  强调：暖阳橙
=================================================================== */
/* 思源黑体 CN Regular（全站统一字体） */
@font-face {
    font-family: "Source Han Sans CN";
    src: url("SourceHanSansCN-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --green: #5b9d7c;
    --green-dark: #44805f;
    --green-light: #e3f4e9;
    --green-bg: #f3faf6;
    /* 按钮 / 选中块专用：藏青 */
    --btn: #2c4a52;
    --btn-dark: #1f363c;
    --btn-light: #e4ecef;
    --btn-bg: #f2f6f8;
    --orange: #e76f51;
    --orange-dark: #d45d3f;
    --gold: #f4a261;
    --text: #2f3a33;
    --muted: #8a978f;
    --line: #e7ede9;
    --bg: #f5f7f6;
    --white: #fff;
    --danger: #d9534f;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(27, 67, 50, .08);
    --header-h: 90px;
}
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Source Han Sans CN", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
}
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, button, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
.container { max-width: 1920px; margin: 0 auto; padding: 0 24px; }
main { min-height: 50vh; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #ebe3d4;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}
.site-header .container {
    display: flex; align-items: center; position: relative;
    height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 700;
        color: var(--green-dark); white-space: nowrap; }
.logo img { height: 64px; width: auto; max-width: none; border-radius: 8px; object-fit: contain; }
.logo img.logo-word { height: 46px; border-radius: 0; }
.logo:hover { color: var(--green); }
.main-nav { position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; gap: 0;
    height: var(--header-h); }
.main-nav a {
    display: flex; flex-direction: row; align-items: center; justify-content: center;
    height: 100%; padding: 0 26px; border-radius: 0; color: var(--text);
    font-size: 16px; font-weight: 600; line-height: 1.25; gap: 9px;
}
.main-nav a .nav-ic { display: inline-flex; }
.main-nav a .nav-ic svg { width: 26px; height: 26px; fill: currentColor; display: block; }
.main-nav a:hover { background: var(--btn-bg); color: var(--btn); }
.main-nav a.active { background: var(--btn); color: #fff; }
.header-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 0;
    color: var(--btn); background: var(--btn-bg); cursor: pointer;
    border: none; position: relative;
}
.icon-btn:hover { background: var(--btn-light); }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.user-chip {
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 4px 10px 4px 5px; border-radius: 0; position: relative;
}
.user-chip:hover { background: var(--green-bg); }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-chip .uname { font-size: 14px; max-width: 90px; overflow: hidden;
                    text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
    display: none; position: absolute; right: 0; top: 46px;
    background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.14);
    min-width: 168px; padding: 6px 0; z-index: 120;
}
.user-chip.open .user-menu { display: block; }
.user-menu a {
    display: block; padding: 9px 18px; font-size: 14px; color: var(--text);
}
.user-menu a:hover { background: var(--green-bg); color: var(--green); }
.user-menu .menu-sep { height: 1px; background: var(--line); margin: 5px 0; }
.user-menu .logout-link { color: var(--danger); }
.header-auth { display: flex; align-items: stretch; gap: 0; height: var(--header-h); }
.header-auth a {
    margin: 0; height: 100%; padding: 0 26px;
    border-radius: 0; border-width: 0; font-size: 16px; font-weight: 600;
}
.header-auth .btn { border-left: 1px solid rgba(44, 74, 82, .25); }
.header-auth .btn-primary { border-left: 1px solid var(--btn-dark); }
.header-auth .btn:hover { border-left-color: rgba(44, 74, 82, .25); color: var(--btn); background: var(--btn-bg); }
.header-auth .btn-primary:hover { border-left-color: var(--btn-dark); color: #fff; background: var(--btn-dark); }
.nav-toggle { display: none; }

/* 手机端抽屉导航 */
@media (max-width: 860px) {
    .main-nav, .header-right .header-auth, .header-right .user-chip { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header .container { justify-content: space-between; }
    .m-panel {
        display: none; position: fixed; left: 0; right: 0; top: var(--header-h);
        bottom: 0; background: #fff; z-index: 110; padding: 10px 18px 26px;
        overflow-y: auto;
    }
    .site-header.m-open .m-panel { display: block; }
    .m-panel a.m-link {
        display: flex; align-items: center; gap: 10px;
        padding: 14px 6px; font-size: 16px;
        border-bottom: 1px solid var(--line); color: var(--text);
    }
    .m-panel a.m-link .nav-ic { display: inline-flex; }
    .m-panel a.m-link .nav-ic svg { width: 23px; height: 23px; fill: currentColor; display: block; }
    .m-panel a.m-link.active { color: var(--green); font-weight: 700; }
    .m-panel .m-auth { margin-top: 16px; display: flex; gap: 10px; }
    .m-panel .m-auth .btn { flex: 1; text-align: center; }
    .m-panel .m-user { display: flex; align-items: center; gap: 10px;
        padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .m-panel .m-user img { width: 42px; height: 42px; border-radius: 50%; }
}
@media (min-width: 861px) { .m-panel { display: none !important; } }

/* ---------------- 面包屑 ---------------- */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--line); }
.breadcrumb .container { padding-top: 10px; padding-bottom: 10px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.breadcrumb li::after { content: "\203A"; margin: 0 8px; color: #c3ccc6; }
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.breadcrumb li:last-child { color: var(--text); }
.breadcrumb a { color: var(--muted); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: 0; border: 1px solid var(--btn);
    background: #fff; color: var(--btn); cursor: pointer;
    font-size: 14px; line-height: 1.4; transition: all .2s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--orange); color: var(--orange); }
.btn-primary { background: var(--btn); border-color: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-dark); color: #fff; border-color: var(--btn-dark); }
.btn-orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-block { display: flex; width: 100%; padding: 12px; font-size: 16px; }
.btn-sm { padding: 5px 14px; font-size: 13px; border-radius: 0; }
.header-auth .btn-sm {
    padding: 0 26px; font-size: 16px; font-weight: 600; border-radius: 0;
}
.btn-lg { padding: 12px 30px; font-size: 16px; }
.btn[disabled], .btn.disabled, .btn.is-disabled {
    background: #c7d2cc; border-color: #c7d2cc; color: #fff;
    cursor: not-allowed; pointer-events: none;
}
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ---------------- 标签/徽章 ---------------- */
.tag {
    display: inline-block; padding: 1px 8px; border-radius: 4px;
    font-size: 12px; line-height: 1.6; background: var(--green-bg);
    color: var(--green); margin-right: 5px;
}
.tag-orange { background: #fdf0ec; color: var(--orange); }
.tag-gold { background: #fef4e6; color: #d98a2b; }
.tag-gray { background: #f0f2f1; color: var(--muted); }
.badge-essence {
    display: inline-flex; align-items: center; gap: 3px;
    background: linear-gradient(135deg, #f4a261, #e76f51);
    color: #fff; font-size: 12px; padding: 1px 9px; border-radius: 4px;
}

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-label .req { color: var(--orange); margin-right: 3px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 13px; border: 1px solid #d8e0db;
    border-radius: var(--radius); background: #fff; transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--green); }
.form-textarea { min-height: 110px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-input { flex: 1; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check input { margin-top: 3px; }
.form-inline-link { font-size: 13px; }
.input-suffix-btn { white-space: nowrap; }
.form-box { background: #fff; border-radius: 0; padding: 24px; box-shadow: var(--shadow); }
.form-box-narrow { max-width: 460px; margin: 26px auto; }
.form-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--green-dark); }

/* ---------------- 卡片/网格通用 ---------------- */
.section { padding: 26px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; }
.section-head h2 { font-size: 21px; font-weight: 700; color: var(--green-dark);
    display: flex; align-items: center; gap: 9px; }
.section-head h2::before { content: ""; width: 5px; height: 20px; border-radius: 3px;
    background: linear-gradient(var(--green), var(--orange)); }
.section-more { font-size: 13.5px; color: var(--muted); }
.card { background: #fff; border-radius: 0; box-shadow: var(--shadow); overflow: hidden; }

/* 活动卡片 */
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.act-card { display: flex; flex-direction: column; background: #fff; border-radius: 0;
    overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.act-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(27,67,50,.15); }
.act-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dbe6e0; }
.act-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.act-card:hover .act-cover img { transform: scale(1.05); }
.act-city { position: absolute; left: 0; bottom: 0; padding: 16px 10px 6px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff; font-size: 12.5px; width: 100%;
    display: flex; align-items: center; gap: 4px; }
.act-city svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.act-type { position: absolute; left: 8px; top: 8px; padding: 1px 9px; border-radius: 4px;
    font-size: 12px; color: #fff; background: rgba(45,106,79,.88); }
.act-type.t-gather { background: rgba(231,111,81,.9); }
.act-type.t-match { background: rgba(217,138,43,.92); }
.act-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.act-title { font-size: 15.5px; font-weight: 600; margin-bottom: 7px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.act-title a { color: var(--text); }
.act-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 4px;
    display: flex; align-items: center; gap: 5px; }
.act-meta svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.act-foot { display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.act-publisher { display: flex; align-items: center; gap: 6px; font-size: 12.5px;
    color: var(--muted); min-width: 0; }
.act-publisher img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.act-publisher span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-fee { font-weight: 700; color: var(--orange); font-size: 14px; }

/* 游记卡片 */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article-card { background: #fff; border-radius: 0; padding: 16px; box-shadow: var(--shadow); }
.article-card .art-title { font-size: 16.5px; font-weight: 600; margin: 4px 0 10px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .art-title a { color: var(--text); }
.art-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.art-images img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; width: 100%;
    background: #e3ece7; }
.art-cover-img { width: 100%; aspect-ratio: 16/5; object-fit: cover; border-radius: 6px;
    margin-bottom: 12px; display: block; background: #e3ece7; }
.art-foot { display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: var(--muted); }
.art-author { display: flex; align-items: center; gap: 6px; }
.art-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.art-stats { display: flex; gap: 12px; }
.art-stats svg { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; }

/* 新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { background: #fff; border-radius: 0; overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease; }
.news-card a { display: block; overflow: hidden; }
.news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: #e3ece7;
    transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(45,106,79,.18); }
.news-card:hover img { transform: scale(1.07); }
.news-card:hover .news-title a { color: var(--green); }
.news-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.news-title { font-size: 15px; font-weight: 600; margin-bottom: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 46px; }
.news-title a { color: var(--text); }
.news-intro { font-size: 13px; color: var(--muted); margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.news-date { font-size: 12.5px; color: #aab6af; }

/* ---------------- 筛选条（横滚） ---------------- */
.filter-bar { background: #fff; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; align-items: center; gap: 8px; padding: 10px 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    cursor: grab; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row.dragging { cursor: grabbing; user-select: none; }
.filter-chip {
    flex: none; padding: 5px 15px; border-radius: 0; font-size: 14px;
    background: var(--btn-bg); color: var(--text); cursor: pointer; border: 1px solid transparent;
}
.filter-chip:hover { color: var(--btn); }
.filter-chip.active { background: var(--btn); color: #fff; }
.filter-label { flex: none; position: sticky; left: 0; z-index: 2;
    font-size: 16px; font-weight: 600; color: var(--text);
    padding: 6px 12px 6px 0; margin-right: 4px; background: #fff;
    box-shadow: 6px 0 6px -4px rgba(0,0,0,0.08); }
.row-wrap { position: relative; }
.row-arrow { display: none; align-items: center; justify-content: flex-end;
    position: absolute; top: 0; right: 0; bottom: 0; width: 40px;
    z-index: 2; cursor: pointer; color: var(--green);
    padding-right: 6px;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff 55%); }
.row-arrow:hover { color: var(--green-dark, #2e7d32); }
.row-arrow-left { right: auto; left: 46px; justify-content: flex-start;
    padding-right: 0; padding-left: 6px;
    background: linear-gradient(to left, rgba(255,255,255,0), #fff 55%); }
.row-arrow.show { display: flex; }
.row-arrow svg { width: 18px; height: 18px; }
.search-row { display: flex; gap: 10px; padding: 0 0 12px; }
.search-row .form-input { flex: 1; border-radius: 20px; background: var(--bg); }
.search-row .btn { flex: none; }

/* ---------------- 分页 ---------------- */
.pagination { display: flex; justify-content: center; gap: 7px; margin: 28px 0 10px;
    flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: 0;
    background: #fff; color: var(--text); font-size: 14px; box-shadow: var(--shadow);
}
.pagination a:hover { color: var(--orange); }
.pagination .current { background: var(--btn); color: #fff; }
.pagination .disabled { color: #c3ccc6; pointer-events: none; }

/* ---------------- 状态：空/加载/错误 ---------------- */
.state-box { text-align: center; padding: 60px 20px; color: var(--muted); }
.state-box .state-icon { font-size: 46px; margin-bottom: 12px; opacity: .55; }
.state-box p { font-size: 14px; }
.state-loading::before {
    content: ""; display: inline-block; width: 26px; height: 26px;
    border: 3px solid var(--green-light); border-top-color: var(--green);
    border-radius: 50%; animation: hdspin .8s linear infinite; margin-bottom: 12px;
}
.state-loading { display: block; }
@keyframes hdspin { to { transform: rotate(360deg); } }

/* ---------------- 弹层/轻提示 ---------------- */
.hd-mask {
    position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.hd-dialog {
    background: #fff; border-radius: 12px; width: 100%; max-width: 400px;
    padding: 24px 22px 18px; animation: hdin .18s ease;
}
@keyframes hdin { from { transform: translateY(14px); opacity: 0; } }
.hd-dialog h3 { font-size: 17px; margin-bottom: 10px; }
.hd-dialog p { font-size: 14.5px; color: #55615a; margin-bottom: 20px; white-space: pre-line; }
.hd-dialog .dlg-btns { display: flex; gap: 10px; justify-content: flex-end; }
.hd-toast {
    position: fixed; left: 50%; top: 38%; transform: translateX(-50%);
    background: rgba(0,0,0,.8); color: #fff; padding: 11px 20px; border-radius: 8px;
    font-size: 14px; z-index: 2000; max-width: 80%; text-align: center;
    animation: hdin .15s ease;
}
.hd-loading {
    position: fixed; inset: 0; background: rgba(255,255,255,.55); z-index: 1500;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--green); font-size: 14px; gap: 12px;
}
.hd-loading .spinner {
    width: 34px; height: 34px; border: 3px solid var(--green-light);
    border-top-color: var(--green); border-radius: 50%; animation: hdspin .8s linear infinite;
}

/* ---------------- 小程序码弹层 ---------------- */
.qr-dialog { text-align: center; max-width: 320px; }
.qr-dialog .qr-img {
    width: 220px; height: 220px; margin: 6px auto 14px; border-radius: 8px;
    border: 1px solid var(--line); object-fit: contain; background: #fafbfa;
}
.qr-dialog .qr-fallback {
    width: 220px; height: 220px; margin: 6px auto 14px; border-radius: 8px;
    border: 1px dashed #b9c6be; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; color: var(--muted);
    font-size: 13px; padding: 20px; background: #fafbfa; text-align: center;
}
.qr-dialog h3 { margin-bottom: 4px; }
.qr-dialog p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ---------------- 底部 ---------------- */
.site-footer { background: #ebe3d4; color: #4a4436; margin-top: 40px;
    padding: 34px 0 0; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 30px;
    padding-bottom: 26px; }
.footer-grid h4 { color: var(--green-dark); font-size: 15px; margin-bottom: 13px; }
.footer-grid a { color: #4a4436; display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--green); }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.footer-grid nav a { display: inline-block; padding: 7px 18px; font-size: 14.5px;
    font-weight: 600; color: #55503f; background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.08); border-radius: 0;
    transition: all .2s ease; box-shadow: 0 6px 14px rgba(45,106,79,.28); }
.footer-grid nav a:hover { color: #fff; background: var(--btn);
    border-color: var(--btn); transform: translateY(-2px); }
.footer-qr { display: flex; gap: 13px; align-items: center; }
.footer-qr img, .footer-qr .qr-mini {
    width: 92px; height: 92px; border-radius: 8px; background: #fff; padding: 5px;
    object-fit: contain; cursor: pointer; flex: none;
}
.footer-qr .qr-mini {
    display: flex; align-items: center; justify-content: center; color: var(--muted);
    font-size: 11px; text-align: center; line-height: 1.4;
}
.footer-contact li { padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(0,0,0,.12); padding: 14px 0;
    text-align: center; font-size: 12.5px; color: #7a715f; }
.footer-bottom a { color: #7a715f; display: inline; }
.footer-bottom a:hover { color: var(--green); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 68px; width: auto; object-fit: contain; border-radius: 8px; flex: none; }
.footer-brand-txt h4 { margin-bottom: 6px; font-size: 18px; }
.footer-brand-txt p { line-height: 1.8; opacity: .85; margin: 0; }
.footer-bottom .police-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.footer-bottom .icp-empty { color: #b0a892; }

/* ---------------- 详情页通用 ---------------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-top: 20px; }
.detail-main { background: #fff; border-radius: 0; box-shadow: var(--shadow);
    padding: 24px; min-width: 0; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: 16px; }
.side-card h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.side-card h3::before { content: ""; width: 4px; height: 15px; border-radius: 2px;
    background: var(--orange); }
.side-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.side-list li:last-child { border-bottom: none; }
.side-list a { color: var(--text); display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list a:hover { color: var(--orange); }
.side-list .hot-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 19px; height: 19px; border-radius: 4px; background: #cdd8d2;
    color: #fff; font-size: 12px; margin-right: 8px; flex: none;
}
.side-list li:nth-child(1) .hot-rank,
.side-list li:nth-child(2) .hot-rank,
.side-list li:nth-child(3) .hot-rank { background: var(--orange); }

/* 富文本内容 */
.rich-content { font-size: 15px; line-height: 1.85; word-break: break-word; }
.rich-content img { margin: 12px auto; border-radius: 6px; height: auto !important; }
.rich-content p { margin: 10px 0; }
.rich-content h1,.rich-content h2,.rich-content h3 { margin: 18px 0 10px; }
.rich-content table { max-width: 100%; border-collapse: collapse; }
.rich-content td,.rich-content th { border: 1px solid var(--line); padding: 6px 10px; }
.rich-content a { text-decoration: underline; }

/* 信息描述列表 */
.info-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px;
    margin: 16px 0; }
.info-list dl { display: flex; font-size: 14px; padding: 7px 0;
    border-bottom: 1px dashed var(--line); }
.info-list dt { color: var(--muted); width: 84px; flex: none; }
.info-list dd { color: var(--text); }

/* ---------------- 评论 ---------------- */
.comment-item { display: flex; gap: 11px; padding: 15px 0;
    border-bottom: 1px solid var(--line); }
.comment-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.comment-head .c-name { color: var(--green); font-weight: 600; }
.comment-content { font-size: 14.5px; margin: 4px 0; word-break: break-word;
    white-space: pre-wrap; }
.comment-form { margin-top: 18px; }
.comment-form .form-textarea { min-height: 86px; }
.c-actions { margin-top: 2px; }
.c-reply-btn { background: none; border: 0; padding: 0; color: var(--muted);
    font-size: 13px; cursor: pointer; }
.c-reply-btn:hover { color: var(--green); }
.reply-box { margin-top: 8px; padding: 10px 12px; background: var(--green-bg);
    border-radius: 8px; }
.reply-box .form-textarea { min-height: 60px; }
.reply-box .reply-bar { display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; gap: 10px; }
.reply-box .reply-hint { font-size: 12px; color: var(--muted); }
/* 回复树：逐级缩进、各级颜色区分 */
.comment-replies { margin-top: 8px; padding-left: 14px; }
.reply-item { padding: 8px 10px; border-radius: 8px; margin-top: 6px;
    border-left: 3px solid transparent; }
.reply-item .reply-row { display: flex; gap: 9px; }
.reply-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.reply-main { flex: 1; min-width: 0; }
.reply-name { font-size: 13px; color: var(--green); font-weight: 600; }
.reply-name .r-to { color: var(--muted); font-weight: 400; margin: 0 3px; }
.reply-time { font-size: 12px; color: var(--muted); margin-left: 8px; }
.reply-text { font-size: 14px; margin-top: 2px; word-break: break-word;
    white-space: pre-wrap; }
.reply-text .c-reply-btn { font-size: 12px; margin-left: 8px; }
.reply-children { margin-top: 2px; padding-left: 12px; }
/* 一级回复：浅绿 */
.reply-lv1 { background: #f0f8f2; border-left-color: #bfe3c8; }
.reply-lv1 .reply-name { color: #2f7a3d; }
/* 二级回复：浅蓝 */
.reply-lv2 { background: #eef5fc; border-left-color: #bcd9f3; }
.reply-lv2 .reply-name { color: #2b6cb0; }
/* 三级回复：浅黄 */
.reply-lv3 { background: #fdf8ec; border-left-color: #f0dc9d; }
.reply-lv3 .reply-name { color: #97681b; }
/* 四级回复：浅紫 */
.reply-lv4 { background: #f5f0fb; border-left-color: #d6c2ee; }
.reply-lv4 .reply-name { color: #6b46c1; }

/* ---------------- 用户空间 ---------------- */
.space-header { background: linear-gradient(135deg, var(--green-dark), var(--green) 70%, #52b788);
    color: #fff; border-radius: 0; padding: 28px; margin-top: 20px;
    display: flex; align-items: center; gap: 20px; }
.space-header img.avatar-lg { width: 78px; height: 78px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.65); object-fit: cover; background: #fff; }
.space-header .sp-name { font-size: 21px; font-weight: 700; }
.space-header .sp-sig { font-size: 13.5px; opacity: .85; margin-top: 3px; }
.space-stats { display: flex; gap: 22px; margin-left: auto; text-align: center; }
.space-stats b { display: block; font-size: 20px; }
.space-stats span { font-size: 12.5px; opacity: .85; }
.space-tabs { display: flex; gap: 8px; margin: 18px 0 4px; }
.space-tabs a { padding: 7px 20px; border-radius: 0; background: #fff; color: var(--text);
    box-shadow: var(--shadow); font-size: 14px; }
.space-tabs a.active { background: var(--btn); color: #fff; }

/* ---------------- 报名 ---------------- */
.signup-summary { display: flex; gap: 14px; background: var(--green-bg);
    border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.signup-summary img { width: 120px; height: 80px; object-fit: cover;
    border-radius: 8px; flex: none; }
.signup-list-item { display: flex; gap: 12px; background: #fff; border-radius: 0;
    box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; }
.signup-list-item img { width: 110px; height: 76px; object-fit: cover;
    border-radius: 8px; flex: none; }
.status-pill { font-size: 12px; padding: 1px 9px; border-radius: 10px; }
.status-join { background: var(--green-bg); color: var(--green); }
.status-cancel { background: #f0f2f1; color: var(--muted); }

/* ---------------- TinyMCE 容器 ---------------- */
.editor-wrap { min-height: 320px; }
.tox-tinymce { border-radius: var(--radius) !important; border-color: #d8e0db !important; }

/* 封面/图片上传 */
.upload-cover { width: 170px; aspect-ratio: 16/10; border: 1px dashed #b9c6be;
    border-radius: 8px; overflow: hidden; position: relative; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; background: #fafbfa; text-align: center; }
.upload-cover img { width: 100%; height: 100%; object-fit: cover; }
.upload-cover .cover-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45);
    color: #fff; display: none; align-items: center; justify-content: center; font-size: 13px; }
.upload-cover:hover .cover-mask { display: flex; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px; margin-top: 10px; }
.tpl-item { border: 2px solid transparent; border-radius: 8px; overflow: hidden;
    cursor: pointer; position: relative; background: #e3ece7; }
.tpl-item img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.tpl-item.selected { border-color: var(--orange); }
.tpl-item.selected::after { content: "已选"; position: absolute; right: 0; bottom: 0;
    background: var(--orange); color: #fff; font-size: 11px; padding: 0 7px;
    border-top-left-radius: 6px; }

/* 集合点/轨迹动态条目 */
.repeat-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px;
    margin-bottom: 10px; position: relative; background: #fcfdfc; }
.repeat-item .del-btn { position: absolute; right: 10px; top: 10px; }
.repeat-item .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 高德下拉提示 */
.amap-tips { position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border: 1px solid var(--line); border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,.1); z-index: 50; max-height: 240px; overflow-y: auto; }
.amap-tips li { padding: 9px 13px; font-size: 13.5px; cursor: pointer; }
.amap-tips li:hover { background: var(--green-bg); }
.amap-tips .tip-dist { color: var(--muted); font-size: 12px; }
.pos-relative { position: relative; }

/* ---------------- 自适应 ---------------- */
@media (max-width: 1024px) {
    .act-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 14px; }
    .act-grid, .news-grid, .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .info-list { grid-template-columns: 1fr; }
    .detail-main { padding: 16px; }
    .section-head h2 { font-size: 18px; }
    .space-header { flex-direction: column; text-align: center; padding: 22px 16px; }
    .space-stats { margin-left: 0; }
    .signup-summary { flex-direction: row; }
    .repeat-item .grid2 { grid-template-columns: 1fr; }
    .form-box { padding: 18px 15px; }
}
