/* =====================================================
   眸耕｜阳台种菜养花助手 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; }
@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;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 380px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-left: 4px solid transparent;
    animation: flash-in 0.25s ease-out;
    word-break: break-all;
}
.flash-success { background: #eef7ee; color: #2d6a3b; border-color: #2d8f4e; }
.flash-error { background: #fdf0ef; color: #a94442; border-color: #d9534f; }
.flash-warning { background: #fef9ec; color: #8a6d3b; border-color: #e6a700; }
@keyframes flash-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
    .flash { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ---------- 表格 ---------- */
.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; }
.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; }

/* 移动端 */
@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.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 300px; 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;
    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-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, 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);
}
.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) {
    .footer-top { flex-direction: column; gap: 22px; }
    .footer-qr { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
