/* =====================================================
   眸耕｜阳台种菜养花助手 v1.2.0
   版权：阳润科技 永久版权
   农业绿主题
   ===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --green: #2d8f4e;
    --green-dark: #1f6e38;
    --green-light: #e8f5ec;
    --accent: #7cb342;
    --text: #333;
    --text-light: #888;
    --bg: #f7f8f4;
    --border: #e3e7df;
    --danger: #d9534f;
    --warn: #f0ad4e;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.7;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- 头部导航 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: flex; align-items: center; height: 60px; }
.logo { font-size: 20px; font-weight: 700; color: var(--green-dark); margin-right: 32px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
    padding: 6px 14px;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
}
.main-nav a:hover { color: var(--green); background: var(--green-light); }
.main-nav a.active { color: var(--green-dark); background: var(--green-light); font-weight: 600; }
.header-user { display: flex; align-items: center; gap: 8px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    background: #fff;
    color: var(--text);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green-light); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c9302c; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-link { color: var(--text-light); background: none; border: none; padding: 4px 8px; }
.btn-link:hover { color: var(--green); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 首页 Hero ---------- */
.hero {
    background: linear-gradient(135deg, #2d8f4e 0%, #4caf50 60%, #7cb342 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.hero h1 { font-size: 34px; margin-bottom: 12px; }
.hero p { font-size: 16px; opacity: .92; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; }

/* ---------- 区块 ---------- */
.section { padding: 40px 0; }
.section-title { font-size: 22px; margin-bottom: 24px; position: relative; padding-left: 14px; }
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: var(--green);
}

/* ---------- 工具卡片 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: all .2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(45,143,78,.12); border-color: var(--green); }
.tool-icon { font-size: 34px; margin-bottom: 10px; }
.tool-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--green-dark); }
.tool-card p { color: var(--text-light); font-size: 13px; }

/* ---------- 病虫害卡片 ---------- */
.pest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pest-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    display: block;
}
.pest-card h3 { font-size: 16px; color: var(--green-dark); margin-bottom: 6px; }
.pest-card p { color: var(--text-light); font-size: 13px; }
.tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* ---------- 文章列表 ---------- */
.article-list { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.article-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2ec;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: var(--green-light); }
.article-cat {
    background: var(--green);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}
