.plg-demo-page { --plg-demo-accent: #6c5ce7; }
.plg-demo-card { border-left: 3px solid var(--plg-demo-accent); }
.plg-demo-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.plg-demo-item { position:relative; display:flex; align-items:flex-start; gap:13px; padding:14px; border:1px solid var(--fy-border); border-radius:14px; background:var(--fy-bg-card); min-width:0; cursor:pointer; transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.plg-demo-item-tags { position:absolute; top:10px; right:12px; z-index:2; display:flex; flex-wrap:wrap; gap:4px; justify-content:flex-end; max-width:55%; }
.plg-demo-item:hover { border-color:var(--fy-active); transform:translateY(-2px); box-shadow:0 12px 26px rgba(0,0,0,.12); }
.plg-demo-item-no-detail { cursor:default; }
.plg-demo-item-no-detail:hover { transform:none; box-shadow:none; }
.plg-demo-item-cover,.plg-demo-item-icon { width:68px; height:68px; flex:0 0 68px; border-radius:14px; object-fit:cover; background:linear-gradient(145deg,#eeeaff,#d7d2ff); display:grid; place-items:center; font-size:29px; }
.plg-demo-item-main { min-width:0; flex:1; }
.plg-demo-item h3 { margin:0 0 5px; font-size:15px; color:var(--fy-text-primary); line-height:1.45; }
.plg-demo-list-top-badge { display:inline-flex; align-items:center; gap:3px; margin-left:7px; padding:2px 6px; border-radius:999px; color:#ef4444; background:rgba(239,68,68,.10); font-size:10px; font-weight:700; vertical-align:middle; }
.plg-demo-item p { margin:0 0 8px; color:var(--fy-text-muted); font-size:12px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.plg-demo-item-meta { display:flex; gap:9px; flex-wrap:wrap; color:var(--fy-text-muted); font-size:11px; }
.plg-demo-share { display:block; width:max-content; max-width:100%; margin-top:8px; padding:3px 7px; border-radius:6px; background:var(--fy-bg-primary); color:var(--fy-active); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.plg-demo-download { display:inline-flex; padding:5px 11px; font-size:11px; margin-top:9px; }
.plg-demo-detail { margin-top:9px; font-size:12px; }
.plg-demo-detail summary { cursor:pointer; color:var(--fy-active); }
.plg-demo-item-arrow { margin-left:auto; padding:20px 2px 0 0; color:var(--fy-text-muted); font-size:24px; line-height:1; transition:color .2s, transform .2s; }
.plg-demo-item:hover .plg-demo-item-arrow { color:var(--fy-active); transform:translateX(3px); }
.plg-demo-detail-disabled { display:flex; align-items:center; gap:7px; margin:0 0 14px; padding:10px 13px; border:1px dashed var(--fy-border); border-radius:10px; color:var(--fy-text-muted); font-size:12px; }

.plg-demo-detail-page { width:100%; max-width:100%; min-width:0; margin:0; box-sizing:border-box; }
.plg-demo-detail-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; max-width:100%; flex-wrap:wrap; margin-bottom:14px; }
.plg-demo-detail-kicker { color:var(--fy-text-secondary); font-size:13px; font-weight:600; }
.plg-demo-detail-kicker .fy-bbs-tag-hash { color:var(--fy-active); margin-right:4px; }
.plg-demo-detail-card { width:100%; max-width:100%; min-width:0; overflow:hidden; border:1px solid var(--fy-border); border-radius:18px; background:var(--fy-bg-card); box-shadow:0 16px 38px rgba(0,0,0,.1); }
.plg-demo-detail-hero { display:flex; align-items:center; gap:22px; min-width:0; padding:26px; background:linear-gradient(135deg,rgba(108,92,231,.16),rgba(168,85,247,.06)); border-bottom:1px solid var(--fy-border); }
.plg-demo-detail-cover { width:112px; height:112px; flex:0 0 112px; border-radius:22px; object-fit:cover; box-shadow:0 10px 24px rgba(76,58,180,.2); }
.plg-demo-detail-cover-placeholder { display:grid; place-items:center; font-size:50px; background:linear-gradient(145deg,#7666ef,#b06cf5); }
.plg-demo-detail-heading { min-width:0; flex:1 1 auto; }
.plg-demo-detail-badge { display:inline-flex; margin-bottom:7px; padding:4px 9px; border-radius:999px; background:rgba(108,92,231,.14); color:var(--fy-active); font-size:11px; font-weight:700; }
.plg-demo-top-badge { display:inline-flex; align-items:center; gap:4px; margin-left:8px; padding-left:8px; border-left:1px solid currentColor; color:#ef4444; }
.plg-demo-detail-heading h1 { margin:0 0 7px; color:var(--fy-text-primary); font-size:clamp(22px,3vw,30px); line-height:1.25; }
.plg-demo-detail-heading p { margin:0 0 11px; color:var(--fy-text-secondary); font-size:13px; line-height:1.7; }
.plg-demo-detail-meta { display:flex; flex-wrap:wrap; gap:12px; color:var(--fy-text-muted); font-size:12px; }
.plg-demo-detail-body { display:grid; grid-template-columns:minmax(0,1fr) 245px; gap:22px; min-width:0; max-width:100%; padding:24px 26px 28px; }
.plg-demo-detail-content h2 { margin:0 0 13px; font-size:17px; color:var(--fy-text-primary); }
.plg-demo-detail-richtext { min-width:0; max-width:100%; color:var(--fy-text-secondary); font-size:14px; line-height:1.9; overflow-wrap:anywhere; word-break:break-word; }
.plg-demo-detail-richtext > *, .plg-demo-detail-richtext table, .plg-demo-detail-richtext iframe, .plg-demo-detail-richtext video { max-width:100% !important; box-sizing:border-box; }
.plg-demo-detail-richtext [style*="width"], .plg-demo-detail-richtext [style*="min-width"] { width:100% !important; min-width:0 !important; max-width:100% !important; }
.plg-demo-detail-richtext [width] { max-width:100% !important; box-sizing:border-box; }
.plg-demo-detail-richtext pre, .plg-demo-detail-richtext code { white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.plg-demo-detail-richtext table { display:block; overflow-x:auto; }
.plg-demo-detail-richtext img { max-width:100%; border-radius:10px; }
.plg-demo-detail-sidebar { display:flex; flex-direction:column; gap:12px; }
.plg-demo-detail-box { padding:14px; border:1px solid var(--fy-border); border-radius:12px; background:var(--fy-bg-primary); }
.plg-demo-detail-box-label { margin-bottom:8px; color:var(--fy-text-muted); font-size:12px; }
.plg-demo-detail-code { display:block; padding:9px 10px; border-radius:8px; color:var(--fy-active); background:var(--fy-bg-card); font-size:13px; overflow-wrap:anywhere; }
.plg-demo-detail-download { width:100%; justify-content:center; padding:11px 14px; font-size:14px; }
.plg-demo-detail-tip { display:flex; gap:7px; padding:11px 12px; border-radius:10px; color:var(--fy-text-muted); background:var(--fy-bg-primary); font-size:12px; line-height:1.55; }
.plg-demo-detail-admin-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 26px 24px; padding-top:16px; border-top:1px solid var(--fy-border); }
.plg-demo-detail-admin-actions form { display:inline-flex; margin:0; }
.plg-demo-home-admin-actions, .plg-demo-admin-actions { margin-top:10px; }

/* 插件独立发布模板 */
.fy-plugin-publish-head { display:flex; align-items:center; gap:11px; margin:0 0 15px; padding:12px; border:1px solid var(--fy-border); border-radius:12px; background:linear-gradient(135deg,rgba(108,92,231,.12),rgba(39,191,121,.08)); }
.fy-plugin-publish-icon { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:11px; background:var(--fy-bg-card); font-size:22px; }
.fy-plugin-publish-head strong { display:block; color:var(--fy-text-primary); font-size:14px; }
.fy-plugin-publish-head small { display:block; margin-top:2px; color:var(--fy-text-muted); font-size:11px; }
.fy-plugin-publish-note { margin:-2px 0 12px; color:var(--fy-text-muted); font-size:11px; }

.fy-plugin-right-module { margin-top:18px; }
.fy-plugin-right-card { padding:10px 12px; }
.fy-plugin-right-item { display:flex; align-items:center; gap:8px; min-width:0; padding:8px 2px; color:var(--fy-text-primary); text-decoration:none; border-bottom:1px solid var(--fy-border); }
.fy-plugin-right-item:last-child { border-bottom:0; }
.fy-plugin-right-item:hover { color:var(--fy-active); }
.fy-plugin-right-num { display:grid; place-items:center; width:24px; height:24px; flex:0 0 24px; border-radius:7px; color:#fff; background:var(--plg-demo-accent,#6c5ce7); font-size:12px; font-weight:700; }
.fy-plugin-right-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }

/* 野草口令首页模板：截图中的绿色主卡 + 双列资源卡 */
.plg-demo-home-template { --plg-demo-home-green:#27bf79; --plg-demo-home-teal:#2bc4aa; }
.fy-home-plugin-module { margin:22px 0; min-width:0; }
.plg-demo-home-hero { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:330px; padding:34px 24px 30px; overflow:hidden; border-radius:22px; color:#fff; background:linear-gradient(135deg,var(--plg-demo-home-green),var(--plg-demo-home-teal)); box-shadow:0 16px 34px rgba(25,177,117,.2); text-align:center; }
.plg-demo-home-hero::after { content:""; position:absolute; width:230px; height:230px; top:-95px; right:-42px; border-radius:50%; background:rgba(255,255,255,.08); pointer-events:none; }
.plg-demo-home-back { position:absolute; z-index:1; left:22px; top:22px; display:grid; place-items:center; width:50px; height:50px; border:1px solid rgba(255,255,255,.27); border-radius:50%; color:#fff; background:rgba(255,255,255,.12); font-size:22px; transition:background .2s, transform .2s; }
.plg-demo-home-back:hover { color:#fff; background:rgba(255,255,255,.22); transform:translateX(-2px); }
.plg-demo-home-publish { position:absolute; z-index:2; top:22px; right:22px; display:inline-flex; align-items:center; gap:6px; padding:8px 15px; border:1px solid rgba(255,255,255,.35); border-radius:999px; color:#fff; background:rgba(255,255,255,.16); box-shadow:0 7px 16px rgba(0,0,0,.10); font-size:13px; font-weight:700; backdrop-filter:blur(5px); }
.plg-demo-home-publish:hover { color:#fff; background:rgba(255,255,255,.28); transform:translateY(-2px); }
.plg-demo-home-icon { position:relative; z-index:1; display:grid; place-items:center; width:126px; height:126px; margin-bottom:18px; border-radius:28px; color:#dff8ea; background:rgba(255,255,255,.19); box-shadow:inset 0 1px rgba(255,255,255,.18); font-size:70px; }
.plg-demo-home-icon img { width:100%; height:100%; border-radius:inherit; object-fit:cover; }
.plg-demo-home-hero h1 { position:relative; z-index:1; margin:0 0 8px; color:#fff; font-size:clamp(25px,4vw,36px); line-height:1.25; }
.plg-demo-home-version { position:relative; z-index:1; margin-bottom:8px; color:rgba(255,255,255,.86); font-size:17px; }
.plg-demo-home-hero p { position:relative; z-index:1; max-width:620px; margin:0 0 21px; color:rgba(255,255,255,.85); font-size:14px; }
.plg-demo-home-tags { position:relative; z-index:1; display:flex; flex-wrap:wrap; justify-content:center; gap:7px; max-width:760px; margin:2px auto 0; }
.plg-demo-home-tags-label { color:rgba(255,255,255,.78); font-size:12px; line-height:28px; }
.plg-demo-home-tag { display:inline-flex; align-items:center; padding:4px 10px; border:1px solid rgba(255,255,255,.4); border-radius:999px; color:#fff; background:rgba(255,255,255,.12); font-size:12px; text-decoration:none; transition:background .2s,border-color .2s; }
.plg-demo-home-tag:hover, .plg-demo-home-tag.is-active { border-color:#fff; background:rgba(255,255,255,.28); color:#fff; }
.plg-demo-home-download { position:relative; z-index:1; display:inline-flex; align-items:center; gap:8px; min-width:190px; justify-content:center; padding:11px 24px; border:1px solid rgba(255,255,255,.38); border-radius:999px; color:#fff; background:rgba(255,255,255,.13); font-size:14px; font-weight:700; transition:background .2s, transform .2s; }
.plg-demo-home-download:hover { color:#fff; background:rgba(255,255,255,.24); transform:translateY(-2px); }
.plg-demo-home-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin-top:18px; }
.plg-demo-home-item { position:relative; display:flex; align-items:flex-start; gap:14px; min-width:0; padding:15px; border:1px solid var(--fy-border); border-radius:15px; background:var(--fy-bg-card); cursor:pointer; transition:transform .2s, border-color .2s, box-shadow .2s; }
.plg-demo-home-item-tags { position:absolute; top:10px; right:12px; z-index:2; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px; max-width:55%; }
.plg-demo-home-item-tags a, .plg-demo-item-tags a { padding:3px 7px; border-radius:999px; background:rgba(108,92,231,.1); color:var(--fy-active,#6c5ce7); font-size:11px; text-decoration:none; }
.plg-demo-home-item:hover { border-color:var(--fy-active); transform:translateY(-2px); box-shadow:0 11px 24px rgba(0,0,0,.11); }
.plg-demo-home-item-no-detail { cursor:default; }
.plg-demo-home-item-no-detail:hover { transform:none; box-shadow:none; }
.plg-demo-home-item-icon { width:80px; height:80px; flex:0 0 80px; border-radius:15px; object-fit:cover; background:#eef0f5; }
.plg-demo-home-item-media { display:grid; place-items:center; overflow:hidden; }
.plg-demo-home-item-media > img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.plg-demo-home-item-media > .plg-demo-home-item-placeholder { width:100%; height:100%; }
.plg-demo-home-icon-fallback { align-items:center; justify-content:center; width:100%; height:100%; }
.plg-demo-home-item-placeholder { display:grid; place-items:center; color:#91bd21; background:#d9dce1; font-size:32px; }
.plg-demo-home-item-body { min-width:0; flex:1; }
.plg-demo-home-item h2 { margin:0 0 7px; color:var(--fy-text-primary); font-size:16px; line-height:1.4; }
.plg-demo-home-item p { margin:0 0 8px; color:var(--fy-text-secondary); font-size:12px; line-height:1.6; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.plg-demo-home-item-meta { display:flex; flex-wrap:wrap; gap:10px; color:var(--fy-text-muted); font-size:11px; }
.plg-demo-home-item-extra { margin-top:5px; }
.plg-demo-layout-slot { display:flex; flex-wrap:wrap; align-items:center; gap:7px 10px; min-width:0; margin-bottom:9px; }
.plg-demo-layout-slot:last-child { margin-bottom:0; }
.plg-demo-layout-slot-label { flex:0 0 100%; color:var(--fy-active); font-size:10px; font-weight:700; letter-spacing:.04em; }
.plg-demo-layout-slot h2 { flex:0 0 100%; margin:0 0 2px; }
.plg-demo-layout-slot p { flex:0 0 100%; margin:0; }
.plg-demo-layout-slot-value { color:var(--fy-text-muted); font-size:11px; }
.plg-demo-layout-slot-icon { width:30px; height:30px; flex:0 0 30px; border-radius:7px; object-fit:cover; }
.plg-demo-home-share { display:block; width:max-content; max-width:100%; margin-top:8px; padding:3px 7px; border-radius:6px; color:var(--fy-active); background:var(--fy-bg-primary); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.plg-demo-home-item-download { display:inline-flex; margin-top:9px; padding:5px 12px; font-size:11px; }
.plg-demo-pagination { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; margin:20px 0 4px; color:var(--fy-text-secondary); font-size:12px; }
.plg-demo-pagination .fy-btn { padding:7px 12px; font-size:12px; }
.plg-demo-page-numbers { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
.plg-demo-page-number { display:inline-grid; min-width:30px; height:30px; place-items:center; padding:0 7px; border:1px solid var(--fy-border); border-radius:7px; color:var(--fy-text-secondary); font-size:12px; text-decoration:none; }
.plg-demo-page-number:hover, .plg-demo-page-number.is-active { border-color:var(--fy-active); background:var(--fy-active); color:#fff; }
.plg-demo-page-summary { white-space:nowrap; }
@media (max-width:800px) { .plg-demo-home-list { grid-template-columns:1fr; } }
@media (max-width:520px) { .plg-demo-home-hero { min-height:300px; padding:28px 17px 24px; border-radius:17px; } .plg-demo-home-icon { width:94px; height:94px; margin-bottom:14px; border-radius:22px; font-size:54px; } .plg-demo-home-back { left:14px; top:14px; width:42px; height:42px; } .plg-demo-home-publish { top:14px; right:14px; padding:7px 11px; font-size:12px; } .plg-demo-home-item { gap:10px; padding:12px; } .plg-demo-home-item-icon { width:62px; height:62px; flex-basis:62px; border-radius:12px; } }

[data-theme="light"] .plg-demo-detail-card { box-shadow:0 16px 38px rgba(37,30,80,.08); }
@media (max-width:800px) { .plg-demo-list { grid-template-columns:1fr; } .plg-demo-detail-body { grid-template-columns:1fr; } }
@media (max-width:560px) { .plg-demo-detail-hero { align-items:flex-start; gap:14px; padding:18px; } .plg-demo-detail-cover { width:76px; height:76px; flex-basis:76px; border-radius:16px; } .plg-demo-detail-body { padding:18px; } .plg-demo-detail-toolbar { align-items:flex-start; flex-direction:column; } }

/* 独立插件首页在手机端沿用主内容宽度，避免桌面双栏/固定宽度把卡片挤出视窗 */
@media (max-width: 768px) {
    .plg-demo-home-template, .fy-home-plugin-module, .plg-demo-page { width:100%; max-width:100%; min-width:0; overflow:hidden; }
    .plg-demo-home-hero { min-height:250px; padding:22px 14px 20px; border-radius:16px; }
    .plg-demo-home-back { left:10px; top:10px; width:36px; height:36px; }
    .plg-demo-home-publish { top:10px; right:10px; padding:6px 9px; }
    .plg-demo-home-hero h1 { max-width:100%; font-size:25px; overflow-wrap:anywhere; }
    .plg-demo-home-hero p { max-width:100%; font-size:12px; }
    .plg-demo-home-tags { max-width:100%; gap:5px; }
    /* 手机首页资源卡采用双列，避免一条数据独占整行。 */
    .plg-demo-home-list, .plg-demo-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .plg-demo-home-item, .plg-demo-item { width:100%; box-sizing:border-box; padding:11px; gap:9px; border-radius:13px; flex-wrap:wrap; }
    .plg-demo-home-item h2, .plg-demo-item h3 { font-size:14px; overflow-wrap:anywhere; }
    .plg-demo-home-item-tags, .plg-demo-item-tags { max-width:62%; top:8px; right:8px; }
    .plg-demo-home-item-meta, .plg-demo-item-meta { gap:6px; }
    .plg-demo-pagination { gap:7px; margin-top:14px; }
    .plg-demo-page-summary { width:100%; text-align:center; }
}

/* 盒子教育详情页移动端：减少两侧留白，改为紧凑的单列阅读布局。 */
@media (max-width:768px) {
    .plg-hezijiaoyu-detail-page { width:100%; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-toolbar { margin:0 2px 10px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-card { border-radius:14px; box-shadow:0 8px 22px rgba(0,0,0,.08); }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-hero { flex-direction:column; align-items:center; gap:10px; padding:18px 14px 16px; text-align:center; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-cover { width:88px; height:88px; flex-basis:88px; border-radius:18px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-heading { width:100%; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-badge { margin-bottom:6px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-heading h1 { font-size:22px; overflow-wrap:anywhere; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-heading p { margin-bottom:8px; font-size:12px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-meta { justify-content:center; gap:8px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-body { display:flex; flex-direction:column; gap:14px; padding:16px 12px 18px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-content h2 { margin-bottom:9px; font-size:16px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-richtext { font-size:13px; line-height:1.8; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-sidebar { gap:9px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-box { padding:11px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-download { padding:10px 12px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-admin-actions { margin:0 12px 16px; padding-top:12px; }
    .plg-hezijiaoyu-detail-page + .fy-comments-card { margin-left:0; margin-right:0; }
}

/* 发布按钮与系统圈子按钮统一 Uiverse 交互；插件主题只负责替换颜色。 */
body .plg-demo-home-hero .fy-publish-action { width:83px; min-width:83px; height:32px; padding:0 14px; border:0; border-radius:8px; color:var(--fy-publish-text,#fff); background:var(--fy-publish-bg,#4f46e5); box-shadow:4px 4px 0 var(--fy-publish-shadow,rgba(0,0,0,.28)); }
body .plg-demo-home-hero .fy-publish-action:hover { color:transparent; background:var(--fy-publish-bg,#4f46e5); box-shadow:5px 5px 0 var(--fy-publish-shadow,rgba(0,0,0,.28)); }
body .plg-demo-home-hero .fy-publish-action .fy-icon-edit { right:17px; color:currentColor; }
body .plg-demo-home-hero .fy-publish-action:hover .fy-icon-edit { right:50%; color:var(--fy-publish-text,#fff); transform:translateX(50%) scale(1.12); }

@media (max-width:768px) {
    body .plg-demo-home-template .plg-demo-home-list > .fy-empty,
    body .plg-demo-home-template .plg-demo-list > .fy-empty { grid-column:1 / -1; }
    body .plg-demo-home-template .plg-demo-home-list,
    body .plg-demo-home-template .plg-demo-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    body .plg-demo-home-template .plg-demo-home-item,
    body .plg-demo-home-template .plg-demo-item { padding:9px; gap:7px; border-radius:11px; }
    body .plg-demo-home-template .plg-demo-home-item-icon,
    body .plg-demo-home-template .plg-demo-item-cover,
    body .plg-demo-home-template .plg-demo-item-icon { width:44px; height:44px; flex-basis:44px; border-radius:9px; font-size:20px; }
    body .plg-demo-home-template .plg-demo-home-item h2,
    body .plg-demo-home-template .plg-demo-item h3 { font-size:12px; line-height:1.35; }
    body .plg-demo-home-template .plg-demo-home-item p,
    body .plg-demo-home-template .plg-demo-item p { font-size:10px; line-height:1.45; -webkit-line-clamp:2; }
    body .plg-demo-home-template .plg-demo-home-item-meta,
    body .plg-demo-home-template .plg-demo-item-meta { gap:4px; font-size:9px; }
}
@media (max-width:420px) {
    .plg-hezijiaoyu-detail-page .plg-demo-detail-hero { padding-left:10px; padding-right:10px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-body { padding-left:9px; padding-right:9px; }
    .plg-hezijiaoyu-detail-page .plg-demo-detail-admin-actions { margin-left:9px; margin-right:9px; }
}

/* 盒子教育主题：对齐 box.nihaohezi.com/?hzzm 的蓝紫渐变视觉。 */
.plg-demo-page,
.fy-plugin-board-demo,
.plg-demo-detail-page,
.fy-plugin-right-demo,
.fy-plugin-publish-demo { --plg-demo-accent:#2d7ff9; --plg-hezijiaoyu-blue:#2d7ff9; --plg-hezijiaoyu-purple:#7c5cfc; --plg-hezijiaoyu-pink:#c76ced; }
.plg-demo-home-template { --plg-demo-home-green:#2d7ff9; --plg-demo-home-teal:#c76ced; }
.plg-demo-home-hero { background:linear-gradient(135deg,#2d7ff9 0%,#7c5cfc 50%,#c76ced 100%); box-shadow:0 16px 34px rgba(45,127,249,.22); }
.plg-demo-home-hero::after { background:rgba(255,255,255,.10); }
.plg-demo-home-item:hover,
.plg-demo-item:hover { border-color:#2d7ff9; box-shadow:0 12px 26px rgba(45,127,249,.16); }
.plg-demo-home-item-placeholder,
.plg-demo-item-cover,.plg-demo-item-icon { background:linear-gradient(145deg,#eef4ff,#e6e4ff); }
.plg-demo-home-item-placeholder { color:#2d7ff9; }
.plg-demo-detail-hero { background:linear-gradient(135deg,rgba(45,127,249,.16),rgba(199,108,237,.10)); }
.plg-demo-detail-cover-placeholder { background:linear-gradient(145deg,#2d7ff9,#c76ced); }
.plg-demo-detail-badge,
.plg-demo-detail-kicker .fy-bbs-tag-hash,
.plg-demo-layout-slot-label,
.plg-demo-home-share,
.plg-demo-share { color:#2d7ff9; }
.plg-demo-detail-badge { background:rgba(45,127,249,.14); }
.plg-demo-home-item-download,
.plg-demo-download { border-color:rgba(45,127,249,.35); }
.plg-demo-home-item-download,
.plg-demo-download,
.plg-demo-detail-download { color:#fff; background:linear-gradient(135deg,#2d7ff9,#7c5cfc); }
.plg-demo-home-item-download:hover,
.plg-demo-download:hover,
.plg-demo-detail-download:hover { color:#fff; background:linear-gradient(135deg,#246bd4,#6849df); }
.fy-plugin-publish-head { background:linear-gradient(135deg,rgba(45,127,249,.13),rgba(199,108,237,.10)); }
.fy-plugin-right-num { background:#2d7ff9; }
[data-theme="light"] .plg-demo-home-item,
[data-theme="light"] .plg-demo-item { border-color:#eef0f2; background:#fff; }
[data-theme="light"] .plg-demo-home-item:hover,
[data-theme="light"] .plg-demo-item:hover { border-color:#2d7ff9; }

/* yecao 与早期复制模板共用 plg-demo 类名；用当前页面作用域确保盒子教育主题不被其他插件 CSS 覆盖。 */
body .plg-hezijiaoyu-home-template { --plg-demo-home-green:#2d7ff9; --plg-demo-home-teal:#c76ced; --plg-demo-accent:#2d7ff9; }
body .plg-hezijiaoyu-home-template .plg-demo-home-hero { background:linear-gradient(135deg,#2d7ff9 0%,#7c5cfc 50%,#c76ced 100%); box-shadow:0 16px 34px rgba(45,127,249,.22); }
body .plg-hezijiaoyu-home-template .plg-demo-home-item:hover { border-color:#2d7ff9; box-shadow:0 12px 24px rgba(45,127,249,.16); }
body .plg-hezijiaoyu-home-template .plg-demo-home-item-placeholder { color:#2d7ff9; background:linear-gradient(145deg,#eef4ff,#e6e4ff); }
body .plg-hezijiaoyu-home-template .plg-demo-home-share { color:#2d7ff9; }
body .fy-plugin-board-hezijiaoyu .plg-demo-item:hover { border-color:#2d7ff9; box-shadow:0 12px 26px rgba(45,127,249,.16); }
body .fy-plugin-board-hezijiaoyu .plg-demo-item-cover,
body .fy-plugin-board-hezijiaoyu .plg-demo-item-icon { background:linear-gradient(145deg,#eef4ff,#e6e4ff); }
body .plg-hezijiaoyu-detail-page .plg-demo-detail-hero { background:linear-gradient(135deg,rgba(45,127,249,.16),rgba(199,108,237,.10)); }
body .plg-hezijiaoyu-detail-page .plg-demo-detail-cover-placeholder { background:linear-gradient(145deg,#2d7ff9,#c76ced); }
body .plg-hezijiaoyu-detail-page .plg-demo-detail-download { color:#fff; background:linear-gradient(135deg,#2d7ff9,#7c5cfc); }
body .fy-plugin-right-hezijiaoyu .fy-plugin-right-num { background:#2d7ff9; }
body .fy-plugin-publish-hezijiaoyu { background:linear-gradient(135deg,rgba(45,127,249,.13),rgba(199,108,237,.10)); }

/* 盒子教育列表移动端：按手机宽度收紧卡片，标签不再压住标题。 */
@media (max-width:768px) {
    body .plg-hezijiaoyu-home-template { width:100%; min-width:0; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-hero { min-height:270px; padding:24px 13px 20px; border-radius:16px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-icon { width:82px; height:82px; margin-bottom:11px; border-radius:18px; font-size:46px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-hero h1 { max-width:100%; font-size:24px; overflow-wrap:anywhere; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-hero p { max-width:100%; margin-bottom:14px; font-size:12px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-tags { max-width:100%; flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; scrollbar-width:none; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-tags::-webkit-scrollbar { display:none; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-tag { flex:0 0 auto; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item { gap:7px; padding:9px; border-radius:11px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item-tags { position:static; order:3; flex:0 0 100%; width:100%; justify-content:flex-start; max-width:100%; margin-top:7px; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item-tags::-webkit-scrollbar { display:none; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item-tags a { flex:0 0 auto; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item-body { display:flex; min-width:0; flex-direction:column; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item h2 { font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item p { font-size:10px; line-height:1.45; -webkit-line-clamp:2; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-item-meta { gap:4px; font-size:9px; }
    body .plg-hezijiaoyu-home-template .plg-demo-pagination { gap:7px; margin-top:15px; }
    body .plg-hezijiaoyu-home-template .plg-demo-page-numbers { gap:3px; max-width:100%; }
    body .plg-hezijiaoyu-home-template .plg-demo-page-number { min-width:28px; height:28px; padding:0 5px; }
}

@media (max-width:380px) {
    body .plg-hezijiaoyu-home-template .plg-demo-home-item-icon { width:44px; height:44px; flex-basis:44px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-publish { right:12px; padding:6px 9px; }
    body .plg-hezijiaoyu-home-template .plg-demo-home-back { left:12px; }
}

/* 盒子教育：青绿色学习卡片，强调章节和标签层次。 */
body .plg-hezijiaoyu-home-template .plg-demo-home-hero,
body .fy-plugin-board-hezijiaoyu .plg-demo-board-head { background:linear-gradient(135deg,#134e4a,#0f766e 55%,#14b8a6); box-shadow:0 18px 38px rgba(13,148,136,.28); }
body .plg-hezijiaoyu-home-template .plg-demo-home-item,
body .fy-plugin-board-hezijiaoyu .plg-demo-item { border-color:rgba(20,184,166,.38); border-radius:16px 6px 16px 6px; background:linear-gradient(145deg,#f0fdfa,#ecfeff); }
body .plg-hezijiaoyu-home-template .plg-demo-home-item:hover,
body .fy-plugin-board-hezijiaoyu .plg-demo-item:hover { border-color:#14b8a6; box-shadow:0 14px 30px rgba(13,148,136,.22); transform:translateY(-3px); }
body .plg-hezijiaoyu-detail-page .plg-demo-detail-hero,
body .fy-plugin-publish-hezijiaoyu { background:linear-gradient(135deg,rgba(20,184,166,.18),rgba(45,212,191,.12)); }
body .plg-hezijiaoyu-detail-page .plg-demo-detail-download,
body .fy-plugin-publish-hezijiaoyu button[type=submit] { background:linear-gradient(135deg,#0f766e,#14b8a6); }
body .fy-plugin-right-hezijiaoyu .fy-plugin-right-num { background:#0f766e; }
body .fy-plugin-publish-hezijiaoyu .fy-plugin-publish-icon,body .plg-hezijiaoyu-home-template .plg-demo-home-icon,body .plg-hezijiaoyu-home-template .plg-demo-home-item-icon,body .fy-plugin-board-hezijiaoyu .plg-demo-item-icon,body .fy-plugin-board-hezijiaoyu .plg-demo-item-cover { display:grid; place-items:center; align-content:center; overflow:hidden; }
body .plg-hezijiaoyu-home-template img,body .fy-plugin-board-hezijiaoyu img { object-position:center; }
@media (max-width:768px){ body .plg-hezijiaoyu-home-template .plg-demo-home-list,body .plg-hezijiaoyu-home-template .plg-demo-list,body .fy-plugin-board-hezijiaoyu .plg-demo-list{grid-template-columns:1fr!important;} }
