:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e4ebe4;
    --bg: #f6f8f6;
    --card: #ffffff;
    --green: #2e7d32;
    --green-d: #1b5e20;
    --green-l: #e8f5e9;
    --gold: #c8a24a;
    --danger: #b3261e;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -.01em;
}

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.muted {
    color: var(--muted);
}

/* ---------- 顶部导航 ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(46, 125, 50, .28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: normal;
}

.brand-text small {
    font-size: 9px;
    letter-spacing: .18em;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 4px;
    flex: 1;
}

.nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 500;
    transition: background .15s, color .15s;
}

.nav a:hover {
    background: #f1f5f1;
    color: var(--ink);
}

.nav a.active {
    color: var(--green-d);
    background: var(--green-l);
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    flex: none;
}

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s, box-shadow .15s, background .15s;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-d));
    color: #fff;
    box-shadow: 0 8px 18px rgba(46, 125, 50, .22);
}

.btn-primary:hover {
    box-shadow: 0 10px 24px rgba(46, 125, 50, .3);
}

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-2);
}

.btn-ghost:hover {
    background: #fbfdfb;
    border-color: #d3e0d3;
}

.btn-lg {
    height: 46px;
    padding: 0 26px;
    font-size: 14px;
    border-radius: 12px;
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(1000px 400px at 12% -10%, #dff0dd 0%, transparent 60%),
        linear-gradient(180deg, #eef7ec 0%, #f6f8f6 100%);
    border-bottom: 1px solid #e9f0e7;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 64px;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--green);
}

.hero h1 {
    font-size: 44px;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.hero-sub {
    margin: 18px 0 30px;
    font-size: 15px;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex: none;
}

.stat {
    width: 108px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--green-d);
    line-height: 1.2;
}

.stat-label {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 主体两栏 ---------- */

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 64px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: 20px;
}

.section-head a {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s, box-shadow .18s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px rgba(15, 23, 42, .09);
}

