/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 50%, #f0f2f5 100%);
    color: #1e293b;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }

/* ── Nav (Glassmorphism) ── */
.nav {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    width: 100%; padding: 0 48px;
    height: 64px; display: flex; align-items: center; gap: 20px;
}
.nav-logo {
    display: flex; align-items: center;
    white-space: nowrap; flex-shrink: 0;
}
.nav-logo-img {
    display: block; height: 32px; width: auto;
}
.nav-links { display: flex; gap: 10px; }
.nav-sections { display: flex; gap: 2px; margin-left: 24px; margin-right: auto; }
.nav-section {
    padding: 8px 20px; border-radius: 8px; font-size: 15px;
    font-weight: 600; color: #64748b; transition: all .2s;
    white-space: nowrap;
}
.nav-section:hover { background: #f1f5f9; color: #1e293b; }
.nav-section.active { background: #2563eb; color: #fff; }
.nav-section.active:hover { background: #1d4ed8; color: #fff; }
.nav-btn {
    padding: 8px 18px; border-radius: 8px; font-size: 14px;
    font-weight: 500; border: none; cursor: pointer;
    background: #2563eb; color: #fff; transition: all .2s;
    white-space: nowrap;
}
.nav-btn:hover { background: #1d4ed8; color: #fff; }
.nav-btn-outline { background: transparent; border:1px solid #e2e8f0; color:#1e293b; }
.nav-btn-outline:hover { background:#f1f5f9; color:#1e293b; }
.nav-btn-donate { background: #f59e0b; }
.nav-btn-donate:hover { background: #d97706; }

/* ── Main ── */
.main { width: 100%; padding: 32px 48px; flex: 1; }

/* ── Filter Bar ── */
.filter-bar {
    background: #fff; border-radius: 14px; padding: 18px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); margin-bottom: 20px;
}
.filter-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-search-wrap { flex-shrink: 0; }
.filter-search-form { display: flex; align-items: center; gap: 0; }
.filter-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid #e2e8f0;
    border-radius: 10px; background: #f8fafc; cursor: pointer;
    color: #64748b; transition: all .2s;
}
.filter-search-btn:hover { background: #eff6ff; border-color: #2563eb; color: #2563eb; }
.filter-search-input {
    width: 0; padding: 0; border: 1px solid transparent;
    border-radius: 10px; font-size: 14px; outline: none;
    transition: all .25s ease; opacity: 0;
}
.filter-search-input.active {
    width: 220px; padding: 8px 14px; border-color: #e2e8f0;
    background: #f8fafc; opacity: 1;
}
.filter-search-input.active:focus {
    border-color: #2563eb; background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.filter-tab {
    padding: 6px 16px; border-radius: 8px; font-size: 14px;
    font-weight: 500; color: #64748b; transition: all .2s;
    border: 1px solid transparent;
}
.filter-tab:hover { background: #f1f5f9; color: #1e293b; }
.filter-tab.active { background: #2563eb; color: #fff; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
    padding: 5px 14px; border-radius: 6px; font-size: 13px;
    color: #64748b; background: #f1f5f9; transition: all .2s;
}
.filter-tag:hover { background: #dbeafe; color: #2563eb; }
.filter-tag.active { background: #dbeafe; color: #2563eb; font-weight: 600; }
.filter-tags { margin-top: 4px; }

/* ── Toolbar ── */
.toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.result-count { font-size: 14px; color: #64748b; }
.sort-bar { display: flex; gap: 4px; }
.sort-link {
    padding: 4px 12px; border-radius: 6px; font-size: 13px;
    color: #94a3b8; transition: all .2s;
}
.sort-link:hover { color: #1e293b; background: #f1f5f9; }
.sort-link.active { color: #2563eb; font-weight: 600; }

/* ── Plugin Grid ── */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.plugin-card {
    background: #fff; border-radius: 14px; padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; cursor: pointer;
}
.plugin-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.plugin-card-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.plugin-type-badge {
    display: inline-block; padding: 3px 10px; border-radius: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    background: #e2e8f0; color: #475569;
}
/* File type badge colors */
.type-lsp { background: #dbeafe; color: #1d4ed8; }
.type-dll { background: #fce7f3; color: #be185d; }
.type-fas { background: #fef3c7; color: #b45309; }
.type-vlx { background: #ede9fe; color: #7c3aed; }
.type-cs { background: #ccfbf1; color: #0f766e; }
.type-arx { background: #fee2e2; color: #b91c1c; }
.type-crx { background: #fce7f3; color: #be185d; }
.type-dbx { background: #fef3c7; color: #b45309; }
.type-dvb { background: #d1fae5; color: #047857; }
.type-dcl { background: #e0e7ff; color: #4338ca; }
.type-mnl { background: #f1f5f9; color: #475569; }
.type-cui { background: #fef3c7; color: #b45309; }
.type-cuix { background: #fef3c7; color: #b45309; }
.type-bundle { background: #ede9fe; color: #7c3aed; }
.type-zip { background: #f1f5f9; color: #475569; }
.type-rar { background: #f1f5f9; color: #475569; }
.type-7z { background: #f1f5f9; color: #475569; }
.type-txt { background: #f1f5f9; color: #475569; }

.plugin-tag-label {
    font-size: 12px; color: #2563eb; background: #eff6ff;
    padding: 2px 8px; border-radius: 4px;
}
.plugin-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.plugin-desc {
    font-size: 13px; color: #64748b; flex: 1; margin-bottom: 10px;
    line-height: 1.5; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plugin-meta {
    display: flex; justify-content: space-between;
    font-size: 13px; color: #94a3b8; margin-bottom: 10px;
}
.plugin-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.plugin-info { font-size: 12px; color: #94a3b8; }
.plugin-footer-actions { display: flex; align-items: center; gap: 6px; }
.netdisk-badge {
    font-size: 13px; padding: 6px 14px; border-radius: 8px;
    background: #dbeafe; color: #1d4ed8; font-weight: 500;
    cursor: pointer; transition: background .2s;
}
.netdisk-badge:hover { background: #bfdbfe; }
.dl-btn {
    padding: 6px 18px; background: #2563eb; color: #fff;
    border-radius: 8px; font-size: 13px; font-weight: 500;
    transition: background .2s; cursor: pointer;
}
.dl-btn:hover { background: #1d4ed8; }

/* ── Hot Ranking ── */
.hot-section {
    background: #fff; border-radius: 14px; padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 24px;
}
.hot-header { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.hot-list { display: flex; flex-direction: column; gap: 6px; }
.hot-item {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 12px; border-radius: 8px; transition: background .15s;
}
.hot-item:hover { background: #f8fafc; }
.hot-rank {
    width: 24px; height: 24px; display: flex; align-items: center;
    justify-content: center; border-radius: 6px;
    font-size: 13px; font-weight: 700; color: #94a3b8; background: #f1f5f9;
    flex-shrink: 0;
}
.rank-1 { background: #fef3c7; color: #d97706; }
.rank-2 { background: #f1f5f9; color: #64748b; }
.rank-3 { background: #fef2f2; color: #dc2626; }
.hot-name { flex: 1; font-size: 14px; font-weight: 500; color: #1e293b; }
.hot-dl { font-size: 12px; color: #94a3b8; white-space: nowrap; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.page-link {
    padding: 8px 14px; border-radius: 8px; font-size: 14px;
    background: #fff; border: 1px solid #e2e8f0; color: #1e293b; transition: all .2s;
}
.page-link:hover { border-color: #2563eb; color: #2563eb; }
.page-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.page-active:hover { color: #fff; }

/* ── Narrow Container for Detail Pages ── */
.container-narrow { max-width: 760px; margin: 0 auto; }

/* ── Empty State ── */
.empty { text-align: center; padding: 80px 20px; color: #94a3b8; }
.empty svg { margin-bottom: 16px; }
.empty p { font-size: 15px; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #f0fdf4; color: #166534; border:1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border:1px solid #fecaca; }

/* ── Forms ── */
.upload-form { background: #fff; padding: 28px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.required { color: #ef4444; }
.form-input {
    width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 15px; outline: none;
    transition: border .2s; background: #fff;
}
.form-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-file { width: 100%; padding: 8px 0; font-size: 14px; }
.form-file::file-selector-button {
    padding: 8px 16px; border-radius: 8px; border: 1px solid #e2e8f0;
    background: #f8fafc; font-size: 14px; cursor: pointer; margin-right: 12px;
}
.form-file::file-selector-button:hover { background: #f1f5f9; }

/* ── Category Picker ── */
.category-picker { display: flex; flex-direction: column; gap: 10px; }
.cat-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; }
.cat-group-title { font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 8px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 6px; font-size: 13px;
    cursor: pointer; transition: all .2s; background: #f1f5f9;
}
.cat-tag:hover { background: #dbeafe; }
.cat-tag input[type="checkbox"] { display: none; }
.cat-tag input[type="checkbox"]:checked + span {
    color: #2563eb; font-weight: 600;
}
.cat-tag input[type="checkbox"]:checked ~ span,
.cat-tag:has(input:checked) { background: #dbeafe; }
.cat-tag:has(input:checked) { background: #dbeafe; }

/* ── Buttons ── */
.btn {
    padding: 10px 24px; border-radius: 8px; font-size: 15px;
    font-weight: 500; border: none; cursor: pointer; transition: all .2s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-success { background: #22c55e; color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.text-muted { color: #94a3b8; font-size: 14px; }

/* ── Back Link ── */
.back-link { display: inline-block; margin-bottom: 16px; font-size: 14px; color: #64748b; }
.back-link:hover { color: #2563eb; }

/* ── Detail Page ── */
.detail-card {
    background: #fff; border-radius: 16px; padding: 36px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.detail-header { margin-bottom: 12px; }
.detail-header .plugin-type-badge { margin-bottom: 8px; }
.detail-title { font-size: 24px; font-weight: 700; margin-top: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-tag {
    padding: 4px 12px; border-radius: 6px; font-size: 13px;
    background: #eff6ff; color: #2563eb;
}
.detail-desc { font-size: 15px; color: #475569; line-height: 1.7; margin-bottom: 24px; }
.detail-info {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
    gap: 12px; margin-bottom: 28px; padding: 20px;
    background: #f8fafc; border-radius: 12px;
}
.detail-info-item { font-size: 14px; }
.detail-info-label { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 2px; }
.btn-download {
    display: inline-block; padding: 14px 40px; font-size: 16px;
    border-radius: 10px;
}

.btn-netdisk {
    background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe;
}
.btn-netdisk:hover { background: #bfdbfe; color: #1e40af; }

.detail-downloads {
    display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── Admin Login ── */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f0f2f5; }
.login-box { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); width: 100%; max-width: 380px; }
.login-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 24px; }
.login-form .form-group { margin-bottom: 20px; }

/* ── Admin Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.stat-card-plugin { background: #f0f4ff; border: 1px solid #dbeafe; }
.stat-card-visit { background: #fff; border: 1px solid #dbeafe; }
.stats-divider { height: 1px; background: #e2e8f0; margin: 4px 0 16px 0; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: #2563eb; }
.stat-label { font-size: 13px; color: #94a3b8; margin-top: 4px; }

/* ── Admin Tabs ── */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); flex-wrap: wrap; }
.admin-tab { flex: 1; padding: 10px; border: none; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; color: #64748b; transition: all .2s; min-width: 80px; }
.admin-tab.active { background: #2563eb; color: #fff; }
.admin-tab:hover:not(.active) { background: #f1f5f9; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.panel-toolbar { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }

/* ── Admin Table ── */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-table th { text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 600; color: #64748b; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.admin-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f1f5f9; }
.admin-table tr:last-child td { border-bottom: none; }
.action-cell { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; }
.mini-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #e2e8f0; color: #475569; }
.search-input-inline { max-width: 300px; }

/* ── Category Management ── */
.cat-mgr-group { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cat-mgr-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cat-mgr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-mgr-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 6px; font-size: 13px; background: #f1f5f9; }

/* ── Donation ── */
.donation-section { background: #fff; padding: 28px; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.section-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.qrcode-preview { margin-top: 24px; padding-top: 24px; border-top: 1px solid #f1f5f9; text-align: center; }
.qrcode-preview img { max-width: 240px; border-radius: 10px; border: 1px solid #e2e8f0; margin-bottom: 12px; }
.donation-toggle { margin-top: 24px; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.toggle-label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

/* ── Modal ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 200; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; padding: 32px; border-radius: 16px; width: 90%; max-width: 360px; text-align: center; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,0.15); margin: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; color: #94a3b8; cursor: pointer; padding: 4px; line-height: 1; }
.modal-close:hover { color: #475569; }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-qrcode img { max-width: 240px; border-radius: 8px; margin-bottom: 12px; }
.modal-hint { font-size: 13px; color: #94a3b8; }

/* ── Notices Page ── */
.notice-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid #e2e8f0; }
.notice-tab { padding: 10px 24px; text-decoration: none; color: #64748b; font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.notice-tab:hover { color: #2563eb; }
.notice-tab.active { color: #2563eb; border-bottom-color: #2563eb; }

/* ── Article List (inbox style) ── */
.article-list { display: flex; flex-direction: column; gap: 1px; background: #e2e8f0; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.article-card { display: block; background: #fff; padding: 20px 24px; text-decoration: none; transition: background 0.15s; }
.article-card:hover { background: #f8fafc; }
.article-card + .article-card { border-top: 1px solid #f1f5f9; }
.article-meta-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 12px; }
.article-date { color: #94a3b8; }
.article-plugin-tag { color: #2563eb; background: #eff6ff; padding: 1px 8px; border-radius: 3px; font-size: 11px; }
.article-pinned { color: #b45309; background: #fef3c7; padding: 1px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.article-title { font-size: 16px; font-weight: 600; color: #1e293b; margin-bottom: 6px; line-height: 1.4; }
.article-excerpt { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Article Reader (email-style reading) ── */
.article-reader { max-width: 800px; margin: 0 auto; }
.article-reader-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.article-reader-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.article-reader-type { background: #eff6ff; color: #2563eb; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.article-reader-date { color: #94a3b8; }
.article-reader-plugin { color: #7c3aed; background: #f5f3ff; padding: 2px 10px; border-radius: 4px; font-size: 12px; }
.article-reader-title { font-size: 24px; font-weight: 700; color: #0f172a; line-height: 1.35; }
.article-reader-body { font-size: 15px; line-height: 1.8; color: #334155; }

/* ── Markdown Body ── */
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { color: #1e293b; margin: 20px 0 10px; font-weight: 600; }
.markdown-body h1 { font-size: 20px; }
.markdown-body h2 { font-size: 17px; }
.markdown-body h3 { font-size: 15px; }
.markdown-body p { margin: 0 0 12px; }
.markdown-body ul, .markdown-body ol { padding-left: 20px; margin: 0 0 12px; }
.markdown-body li { margin-bottom: 4px; }
.markdown-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #e11d48; }
.markdown-body pre { background: #1e293b; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; margin: 0 0 12px; }
.markdown-body pre code { background: none; color: inherit; padding: 0; }
.markdown-body blockquote { border-left: 3px solid #2563eb; padding: 8px 16px; margin: 0 0 12px; background: #f8fafc; border-radius: 0 8px 8px 0; color: #475569; }
.markdown-body table { border-collapse: collapse; width: 100%; margin: 0 0 12px; }
.markdown-body th, .markdown-body td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; font-size: 13px; }
.markdown-body th { background: #f8fafc; font-weight: 600; }
.markdown-body a { color: #2563eb; text-decoration: underline; }
.markdown-body img { max-width: 100%; border-radius: 8px; }
.markdown-body hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }

/* ── Messages Section ── */
.messages-section {
    margin-top: 32px; background: #fff; border-radius: 16px;
    padding: 28px; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.messages-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.messages-hint { font-size: 13px; color: #94a3b8; margin-bottom: 16px; }
.messages-form { margin-bottom: 24px; padding: 16px; background: #f8fafc; border-radius: 12px; }
.messages-list { display: flex; flex-direction: column; gap: 12px; }
.message-item {
    padding: 16px; border-radius: 10px; background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.message-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.message-author { font-size: 14px; font-weight: 600; color: #2563eb; }
.message-date { font-size: 12px; color: #94a3b8; }
.message-body { font-size: 14px; color: #334155; line-height: 1.7; }

/* ── Message Reply ── */
.msg-reply-btn {
    display: inline-block; margin-top: 8px; padding: 3px 12px;
    border: 1px solid #e2e8f0; border-radius: 6px; background: #fff;
    font-size: 12px; color: #64748b; cursor: pointer; transition: all .15s;
}
.msg-reply-btn:hover { border-color: #2563eb; color: #2563eb; }
.msg-reply-indicator {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; background: #eff6ff; border-radius: 8px;
    margin-bottom: 12px; font-size: 13px;
}
.msg-reply-target { color: #2563eb; font-weight: 500; flex: 1; }
.msg-reply-cancel {
    border: none; background: none; color: #ef4444;
    font-size: 13px; cursor: pointer; padding: 2px 8px;
}
.msg-reply-cancel:hover { text-decoration: underline; }
.message-replies {
    margin-top: 10px; margin-left: 20px; padding-left: 14px;
    border-left: 3px solid #dbeafe; display: flex;
    flex-direction: column; gap: 8px;
}
.message-reply { background: #fafbfc; padding: 12px 14px; }

/* ── Standards Page ── */
.standards-list { display: flex; flex-direction: column; gap: 10px; }
.standard-card-link { display: block; text-decoration: none; color: inherit; }
.standard-card {
    background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all .2s;
}
.standard-card-link:hover .standard-card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.standard-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 24px; gap: 16px;
}
.standard-title { font-size: 16px; font-weight: 600; color: #1e293b; }
.netdisk-badge-sm {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
    background: #dbeafe; color: #1d4ed8; white-space: nowrap;
    transition: background .2s;
}
.standard-card-link:hover .netdisk-badge-sm { background: #bfdbfe; }

/* ── Section Header ── */
.section-header { display: flex; align-items: flex-start; margin-bottom: 24px; }
.section-title-lg { font-size: 24px; font-weight: 700; line-height: 1.3; }
.section-desc { font-size: 14px; color: #64748b; margin-top: 4px; }

/* ── Standards Admin ── */
.standards-admin-list { display: flex; flex-direction: column; gap: 8px; }
.standards-admin-item {
    background: #fff; border-radius: 10px; padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); border: 1px solid #f1f5f9;
}
.standards-admin-header {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.standards-admin-header strong { font-size: 14px; }
.std-sort-handle {
    cursor: grab; font-size: 18px; color: #94a3b8; user-select: none;
    padding: 2px 4px; border-radius: 4px; line-height: 1;
}
.std-sort-handle:hover { color: #2563eb; background: #f1f5f9; }
.standards-admin-item:active { cursor: grabbing; }
.standards-admin-item[draggable="true"]:hover { border-color: #2563eb; background: #f8fafc; }
.guide-link { display: block; text-align: center; padding: 10px; margin-top: 8px; color: #2563eb; background: #eff6ff; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.guide-link:hover { background: #dbeafe; }

/* ── Footer ── */
.footer {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226,232,240,0.6);
    margin-top: 100px;
    padding: 40px 20px;
}
.footer-inner {
    width: 100%; padding: 0 48px;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px;
}
.footer-tagline {
    font-size: 22px; font-weight: 700;
    color: #2563eb; letter-spacing: 1px;
}
.footer-disclaimer {
    font-size: 13px; color: #94a3b8; line-height: 1.6;
    text-align: center; max-width: 640px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-inner { height: auto; padding: 12px 16px; gap: 10px; }
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .plugin-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .detail-info { grid-template-columns: 1fr 1fr; }
    .filter-row { flex-direction: column; }
    .filter-search-wrap { width: 100%; }
    .filter-search-input.active { width: 100%; }
    .filter-search-form { width: 100%; }
    .main { padding: 20px 16px; }
}
@media (max-width: 480px) {
    .admin-tabs { flex-direction: column; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
    .action-cell { flex-direction: column; }
}