.article-title { flex: 1; color: #333; font-size: 15px; }
.article-date { color: var(--text-light); font-size: 12px; }

/* ---------- 最新知识左右两栏 ---------- */
.article-split { display: flex; gap: 16px; }
.article-split .article-list { flex: 1; min-width: 0; }
@media (max-width: 768px) {
    .article-split { flex-direction: column; gap: 12px; }
}

/* ---------- 种植排行榜 ---------- */
.rank-section { padding-bottom: 8px; }
.rank-rule { color: var(--text-light); font-size: 13px; margin-bottom: 18px; }
.rank-cols { display: flex; gap: 16px; }
.rank-col {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
}
.rank-col-title {
    font-size: 16px;
    color: var(--green-dark);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2ec;
}
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f2ec;
    font-size: 14px;
}
.rank-item:last-child { border-bottom: none; }
.rank-no {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #eef2ec;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}
.rank-no-1 { background: #f6b73c; color: #fff; }
.rank-no-2 { background: #b9c4cf; color: #fff; }
.rank-no-3 { background: #d8925f; color: #fff; }
.rank-name {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-meta { color: var(--text-light); font-size: 12px; flex-shrink: 0; }
.rank-empty { color: var(--text-light); font-size: 13px; padding: 12px 0; }
/* 排行榜固定三列左右并排展示（不随屏宽变上下） */
.rank-name { color: var(--green-dark); font-weight: 600; }
a.rank-name:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .rank-cols { gap: 8px; }
    .rank-col { padding: 12px; }
    .rank-item { gap: 6px; font-size: 13px; }
    .rank-name { max-width: 70px; }
}

/* ---------- 菜友种植日记（首页统一大小卡片） ---------- */
.diary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.diary-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.diary-link { display: block; }
.diary-thumb { height: 150px; overflow: hidden; background: #f5f7f2; }
.diary-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diary-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.diary-body { padding: 10px 12px 6px; }
.diary-title { font-size: 15px; font-weight: 600; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.diary-excerpt { font-size: 12px; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.diary-meta { padding: 8px 12px 10px; font-size: 12px; color: var(--text-light); border-top: 1px dashed #f0f2ec; }
.diary-author { color: var(--green-dark); font-weight: 600; }
.diary-author:hover { text-decoration: underline; }
.diary-date { float: right; }
@media (max-width: 900px) { .diary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .diary-grid { grid-template-columns: 1fr; } .diary-thumb { height: 180px; } }

/* ---------- 种植笔记时间轴（我的笔记 / 菜友日记页） ---------- */
.note-timeline { position: relative; margin: 6px 0 0 6px; padding-left: 26px; }
.note-timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: #e3e8dd; }
.timeline-item { position: relative; margin-bottom: 18px; }
.timeline-marker { position: absolute; left: -26px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.timeline-title { font-size: 16px; font-weight: 600; color: var(--green-dark); }
.timeline-title:hover { text-decoration: underline; }
.timeline-time { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.timeline-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.timeline-img-link { display: block; margin-bottom: 8px; }
.timeline-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; border: 1px solid #f0f2ec; }
.timeline-content { font-size: 14px; color: var(--text); line-height: 1.7; white-space: pre-line; }
.timeline-actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; }
.tag-public { background: #e8f5e9; color: #2e7d32; }
.tag-private { background: #f3f3f3; color: #888; }
.tag-activity { background: #fff4e0; color: #b26a00; border: 1px solid #f0d9a8; }
.activity-tag-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.activity-tag-time { font-size: 12px; color: var(--text-light); }
@media (max-width: 768px) { .note-timeline { padding-left: 22px; } .timeline-marker { left: -22px; } }

/* ---------- 种植日记公开页 ---------- */
.note-view-meta { font-size: 13px; color: var(--text-light); margin: 10px 0 16px; }
.note-view-img-wrap { margin-bottom: 16px; }
.note-view-img { width: 100%; max-height: 480px; object-fit: contain; border-radius: 10px; background: #f5f7f2; }
.note-view-content { font-size: 15px; line-height: 1.9; color: var(--text); white-space: pre-line; }
.note-view-footer { margin-top: 22px; display: flex; gap: 10px; }
.note-img-preview { margin-top: 8px; }
.note-img-preview img { max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
input[type="file"].form-control { padding: 8px; }

/* ---------- 关注我们（公众号/小程序二维码） ---------- */
.qr-section { padding-bottom: 8px; }
.qr-cols { display: flex; gap: 24px; justify-content: center; }
.qr-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    text-align: center;
    width: 220px;
}
.qr-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    border-radius: 8px;
    border: 1px solid #f0f2ec;
}
.qr-name { font-size: 15px; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }
.qr-tip { font-size: 12px; color: var(--text-light); }
@media (max-width: 768px) {
    .qr-cols { flex-direction: column; align-items: center; gap: 14px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: #26332a;
    color: #9db3a5;
    padding: 32px 0;
    margin-top: 48px;
    text-align: center;
    font-size: 13px;
}
.site-footer a { color: #9db3a5; }
.site-footer a:hover { color: #fff; }
.footer-links { margin-top: 8px; display: flex; gap: 18px; justify-content: center; }

/* ---------- 通用卡片/面板 ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}
.card-title { font-size: 18px; margin-bottom: 16px; color: var(--green-dark); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-danger { color: var(--danger); }
.text-green { color: var(--green); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group .hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d5dbd1;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px rgba(45,143,78,.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: auto; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.auth-box { max-width: 420px; margin: 40px auto; }

/* ---------- 提示（站内风格浮层 toast） ---------- */
.flash {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    max-width: 420px;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    animation: flash-in 0.3s ease-out;
    word-break: break-all;
    backdrop-filter: blur(6px);
}
.flash .flash-icon {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.flash-success { background: linear-gradient(135deg, #2f9e5f, #2d8f4e); }
.flash-error { background: linear-gradient(135deg, #e0554c, #d64541); }
.flash-warning { background: linear-gradient(135deg, #efa63a, #e08e0b); }
.flash-out { animation: flash-out 0.26s ease-in forwards; }
@keyframes flash-in {
    from { opacity: 0; transform: translateX(-50%) translateY(14px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes flash-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes flash-out-mobile {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(12px); }
}
@media (max-width: 640px) {
    /* 移动端提示条：改成左右各留 12px 的满宽卡片。
       关键：必须把全局的 translateX(-50%) 重置为 none，
       否则宽度铺满后又被左移半个自身宽度，会整条甩出屏幕左侧。 */
    .flash {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        min-width: 0;
        box-sizing: border-box;
        transform: none;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 12px;
    }
    .flash .flash-icon { margin-top: 1px; }
    .flash-out { animation: flash-out-mobile 0.26s ease-in forwards; }
}

/* ---------- 表格 ---------- */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #f0f2ec; white-space: nowrap; }

/* 公众号菜单配置：输入框布局修复（防重叠） */
.menu-table td { vertical-align: top; }
.menu-table .m-value { display: block; width: 100%; box-sizing: border-box; }
.menu-table .m-appid { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; font-size: 13px; }
.menu-sub-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    align-items: flex-start; margin-bottom: 8px;
}
.menu-sub-row .s-name { width: 96px; flex: 0 0 96px; box-sizing: border-box; }
.menu-sub-row .s-type { width: 118px; flex: 0 0 118px; box-sizing: border-box; }
.menu-sub-row .s-value { flex: 1 1 220px; min-width: 190px; box-sizing: border-box; }
.menu-sub-row .s-appid { width: 168px; flex: 0 0 168px; box-sizing: border-box; font-size: 13px; }

.table th { background: #f8faf6; color: #555; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fbfdf9; }
.table .content-cell { white-space: normal; max-width: 320px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #555;
    background: #fff;
    font-size: 13px;
}
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- CTA ---------- */
.cta-banner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    padding: 36px;
    margin-bottom: 20px;
}
.cta-banner h2 { margin-bottom: 8px; color: var(--green-dark); }
.cta-banner p { color: var(--text-light); margin-bottom: 16px; }

/* ---------- 计算器页 ---------- */
.calc-box { max-width: 620px; margin: 0 auto; }
.calc-result {
    background: var(--green-light);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}
.calc-result .num { font-size: 30px; font-weight: 700; color: var(--green-dark); }
.calc-result.show { display: block; }
.calc-materials { margin-top: 12px; }
.calc-materials div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #c8dfcd; }

/* ---------- 详情页 ---------- */
.detail-box { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
.detail-box h1 { font-size: 24px; margin-bottom: 8px; color: var(--green-dark); }
.detail-box .meta { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.detail-box h3 { color: var(--green-dark); margin: 20px 0 8px; font-size: 16px; }
.detail-box .content-text { white-space: pre-wrap; line-height: 1.9; }

/* ---------- 聊天（AI问诊） ---------- */
.chat-box { max-width: 720px; margin: 0 auto; }
.chat-history { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; min-height: 320px; max-height: 520px; overflow-y: auto; }
.chat-msg { margin-bottom: 16px; display: flex; }
.chat-msg .bubble { max-width: 78%; padding: 10px 14px; border-radius: 10px; font-size: 14px; white-space: pre-wrap; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user .bubble { background: var(--green); color: #fff; border-radius: 10px 10px 2px 10px; }
.chat-msg.ai { justify-content: flex-start; }
.chat-msg.ai .bubble { background: #f1f4ee; color: #333; border-radius: 10px 10px 10px 2px; }
.chat-input { display: flex; gap: 10px; margin-top: 16px; }
.chat-input textarea { flex: 1; }

/* ---------- 后台 ---------- */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 210px;
    background: #1f2d24;
    color: #bcd0c1;
    flex-shrink: 0;
    min-height: 100vh;
}
.admin-sidebar .side-logo { padding: 20px 18px; font-size: 17px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar .side-logo span { color: #7cb342; }
.admin-sidebar nav a {
    display: block;
    padding: 10px 18px;
    color: #bcd0c1;
    font-size: 14px;
    border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: #7cb342; }
.admin-main { flex: 1; background: #f5f6f2; min-width: 0; }
.admin-topbar {
    background: #fff;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}
.admin-content { padding: 24px; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.stat-card .stat-num { font-size: 26px; font-weight: 700; color: var(--green-dark); }
.stat-card .stat-label { color: var(--text-light); font-size: 13px; margin-top: 4px; }

/* 后台设置 */
.setting-group-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.setting-group-nav a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: #555; font-size: 13px; }
.setting-group-nav a.active { background: var(--green); color: #fff; border-color: var(--green); }
.switch-box { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: #fff; }
.switch-box label { font-weight: normal; }

/* 徽章 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red { background: #fbe3e3; color: #c0392b; }
.badge-gray { background: #eee; color: #888; }
.badge-blue { background: #e3f0fb; color: #2b6cb0; }
.badge-purple { background: #f0e6fb; color: #7b3fae; }

/* 移动端 */
@media (max-width: 768px) {
    .tool-grid { grid-template-columns: 1fr 1fr; }
    .pest-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .admin-sidebar { width: 60px; }
    .admin-sidebar nav a { padding: 12px 8px; text-align: center; font-size: 0; }
    .admin-sidebar nav a::first-letter { font-size: 16px; }
    .hero h1 { font-size: 26px; }
}

/* 作物卡片（眸耕网「我的种植」样式：一种植物一张卡，可展开折叠） */
.crop-card { background:#fff; border:1px solid var(--border); border-radius:12px; margin-bottom:16px; overflow:hidden; }
.crop-card-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; cursor:pointer; }
.crop-card-head:hover { background:#f7faf4; }
.crop-card-info { display:flex; flex-direction:column; gap:4px; }
.crop-name { font-size:18px; font-weight:700; color:var(--green-dark); }
.crop-name-badge { display:inline-block; margin-left:8px; font-size:11px; font-weight:400; color:#fff; background:var(--green); border-radius:4px; padding:1px 8px; vertical-align:2px; }
.crop-meta { font-size:12px; color:var(--text-light); }
.crop-card-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; flex-wrap:wrap; }
.crop-arrow { font-size:14px; color:var(--text-light); }
.crop-card-body { display:none; padding:0 18px 18px; border-top:1px dashed #e8ece2; }
.crop-card-body.open { display:block; }
.crop-card-body .note-timeline { margin-top:14px; }
@media (max-width: 768px) { .crop-card-head { flex-direction:column; align-items:flex-start; } .crop-card-actions { width:100%; } }
/* v1.7.5 活动种植卡（参赛日记独立成卡：卡头显大赛名+起止时间，归属活动） */
.crop-card-activity { border-color:#f0d9a8; }
.crop-card-activity .crop-card-head { background:#fffdf6; }
.crop-card-activity .crop-card-head:hover { background:#fff8e8; }
.crop-name-badge-activity { background:#b26a00; }
/* v1.7.5 报名成功「创建活动种植卡」首次提醒 */
.activity-create-card-tip { margin-top:12px; background:#fff8e8; border:1px solid #f0d9a8; border-radius:10px; padding:10px 14px; font-size:13px; color:#8a5a00; line-height:1.8; }
.activity-create-card-tip a { color:#b26a00; font-weight:600; }
.activity-create-card-tip a:hover { text-decoration:underline; }

/* ===== v1.1.4 积分商城 / 活动大赛 ===== */
.tag-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge-yellow { background: #fdf3e3; color: #b7791f; border: 1px solid #f3d9a4; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.btn-gray { background: #e8e8e8; color: #888; border: 1px solid #ddd; padding: 8px 16px; border-radius: 8px; font-size: 14px; }
.podium { border: 1px solid #e4e9e0; }
.podium-first { border: 2px solid #f3c74d; box-shadow: 0 6px 18px rgba(243,199,77,.18); }
.mall-card { transition: box-shadow .2s, transform .2s; }
.mall-card:hover { box-shadow: 0 8px 24px rgba(45,143,78,.14); transform: translateY(-2px); }
.activity-note { background: #fff; border: 1px solid #e6eee2; border-radius: 12px; padding: 14px 14px 14px 18px; }
.activity-desc { white-space: pre-wrap; }
/* v1.1.6 返回顶部 */
#backToTop { position: fixed; right: 22px; bottom: 96px; width: 44px; height: 44px; border-radius: 50%; background: #2d8f4e; color: #fff; font-size: 22px; line-height: 44px; text-align: center; cursor: pointer; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; box-shadow: 0 2px 10px rgba(45,143,78,.35); user-select: none; }
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { background: #23743f; }
/* ============ v1.1.8 种植社区 UI ============ */
.cm-hero { background: linear-gradient(135deg, #14532d 0%, #166534 45%, #2d8f4e 100%); border-radius: 18px; padding: 34px 26px; color: #fff; margin-bottom: 22px; box-shadow: 0 10px 30px rgba(22,101,52,.22); position: relative; overflow: hidden; }
.cm-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: rgba(255,255,255,.08); border-radius: 50%; }
.cm-hero h1 { font-size: 28px; margin: 0 0 8px; font-weight: 700; }
.cm-hero p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.cm-hero .cm-hero-stats { margin-top: 14px; display: flex; gap: 26px; flex-wrap: wrap; }
.cm-hero .cm-hero-stats b { font-size: 20px; display: block; }
.cm-hero .cm-hero-stats span { font-size: 12px; color: rgba(255,255,255,.75); }
.cm-panel { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 4px 18px rgba(20,83,45,.06); border: 1px solid #e8f0e6; margin-bottom: 20px; }
.cm-panel-title { font-size: 16px; font-weight: 600; color: #1f2937; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.cm-publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg,#f0faf2,#e6f4e8); border-color: #cde8d0; }
.cm-publish-bar span { font-size: 15px; color: #166534; font-weight: 500; }
.cm-post { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 18px rgba(20,83,45,.06); border: 1px solid #e8f0e6; margin-bottom: 16px; transition: box-shadow .2s, transform .2s; }
.cm-post:hover { box-shadow: 0 10px 28px rgba(20,83,45,.12); transform: translateY(-2px); }
.cm-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cm-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg,#2d8f4e,#166534); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; flex: none; overflow: hidden; }
.cm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cm-post-user { flex: 1; min-width: 0; }
.cm-post-name { font-weight: 600; color: #1f2937; font-size: 15px; }
.cm-post-time { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.cm-topic { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; flex: none; }
.cm-topic.t1 { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.cm-topic.t2 { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.cm-topic.t3 { background: #fdf4ff; color: #a21caf; border-color: #f5d0fe; }
.cm-post-content { color: #374151; font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; margin-bottom: 12px; }
.cm-imgs { display: grid; gap: 6px; margin-bottom: 12px; border-radius: 12px; overflow: hidden; }
.cm-imgs.one { grid-template-columns: 1fr; max-width: 420px; }
.cm-imgs.many { grid-template-columns: repeat(3, 1fr); }
.cm-imgs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; display: block; cursor: zoom-in; transition: transform .2s; }
.cm-imgs.one img { aspect-ratio: auto; max-height: 380px; }
.cm-imgs img:hover { transform: scale(1.02); }
.cm-act { display: flex; gap: 10px; border-top: 1px solid #f1f5f1; padding-top: 12px; }
.cm-act a, .cm-act form { margin: 0; }
.cm-act-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 20px; font-size: 13px; color: #4b5563; background: #f8faf8; border: 1px solid #e5e9e5; text-decoration: none; }
.cm-act-btn:hover { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.cm-upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cm-upload-preview .up-item { position: relative; width: 80px; height: 80px; border-radius: 10px; overflow: hidden; border: 1px solid #e5e9e5; }
.cm-upload-preview .up-item img { width: 100%; height: 100%; object-fit: cover; }
.cm-upload-preview .up-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; border: 0; }
.cm-pager { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.cm-pager a, .cm-pager span { padding: 6px 14px; border-radius: 8px; background: #fff; border: 1px solid #e5e9e5; color: #374151; font-size: 13px; text-decoration: none; }
.cm-pager a:hover { border-color: #2d8f4e; color: #2d8f4e; }
.cm-comment-item { padding: 12px 0; border-bottom: 1px dashed #e8f0e6; display: flex; gap: 10px; }
.cm-comment-item:last-child { border-bottom: 0; }
.cm-comment-body { flex: 1; min-width: 0; }
.cm-comment-name { font-weight: 600; font-size: 13px; color: #1f2937; }
.cm-comment-time { font-size: 12px; color: #9ca3af; margin-left: 8px; }
.cm-comment-text { color: #374151; font-size: 14px; margin-top: 4px; word-break: break-word; }
.cm-like-form { display: inline; }

/* ============ v1.1.8 后台 UI ============ */
body.admin-body { background: #f3f6f2; }
.admin-sidebar { background: linear-gradient(180deg, #123d22 0%, #14532d 60%, #1a5c35 100%); color: #fff; width: 220px; position: fixed; top: 0; left: 0; bottom: 0; padding: 18px 0; overflow-y: auto; z-index: 100; }
.admin-sidebar .side-logo { font-size: 18px; font-weight: 700; padding: 0 20px 18px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); padding: 10px 20px; font-size: 14px; text-decoration: none; border-left: 3px solid transparent; transition: all .2s; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar nav a.active { background: rgba(255,255,255,.14); color: #fff; border-left-color: #6ee7a0; font-weight: 600; }
.admin-main { margin-left: 220px; padding: 20px 26px 40px; min-height: 100vh; }
.admin-topbar { background: #fff; border-radius: 12px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(20,83,45,.05); margin-bottom: 20px; font-size: 14px; color: #374151; }
.admin-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 4px 18px rgba(20,83,45,.06); border: 1px solid #e8f0e6; }
.admin-card-title { font-size: 18px; font-weight: 700; color: #14532d; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid #e8f0e6; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.admin-table th { background: #f0f7f0; color: #14532d; font-weight: 600; text-align: left; padding: 11px 12px; border-bottom: 2px solid #d7e8d7; }
.admin-table th:first-child { border-radius: 10px 0 0 0; }
.admin-table th:last-child { border-radius: 0 10px 0 0; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid #eef3ee; color: #374151; vertical-align: middle; }
.admin-table tbody tr:hover { background: #fafcfa; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-empty { text-align: center; color: #9ca3af; padding: 40px 0; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; }
.pill-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.pill-gray { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.pill-red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.pill-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.admin-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid #e5e9e5; }
.admin-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.admin-tool-card { background: #f8faf8; border: 1px dashed #cbd8cb; border-radius: 12px; padding: 18px; }
.admin-tool-card h4 { margin: 0 0 10px; font-size: 15px; color: #14532d; }
.admin-tool-card .hint { color: #9ca3af; font-size: 12px; margin-top: 6px; }
.qr-up-btn { display: inline-block; margin-top: 8px; }
/* ===== v1.2.0 社区分类 tab + 双栏 + 点赞排行 ===== */
.cm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cm-tab { padding: 7px 18px; border-radius: 999px; background: #fff; color: #166534;
    font-size: 13px; border: 1px solid #dcfce7; text-decoration: none; transition: all .2s; }
.cm-tab:hover { border-color: #16a34a; color: #15803d; }
.cm-tab.active { background: linear-gradient(135deg, #15803d, #16a34a); color: #fff;
    border-color: transparent; box-shadow: 0 3px 10px rgba(22, 163, 74, .3); }
.cm-layout { display: flex; gap: 18px; align-items: flex-start; }
.cm-main { flex: 1; min-width: 0; }
.cm-side { flex: 0 0 288px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cm-side-card { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(20, 83, 45, .06); }
.cm-side-title { margin: 0 0 12px; font-size: 15px; color: #14532d; display: flex; align-items: center; gap: 6px; }
.cm-rank-item { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; min-width: 0;
    text-decoration: none; transition: background .2s; }
.cm-rank-item:hover { background: #f0fdf4; }
.cm-rank-no { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #f3f4f6;
    color: #6b7280; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.cm-rank-no.top { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.cm-rank-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-rank-info b { font-size: 13px; color: #14532d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-rank-info em { font-style: normal; font-size: 12px; color: #9ca3af; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.cm-rank-like { font-size: 12px; color: #16a34a; white-space: nowrap; }
.cm-rank-more { display: block; text-align: center; padding: 10px; border-radius: 10px;
    background: linear-gradient(135deg, #15803d, #16a34a); color: #fff; font-size: 14px;
    text-decoration: none; font-weight: 600; transition: opacity .2s; }
.cm-rank-more:hover { opacity: .9; color: #fff; }
.cm-side-empty { color: #9ca3af; font-size: 12px; margin: 0; }
.cm-post.cm-rank-top { border: 1.5px solid #fbbf24; }
.cm-rank-badge { position: absolute; top: -13px; left: 14px; font-size: 22px; line-height: 1;
    background: #fff; border-radius: 10px; padding: 2px 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); z-index: 2; }
.cm-post { position: relative; }
@media (max-width: 900px) {
    .cm-layout { flex-direction: column; }
    .cm-side { flex: 1 1 auto; width: 100%; flex-direction: row; flex-wrap: wrap; }
    .cm-side-card { flex: 1 1 260px; }
}
/* ===== v1.2.0 社区右侧关注二维码卡 ===== */
.cm-follow-card { background: linear-gradient(160deg, #dcfce7, #f0fdf4); border-radius: 14px;
    padding: 14px; border: 1px solid #bbf7d0; }
.cm-follow-title { font-size: 14px; font-weight: 700; color: #14532d; padding-left: 10px;
    border-left: 4px solid #16a34a; line-height: 1.4; margin-bottom: 12px; }
.cm-follow-body { background: #fff; border-radius: 10px; padding: 12px;
    display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cm-qr-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cm-qr-item img { width: 104px; height: 104px; border-radius: 8px; border: 1px solid #e5e7eb;
    object-fit: contain; background: #fff; }
.cm-qr-item span { font-size: 12px; color: #166534; font-weight: 600; }
/* 知识库侧栏 + 点赞 + 二维码预览 */
.kb-layout { margin-top: 4px; }
.kb-main .article-list { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 6px 14px; }
.kb-like-box { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #e5e7eb; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kb-like-num { margin-left: 4px; }
.qr-preview { width: 88px; height: 88px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; vertical-align: middle; margin-left: 8px; }
@media (max-width: 768px) { .qr-preview { width: 64px; height: 64px; } }


/* ============ v1.2.3 生长周期指南 + 节气农事 ============ */
.gg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gg-card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid #e8f0e6; box-shadow: 0 4px 18px rgba(20,83,45,.06); text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.gg-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(22,101,52,.16); }
.gg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gg-head h3 { margin: 0; font-size: 17px; color: #14532d; }
.gg-days { text-align: center; padding: 10px 0; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.gg-days b { font-size: 26px; color: #047857; display: block; line-height: 1.2; }
.gg-days span { font-size: 12px; color: #166534; }
.gg-steps { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #4b5563; margin-bottom: 10px; }
.gg-steps span { padding: 5px 8px; background: #f8faf9; border-radius: 8px; }
.gg-temp { font-size: 13px; color: #b45309; }
.gg-timeline { display: flex; align-items: flex-start; flex-wrap: wrap; }
.gg-node { display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; }
.gg-dot { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #15803d, #16a34a); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; box-shadow: 0 4px 12px rgba(22,101,52,.3); }
.gg-node b { font-size: 13px; color: #1f2937; }
.gg-node span { font-size: 11px; color: #6b7280; }
.gg-line { flex: 1; min-width: 40px; height: 4px; background: #d1fae5; border-radius: 4px; margin-top: 22px; position: relative; overflow: visible; }
.gg-line span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #047857; white-space: nowrap; }
.gg-plan-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.gg-plan-result > div { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px; text-align: center; }
.gg-plan-result span { display: block; font-size: 12px; color: #166534; margin-bottom: 4px; }
.gg-plan-result b { font-size: 14px; color: #14532d; }
.st-card { padding: 18px 20px; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.st-name { margin: 0; font-size: 18px; color: #14532d; }
.st-date { font-size: 12px; color: #b45309; background: #fef3c7; border: 1px solid #fde68a; padding: 3px 12px; border-radius: 999px; flex: none; }
.st-rows { display: flex; flex-direction: column; gap: 8px; }
.st-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; }
.st-row b { flex: 0 0 58px; color: #166534; }
.st-row span { color: #374151; flex: 1; }
@media (max-width: 760px) {
  .gg-plan-result { grid-template-columns: 1fr; }
  .st-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}


/* ===== v1.2.5 小知识：自媒体列表样式 ===== */
.kb-media-list { display: flex; flex-direction: column; gap: 10px; }
.kb-media {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; text-decoration: none; transition: box-shadow .2s;
}
.kb-media:hover { box-shadow: 0 2px 8px rgba(45,143,78,.12); }
.kb-media-main { flex: 1; min-width: 0; }
.kb-media-title {
    font-size: 16px; color: #333; font-weight: 600; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kb-media-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-light); flex-wrap: wrap; }
.kb-cat {
    display: inline-block; background: var(--green-light); color: var(--green); border-radius: 4px;
    padding: 2px 8px; font-size: 12px; white-space: nowrap;
}
.kb-author { color: var(--green); font-weight: 600; white-space: nowrap; }
.kb-date { white-space: nowrap; }
.kb-views { white-space: nowrap; }
.kb-media-cover { width: 96px; height: 68px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--green-light); display: flex; align-items: center; justify-content: center; }
.kb-media-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kb-media-cover.noimg { display: none; }
.kb-cover-ph { font-size: 26px; color: var(--green); opacity: .5; }

.kb-action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.kb-fav-btn.faved { background: #fef3c7; border-color: #f59e0b; color: #b45309; }
/* 详情封面 */
.kb-detail-cover { margin: 14px 0; border-radius: 10px; overflow: hidden; max-height: 420px; }
.kb-detail-cover img { width: 100%; display: block; object-fit: cover; }

/* 相关推荐 */
.related-box { margin-top: 18px; }
.related-title { font-size: 16px; color: #333; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-card {
    display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 8px;
    padding: 10px; text-decoration: none; border: 1px solid var(--border); min-width: 0;
}
.related-cover { width: 56px; height: 44px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--green-light); display: flex; align-items: center; justify-content: center; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-cover.noimg { display: none; }
.related-body { min-width: 0; }
.related-name {
    font-size: 13px; color: #333; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-meta { display: flex; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--text-light); align-items: center; }
@media (max-width: 900px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .related-grid { grid-template-columns: 1fr; }
    .kb-media-cover { width: 84px; height: 60px; }
}

/* ===== v1.2.6 后台富文本编辑器 ===== */
.rt-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--bg); border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; }
.rt-btn { border: 1px solid var(--border); background: #fff; color: #333; border-radius: 4px; padding: 4px 9px; font-size: 13px; cursor: pointer; }
.rt-btn:hover { border-color: var(--green); color: var(--green); }
.rt-editor { min-height: 220px; max-height: 480px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 0 0 8px 8px; padding: 10px 12px; font-size: 14px; line-height: 1.7; }
.rt-editor:focus { outline: 2px solid rgba(45,143,78,.25); border-color: var(--green); }
.rt-editor:empty::before { content: attr(data-placeholder); color: #aaa; }
.rt-editor img { max-width: 100%; border-radius: 6px; }
.rt-editor blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--green); background: var(--green-light); color: #555; }

/* ===== v1.2.6 前台富文本正文 ===== */
.rich-text { line-height: 1.85; }
.rich-text h2 { font-size: 20px; margin: 18px 0 10px; color: #222; }
.rich-text h3 { font-size: 17px; margin: 16px 0 8px; color: #333; }
.rich-text img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.rich-text ul, .rich-text ol { margin: 8px 0 8px 22px; }
.rich-text li { margin: 4px 0; }
.rich-text blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--green); background: var(--green-light); color: #555; border-radius: 0 6px 6px 0; }
.rich-text table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.rich-text td, .rich-text th { border: 1px solid var(--border); padding: 6px 10px; }

/* ===== v1.2.7 现代化页脚 ===== */
.site-footer {
    background: linear-gradient(135deg, #0d3b1e 0%, #14522a 55%, #1a6233 100%);
    color: rgba(255, 255, 255, .85);
    padding: 44px 0 0;
    margin-top: 48px;
    text-align: left;
    font-size: 13px;
}
.footer-top {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { flex: 1 1 280px; min-width: 220px; }
.footer-brand .footer-logo { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
.footer-brand p { color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.9; margin-top: 10px; }
.footer-col { flex: 1 1 130px; min-width: 110px; }
.footer-col h5 { color: #fff; font-size: 14px; margin-bottom: 12px; font-weight: 600; letter-spacing: 1px; }
.footer-col a { display: block; color: rgba(255, 255, 255, .68); font-size: 13px; padding: 4px 0; text-decoration: none; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #ffd98a; padding-left: 4px; }
.footer-qr { display: flex; gap: 16px; align-items: flex-start; }
.footer-qr-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    width: 118px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.footer-qr-card img { width: 96px; height: 96px; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
.footer-qr-card p { font-size: 13px; font-weight: 700; color: #1a6233; margin-top: 6px; }
.footer-qr-card em { font-style: normal; font-size: 11px; color: #8a9a90; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
}
.footer-bottom p { font-size: 12px; color: rgba(255, 255, 255, .55); margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .55); }
.footer-bottom a:hover { color: #ffd98a; }
#footerTop {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .12);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s;
}
#footerTop:hover { background: rgba(255, 255, 255, .22); color: #ffd98a; }
@media (max-width: 768px) {
    /* 竖排时 flex-basis 会变成"高度"，原来写的 280px / 130px 把每块撑得很高，
       造成品牌语与栏目之间一大片空白 —— 移动端必须改成 flex: 0 0 auto */
    .footer-top { flex-direction: column; gap: 16px; align-items: stretch; }
    .footer-brand { flex: 0 0 auto; min-width: 0; }
    .footer-qr { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
    /* 「平台栏目」「站内服务」改成一行横排（装不下自动换行），不再一列到底 */
    .footer-col {
        flex: 0 0 auto;
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
    }
    .footer-col h5 { flex: 0 0 100%; margin: 0 0 2px; }
    .footer-col a {
        display: inline-block;
        padding: 3px 10px;
        background: rgba(255, 255, 255, .09);
        border-radius: 14px;
        font-size: 12px;
    }
    .footer-col a:hover { padding-left: 10px; background: rgba(255, 255, 255, .16); }
}

/* ============ v1.7.4 活动英雄榜（参照红色喜庆英雄榜样式） ============ */
.act-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 900px) {
    .act-layout { grid-template-columns: 1fr; }
    .act-board-col { order: -1; }
}

.hero-board {
    background: linear-gradient(160deg, #b71c1c, #8f1414);
    border-radius: 14px;
    padding: 16px 14px 14px;
    color: #fff;
    box-shadow: 0 8px 22px rgba(150, 20, 20, .18);
    position: sticky;
    top: 14px;
}
@media (max-width: 900px) {
    .hero-board { position: static; }
}

.hero-board-title {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #ffd76e;
    text-shadow: 0 2px 0 #7a0f0f;
    margin-bottom: 2px;
}
.hero-board-slogan {
    text-align: center;
    font-size: 12px;
    color: #ffd9a0;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.hero-board-note {
    font-size: 11px;
    color: #ffcfc2;
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

/* 第 1 名：最上方居中大卡 */
.hero-first {
    background: linear-gradient(135deg, #ffe9b0, #ffd76e);
    color: #6d3d00;
    border-radius: 14px;
    padding: 16px 12px 14px;
    text-align: center;
    margin: 8px 0 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
.hero-rank-badge {
    display: inline-block;
    background: #b71c1c;
    color: #ffd76e;
    font-weight: 800;
    font-size: 13px;
    border-radius: 20px;
    padding: 2px 14px;
    margin-bottom: 8px;
}
.hero-avatar-lg {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid #b71c1c;
    object-fit: cover;
    display: block;
    margin: 0 auto 8px;
    background: #fff;
}
.hero-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.hero-avatar-lg.hero-avatar-letter { font-size: 34px; }
.hero-avatar-md.hero-avatar-letter { font-size: 22px; }
.hero-avatar-sm.hero-avatar-letter { font-size: 13px; }
.hero-name-lg {
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}
.hero-name-lg:hover { text-decoration: underline; }
.hero-score-lg {
    font-size: 24px;
    font-weight: 900;
    color: #b71c1c;
    margin-top: 4px;
}

/* 第 2 / 3 名：一行两卡 */
.hero-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.hero-two {
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 12px 8px 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}
.hero-rank-badge-sm {
    font-size: 12px;
    font-weight: 800;
    color: #b71c1c;
    margin-bottom: 6px;
}
.hero-avatar-md {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #ffd76e;
    object-fit: cover;
    display: block;
    margin: 0 auto 6px;
    background: #f5f5f5;
}
.hero-name-md {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-name-md:hover { color: #b71c1c; text-decoration: underline; }
.hero-score-md { font-size: 15px; font-weight: 800; color: #b71c1c; margin-top: 2px; }

/* 第 4-20 名：列表行 */
.hero-list { display: grid; gap: 6px; }
.hero-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: 5px 10px;
}
.hero-row-rank {
    width: 34px;
    font-size: 13px;
    font-weight: 800;
    color: #ffd76e;
    flex: none;
}
.hero-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    background: rgba(255, 255, 255, .3);
}
.hero-row-name {
    flex: 1;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-row-name:hover { color: #ffd76e; text-decoration: underline; }
.hero-row-score {
    font-size: 14px;
    font-weight: 800;
    color: #ffd76e;
    flex: none;
}

/* 查看分享 / 海报 弹窗 */
.mg-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mg-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    max-height: 82vh;
    overflow: auto;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.mg-modal-poster { max-width: 420px; }
.mg-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}


/* ===== v1.12.5 站内确认弹层（兑换二次确认，替代浏览器原生 confirm） ===== */
.mg-mask { position: fixed; inset: 0; background: rgba(17, 32, 23, .45); z-index: 1200;
    display: none; align-items: center; justify-content: center; padding: 16px; }
.mg-mask.on { display: flex; }
.mg-dialog { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 40, 24, .22); animation: mgPop .18s ease-out; }
@keyframes mgPop { from { transform: scale(.94); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.mg-dialog-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 12px; }
.mg-dialog-thumb { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 12px; background: #f4f7f3;
    display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 28px; }
.mg-dialog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-dialog-name { font-size: 16px; font-weight: 700; color: #14532d; margin: 0 0 6px; word-break: break-all; }
.mg-dialog-sub { font-size: 13px; color: #e67e22; font-weight: 700; }
.mg-dialog-body { padding: 0 18px 4px; }
.mg-dialog-row { display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-top: 1px dashed #edf1ed; font-size: 14px; color: #374151; }
.mg-dialog-row:first-child { border-top: none; }
.mg-dialog-row b { color: #14532d; font-weight: 700; }
.mg-dialog-row b.warn { color: #dc2626; }
.mg-dialog-addr { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #f6faf6;
    font-size: 12px; line-height: 1.7; color: #4b5563; border: 1px solid #e3ede3; word-break: break-all; }
.mg-dialog-addr a { color: #16a34a; text-decoration: none; font-weight: 700; }
.mg-dialog-foot { display: flex; gap: 10px; padding: 14px 18px 18px; }
.mg-dialog-foot .btn { flex: 1; text-align: center; }
.mg-dialog-tip { padding: 0 18px 4px; font-size: 12px; color: #9ca3af; }

/* ===== v1.12.5 收货地址列表 ===== */
.addr-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #e5e9e5;
    border-radius: 12px; background: #fff; margin-bottom: 12px; }
.addr-item.is-default { border-color: #b7e0c2; background: #f7fdf8; }
.addr-main { flex: 1; min-width: 0; }
.addr-line1 { font-size: 15px; color: #14532d; font-weight: 700; margin-bottom: 6px; }
.addr-line1 .badge { margin-left: 8px; font-weight: 400; }
.addr-line2 { font-size: 13px; color: #6b7280; line-height: 1.7; word-break: break-all; }
.addr-ops { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.addr-ops .btn { white-space: nowrap; }

/* ===== v1.12.5 积分商城详情页 ===== */
.mall-detail { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.mall-detail-img { flex: 0 0 360px; max-width: 100%; height: 300px; border-radius: 14px; overflow: hidden;
    background: #f4f7f3; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.mall-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.mall-detail-info { flex: 1; min-width: 260px; }
.mall-detail-title { font-size: 22px; font-weight: 700; color: #14532d; margin: 0 0 10px; }
.mall-detail-points { font-size: 30px; font-weight: 700; color: #e67e22; line-height: 1; }
.mall-detail-points span { font-size: 15px; font-weight: 400; color: #9ca3af; margin-left: 4px; }
.mall-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0; font-size: 13px; color: #6b7280; }
.mall-detail-desc { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #e5e9e5;
    font-size: 14px; color: #374151; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.mall-detail-buy { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mall-detail-buy .btn { min-width: 200px; }
.mall-detail-mine { font-size: 13px; color: #6b7280; }

/* ===== v1.13.9 系统通知 / 我的收藏 / 我的点赞 ===== */
.list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.list-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.list-head .section-title { margin: 0; }
.list-count { font-size: 12px; margin-bottom: 10px; }

.notice-item {
    display: block; width: 100%; text-align: left; background: #fff;
    border: 1px solid #E8ECE2; border-radius: 12px; padding: 14px 16px;
    margin-bottom: 10px; cursor: pointer; font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.notice-item:hover { border-color: #2F6B45; box-shadow: 0 2px 10px rgba(47,107,69,.08); }
.notice-item.is-unread { background: #F7FBF8; border-color: #CFE3D6; }
.notice-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice-title { font-size: 15px; color: #333333; font-weight: 600; }
.notice-new { font-size: 11px; color: #fff; background: #C2703D; border-radius: 4px; padding: 1px 6px; }
.notice-time { margin-left: auto; font-size: 12px; color: #888888; }
.notice-body { margin: 8px 0 0; font-size: 13px; color: #666666; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.notice-link { margin: 8px 0 0; font-size: 12px; color: #1F6E38; }

.rec-item {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1px solid #E8ECE2; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.rec-main { flex: 1; min-width: 0; }
.rec-title { display: block; font-size: 15px; font-weight: 600; color: #333333; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rec-title:hover { color: #1F6E38; }
.rec-gone { color: #999999; font-weight: 400; }
.rec-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: #888888; }
.rec-cover { flex: 0 0 96px; width: 96px; height: 66px; border-radius: 8px; overflow: hidden; background: #E8F5EC;
    display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-cover.noimg::after { content: "🌱"; }
.rec-op { flex: 0 0 auto; }

.notice-dot {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px;
    margin-left: 4px; border-radius: 8px; background: #DC2626; color: #fff;
    font-size: 11px; text-align: center; font-weight: 600;
}

.note-vote-bar{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.note-vote-btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.note-vote-btn b{font-weight:600;color:#2f6b45}
.note-vote-btn.is-on{border-color:#2f6b45;background:#eaf3ee;color:#2f6b45}
.note-vote-stat{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#7a8b80;padding-left:4px}

/* ===== 后台侧栏分组折叠（v1.17.2） ===== */
.admin-sidebar nav details.side-group { margin: 0; }
.admin-sidebar nav summary {
    display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.86);
    padding: 10px 20px; font-size: 14px; cursor: pointer; list-style: none;
    border-left: 3px solid transparent; transition: all .2s; user-select: none;
}
.admin-sidebar nav summary::-webkit-details-marker { display: none; }
.admin-sidebar nav summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar nav summary.active { background: rgba(255,255,255,.10); color: #fff; border-left-color: #6ee7a0; font-weight: 600; }
.admin-sidebar nav summary .chev { margin-left: auto; font-size: 12px; opacity: .65; transition: transform .2s; }
.admin-sidebar nav details[open] > summary .chev { transform: rotate(90deg); }
.admin-sidebar nav details > a { padding-left: 38px; font-size: 13.5px; background: rgba(0,0,0,.10); }
.admin-sidebar nav details > a.active { background: rgba(255,255,255,.14); color: #fff; border-left-color: #6ee7a0; font-weight: 600; }

@media (max-width: 768px) {
    .admin-sidebar nav summary { padding: 12px 8px; font-size: 0; justify-content: center; }
    .admin-sidebar nav summary .chev { display: none; }
    .admin-sidebar nav summary::first-letter { font-size: 16px; }
    .admin-sidebar nav details > a { padding: 12px 8px; text-align: center; font-size: 0; }
    .admin-sidebar nav details > a::first-letter { font-size: 16px; }
}


/* ===== 帮助中心改版（v1.17.3） ===== */
.help-hero{background:linear-gradient(135deg,#2d8f4e,#4aa96c);color:#fff;padding:46px 0 40px;text-align:center}
.help-hero h1{font-size:32px;margin:0 0 10px;letter-spacing:2px;font-weight:600}
.help-hero p{margin:0 0 24px;font-size:15px;opacity:.92}
.help-search{max-width:620px;margin:0 auto;display:flex;align-items:center;background:#fff;border-radius:999px;padding:5px 5px 5px 18px;box-shadow:0 8px 22px rgba(0,0,0,.14)}
.help-search input{flex:1;min-width:0;border:0;outline:0;font-size:15px;color:#333;background:transparent;padding:8px 0}
.help-search button{border:0;background:#2d8f4e;color:#fff;border-radius:999px;padding:9px 22px;font-size:15px;cursor:pointer;white-space:nowrap}
.help-search button:hover{background:#267c44}
.help-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:-28px;position:relative;z-index:3}
.help-cat{background:#fff;border:1px solid #e6eee8;border-radius:12px;padding:18px 12px 16px;text-align:center;text-decoration:none;color:#333;transition:border-color .18s,box-shadow .18s,transform .18s}
.help-cat:hover{border-color:#2d8f4e;box-shadow:0 8px 18px rgba(45,143,78,.14);transform:translateY(-2px)}
.help-cat .hc-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#eaf6ee;color:#2d8f4e;font-size:17px;margin-bottom:9px}
.help-cat strong{display:block;font-size:15px;margin-bottom:4px;color:#22301f}
.help-cat em{display:block;font-style:normal;font-size:12px;color:#8a9a90}
.help-body{padding-bottom:6px}
.help-section{padding-top:38px;scroll-margin-top:78px}
.help-section h2{font-size:19px;color:#22301f;margin:0 0 14px;padding-left:11px;border-left:4px solid #2d8f4e;line-height:1.35}
.help-count{font-size:12px;font-weight:400;color:#7d8e80;margin-left:8px}
.help-qa{background:#fff;border:1px solid #e6eee8;border-radius:10px;margin-bottom:10px;overflow:hidden}
.help-qa[open]{border-color:#bcdcc6}
.help-qa summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:14px 16px;font-size:15px;color:#22301f}
.help-qa summary::-webkit-details-marker{display:none}
.help-qa summary::after{content:"\25BC";margin-left:auto;font-size:11px;color:#9bb0a2;transition:transform .2s}
.help-qa[open] summary::after{transform:rotate(180deg)}
.help-qa summary:hover{background:#f6fbf8}
.qa-mark{flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#eaf6ee;color:#2d8f4e;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
.qa-q{flex:1;min-width:0}
.qa-a{padding:0 16px 16px 50px;font-size:14px;line-height:1.8;color:#52604f}
.qa-a p{margin:0}
.help-empty{display:none;text-align:center;color:#7d8e80;padding:26px 0}
.help-foot{padding:34px 0 46px;text-align:center;font-size:14px;color:#52604f}
.help-foot a{color:#2d8f4e}
@media (max-width:900px){
.help-cats{grid-template-columns:repeat(2,1fr)}
.help-hero h1{font-size:26px}
.help-hero{padding:34px 0 32px}
}
@media (max-width:520px){
.help-cats{grid-template-columns:1fr;margin-top:-18px}
.help-search{padding-left:14px}
.help-search button{padding:8px 16px}
.qa-a{padding-left:16px}
}

/* ===== 小知识列表页改版（v1.17.4） ===== */
.kb-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    max-width: 720px;
}
.kb-search input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: border-color .15s;
}
.kb-search input[type="text"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45, 143, 78, .12);
}
.kb-search button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}
.kb-search button:hover { background: var(--green-dark); }

.kb-tip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 9px 14px;
    background: var(--green-light);
    border-radius: 8px;
    color: #4a6b53;
    font-size: 14px;
}
.kb-tip b { color: var(--green-dark); }
.kb-tip a { color: var(--green-dark); font-size: 13px; }

.kb-cats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.kb-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: #4f5b52;
    font-size: 13px;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background .15s;
}
.kb-chip:hover { border-color: var(--green); color: var(--green-dark); }
.kb-chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.kb-chip-more { display: none; }
.kb-cats.expanded .kb-chip-more { display: inline-flex; }
.kb-cats-toggle {
    height: 32px;
    padding: 0 13px;
    border: 1px dashed var(--green);
    border-radius: 16px;
    background: transparent;
    color: var(--green-dark);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.kb-cats-toggle:hover { background: var(--green-light); }

.kb-pagination { flex-wrap: wrap; }
.kb-pagination a,
.kb-pagination span {
    flex: 0 0 auto;
    min-width: 38px;
    text-align: center;
    white-space: nowrap;
}
.kb-pagination .page-gap {
    min-width: auto;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: var(--text-light);
}
.kb-pagination .page-btn { padding: 6px 14px; }

@media (max-width: 768px) {
    .kb-search { max-width: none; }
    .kb-search input[type="text"] { height: 40px; font-size: 16px; }
    .kb-search button { height: 40px; padding: 0 16px; }
    .kb-chip { height: 30px; padding: 0 11px; font-size: 12px; }
    .kb-cats-toggle { height: 30px; padding: 0 11px; font-size: 12px; }
}

/* ===== 小知识详情页侧栏二维码（v1.17.5） ===== */
.kb-qr-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 4px 0 2px;
}
.kb-qr-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 132px;
    padding: 10px 8px;
    background: #f7fbf8;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}
.kb-qr-item img {
    display: block;
    width: 100%;
    max-width: 96px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
}
.kb-qr-item p {
    margin: 6px 0 0;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kb-qr-item em {
    font-style: normal;
    font-size: 11px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .kb-qr-item { max-width: 150px; }
}

/* ===== 种植参考二级导航（横向胶囊，v1.17.7） ===== */
.subnav-wrap {
    padding-top: 20px;
    margin-bottom: -24px;
}
.subnav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.subnav-pills a {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 19px;
    background: #eef7f0;
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.subnav-pills a:hover {
    background: #dcefe1;
    color: var(--green-dark);
}
.subnav-pills a.on {
    background: var(--green);
    color: #fff;
    font-weight: 600;
}
.subnav-pills a.on:hover {
    background: var(--green-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .subnav-wrap { padding-top: 14px; margin-bottom: -18px; }
    .subnav-pills { gap: 8px; }
    .subnav-pills a { height: 34px; padding: 0 16px; font-size: 13px; border-radius: 17px; }
}

/* ===== v1.18.3 全站统一弹窗（替代浏览器原生 confirm / alert / prompt） ===== */
.mgdl-mask {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(20, 34, 24, .44);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
    opacity: 0;
    transition: opacity .18s ease;
}
.mgdl-mask.is-on { opacity: 1; }
.mgdl-box {
    width: 100%;
    max-width: 392px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(20, 32, 22, .18);
    padding: 22px 22px 18px;
    transform: translateY(10px) scale(.985);
    transition: transform .18s ease;
}
.mgdl-mask.is-on .mgdl-box { transform: none; }
.mgdl-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}
.mgdl-bar {
    flex: none;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--green);
}
.mgdl-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .2px;
}
.mgdl-body {
    color: #555;
    font-size: 14px;
    line-height: 1.78;
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 50vh;
    overflow-y: auto;
}
.mgdl-input {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fbfcfa;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.mgdl-input:focus {
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 143, 78, .12);
}
.mgdl-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.mgdl-foot .btn { min-width: 84px; padding: 8px 18px; }
@media (max-width: 480px) {
    .mgdl-box { max-width: 100%; padding: 18px 16px 14px; }
    .mgdl-foot .btn { flex: 1; }
}