.news-cover {
    height: 116px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.cover-policy { background: linear-gradient(135deg, #2e7d32, #4c9a50); }
.cover-wheat { background: linear-gradient(135deg, #b98a2e, #d9b45a); }
.cover-greenhouse { background: linear-gradient(135deg, #1f6f5c, #3fa383); }
.cover-coldchain { background: linear-gradient(135deg, #2b5b8c, #4a87c4); }
.cover-safety { background: linear-gradient(135deg, #7a4a2b, #a9714b); }
.cover-machine { background: linear-gradient(135deg, #4a4a63, #6d6d8f); }
.cover-soil { background: linear-gradient(135deg, #6b4b2a, #946b3f); }
.cover-market { background: linear-gradient(135deg, #5c2f5e, #8a4f8d); }

.news-body {
    padding: 16px 18px 18px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
}

.tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--green-l);
    color: var(--green-d);
    font-size: 11px;
    font-weight: 600;
}

.news-body h3 {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-body p {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-foot {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px solid #f0f4f0;
}

/* ---------- 侧栏 ---------- */

.side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-head h2,
.card-head h3 {
    font-size: 15px;
}

.card-head a {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.quote-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-table tr + tr td {
    border-top: 1px solid #f1f5f1;
}

.quote-table td {
    padding: 11px 0;
    font-size: 13px;
    vertical-align: middle;
}

.quote-table td strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.quote-table td small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.quote-table .num {
    text-align: right;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.quote-table .num small {
    font-weight: 400;
}

.trend {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 64px;
}

.trend-up { color: #c0392b; }
.trend-down { color: #2e7d32; }
.trend-flat { color: var(--muted); }

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notice-list li {
    display: flex;
    gap: 10px;
}

.notice-list .dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--green);
}

.dot-success { background: #2e7d32; }
.dot-warning { background: #d97706; }
.dot-danger { background: var(--danger); }
.dot-info { background: #2563eb; }

.notice-list strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.notice-list p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- 页脚 ---------- */

.footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 34px 0;
}

.footer-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand strong {
    font-size: 15px;
}

.footer-brand p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 溯源页 ---------- */

.trace-wrap {
    padding: 56px 32px 72px;
}

.trace-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px;
}

.trace-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f4f0;
}

.trace-head h2 {
    font-size: 22px;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
}

.trace-empty {
    padding: 32px 0;
}

.trace-empty p {
    margin: 0 0 10px;
    color: var(--ink-2);
}

.trace-foot {
    padding-top: 20px;
    border-top: 1px solid #f0f4f0;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ok {
    background: var(--green-l);
    color: var(--green-d);
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

/* ---------- 后台 ---------- */

.admin-body {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bg);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #10241a;
    color: #dce8df;
    padding: 22px 16px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
    box-shadow: none;
}

.sidebar-brand div {
    line-height: 1.3;
}

.sidebar-brand strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.sidebar-brand small {
    font-size: 11px;
    color: rgba(220, 232, 223, .65);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
}

.sidebar-nav a {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    color: rgba(220, 232, 223, .82);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, .06);
}

.sidebar-nav a.active {
    background: rgba(46, 125, 50, .28);
    color: #fff;
    font-weight: 600;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    padding: 12px 8px 0;
    font-size: 11px;
    color: rgba(220, 232, 223, .55);
}

.admin-main {
    padding: 34px 40px 64px;
    max-width: 1020px;
}

.admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.admin-head h1 {
    font-size: 24px;
}

.admin-head p {
    margin: 6px 0 0;
    font-size: 13px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-ok {
    background: var(--green-l);
    color: var(--green-d);
    border: 1px solid #c9e6c9;
}

.rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.row {
    position: relative;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdfb;
}

.row-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.row-grid label,
.row label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: var(--ink-2);
    font-weight: 500;
}

.row-grid .span-2 {
    grid-column: span 2;
}

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #dde6dd;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #9cc79d;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

.row-switches {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding-bottom: 4px;
}

.switch {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
}

.switch input {
    width: 15px;
    height: 15px;
    accent-color: var(--green);
}

.row-del {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--danger);
    border-color: #f0d6d4;
}

.row-actions {
    margin-top: 14px;
}

.row-empty {
    padding: 10px 0;
    margin: 0;
}

.admin-submit {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0 24px;
}

/* ---------- 启动广告 ---------- */

.ad-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(10, 20, 14, .72);
    padding: 24px;
}

/* 作者样式里的 display 会盖掉浏览器对 [hidden] 的默认隐藏，这里显式让位 */
.ad-mask[hidden],
.notice-dock[hidden] {
    display: none !important;
}

.ad-card {
    position: relative;
    width: min(720px, 92vw);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: adIn .22s ease-out;
}

@keyframes adIn {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.ad-close-row {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.ad-close {
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.ad-close:disabled {
    opacity: .55;
    cursor: default;
}

.ad-media {
    height: 280px;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    background-image: linear-gradient(135deg, #276b2b, #4f9a52);
}

.ad-media-fallback {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .96);
}

.ad-body {
    padding: 24px 28px 26px;
}

.ad-body h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.ad-body p {
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: 13px;
}

/* ---------- 右下角公告 ---------- */

.notice-dock {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: 344px;
    max-width: calc(100vw - 32px);
}

.notice-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 16px 40px 16px 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
    animation: noticeIn .24s ease-out;
}

@keyframes noticeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.notice-item.notice-success { border-left-color: #2e7d32; }
.notice-item.notice-warning { border-left-color: #d97706; }
.notice-item.notice-danger { border-left-color: var(--danger); }
.notice-item.notice-info { border-left-color: #2563eb; }

.notice-item strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.notice-item p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--ink-2);
    line-height: 1.55;
}

.notice-item a {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
}

.notice-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: #f1f5f1;
    color: var(--muted);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.notice-x:hover {
    background: #e6ede6;
    color: var(--ink);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .wrap {
        padding: 0 18px;
    }

    .nav {
        display: none;
    }

    .hero-inner {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
    }

    .sidebar-brand {
        border: 0;
        padding: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        margin: 0;
    }

    .sidebar-foot {
        display: none;
    }

    .admin-main {
        padding: 24px 18px 48px;
    }

    .row-grid {
        grid-template-columns: 1fr;
    }

    .row-grid .span-2 {
        grid-column: span 1;
    }
}

/* 应用更新页 */
.alert-bad { background:#FEE4E2; color:#B3261E; border:1px solid #FECDCA; }
.icon-row { display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; }
.icon-preview { width:96px; height:96px; border-radius:16px; background:#F1F5F1; display:grid; place-items:center; text-align:center; font-size:12px; }
.icon-preview img { width:72px; height:72px; object-fit:contain; }
.icon-form { display:flex; flex-direction:column; gap:10px; }
.package-info { margin-bottom:16px; }
.package-line { display:flex; gap:12px; align-items:center; margin-bottom:6px; }
.package-form { display:flex; flex-direction:column; gap:10px; }
.mono { font-family:Consolas, ui-monospace, monospace; font-size:12px; }

/* ---------- 客户端下载页 ---------- */

.dl-hero {
    background:
        radial-gradient(1000px 420px at 12% -10%, rgba(46, 125, 50, .10), transparent 70%),
        radial-gradient(760px 380px at 92% 8%, rgba(200, 162, 74, .14), transparent 72%),
        linear-gradient(180deg, #f2f8f2 0%, #fbfbf6 100%);
    border-bottom: 1px solid var(--line);
}

.dl-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
    gap: 52px;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 60px;
}

.dl-copy h1 {
    margin: 12px 0 18px;
    font-size: 42px;
    line-height: 1.24;
    color: var(--ink);
}

.dl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.dl-disabled {
    opacity: .55;
    pointer-events: none;
}

.dl-facts {
    display: flex;
    gap: 44px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.dl-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-facts strong {
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -.01em;
}

.dl-facts span {
    font-size: 12px;
    color: var(--muted);
}

.dl-hash {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.dl-hash code {
    font-family: Consolas, ui-monospace, monospace;
    color: var(--ink-2);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
}

.dl-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    text-align: center;
}

.dl-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(46, 125, 50, .22);
}

.dl-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dl-card h3 {
    font-size: 18px;
}

.dl-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    text-align: left;
}

.dl-meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-meta dt {
    font-size: 12px;
    color: var(--muted);
}

.dl-meta dd {
    margin: 0;
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
}

.dl-section {
    padding-top: 44px;
    padding-bottom: 8px;
}

.dl-section:last-of-type,
.dl-last {
    padding-bottom: 64px;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.dl-feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 22px;
}

.dl-feature-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green-l);
    color: var(--green-d);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.dl-feature h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.dl-feature p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.dl-log {
    margin-top: 20px;
    padding: 24px 26px;
}

.dl-log-body {
    margin: 0;
    color: var(--ink-2);
    line-height: 1.85;
    font-size: 13.5px;
}

.dl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.dl-list {
    margin: 4px 0 0;
    padding-left: 20px;
    color: var(--ink-2);
    line-height: 2;
    font-size: 13.5px;
}

.dl-list li::marker {
    color: var(--green);
}

@media (max-width: 1080px) {
    .dl-hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 44px;
    }

    .dl-copy h1 {
        font-size: 32px;
    }

    .dl-facts {
        gap: 28px;
        flex-wrap: wrap;
    }

    .dl-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dl-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dl-copy h1 {
        font-size: 26px;
    }

    .dl-grid {
        grid-template-columns: 1fr;
    }

    .dl-meta {
        grid-template-columns: 1fr;
    }
}

/* ---------- 注册 / 登录 ---------- */
.auth-page {
    padding: 56px 0 88px;
    background: linear-gradient(180deg, #F6FAF4 0%, #FFFFFF 100%);
}

.auth-wrap {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 432px;
    background: #fff;
    border: 1px solid #E3EBDF;
    border-radius: 18px;
    padding: 36px 34px 30px;
    box-shadow: 0 18px 48px rgba(27, 94, 32, .08);
}

.auth-head {
    text-align: center;
    margin-bottom: 24px;
}

.auth-head .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #2E7D32;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}

.auth-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
    color: #1F2A1D;
}

.auth-head p {
    margin: 0;
    color: #7A8476;
    font-size: 13px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-form label > span {
    font-size: 13px;
    color: #4A5448;
    font-weight: 600;
}

.auth-form label small {
    color: #8A9487;
    font-size: 12px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #DCE5D8;
    border-radius: 10px;
    background: #FBFDFA;
    font-size: 14px;
    color: #222;
    transition: border-color .16s, box-shadow .16s;
}

.auth-form input:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
    background: #fff;
}

.btn-block {
    width: 100%;
    height: 46px;
    font-size: 15px;
}

.auth-foot {
    margin: 18px 0 0;
    text-align: center;
    color: #7A8476;
    font-size: 13px;
}

.auth-foot a {
    color: #2E7D32;
    font-weight: 600;
}

.alert-warn {
    background: #FFF8E6;
    border: 1px solid #F3E0AE;
    color: #8A6414;
}

/* ---------- 个人中心 ---------- */
.account-page {
    padding: 40px 0 80px;
    background: #F7FAF5;
}

.account-grid {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 22px;
    align-items: start;
}

.account-side {
    text-align: center;
    padding: 26px 20px 20px;
    position: sticky;
    top: 20px;
}

.account-avatar {
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(46, 125, 50, .24);
}

.account-name {
    display: block;
    font-size: 16px;
    color: #1F2A1D;
    margin-bottom: 4px;
    word-break: break-all;
}

.account-side .muted {
    display: block;
    font-size: 12px;
    margin-bottom: 18px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    border-top: 1px dashed #E3EBDF;
    padding-top: 14px;
}

.account-nav a {
    padding: 10px 12px;
    border-radius: 9px;
    color: #46503F;
    font-size: 14px;
}

.account-nav a:hover {
    background: #F1F7EE;
}

.account-nav a.active {
    background: #E8F5E9;
    color: #1B5E20;
    font-weight: 600;
}

.account-logout {
    display: block;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #E3EBDF;
    color: #B5453C;
    font-size: 13px;
}

.kv {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #EDF3EA;
    border-radius: 10px;
    overflow: hidden;
}

.kv > div {
    background: #fff;
    padding: 14px 16px;
}

.kv dt {
    color: #8A9487;
    font-size: 12px;
    margin-bottom: 6px;
}

.kv dd {
    margin: 0;
    color: #1F2A1D;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

/* ---------- 后台：开关列表 ---------- */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h1 {
    font-size: 22px;
    margin: 0 0 6px;
}

.page-head p {
    margin: 0;
    font-size: 13px;
}

.check-list {
    display: flex;
    flex-direction: column;
}

.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px dashed #E7EDE5;
    cursor: pointer;
}

.check-row:last-child {
    border-bottom: none;
}

.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2E7D32;
    flex: none;
}

.check-row span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.check-row strong {
    font-size: 14px;
    color: #1F2A1D;
}

.check-row small {
    font-size: 12px;
    color: #8A9487;
    line-height: 1.5;
}

.form-foot {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.topbar-user {
    font-size: 13px;
    color: #2E7D32;
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-side {
        position: static;
    }

    .kv {
        grid-template-columns: 1fr;
    }
}
