@charset "utf-8";
/* framehome 合并样式（由 merge-css.php 生成，勿手改；改源文件后重新构建） */

/* ===== common.css ===== */
.fh-sprite{position:absolute;width:0;height:0;overflow:hidden}
.brand-icon-svg{display:inline-flex;align-items:center;justify-content:center;line-height:0}
.plugin-cover[style*="background-image"]{background-size:cover;background-position:center;background-repeat:no-repeat}

/* ===== sidebar.css ===== */
/* 侧栏样式（sidebar.php） */
.fh-side{flex:0 0 300px;max-width:300px;position:sticky;top:88px;align-self:flex-start;height:max-content;z-index:5}
.fh-side-box{margin:0 0 16px;padding:16px 18px;background:#fff;border:1px solid #e2e8f0;border-radius:14px}
.fh-side-title{margin:0 0 12px;font-size:.95rem;font-weight:700;color:#0f172a}
.fh-side-list{list-style:none;margin:0;padding:0}
.fh-side-list li{margin:0 0 2px}
.fh-side-list a{display:block;padding:8px;border-radius:8px;color:#334155;font-size:.86rem;line-height:1.5;text-decoration:none}
.fh-side-list a:hover{background:#f0fdfa;color:#0f766e}
.fh-side-date{display:block;color:#94a3b8;font-size:.75rem;margin-top:2px}
@media(max-width:900px){.fh-side{position:static;flex:none;max-width:none;max-height:none;overflow:visible;width:100%;margin-top:18px}}

/* ===== single.css ===== */
/* 文章/单页样式（自 template/single.php 内联样式抽取） */
.fh-article{max-width:1140px;margin:28px auto 48px;padding:0 16px}
.fh-article h1{font-size:1.7rem;line-height:1.35;margin:0 0 10px}
.fh-meta{color:#64748b;font-size:.88rem;margin-bottom:14px;display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.fh-meta a{color:#64748b;text-decoration:none}
.fh-meta a:hover{color:#0f766e}
.fh-views{display:inline-flex;align-items:center;gap:4px;color:#64748b}
.fh-eye{position:relative;display:inline-block;width:13px;height:13px;flex:0 0 auto}
.fh-eye::before{content:'';position:absolute;inset:2.5px 0;border:1.6px solid #94a3b8;border-radius:50% 50% 50% 50% / 60% 60% 60% 60%}
.fh-eye::after{content:'';position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#94a3b8}
.fh-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.fh-chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:.78rem}
.fh-chip.free{background:#ecfdf5;color:#047857}
.fh-pack{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 18px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.fh-pack h3{margin:0 0 4px;font-size:1rem}
.fh-pack p{margin:0;color:#64748b;font-size:.85rem}
.fh-pack-btn{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:10px;background:#0f172a;color:#fff;font-weight:700;font-size:.88rem;white-space:nowrap;border:0;cursor:pointer}
.fh-pack-btn:hover{background:#0d9488;color:#fff}
.fh-content{font-size:1rem;line-height:1.85;color:#1e293b}
.fh-content > *:first-child{margin-top:0}
.fh-content p{margin:0 0 16px}
.fh-content ul,.fh-content ol{margin:0 0 18px;padding-left:1.4em}
.fh-content ul{list-style:disc}
.fh-content ol{list-style:decimal}
.fh-content li{margin:0 0 8px}
.fh-content li > p{margin:0}
.fh-content a{color:#0f766e;text-decoration:underline;text-underline-offset:2px}
.fh-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;padding:2px 6px;border-radius:6px;background:#f1f5f9;color:#0f172a}
.fh-content pre{margin:0 0 18px;padding:14px 16px;overflow:auto;border-radius:12px;background:#0f172a;color:#e2e8f0}
.fh-content pre code{padding:0;background:transparent;color:inherit}
.fh-content blockquote{margin:0 0 18px;padding:10px 14px;border-left:3px solid #99f6e4;background:#f8fafc;color:#334155}
.fh-content h2,.fh-content h3,.fh-content h4{margin:22px 0 10px;line-height:1.35;color:#0f172a}
.fh-content img{max-width:100%;height:auto;border-radius:10px;margin:8px 0 16px}
.fh-content .list-paddingleft-2{padding-left:1.6em}
.fh-content table{width:100%;border-collapse:collapse;margin:0 0 18px;font-size:.92rem}
.fh-content th,.fh-content td{border:1px solid #e2e8f0;padding:8px 10px;text-align:left;vertical-align:top}
.fh-content th{background:#f8fafc}
.fh-content hr{border:0;border-top:1px solid #e2e8f0;margin:20px 0}
.fh-article .container{max-width:1140px;padding:28px 32px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 10px 25px -12px rgba(15,23,42,.12)}
.fh-topics{display:flex;align-items:flex-start;gap:12px;margin-top:22px;padding-top:18px;border-top:1px dashed #e2e8f0}
.fh-topics-label{flex:0 0 auto;display:inline-flex;align-items:center;height:32px;color:#94a3b8;font-size:.78rem;font-weight:700;letter-spacing:.06em}
.fh-topics-list{display:flex;flex-wrap:wrap;gap:8px}
.fh-topics-list a{display:inline-flex;align-items:center;gap:6px;height:32px;margin:0;padding:0 12px;border:1px solid #99f6e4;border-radius:999px;background:#f0fdfa;color:#0f766e;font-size:.82rem;font-weight:600;line-height:1;text-decoration:none;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.fh-topics-list a em{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#0d9488;color:#fff;font-size:.7rem;font-style:normal;font-weight:700;line-height:1}
.fh-topics-list a:hover{background:#ccfbf1;border-color:#5eead4;transform:translateY(-1px)}
.fh-topics-list a.fh-topics-all{border-color:#e2e8f0;background:#fff;color:#64748b}
.fh-topics-list a.fh-topics-all:hover{color:#0f766e;background:#f0fdfa;border-color:#99f6e4}
.fh-tags{display:flex;align-items:flex-start;gap:12px;margin-top:22px;padding-top:18px;border-top:1px dashed #e2e8f0}
.fh-tags-label{flex:0 0 auto;display:inline-flex;align-items:center;height:32px;color:#94a3b8;font-size:.78rem;font-weight:700;letter-spacing:.06em}
.fh-tags-list{display:flex;flex-wrap:wrap;gap:8px}
.fh-tags a{display:inline-flex;align-items:center;gap:5px;height:32px;margin:0;padding:0 12px 0 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:.82rem;font-weight:600;line-height:1;text-decoration:none;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.fh-tags a i{color:#0d9488;font-style:normal;font-weight:800}
.fh-tags a:hover{color:#0f766e;background:#f0fdfa;border-color:#99f6e4;transform:translateY(-1px)}
.fh-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 14px;color:#94a3b8;font-size:.8rem}
.fh-crumb a{color:#64748b;text-decoration:none}
.fh-crumb a:hover{color:#0f766e}
.fh-crumb span{color:#334155}
.fh-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px;padding-top:18px;border-top:1px dashed #e2e8f0}
.fh-nav a{display:flex;flex-direction:column;gap:4px;min-height:74px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;color:#0f172a;text-decoration:none}
.fh-nav a:hover{border-color:#99f6e4;background:#f0fdfa}
.fh-nav em{color:#94a3b8;font-size:.75rem;font-style:normal;font-weight:700}
.fh-nav strong{font-size:.92rem;line-height:1.45;font-weight:650}
.fh-nav .next{text-align:right}

.fh-timeline{margin-top:16px;padding:12px 14px 8px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}
.fh-tl-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:2px}
.fh-tl-title{color:#0f172a;font-size:.86rem;font-weight:750;font-variant-numeric:tabular-nums}
.fh-tl-title em{color:#94a3b8;font-size:.74rem;font-style:normal;margin-left:4px}
.fh-tl-tip{color:#94a3b8;font-size:.7rem;white-space:nowrap}
.fh-tl-track{position:relative;display:flex;gap:10px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:thin}
.fh-tl-track::before{content:'';position:absolute;left:0;right:0;top:16px;height:1px;background:#e2e8f0}
.fh-tl-node{position:relative;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:34px;color:#64748b;text-decoration:none}
.fh-tl-dot{width:7px;height:7px;border-radius:50%;background:#cbd5e1;box-shadow:0 0 0 3px #fff}
.fh-tl-node em{font-size:.64rem;font-style:normal;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}
.fh-tl-node:hover{color:#0f766e}
.fh-tl-node:hover .fh-tl-dot{background:#0d9488}
.fh-tl-node.is-today{color:#b45309}
.fh-tl-node.is-today .fh-tl-dot{background:#fbbf24;box-shadow:0 0 0 3px #fffbeb}
.fh-tl-node.is-post{color:#0f766e;font-weight:800}
.fh-tl-node.is-post .fh-tl-dot{background:#0f766e;box-shadow:0 0 0 3px #ccfbf1}
@media(max-width:640px){.fh-timeline{padding:12px 12px 8px}.fh-tl-track{gap:10px}.fh-tl-node{min-width:36px}}
@media(max-width:640px){.fh-nav{grid-template-columns:1fr}.fh-nav .next{text-align:left}}
.fh-layout{display:flex;align-items:flex-start;gap:22px}
.fh-main{flex:1 1 auto;min-width:0}
@media(max-width:900px){.fh-layout{display:block}}
.fh-dl-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:80;display:flex;align-items:center;justify-content:center;padding:16px}
.fh-dl-mask[hidden]{display:none !important}
.fh-dl-box{width:min(420px,100%);background:#fff;border-radius:14px;padding:18px;box-shadow:0 20px 50px rgba(15,23,42,.2)}
.fh-dl-box h3{margin:0 0 8px}
.fh-dl-box p{margin:0 0 12px;color:#64748b;font-size:.88rem}
.fh-dl-box img{height:42px;vertical-align:middle;border-radius:6px;background:#f8fafc;cursor:pointer}
.fh-dl-box input[type=text]{height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;margin:0 8px 0 0}
.fh-dl-box button{height:38px;border:0;border-radius:8px;padding:0 14px;background:#0f172a;color:#fff;font-weight:700;cursor:pointer}
.fh-dl-box .fh-dl-close{background:#e2e8f0;color:#0f172a;margin-left:8px}


/* ===== page.css ===== */
/* 单页（page.php）落地页样式：布局 + ai-* 组件，模板内不再写内联 CSS */
.fh-page-layout{display:flex;align-items:flex-start;gap:22px;max-width:1140px;margin:28px auto 48px;padding:0 16px}
.fh-page-main{flex:1 1 auto;min-width:0}
.fh-page-main .ai-landing-wrap{max-width:none;margin:0;padding:0}
@media(max-width:900px){.fh-page-layout{display:block;margin:16px auto 32px}}
.ai-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 20px;border:1px solid transparent;border-radius:12px;font-size:.92rem;font-weight:700;line-height:1;text-decoration:none;transition:background .18s,color .18s,border-color .18s,transform .18s}
.ai-btn:hover{transform:translateY(-1px)}
.ai-btn-primary{background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff;box-shadow:0 14px 28px -18px rgba(79,70,229,.85)}
.ai-btn-primary:hover{color:#fff;background:linear-gradient(135deg,#6d28d9,#4338ca)}
.ai-btn-outline{border-color:rgba(99,102,241,.45);background:#fff;color:#4338ca}
.ai-btn-outline:hover{border-color:#4f46e5;background:#eef2ff;color:#3730a3}
.ai-btn.large{padding:14px 26px;font-size:1rem;border-radius:14px}

.ai-hero{padding:44px 32px 36px;border:1px solid rgba(226,232,240,.9);border-radius:26px;background:linear-gradient(180deg,#f8faff,#fff 60%);box-shadow:0 24px 60px -40px rgba(30,41,59,.5)}
.ai-hero-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 14px;border:1px solid rgba(124,58,237,.25);border-radius:999px;background:#f5f3ff;color:#6d28d9;font-size:.78rem;font-weight:750}
.badge-dot{width:7px;height:7px;border-radius:50%;background:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.16)}
.ai-hero-title{margin:18px 0 0;color:#0f172a;font-size:2.15rem;line-height:1.32;font-weight:800}
.ai-text-gradient{background:linear-gradient(135deg,#7c3aed,#2563eb);-webkit-background-clip:text;background-clip:text;color:transparent}
.ai-hero-sub{margin:14px 0 0;max-width:760px;color:#475569;font-size:.98rem;line-height:1.9}
.ai-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}

.ai-stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:30px}
.ai-stat-card{padding:16px 18px;border:1px solid rgba(226,232,240,.9);border-radius:16px;background:#fff;text-align:left}
.ai-stat-card .stat-num{color:#4338ca;font-size:1.4rem;font-weight:800;line-height:1.2}
.ai-stat-card .stat-label{margin-top:6px;color:#64748b;font-size:.8rem;font-weight:600}
@media(max-width:820px){.ai-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-hero{padding:30px 20px 26px}.ai-hero-title{font-size:1.6rem}}

.ai-section{margin-top:44px}
.ai-section-head{max-width:760px}
.ai-section-tag{display:inline-flex;padding:6px 12px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:.76rem;font-weight:750;letter-spacing:.04em}
.ai-section-title{margin:12px 0 0;color:#0f172a;font-size:1.5rem;line-height:1.4;font-weight:800}
.ai-section-desc{margin:10px 0 0;color:#64748b;font-size:.92rem;line-height:1.85}
.ai-features-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.ai-feat-box{padding:22px;border:1px solid rgba(226,232,240,.9);border-radius:18px;background:#fff;transition:transform .18s,box-shadow .18s}
.ai-feat-box:hover{transform:translateY(-2px);box-shadow:0 20px 44px -32px rgba(15,23,42,.4)}
.ai-feat-box.highlight{border-color:rgba(124,58,237,.35);background:linear-gradient(180deg,#faf5ff,#fff)}
.feat-icon{font-size:1.5rem;line-height:1}
.feat-title{margin:12px 0 0;color:#0f172a;font-size:1.05rem;font-weight:750}
.feat-desc{margin:8px 0 0;color:#64748b;font-size:.88rem;line-height:1.8}
@media(max-width:820px){.ai-features-grid{grid-template-columns:1fr}}

.ai-terminal-mock{margin-top:24px;border-radius:18px;overflow:hidden;background:#0f172a;box-shadow:0 30px 60px -40px rgba(15,23,42,.9)}
.term-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;background:rgba(255,255,255,.06)}
.term-circle{width:10px;height:10px;border-radius:50%}
.term-circle.red{background:#f87171}
.term-circle.yellow{background:#fbbf24}
.term-circle.green{background:#34d399}
.term-title{margin-left:8px;color:#94a3b8;font-size:.78rem;font-weight:650}
.term-body{padding:18px 20px 22px;display:grid;gap:12px}
.term-line{color:#cbd5f5;font-size:.88rem;line-height:1.8}
.prompt-role{color:#a5b4fc;font-weight:750}
.prompt-role.ai{color:#5eead4}
.status-line{color:#94a3b8}
.status-tag{display:inline-flex;margin-right:8px;padding:3px 9px;border-radius:999px;background:rgba(52,211,153,.16);color:#34d399;font-size:.74rem;font-weight:700}

.ai-custom-content{margin-top:40px;padding:26px 28px;border:1px solid rgba(226,232,240,.9);border-radius:18px;background:#fff}
.ai-content-inner{color:#334155;font-size:.94rem;line-height:1.95}
.ai-content-inner img{max-width:100%;height:auto;border-radius:12px}
.ai-cta-block{margin-top:44px}
.ai-cta-card{padding:34px 28px;border-radius:22px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;text-align:center}
.ai-cta-card .cta-title{margin:0;font-size:1.4rem;font-weight:800}
.ai-cta-card .cta-subtitle{margin:10px 0 0;color:rgba(255,255,255,.86);font-size:.92rem}
.cta-actions{display:flex;justify-content:center;margin-top:20px}
.ai-cta-card .ai-btn-primary{background:#fff;color:#4338ca;box-shadow:none}
.ai-cta-card .ai-btn-primary:hover{background:#eef2ff;color:#3730a3}
@media(max-width:820px){.ai-cta-card{padding:26px 18px}.ai-cta-card .cta-title{font-size:1.15rem}}

/* ===== catalog.css ===== */
/* 栏目列表页样式（catalog.php / catalog-themes.php / catalog-plugins.php 共用） */
.news-catalog-page{padding-top:8px}
.catalog-header{margin-bottom:28px}
.breadcrumb-nav{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.9);border:1px solid rgba(226,232,240,.9);padding:6px 14px;border-radius:999px;font-size:.85rem;color:#64748b;margin-bottom:16px}
.crumb-home{display:inline-flex;align-items:center;gap:5px;color:#64748b}
.crumb-home:hover{color:#0d9488}
.crumb-sep{color:#cbd5e1}
.crumb-current{color:#0f172a;font-weight:600}
.catalog-main-title{font-size:2.15rem;font-weight:800;letter-spacing:-.03em;color:#0f172a;margin:0 0 8px;line-height:1.2}
.catalog-desc{font-size:1rem;color:#64748b;margin:0;max-width:720px}
.news-articles-grid{display:flex;flex-direction:column;gap:18px}
.news-card{background:#fff;border:1px solid rgba(226,232,240,.95);border-radius:18px;padding:26px 28px;box-shadow:0 10px 25px -8px rgba(15,23,42,.06)}
.news-card:hover{transform:translateY(-2px);border-color:rgba(13,148,136,.35);box-shadow:0 18px 30px -12px rgba(15,23,42,.1)}
.news-meta-top{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:.82rem;color:#94a3b8;margin-bottom:12px}
.news-badge{background:rgba(13,148,136,.1);color:#0f766e;font-weight:700;padding:3px 10px;border-radius:999px;font-size:.76rem}
.news-date,.news-views{display:inline-flex;align-items:center;gap:5px}
.news-card-title{font-size:1.35rem;font-weight:800;line-height:1.35;margin:0 0 10px;letter-spacing:-.02em}
.news-card-title a{color:#0f172a}
.news-card-title a:hover{color:#0d9488}
.news-card-excerpt{font-size:.95rem;color:#64748b;line-height:1.7;margin:0 0 18px}
.news-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #f1f5f9;padding-top:14px}
.news-read-more{display:inline-flex;align-items:center;gap:6px;color:#0d9488;font-weight:700;font-size:.9rem}
.news-read-more:hover{color:#0f766e}
.news-mini-tags{display:flex;gap:8px;flex-wrap:wrap}
.mini-tag{display:inline-flex;align-items:center;font-size:.76rem;color:#475569;background:#f1f5f9;border:1px solid transparent;border-radius:999px;padding:4px 10px;text-decoration:none;cursor:pointer}
.mini-tag:hover{color:#0f766e;background:rgba(13,148,136,.1);border-color:rgba(13,148,136,.28)}
.app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.app-card{display:flex;flex-direction:column;background:#fff;border:1px solid rgba(226,232,240,.95);border-radius:18px;padding:22px;box-shadow:0 10px 25px -8px rgba(15,23,42,.06);min-height:230px}
.app-card:hover{transform:translateY(-3px);border-color:rgba(13,148,136,.35);box-shadow:0 18px 30px -12px rgba(15,23,42,.1)}
.app-card-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.app-mark{width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:#fff;flex:0 0 auto}
.app-mark.theme{background:linear-gradient(135deg,#0ea5e9,#0d9488)}
.app-mark.plugin{background:linear-gradient(135deg,#14b8a6,#0f766e)}
.app-name{font-size:1.08rem;font-weight:800;color:#0f172a;line-height:1.35;margin:0}
.app-name a{color:inherit}
.app-name a:hover{color:#0d9488}
.app-excerpt{color:#64748b;line-height:1.7;margin:0 0 16px;flex:1}
.app-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #f1f5f9;padding-top:12px}
.app-chip{font-size:.75rem;font-weight:700;color:#0f766e;background:rgba(13,148,136,.1);border-radius:999px;padding:3px 9px}
.news-empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:18px;padding:56px 24px;text-align:center}
.empty-title{margin:12px 0 6px;font-size:1.15rem;color:#0f172a}
.empty-sub{margin:0;color:#64748b}
.catalog-pagination{display:flex;justify-content:center;gap:8px;margin-top:28px}
.page-number{min-width:38px;height:38px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#fff;border:1px solid #e2e8f0;color:#64748b;font-weight:700}
.current-page{background:#0f172a;color:#fff;border-color:#0f172a}
/* ===== 通用分页条 fh-pager ===== */
.fh-pager{display:flex;flex-direction:column;align-items:center;gap:14px;margin:34px 0 8px;padding:18px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 12px 28px -20px rgba(15,23,42,.35)}
.fh-pager-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.fh-pager-btn{min-width:38px;height:38px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-weight:700;font-size:.9rem;line-height:1;transition:all .18s ease}
a.fh-pager-btn:hover{background:#ecfeff;border-color:#5eead4;color:#0f766e;transform:translateY(-1px)}
.fh-pager-btn.is-active{background:linear-gradient(135deg,#0d9488,#10b981);border-color:transparent;color:#fff;box-shadow:0 8px 18px -10px rgba(13,148,136,.9)}
.fh-pager-btn.is-step{background:#fff;color:#0f766e;border-color:#99f6e4}
.fh-pager-info{margin:0;font-size:.82rem;color:#94a3b8;letter-spacing:.02em}
.fh-pager-info strong{color:#0f766e;font-weight:800}
@media(max-width:640px){.fh-pager{margin-top:26px;padding:14px 12px;gap:10px}.fh-pager-btn{min-width:34px;height:34px;padding:0 9px;font-size:.84rem;border-radius:9px}.fh-pager-links{gap:6px}}
@media(max-width:640px){.catalog-main-title{font-size:1.7rem}.news-card,.app-card{padding:18px}}

/* ===== catalog-themes.css ===== */
/* 免费主题列表页样式（catalog-themes.php） */
.theme-market{padding-top:8px}
.market-crumb{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;padding:6px 14px;border-radius:999px;font-size:.85rem;color:#64748b;margin-bottom:16px}
.market-crumb a:hover{color:#0284c7}
.market-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:24px;flex-wrap:wrap}
.market-title{margin:0 0 8px;font-size:2.1rem;font-weight:800;letter-spacing:-.03em;color:#0f172a}
.market-desc{margin:0;max-width:680px;color:#64748b}
.market-count{background:#ecfeff;color:#0e7490;border-radius:999px;padding:8px 14px;font-weight:700;font-size:.85rem}
.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.theme-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 12px 28px -14px rgba(15,23,42,.16)}
.theme-card:hover{transform:translateY(-4px);border-color:#7dd3fc}
.theme-card.is-rec{border-color:#f59e0b;box-shadow:0 16px 32px -16px rgba(180,83,9,.45)}
.theme-cover{position:relative;height:168px;display:flex;align-items:flex-end;padding:16px;background:linear-gradient(145deg,#0f172a,#0369a1 55%,#14b8a6);color:#fff}
.theme-cover span{font-size:.78rem;font-weight:700;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:4px 10px}
.rec-flag{position:absolute;top:14px;right:14px;font-style:normal;font-size:.75rem;font-weight:800;letter-spacing:.04em;background:#f59e0b;color:#fff;border-radius:999px;padding:4px 10px}
.theme-body{padding:18px 18px 16px;display:flex;flex-direction:column;gap:12px;flex:1}
.theme-name{margin:0;font-size:1.15rem;font-weight:800;line-height:1.35}
.theme-name a{color:#0f172a}
.theme-name a:hover{color:#0284c7}
.theme-excerpt{margin:0;color:#64748b;line-height:1.7;flex:1}
.theme-meta{display:flex;gap:8px;flex-wrap:wrap}
.theme-chip{font-size:.75rem;font-weight:700;border-radius:999px;padding:4px 9px;background:#f1f5f9;color:#475569}
.theme-chip.free{background:#ecfeff;color:#0e7490}
.theme-chip.rec{background:#fef3c7;color:#b45309}
.theme-actions{display:flex;gap:8px}
.theme-open,.theme-down{display:inline-flex;align-items:center;justify-content:center;height:40px;border-radius:12px;font-weight:700;flex:1;border:0;cursor:pointer}
.theme-open{background:#0f172a;color:#fff}
.theme-open:hover{background:#0369a1;color:#fff}
.theme-down{background:#e0f2fe;color:#0369a1}
.theme-down:hover{background:#0369a1;color:#fff}
.market-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:20px;padding:64px 20px;text-align:center;color:#64748b}
.market-empty h2{margin:0 0 8px;color:#0f172a}
@media(max-width:640px){.market-title{font-size:1.7rem}.theme-cover{height:140px}}

/* ===== catalog-plugins.css ===== */
/* 实用插件列表页样式（catalog-plugins.php） */
.plugin-market{padding-top:8px}
.market-crumb{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;padding:6px 14px;border-radius:999px;font-size:.85rem;color:#64748b;margin-bottom:16px}
.market-crumb a:hover{color:#0f766e}
.market-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:24px;flex-wrap:wrap}
.market-title{margin:0 0 8px;font-size:2.1rem;font-weight:800;letter-spacing:-.03em;color:#0f172a}
.market-desc{margin:0;max-width:680px;color:#64748b}
.market-count{background:#f0fdfa;color:#0f766e;border-radius:999px;padding:8px 14px;font-weight:700;font-size:.85rem}
.plugin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.plugin-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden;box-shadow:0 16px 32px -22px rgba(15,23,42,.35);transition:transform .2s ease,box-shadow .2s ease}
.plugin-card:hover{transform:translateY(-4px);box-shadow:0 22px 40px -20px rgba(15,118,110,.35)}
.plugin-card.is-rec{border-color:#f59e0b;box-shadow:0 16px 32px -16px rgba(180,83,9,.45)}
.plugin-cover{position:relative;display:block;height:168px;background:#ecfeff center top/cover no-repeat;overflow:hidden}
.plugin-cover::after{content:"";position:absolute;inset:auto 0 0;height:42px;background:linear-gradient(180deg,transparent,rgba(15,23,42,.18))}
.plugin-cover.is-plain{background:linear-gradient(145deg,#ccfbf1 0%,#99f6e4 42%,#5eead4 100%)}
.plugin-cover.is-plain::after{display:none}
.rec-flag{position:absolute;top:14px;right:14px;z-index:2;font-style:normal;font-size:.75rem;font-weight:800;background:#f59e0b;color:#fff;border-radius:999px;padding:4px 10px}
.plugin-badge{position:absolute;left:14px;bottom:12px;z-index:1;width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.92);color:#0f766e;font-weight:800;box-shadow:0 8px 16px -10px rgba(15,23,42,.6)}
.plugin-cover.is-plain .plugin-badge{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:72px;height:72px;border-radius:22px;font-size:1.8rem;background:rgba(255,255,255,.72)}
.plugin-body{display:flex;flex-direction:column;gap:8px;padding:14px 16px 14px}
.plugin-name{margin:0;font-size:1.05rem;font-weight:800;line-height:1.35;color:#0f172a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.plugin-name a{color:#0f172a}
.plugin-name a:hover{color:#0f766e}
.plugin-excerpt{margin:0;color:#64748b;line-height:1.6;font-size:.92rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.plugin-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.plugin-tags{display:flex;gap:6px;flex-wrap:nowrap;overflow:hidden;min-width:0}
.plugin-tags .plugin-chip{white-space:nowrap;flex:0 0 auto}
.plugin-foot{flex-wrap:nowrap}
.plugin-open{white-space:nowrap;flex:0 0 auto}
.plugin-chip{font-size:.72rem;font-weight:700;border-radius:999px;padding:3px 8px;background:#f0fdfa;color:#0f766e}
.plugin-chip.rec{background:#fef3c7;color:#b45309}
.plugin-open{flex:none;font-weight:800;font-size:.88rem;color:#0f766e}
.plugin-down{flex:none;border:0;background:#0f766e;color:#fff;border-radius:999px;padding:6px 12px;font-weight:800;font-size:.82rem;cursor:pointer}
.plugin-down:hover{background:#115e59}
.market-empty{background:#fff;border:1px dashed #cbd5e1;border-radius:20px;padding:64px 20px;text-align:center;color:#64748b}
.market-empty h2{margin:0 0 8px;color:#0f172a}
@media(max-width:640px){.market-title{font-size:1.7rem}.plugin-cover{height:150px}}

/* ===== style.css ===== */
:root {
  --bg-page: #f8fafc;
  --bg-grid: rgba(148, 163, 184, 0.12);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  --primary-teal: #0d9488;
  --primary-teal-hover: #0f766e;
  --primary-gradient: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.85);
  --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  --card-hover-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(at 50% 0%, rgba(13, 148, 136, 0.05) 0px, transparent 55%),
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ================= 顶栏 Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  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.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-main);
  background-color: rgba(241, 245, 249, 0.9);
}

.site-nav .active a {
  color: var(--primary-teal);
  background-color: rgba(13, 148, 136, 0.08);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-lang {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: #0f172a;
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.15);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-nav-login:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
}

/* ================= 主区域 Main ================= */
.main-content {
  flex: 1;
  padding: 40px 0 44px;
}

/* 主视口 Hero */
.hero-section {
  padding: 30px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 28px;
  max-width: 540px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.45);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(13, 148, 136, 0.55);
}

.btn-hero-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-hero-primary:hover svg {
  transform: translateX(4px);
}

/* 终端代码卡片 */
.hero-visual-card {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35);
}

.card-terminal-bar {
  background: #1e293b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.card-terminal-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.terminal-line {
  display: block;
  word-break: break-all;
}

.term-green { color: #10b981; font-weight: 600; }
.term-cyan { color: #38bdf8; }
.term-blue { color: #818cf8; }
.term-gray { color: #64748b; }

/* 悬浮胶囊状态条 */
.features-capsule-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 46px;
  flex-wrap: wrap;
}

.capsule-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.capsule-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary-teal);
}

/* 三列微拟物卡片 */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.feature-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(13, 148, 136, 0.3);
}

.box-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.box-icon-wrap svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.icon-blue { background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); }
.icon-teal { background: linear-gradient(135deg, #0d9488 0%, #10b981 100%); }
.icon-purple { background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%); }

.box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.box-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.65;
}

/* 底部驱动/生态支持矩阵 */
.bottom-matrix-section {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.matrix-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.matrix-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 24px;
}

.matrix-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.chip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.2s;
}

.chip-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.chip-badge-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.logo-orange { background: #ea580c; }
.logo-green { background: #16a34a; }
.logo-blue { background: #0284c7; }
.logo-rose { background: #e11d48; }
.logo-gray { background: #64748b; }

.chip-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.chip-status {
  font-size: 0.72rem;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.chip-status-more {
  color: #475569;
  background: #e2e8f0;
}

/* ================= 底栏 Footer 专属样式 ================= */
.site-footer {
  margin-top: 0;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  padding: 48px 0 28px;
  color: #64748b;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f1f5f9;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 380px;
}

.footer-nav-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 18px;
}

.footer-nav-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-nav-col a {
  font-size: 0.88rem;
  color: #64748b;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-nav-col a:hover {
  color: var(--primary-teal);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom p {
  margin: 0;
}

/* 响应式调整 */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cards-grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .site-nav {
    display: none;
  }
}

/* 首页：最新插件与主题选项卡 */
.latest-tabs {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: var(--card-shadow);
}
.latest-tabs .matrix-header { text-align: center; }
.tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  border-bottom: 1px solid #e2e8f0;
}
.tab-btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #64748b;
  font-size: .95rem;
  font-weight: 700;
  padding: 10px 14px;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-btn.is-on { color: #0f172a; border-bottom-color: #0284c7; }
.tab-more {
  margin-left: auto;
  font-size: .85rem;
  font-weight: 700;
  color: #0284c7;
  padding: 8px 4px;
}
.tab-pane { display: none; }
.tab-pane.is-on { display: block; }
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.latest-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  color: #0f172a;
}
.latest-item:hover { border-color: #7dd3fc; background: #fff; }
.latest-kind {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 800;
  color: #0e7490;
  background: #ecfeff;
  border-radius: 999px;
  padding: 3px 8px;
}
.latest-kind.theme { color: #0369a1; background: #e0f2fe; }
.latest-item strong { font-size: 1rem; line-height: 1.4; }
.latest-item em { font-style: normal; font-size: .8rem; color: #94a3b8; }
.latest-empty { margin: 8px 0 0; color: #64748b; text-align: center; }
@media (max-width: 640px) {
  .latest-tabs { padding: 22px 16px; }
  .tab-more { margin-left: 0; }
}

/* 首页最新资源：横版卡片 */
.latest-tabs { padding: 28px 28px 24px; }
.latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.latest-head .matrix-subtitle { margin-bottom: 0; }
.tab-bar { display: none; }
.tab-switch { display: inline-flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 14px; }
.tab-switch .tab-btn { border: 0; margin: 0; border-radius: 11px; padding: 9px 16px; color: #64748b; font-size: .9rem; }
.tab-switch .tab-btn.is-on { background: #fff; color: #0f172a; box-shadow: 0 4px 12px -6px rgba(15,23,42,.4); }
.pane-tools { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; color: #64748b; font-size: .85rem; }
.pane-tools .tab-more { margin: 0; padding: 6px 12px; background: #f0fdfa; border-radius: 999px; }
.latest-grid { grid-template-columns: 1fr; gap: 12px; }
.latest-item { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #fff; }
.latest-item:hover { transform: translateY(-2px); border-color: #99f6e4; box-shadow: 0 16px 28px -20px rgba(15,118,110,.55); }
.latest-item.is-rec { border-color: #fcd34d; background: linear-gradient(90deg,#fffbeb 0%,#fff 28%); }
.latest-mark { flex: none; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg,#ccfbf1,#5eead4); color: #115e59; font-size: 1.25rem; font-weight: 800; }
.latest-item.theme .latest-mark { background: linear-gradient(145deg,#dbeafe,#7dd3fc); color: #075985; }
.latest-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.latest-top { display: flex; align-items: center; gap: 8px; }
.latest-top em { margin-left: auto; font-style: normal; font-size: .78rem; color: #94a3b8; }
.latest-rec { font-size: .72rem; font-weight: 800; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 2px 8px; }
.latest-item strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-desc { color: #64748b; font-size: .88rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-go { flex: none; color: #0f766e; font-weight: 800; font-size: .88rem; }
@media (max-width: 720px) {
  .latest-head { flex-direction: column; align-items: stretch; }
  .latest-item { align-items: flex-start; }
  .latest-go { display: none; }
  .latest-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* 首页最新资源：竖向卡片，覆盖横版列表 */
.latest-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.latest-item {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.latest-item:hover {
  transform: translateY(-3px);
  border-color: #99f6e4;
  box-shadow: 0 18px 30px -22px rgba(15, 118, 110, .7);
}
.latest-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.1rem;
}
.latest-body { gap: 8px; }
.latest-top em { margin-left: auto; }
.latest-item strong {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.8em;
}
.latest-desc {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
}
.latest-go {
  margin-top: auto;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f0fdfa;
}
@media (max-width: 980px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .latest-head { flex-direction: column; align-items: stretch; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-item { min-height: 0; align-items: stretch; }
  .latest-go { display: inline-flex; }
}

/* 首页最新资源：收成同一块面板，避免卡片零散 */
.latest-tabs {
  padding: 22px 22px 18px;
}
.latest-head {
  align-items: center;
  margin-bottom: 14px;
}
.latest-head .matrix-subtitle {
  margin-top: 4px;
}
.pane-tools {
  margin: 0 0 10px;
}
.pane-tools > span {
  display: none;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}
.latest-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  gap: 8px 12px;
  min-height: 168px;
  margin: 0;
  padding: 16px 16px 14px;
  border: 0;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.latest-item:nth-child(4n) {
  border-right: 0;
}
.latest-item:hover {
  transform: none;
  border-color: #eef2f7;
  background: #f8fafc;
  box-shadow: none;
}
.latest-item.is-rec {
  background: #fffdf6;
}
.latest-mark {
  grid-row: 1;
  grid-column: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1rem;
}
.latest-body {
  display: contents;
}
.latest-top {
  grid-column: 2;
  grid-row: 1;
  min-height: 42px;
  align-items: center;
}
.latest-kind {
  display: none;
}
.latest-item strong {
  grid-column: 1 / -1;
  min-height: 0;
  font-size: 1rem;
  line-height: 1.45;
}
.latest-desc {
  grid-column: 1 / -1;
  min-height: 0;
  margin-top: -2px;
}
.latest-go {
  display: none;
}
@media (max-width: 980px) {
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-item:nth-child(4n) { border-right: 1px solid #eef2f7; }
  .latest-item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .latest-tabs { padding: 18px 14px; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-item,
  .latest-item:nth-child(2n),
  .latest-item:nth-child(4n) { border-right: 0; }
}

/* 恢复竖向独立卡片：图标与分类、日期同一行 */
.latest-tabs {
  padding: 28px 28px 24px;
}
.latest-head {
  align-items: flex-end;
  margin-bottom: 18px;
}
.pane-tools {
  margin: 0 0 14px;
}
.pane-tools > span {
  display: inline;
}
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.latest-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "mark meta"
    "title title"
    "desc desc"
    "go go";
  align-items: center;
  align-content: start;
  gap: 10px 12px;
  min-height: 210px;
  margin: 0;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: none;
}
.latest-item:nth-child(2n),
.latest-item:nth-child(4n) {
  border-right: 1px solid #e2e8f0;
}
.latest-item:hover {
  transform: translateY(-3px);
  border-color: #99f6e4;
  background: #fff;
  box-shadow: 0 18px 30px -22px rgba(15, 118, 110, .7);
}
.latest-item.is-rec {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 72%);
}
.latest-mark {
  grid-area: mark;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1rem;
}
.latest-body {
  display: contents;
}
.latest-top {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}
.latest-kind {
  display: inline-flex;
}
/* 标题：固定两行高，超出用省略号（纯 CSS） */
.latest-item strong {
  grid-area: title;
  height: 2.8em;
  max-height: 2.8em;
  min-height: 2.8em;
  font-size: 1.02rem;
  line-height: 1.4;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: break-word;
}
.latest-desc {
  grid-area: desc;
  min-height: 2.6em;
  margin: 0;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.latest-go {
  grid-area: go;
  display: inline-flex;
  margin-top: auto;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f0fdfa;
}
@media (max-width: 980px) {
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .latest-tabs { padding: 18px 14px; }
  .latest-head { flex-direction: column; align-items: stretch; }
  .latest-grid { grid-template-columns: 1fr; }
  .latest-item { min-height: 0; }
  .latest-go { display: inline-flex; }
}

/* 去掉「刚上架」文案和「查看」，顶部图标与标签同一行对齐 */
.pane-tools > span {
  display: none;
}
.latest-item {
  grid-template-areas:
    "mark meta"
    "title title"
    "desc desc";
  align-items: start;
  min-height: 0;
}
.latest-mark {
  align-self: center;
}
.latest-top {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  min-height: 40px;
  height: 40px;
}
.latest-kind,
.latest-rec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}
/* 日期固定在卡片右上角，不随标签多少位移，与标题分行 */
.latest-item {
  position: relative;
}
.latest-item .latest-top {
  padding-right: 132px;
}
@media (max-width: 720px) {
  .latest-item .latest-top { padding-right: 118px; }
  .latest-top em { top: 24px; right: 18px; font-size: .75rem; }
}
.latest-top em {
  position: absolute;
  top: 27px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-style: normal;
  font-size: .78rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
}
.latest-go {
  display: none;
}


/* 修正「插件」标签比「推荐」更高 */
.latest-item .latest-kind {
  box-sizing: border-box;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 8px;
  line-height: 22px;
  font-size: .72rem;
  font-weight: 800;
}
.latest-item .latest-rec {
  box-sizing: border-box;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0 8px;
  line-height: 22px;
}


/* 插件/推荐同一中线：取消旧的 align-self:flex-start */
.latest-item .latest-kind {
  align-self: center;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0 8px;
  line-height: 1;
  vertical-align: middle;
}
.latest-item .latest-rec {
  align-self: center;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  margin: 0;
  padding: 0 8px;
  line-height: 1;
  vertical-align: middle;
}
.latest-item .latest-top {
  align-items: center;
}

.fh-submit{max-width:820px;margin:0 auto;padding:34px 0 10px}
.fh-submit h1{margin:0 0 8px;color:#0f172a;font-size:2rem}
.fh-submit-lead,.fh-submit-note{color:#64748b;line-height:1.7}
.fh-submit-form{display:grid;gap:14px;margin-top:22px;padding:24px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 12px 30px -24px rgba(15,23,42,.5)}
.fh-submit-form label{display:grid;gap:7px;color:#334155;font-size:.9rem;font-weight:700}
.fh-submit-form input,.fh-submit-form select,.fh-submit-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font:inherit;font-weight:500}
.fh-submit-form input,.fh-submit-form select{height:42px;padding:0 12px}
.fh-submit-form input[type=file]{height:auto;padding:10px 12px}
.fh-submit-form textarea{min-height:140px;padding:10px 12px;resize:vertical}
.fh-kind-theme,.fh-kind-plugin{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fh-submit-form button{justify-self:start;border:0;border-radius:10px;background:#0f172a;color:#fff;font-weight:700;padding:11px 22px;cursor:pointer}
.fh-code{display:flex;align-items:center;gap:10px}.fh-code img{height:42px;border-radius:8px;cursor:pointer}
.fh-submit-ok,.fh-submit-err{margin:14px 0 0;padding:12px 14px;border-radius:12px}
.fh-submit-ok{color:#166534;background:#f0fdf4}.fh-submit-err{color:#991b1b;background:#fef2f2}
.fh-hp{position:absolute;left:-9999px}
@media(max-width:680px){.fh-kind-theme,.fh-kind-plugin{grid-template-columns:1fr}}

.news-strip{margin-top:18px;padding:18px 20px;border:1px solid var(--card-border);border-radius:18px;background:#fff;box-shadow:var(--card-shadow)}
.news-strip-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.news-strip-head h3{margin:0;color:#0f172a;font-size:1.05rem}
.news-strip-head a{color:#0f766e;font-size:.86rem;font-weight:700}
.news-strip-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.news-strip-item{display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px;border-radius:14px;background:#f8fafc}
.news-strip-item:hover{background:#f0fdfa}
.news-strip-item time{color:#0f766e;font-size:.75rem;font-weight:800}
.news-strip-item strong{overflow:hidden;color:#0f172a;font-size:.95rem;white-space:nowrap;text-overflow:ellipsis}
.news-strip-item em{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#64748b;font-style:normal;font-size:.82rem;line-height:1.5}
.news-strip-empty{margin:0;color:#64748b}
.news-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.news-col{min-width:0;padding:14px 16px;border-radius:14px;background:#f8fafc}
.news-col-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #e2e8f0}
.news-col-head h4{margin:0;color:#0f172a;font-size:.95rem;font-weight:800}
.news-col-head a{color:#0f766e;font-size:.8rem;font-weight:700;white-space:nowrap}
.news-list{margin:0;padding:0;list-style:none}
.news-list li{min-width:0}
.news-list li+li{border-top:1px dashed #e2e8f0}
.news-list a{display:flex;align-items:baseline;gap:8px;min-width:0;padding:7px 0;color:#0f172a;font-size:.88rem}
.news-list a:hover{color:#0f766e}
.news-list time{flex:none;color:#0f766e;font-size:.75rem;font-weight:800}
.news-list span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:760px){.news-cols{grid-template-columns:1fr}}
@media(max-width:900px){.news-strip-row{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.news-strip-row{grid-template-columns:1fr}}

/* vlog 记录式最新资讯 */
.news-vlog{margin-top:22px;padding:0;border:0;background:transparent;box-shadow:none}
.news-vlog .news-strip-head{margin-bottom:10px;padding:0 2px}
.news-vlog .news-strip-head h3{font-size:1rem;font-weight:800;letter-spacing:.02em}
.news-vlog .news-strip-head h3:before{content:"";display:inline-block;width:14px;height:2px;margin-right:8px;vertical-align:middle;background:#0f766e;border-radius:2px}
.news-vlog .news-strip-head a{color:#94a3b8;font-size:.8rem;font-weight:600}
.news-vlog .news-strip-head a:hover{color:#0f766e}
.vlog-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
.vlog-col{min-width:0}
.vlog-col-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px;padding-bottom:6px;border-bottom:1px solid #eef2f6}
.vlog-col-head h4{margin:0;color:#334155;font-size:.86rem;font-weight:800;letter-spacing:.04em}
.vlog-col-head a{color:#94a3b8;font-size:.76rem;font-weight:600;white-space:nowrap}
.vlog-col-head a:hover{color:#0f766e}
.vlog-list{margin:0;padding:0;list-style:none}
.vlog-list li{min-width:0}
.vlog-list a{display:flex;align-items:baseline;gap:12px;min-width:0;padding:9px 2px;border-radius:6px;color:#1e293b;font-size:.9rem;line-height:1.5;transition:background .15s ease,color .15s ease}
.vlog-list a:hover{color:#0f766e;background:#f8fafc}
.vlog-list time{flex:none;width:44px;color:#94a3b8;font-size:.76rem;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.vlog-list a:hover time{color:#0f766e}
.vlog-list span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.vlog-empty{margin:10px 2px;color:#cbd5e1;font-size:.82rem}
@media(max-width:760px){.vlog-cols{grid-template-columns:1fr;gap:18px}}
@media(max-width:420px){.vlog-list time{width:40px;font-size:.72rem}.vlog-list a{font-size:.86rem}}

/* ===== 首页热搜榜单式列表 ===== */
.news-hot{margin-top:22px}
.hot-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.hot-card{background:#fff;border:1px solid #eef2f6;border-radius:16px;padding:14px 18px 10px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.hot-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px;padding-bottom:10px;border-bottom:1px solid #f1f5f9}
.hot-head h4{display:flex;align-items:center;gap:6px;margin:0;color:#0f172a;font-size:.95rem;font-weight:800;letter-spacing:.02em}
.hot-ico{color:#f97316;font-size:.85rem}
.hot-head a{color:#94a3b8;font-size:.78rem;font-weight:600;white-space:nowrap}
.hot-head a:hover{color:#0f766e}
.hot-list{margin:0;padding:0;list-style:none;counter-reset:hot}
.hot-list li{counter-increment:hot;min-width:0}
.hot-list a{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 0;color:#1e293b;font-size:.9rem;line-height:1.5;transition:color .15s ease}
.hot-list a:before{content:counter(hot);flex:none;width:18px;text-align:center;color:#94a3b8;font-size:.82rem;font-weight:800;font-variant-numeric:tabular-nums}
.hot-list li:nth-child(1) a:before{color:#ef4444}
.hot-list li:nth-child(2) a:before{color:#f97316}
.hot-list li:nth-child(3) a:before{color:#f59e0b}
.hot-list a span{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hot-date{flex:none;width:auto;min-width:96px;margin-left:10px;text-align:right;color:#94a3b8;font-size:.75rem;font-weight:700;font-style:normal;font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap;display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}
.hot-date b{font-weight:700;color:#94a3b8}
.hot-date i{font-style:normal;font-weight:600;color:#cbd5e1}
.hot-list a:hover{color:#0f766e}
/* hover 只让标题变绿，日期/时间始终固定灰色 */
.hot-list a:hover .hot-date,
.hot-list a:hover .hot-date b{color:#94a3b8}
.hot-list a:hover .hot-date i{color:#cbd5e1}
.hot-empty{margin:12px 0 16px;color:#94a3b8;font-size:.86rem}
/* 首页专题云 */
.fh-topic-cloud{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0 10px}
.fh-topic-chip{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 11px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#334155;font-size:.84rem;font-weight:600;text-decoration:none;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}
.fh-topic-chip span{max-width:15em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.fh-topic-chip em{flex:none;min-width:18px;padding:1px 5px;border-radius:999px;background:#e2e8f0;color:#475569;font-style:normal;font-size:.72rem;font-weight:800;text-align:center}
.fh-topic-chip:hover{border-color:#99f6e4;background:#f0fdfa;color:#0f766e;transform:translateY(-1px)}
.fh-topic-chip:hover em{background:#ccfbf1;color:#0f766e}
@media(max-width:760px){.hot-grid{grid-template-columns:1fr;gap:12px}}
@media(max-width:420px){.hot-card{padding:12px 14px 8px}.hot-list a{font-size:.86rem}}

/* ================= 导航下拉菜单 ================= */
.site-nav li.has-sub { position: relative; }
.site-nav li.has-sub > a { display: inline-flex; align-items: center; }
.site-nav li.has-sub > a::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
  transition: transform .2s ease;
}
.site-nav li.has-sub:hover > a::after { transform: rotate(225deg) translateY(-2px); }
.site-nav .sub-nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 172px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 34px -18px rgba(15, 23, 42, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.site-nav li.has-sub:hover .sub-nav,
.site-nav li.has-sub:focus-within .sub-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav .sub-nav li { width: 100%; }
.site-nav .sub-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 500;
  color: #475569;
  background: transparent;
  white-space: nowrap;
}
.site-nav .sub-nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}
@media (max-width: 900px) {
  .site-nav .sub-nav { display: none; }
}


/* ===== 作品库卡片最终版：日期固定右上、与标题分行、标题 CSS 省略号 ===== */
.latest-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "mark meta"
    "title title"
    "desc desc";
  align-items: center;
  row-gap: 8px;
  min-height: 0;
}
.latest-item .latest-body { display: contents; }

/* 标签行：左标签，日期固定在最右（不绝对定位，保证一定可见） */
.latest-item .latest-top {
  grid-area: meta;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  height: auto;
  min-height: 22px;
  padding: 0;
}
.latest-item .latest-top em {
  position: static;
  order: 99;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 22px;
  line-height: 1;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
  visibility: visible;
  opacity: 1;
}

/* 标题：独立一行，超出用省略号（纯前端 CSS） */
.latest-item > strong,
.latest-item strong {
  grid-area: title;
  display: block;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: 1.02rem;
  line-height: 1.45;
}

/* 描述保持两行省略 */
.latest-item .latest-desc {
  grid-area: desc;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 720px) {
  .latest-item { row-gap: 6px; }
  .latest-item .latest-top em { font-size: .74rem; }
  .latest-item strong { font-size: .96rem; }
}


/* ===== 日期固定在卡片右上角（与标题分行、不参与标签排列） ===== */
.latest-item .latest-top {
  padding-right: 92px;
}
.latest-item .latest-date {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin: 0;
  padding: 0;
  font-style: normal;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 720px) {
  .latest-item .latest-top { padding-right: 84px; }
  .latest-item .latest-date { top: 15px; right: 16px; font-size: .74rem; }
}


/* ===== 作品库卡片：日期作为独立网格列固定在标签行最右（不遮挡、不靠绝对定位） ===== */
.latest-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  grid-template-areas:
    "mark meta date"
    "title title title"
    "desc desc desc";
  align-items:center;
  column-gap:10px;
  row-gap:8px;
  position:relative;
  min-height:0;
}
.latest-item .latest-body{display:contents}
.latest-item .latest-mark{grid-area:mark;align-self:center}
.latest-item .latest-top{
  grid-area:meta;
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:8px;
  min-width:0;
  height:auto;
  min-height:0;
  padding:0;
}
.latest-item .latest-date{
  grid-area:date;
  justify-self:end;
  align-self:center;
  position:static;
  top:auto;
  right:auto;
  z-index:1;
  display:inline-block;
  height:auto;
  min-height:0;
  margin:0;
  padding:0;
  line-height:1.2;
  font-style:normal;
  font-size:.78rem;
  font-weight:700;
  color:#94a3b8;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
  white-space:nowrap;
  pointer-events:none;
  visibility:visible;
  opacity:1;
}
.latest-item > strong,
.latest-item strong{
  grid-area:title;
  display:block;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:1.02rem;
  line-height:1.45;
}
.latest-item .latest-desc{grid-area:desc;min-width:0;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:720px){
  .latest-item{column-gap:8px;row-gap:6px}
  .latest-item .latest-date{font-size:.74rem}
  .latest-item strong{font-size:.96rem}
}

/* ===== home-hero.css ===== */
.hero-kicker{display:inline-flex;margin-bottom:14px;padding:5px 12px;border:1px solid #ccfbf1;border-radius:999px;background:#f0fdfa;color:#0f766e;font-size:.78rem;font-weight:700;letter-spacing:.04em}
.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.btn-hero-secondary{display:inline-flex;align-items:center;padding:13px 22px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#334155;font-size:.98rem;font-weight:650}
.btn-hero-secondary:hover{border-color:#0d9488;color:#0f766e}
.resource-board{display:grid;gap:14px;padding:18px;border:1px solid rgba(226,232,240,.9);border-radius:22px;background:rgba(255,255,255,.86);box-shadow:0 18px 40px -24px rgba(15,23,42,.35)}
.resource-card{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:14px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}
.resource-card:hover{border-color:#99f6e4;transform:translateY(-2px)}
.resource-icon{display:flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:14px;color:#fff}
.resource-icon svg{width:25px;height:25px}
.resource-icon-theme{background:linear-gradient(135deg,#0284c7,#2563eb)}
.resource-icon-plugin{background:linear-gradient(135deg,#0d9488,#10b981)}
.resource-copy{display:flex;min-width:0;flex-direction:column}
.resource-copy strong{color:#0f172a;font-size:1.02rem}
.resource-copy em{color:#64748b;font-size:.82rem;font-style:normal}
.resource-tag{padding:5px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.75rem;font-weight:700;white-space:nowrap}
.resource-note{display:flex;justify-content:space-between;gap:8px;padding:2px 6px 4px;color:#64748b;font-size:.78rem;font-weight:650}
.feature-box{color:inherit}
.chip-item{color:#1e293b;text-decoration:none}
@media(max-width:700px){.resource-card{grid-template-columns:46px 1fr}.resource-tag{display:none}.resource-note{flex-wrap:wrap}}

.ai-console-card{display:flex;flex-direction:column;gap:16px;min-height:100%;padding:22px;border:1px solid rgba(226,232,240,.9);border-radius:22px;background:rgba(255,255,255,.9);box-shadow:0 18px 40px -24px rgba(15,23,42,.35)}
.ai-console-head{display:grid;grid-template-columns:56px 1fr;align-items:center;gap:14px}
.ai-console-icon{display:flex;width:56px;height:56px;align-items:center;justify-content:center;border-radius:16px;background:linear-gradient(135deg,#7c3aed,#4f46e5);color:#fff}
.ai-console-icon svg{width:28px;height:28px}
.ai-console-copy{display:flex;min-width:0;flex-direction:column}
.ai-console-kicker{color:#6d28d9;font-size:.75rem;font-weight:750;letter-spacing:.04em}
.ai-console-copy strong{margin-top:2px;color:#0f172a;font-size:1.18rem;line-height:1.25}
.ai-console-copy em{margin-top:3px;color:#64748b;font-size:.8rem;font-style:normal}
.ai-console-card>p{margin:0;color:#475569;font-size:.9rem;line-height:1.75}
.ai-console-points{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.ai-console-points li{position:relative;padding:9px 12px 9px 28px;border-radius:10px;background:#f8fafc;color:#334155;font-size:.84rem;font-weight:650}
.ai-console-points li:before{content:"";position:absolute;top:15px;left:12px;width:7px;height:7px;border-radius:50%;background:#7c3aed}
.ai-console-link{display:inline-flex;align-items:center;justify-content:center;margin-top:auto;padding:11px 16px;border-radius:12px;background:#4f46e5;color:#fff;font-size:.9rem;font-weight:700}
.ai-console-link:hover{background:#4338ca;color:#fff}
@media(max-width:700px){.ai-console-card{padding:18px}.ai-console-head{grid-template-columns:48px 1fr}.ai-console-icon{width:48px;height:48px}}

/* ===== fh-download.css ===== */
.fh-dl-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.45)}
.fh-dl-modal[hidden]{display:none}
.fh-dl-modal form{width:min(360px,92vw);padding:22px;border-radius:16px;background:#fff;box-shadow:0 20px 50px rgba(15,23,42,.2)}
.fh-dl-modal p{margin:0 0 12px;font-weight:700}
.fh-dl-modal input{width:100%;height:40px;margin-bottom:10px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px}
.fh-dl-modal img{display:block;height:40px;margin-bottom:14px;cursor:pointer}
.fh-dl-modal button{height:38px;margin-right:8px;padding:0 14px;border:0;border-radius:8px;background:#0f766e;color:#fff;cursor:pointer}
.fh-dl-modal .fh-dl-close{background:#e2e8f0;color:#334155}

/* 文章摘要块 */
.fh-abstract{margin:0 0 22px;padding:14px 16px 14px 16px;border-radius:12px;background:#f0fdfa;border:1px solid #ccfbf1;border-left:4px solid #14b8a6;color:#134e4a}
.fh-abstract-label{display:inline-block;margin-bottom:6px;font-size:.78rem;font-weight:700;letter-spacing:.08em;color:#0f766e;text-transform:uppercase}
.fh-abstract p{margin:0;font-size:.95rem;line-height:1.8;color:#334155}
@media(max-width:640px){.fh-abstract{padding:12px 13px}.fh-abstract p{font-size:.9rem}}

/* 首页底部友情链接 */
.footer-links{margin-top:28px;padding-top:22px;border-top:1px solid rgba(255,255,255,.08)}
.footer-links-title{margin:0 0 12px;font-size:14px;font-weight:600;letter-spacing:.02em;opacity:.9}
.footer-links ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px 14px}
.footer-links li{margin:0}
.footer-links li a{display:inline-block;padding:5px 12px;font-size:13px;line-height:1.5;border-radius:999px;border:1px solid rgba(255,255,255,.14);color:inherit;text-decoration:none;transition:all .2s ease;opacity:.82}
.footer-links li a:hover{border-color:rgba(120,180,255,.7);background:rgba(120,180,255,.12);opacity:1;transform:translateY(-1px)}
@media (max-width:640px){.footer-links{margin-top:22px}.footer-links ul{gap:8px 10px}.footer-links li a{font-size:12px;padding:4px 10px}}
/* ===== 移动端修复：横向溢出 + 导航抽屉 ===== */
html, body { max-width: 100%; overflow-x: hidden; }
body { width: 100%; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  /* 顶栏改三列：logo | 按钮 | 汉堡 */
  .header-inner {
    height: 60px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand-wrap { min-width: 0; flex: 1 1 auto; gap: 9px; }
  .brand-name {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-icon-svg svg { width: 30px; height: 30px; }
  .header-actions { flex: 0 0 auto; gap: 8px; }
  .btn-nav-login { padding: 7px 13px; font-size: .82rem; }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #0f172a;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* 导航默认收起，展开为竖排面板 */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 18px 34px -22px rgba(15, 23, 42, .45);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: .95rem;
  }
  .site-nav li.has-sub > a::after { float: right; margin-top: 6px; }
  .site-nav .sub-nav {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    margin: 2px 0 4px 12px;
    padding: 0 0 0 10px;
    border: 0;
    border-left: 2px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
  }
  .site-nav .sub-nav a { padding: 9px 10px; font-size: .88rem; }
}

/* ===== 移动端修复：内容不撑破视口 ===== */
@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .fh-article { margin: 16px auto 28px; padding: 0 12px; }
  .fh-article .container {
    max-width: 100%;
    padding: 18px 16px;
    border-radius: 14px;
  }
  .fh-content, .fh-content p, .fh-content li,
  .fh-content h2, .fh-content h3, .fh-content h4 {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .fh-content pre { max-width: 100%; overflow-x: auto; }
  .fh-content table { display: block; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 640px) {
  .fh-article { padding: 0 10px; }
  .fh-article .container { padding: 16px 13px; }
  /* 标题：允许换行，不再被裁掉 */
  .fh-article h1 {
    font-size: 1.32rem;
    line-height: 1.42;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* 面包屑：长标题折行而不溢出 */
  .fh-crumb {
    flex-wrap: wrap;
    row-gap: 3px;
    font-size: .76rem;
  }
  .fh-crumb span:last-child {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
  }
  .fh-meta { font-size: .82rem; }
  .fh-chips { gap: 6px; }
  .fh-chip { height: 24px; padding: 0 9px; font-size: .74rem; }
  .fh-abstract { margin-bottom: 18px; }
  .fh-content { font-size: .95rem; line-height: 1.78; }
  .fh-content pre { padding: 12px; font-size: .82rem; }
  .fh-content img { border-radius: 8px; }
  .fh-pack { flex-wrap: wrap; gap: 10px; padding: 12px 13px; }
  .fh-pack-btn { width: 100%; justify-content: center; }
  .fh-tags { flex-direction: column; gap: 8px; }
}
/* ============================================================
   移动端修复包 v20261019_13
   首页 / 详情页 / 列表页通用
   1) 禁止横向滚动外溢  2) 手机端导航可展开  3) 详情页内边距收紧
   4) 表格/代码块横向可滚  5) 首页卡片、页脚间距压缩
   ============================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- 手机端导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
/* 汉堡按钮：header.php 内为 3 个 span，禁止再叠加 ::before/::after，否则叠成 9 条线 */
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: none; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner {
    height: 62px;
    gap: 10px;
  }
  .nav-toggle { display: inline-flex; }
  .brand-name { font-size: 1.02rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 10px 16px 14px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 18px 28px -22px rgba(15, 23, 42, .55);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: .95rem;
  }
  .site-nav li.has-sub > a::after { display: none; }
  .site-nav .sub-nav {
    position: static;
    display: flex;
    min-width: 0;
    margin: 2px 0 6px 10px;
    padding: 4px 0 4px 10px;
    border: 0;
    border-left: 2px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav .sub-nav a {
    padding: 8px 10px;
    font-size: .9rem;
  }
  .header-actions { gap: 8px; }
  .btn-nav-login {
    padding: 7px 14px;
    font-size: .84rem;
  }
}

/* ---------- 通用：容器与主区内边距 ---------- */
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .main-content { padding: 20px 0 24px; }
  .hero-section { padding: 16px 0 10px; }
  .hero-title { font-size: 1.68rem; line-height: 1.28; }
  .hero-desc { font-size: .93rem; line-height: 1.7; margin-bottom: 18px; }
  .hero-kicker { font-size: .72rem; }
  .hero-grid { gap: 24px; }
  .btn-hero-primary,
  .btn-hero-secondary { padding: 11px 16px; font-size: .9rem; }

  /* 首页三列入口 */
  .cards-grid-3 { gap: 14px; }
  .feature-box { padding: 18px; }

  /* 首页作品库 */
  .latest-tabs { padding: 16px 12px; margin-top: 20px; }
  .latest-head { gap: 10px; }
  .latest-grid { gap: 10px; }
  .latest-item { padding: 14px 14px 12px; border-radius: 14px; }
  .latest-item .latest-top { padding-right: 70px; }
  .latest-item .latest-date { top: auto; right: 14px; font-size: .72rem; }
  .latest-mark { width: 36px; height: 36px; border-radius: 10px; font-size: .92rem; }
  .latest-item strong { font-size: .95rem; }
  .latest-desc { font-size: .84rem; }

  /* 首页热搜榜单 */
  .news-hot { margin-top: 18px; }
  .hot-card { padding: 12px 12px 6px; border-radius: 14px; }
  .hot-head h4 { font-size: .9rem; }
  .hot-list a { gap: 8px; font-size: .86rem; padding: 8px 0; }
  .hot-date { min-width: 72px; margin-left: 6px; font-size: .72rem; }
  .hot-date i { display: none; }

  /* 首页资源胶囊 */
  .matrix-chips { gap: 10px; }
  .chip-item { padding: 7px 12px; }

  /* 页脚 */
  .site-footer { padding: 32px 0 20px; }
  .footer-grid { gap: 22px; padding-bottom: 26px; }
  .footer-desc { max-width: none; }
  .footer-bottom { font-size: .78rem; }
  .footer-links { margin-top: 20px; padding-top: 16px; }

  /* 列表页卡片 */
  .news-card,
  .app-card { padding: 16px; border-radius: 14px; }
  .news-card-title { font-size: 1.08rem; }
  .news-card-excerpt { font-size: .88rem; }
  .catalog-main-title,
  .market-title { font-size: 1.5rem; }
  .theme-grid,
  .plugin-grid { grid-template-columns: 1fr; gap: 14px; }
  .theme-cover,
  .plugin-cover { height: 140px; }
}

/* ---------- 详情页 / 单页 ---------- */
@media (max-width: 900px) {
  .fh-article { margin: 16px auto 28px; padding: 0 12px; }
  .fh-layout { gap: 0; }
}

@media (max-width: 640px) {
  .fh-article h1 { font-size: 1.32rem; line-height: 1.42; }
  .fh-article .container {
    padding: 18px 14px;
    border-radius: 12px;
  }
  .fh-meta { font-size: .8rem; gap: 3px; }
  .fh-crumb { font-size: .76rem; gap: 5px; }
  .fh-chips { gap: 6px; }
  .fh-chip { height: 24px; padding: 0 8px; font-size: .74rem; }

  .fh-content {
    font-size: .96rem;
    line-height: 1.82;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .fh-content h2 { font-size: 1.16rem; margin: 20px 0 8px; }
  .fh-content h3 { font-size: 1.04rem; margin: 18px 0 8px; }
  .fh-content h4 { font-size: .98rem; }
  .fh-content p { margin: 0 0 14px; }
  .fh-content ul,
  .fh-content ol { padding-left: 1.15em; }
  .fh-content img { border-radius: 8px; margin: 6px 0 14px; }
  .fh-content pre {
    padding: 12px;
    font-size: .8rem;
    border-radius: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fh-content code { word-break: break-all; }
  /* 表格：手机上改为块级横向滚动，避免撑破页面 */
  .fh-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .84rem;
  }
  .fh-content th,
  .fh-content td { padding: 7px 9px; white-space: nowrap; }
  .fh-content blockquote { padding: 9px 12px; font-size: .92rem; }
  .fh-content iframe,
  .fh-content video { max-width: 100%; }

  .fh-abstract { margin-bottom: 16px; padding: 12px 13px; border-radius: 10px; }
  .fh-abstract p { font-size: .9rem; line-height: 1.75; }
  .fh-tags { margin-top: 18px; padding-top: 14px; gap: 8px; }
  .fh-nav { margin-top: 18px; padding-top: 14px; gap: 10px; }
  .fh-nav a { min-height: 0; padding: 10px 12px; }
  .fh-nav strong { font-size: .88rem; }
  .fh-page-layout { padding: 0 12px; }
  .fh-pack { flex-direction: column; align-items: stretch; gap: 10px; }
  .fh-pack-btn { justify-content: center; }
}

/* ---------- 侧栏在手机端 ---------- */
@media (max-width: 900px) {
  .fh-side { margin-top: 16px; }
  .fh-side-box { padding: 14px; border-radius: 12px; }
}

/* ---------- 评论 / 表单在手机端 ---------- */
@media (max-width: 640px) {
  .fh-submit { padding: 20px 0 6px; }
  .fh-submit h1 { font-size: 1.5rem; }
  .fh-submit-form { padding: 16px; gap: 12px; border-radius: 14px; }
  .fh-submit-form input,
  .fh-submit-form select { height: 40px; }
  .fh-submit-form button { justify-self: stretch; width: 100%; }

  /* 表单类通用：防止 input 撑破容器 */
  input, select, textarea { max-width: 100%; }

  /* 图片统一样式约束 */
  img { max-width: 100%; height: auto; }
}
/* ===== 移动端横向溢出二次修复（卡片被裁/标题截断） ===== */
@media (max-width: 900px) {
  .container,
  .fh-article,
  .fh-article .container,
  .fh-layout,
  .fh-main,
  .main-content,
  .fh-page-layout,
  .fh-page-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .fh-layout,
  .fh-main,
  .fh-page-main,
  .hero-grid,
  .latest-grid,
  .hot-grid,
  .vlog-cols,
  .news-cols,
  .news-strip-row,
  .theme-grid,
  .plugin-grid,
  .app-grid {
    min-width: 0;
  }
  .fh-layout > *,
  .latest-grid > *,
  .hot-grid > *,
  .vlog-cols > *,
  .news-cols > * {
    min-width: 0;
    max-width: 100%;
  }
  /* 图片、表格、代码块一律不得超出卡片 */
  .fh-content img,
  .fh-content iframe,
  .fh-content video,
  .fh-content table,
  .fh-content pre {
    max-width: 100% !important;
  }
  .fh-content iframe,
  .fh-content video {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  /* 标题强制可换行，避免右侧被裁 */
  .fh-article h1,
  .fh-content h1,
  .fh-content h2,
  .fh-content h3 {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .fh-crumb,
  .fh-meta {
    white-space: normal;
    word-break: break-word;
  }
  /* 首屏两栏布局在小屏收为单列 */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hot-card,
  .latest-tabs,
  .news-card,
  .app-card,
  .ai-custom-content {
    padding-left: 14px;
    padding-right: 14px;
  }
}
/* ===== 移动端横向溢出终极兜底 v20261019_15 ===== */
/* SVG 雪碧图本身不占位，避免撑出宽度 */
.fh-sprite { position: absolute !important; width: 0 !important; height: 0 !important; overflow: hidden !important; }
/* 导航抽屉需要相对定位父级，否则 absolute 会相对视口、跑到屏幕下方 */
.site-header { position: relative; }

@media (max-width: 900px) {
  *, *::before, *::after { box-sizing: border-box !important; }
  html, body { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }

  img, svg, video, iframe, canvas, table, pre {
    max-width: 100% !important;
  }

  /* 所有容器一律不得超出视口 */
  .container, main, .main-content, .fh-article, .fh-page-layout, .fh-layout, .fh-main,
  .site-header, .site-footer, section, article, aside,
  [class*="-grid"], [class*="-row"], [class*="-cols"], [class*="-wrap"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* 多列网格在小屏统一收成单列 */
  .hero-grid, .latest-grid, .hot-grid, .vlog-cols, .news-cols, .news-strip-row,
  .theme-grid, .plugin-grid, .app-grid, .cards-grid-3, .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
  }

  /* 详情页主栏 + 侧栏改为上下堆叠 */
  .fh-layout { display: block !important; }
  .fh-side { width: 100% !important; max-width: 100% !important; }

  /* 所有横向排列的条带改为换行，禁止撑宽 */
  [class*="-row"], [class*="-strip"], .matrix-chips, .fh-chips,
  .footer-links ul, .hot-list, .latest-head, .fh-meta, .fh-crumb {
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  /* 固定宽度/最小宽度一律放开 */
  .hot-date, .latest-item .latest-top, .latest-item .latest-date,
  .news-strip-row > *, .vlog-cols > * {
    min-width: 0 !important;
  }
  .latest-item .latest-top { padding-right: 0 !important; }
  .latest-item .latest-date { position: static !important; margin-top: 4px; }

  /* 长英文/URL 强制断行 */
  body, p, li, h1, h2, h3, h4, a, span, td, th, code {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 12px !important; }
  .hero-title { font-size: 1.6rem !important; }
  .fh-content { font-size: .94rem !important; }
}

/* ===== 追加修正：汉堡按钮三条线必须竖排，否则横排会撑破按钮/视口 ===== */
.nav-toggle {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  overflow: hidden;
}
.nav-toggle span {
  flex: 0 0 auto;
  width: 18px !important;
  max-width: 18px !important;
}
@media (max-width: 900px) {
  .header-inner { overflow: visible; }
  /* 导航抽屉锚定在 header 底部，不允许超出视口宽度 */
  .site-nav {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  /* 顶栏三块：logo 可压缩、按钮与汉堡固定 */
  .header-inner { gap: 8px !important; }
  .brand-wrap { flex: 1 1 auto !important; min-width: 0 !important; }
  .header-actions { flex: 0 0 auto !important; }
  .nav-toggle { flex: 0 0 auto !important; width: 38px !important; height: 34px !important; padding: 0 !important; }
}

/* ===== 手机端横向溢出收口 v20261019_17（最后一层兜底，优先级最高） ===== */
@media (max-width: 900px) {
  /* 1. 所有网格子项允许收缩，长词强制断行 */
  .hero-grid > *, .hero-left, .hero-right,
  .latest-grid > *, .hot-grid > *, .footer-grid > *,
  .cards-grid-3 > *, .news-cols > *, .vlog-cols > *,
  .theme-grid > *, .plugin-grid > *, .app-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. 作品库卡片：标题不再单行硬撑，允许两行；日期回到正常流 */
  .latest-item {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "mark" "meta" "title" "desc" !important;
    row-gap: 8px !important;
    padding: 14px !important;
    overflow: hidden;
  }
  .latest-item .latest-mark { grid-area: mark !important; }
  .latest-item .latest-top {
    grid-area: meta !important;
    padding-right: 0 !important;
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 6px 8px !important;
  }
  .latest-item .latest-top em {
    margin-left: 0 !important;
    order: 0 !important;
    position: static !important;
  }
  .latest-item > strong,
  .latest-item strong {
    grid-area: title !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    font-size: .98rem !important;
    line-height: 1.45 !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
  }
  .latest-item .latest-desc {
    grid-area: desc !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    overflow-wrap: break-word !important;
  }

  /* 3. 热搜榜：标题允许两行，日期移到下一行右侧 */
  .hot-list a {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }
  .hot-list a span {
    flex: 1 1 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .hot-date {
    min-width: 0 !important;
    margin-left: 28px !important;
    justify-content: flex-start !important;
    font-size: .72rem !important;
  }

  /* 4. 顶部品牌名 + 按钮不挤在一起 */
  .site-header, .header-inner { max-width: 100% !important; overflow-x: clip; }
  .brand-name { max-width: 100% !important; }

  /* 5. 任何绝对定位的下拉面板不得越界 */
  .site-nav, .site-nav .sub-nav {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 6. 卡片内边距在窄屏收紧，避免 padding 叠加出横向溢出 */
  .hero-section, .latest-tabs, .news-hot, .site-footer { max-width: 100% !important; }
  .feature-box, .hot-card, .latest-tabs { box-sizing: border-box !important; }
}

@media (max-width: 560px) {
  .container { padding: 0 12px !important; }
  .hero-grid { gap: 18px !important; }
  .hero-title { font-size: 1.55rem !important; line-height: 1.3 !important; }
  .hero-actions { flex-wrap: wrap !important; gap: 10px !important; }
  .btn-hero-primary, .btn-hero-secondary { width: 100% !important; justify-content: center !important; }
  .ai-console-card { padding: 16px !important; }
  .ai-console-head { grid-template-columns: 44px minmax(0, 1fr) !important; gap: 12px !important; }
  .ai-console-copy strong { font-size: 1.02rem !important; }
  .footer-grid { gap: 18px !important; }
  .fh-content table { display: block !important; width: 100% !important; overflow-x: auto !important; }
}

/* ===== 汉堡按钮最终版 v20261019_17：单 span + box-shadow 画三条线，彻底避免叠线/横排 ===== */
.nav-toggle{
  display:none;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:38px;
  height:34px;
  padding:0;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  overflow:hidden;
}
.nav-toggle .nav-bars,
.nav-toggle span{
  position:relative;
  display:block;
  flex:0 0 auto;
  width:18px !important;
  max-width:18px !important;
  height:2px !important;
  margin:0;
  border:0;
  border-radius:2px;
  background:currentColor;
  box-shadow:0 -6px 0 0 currentColor, 0 6px 0 0 currentColor;
  transition:transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.nav-toggle .nav-bars::before,
.nav-toggle .nav-bars::after,
.nav-toggle span::before,
.nav-toggle span::after{ content:none !important; display:none !important; }
/* 展开态变叉号：中间线隐藏，上下两线旋转 */
.nav-toggle.is-open .nav-bars,
.nav-toggle[aria-expanded="true"] .nav-bars,
.nav-toggle.is-open span,
.nav-toggle[aria-expanded="true"] span{
  background:transparent !important;
  box-shadow:none !important;
}
.nav-toggle.is-open .nav-bars::before,
.nav-toggle[aria-expanded="true"] .nav-bars::before{
  content:"";
  display:block !important;
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:rotate(45deg);
}
.nav-toggle.is-open .nav-bars::after,
.nav-toggle[aria-expanded="true"] .nav-bars::after{
  content:"";
  display:block !important;
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform:rotate(-45deg);
}
@media (max-width:900px){
  .nav-toggle{ display:inline-flex !important; }
}

/* ===== 导航按钮最终修正 v20261019_18 =====
   1) 收起态：单 span + box-shadow 画三条横线（不再叠 9 条）
   2) 展开态：span 本体清空，::before/::after 交叉成 X
   3) 旧规则里的 span:nth-child(n) 位移/旋转全部用 !important 压掉，避免斜线重影
   4) 移动端顺序：logo → 投稿 → 汉堡（汉堡固定最右） */
.nav-toggle{
  display:none;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:38px;
  height:34px;
  padding:0;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  overflow:hidden;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.nav-toggle > span{
  position:relative;
  display:block;
  flex:0 0 auto;
  width:18px !important;
  max-width:18px !important;
  height:2px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:2px;
  background:currentColor !important;
  box-shadow:0 -6px 0 0 currentColor, 0 6px 0 0 currentColor !important;
  transform:none !important;
  opacity:1 !important;
  transition:transform .22s ease, opacity .22s ease, box-shadow .22s ease;
}
.nav-toggle > span::before,
.nav-toggle > span::after{
  content:"" !important;
  display:block !important;
  position:absolute;
  left:0;
  top:0;
  width:18px;
  height:2px;
  margin:0;
  border-radius:2px;
  background:currentColor !important;
  opacity:0;
  transform:rotate(0deg);
  transition:transform .22s ease, opacity .22s ease;
}
.nav-toggle.is-open > span,
.nav-toggle[aria-expanded="true"] > span{
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
  opacity:1 !important;
}
.nav-toggle.is-open > span::before,
.nav-toggle[aria-expanded="true"] > span::before{
  opacity:1 !important;
  transform:rotate(45deg) !important;
}
.nav-toggle.is-open > span::after,
.nav-toggle[aria-expanded="true"] > span::after{
  opacity:1 !important;
  transform:rotate(-45deg) !important;
}
@media (max-width:900px){
  .nav-toggle{ display:inline-flex !important; order:3 !important; }
  .brand-wrap{ order:1 !important; }
  .header-actions{ order:2 !important; margin-left:auto !important; }
  .site-nav{ z-index:60 !important; }
  .site-header{ z-index:70 !important; }
}
/* ===== v20261019_19 修复：导航展开后按钮区变空白 ===== */
.nav-toggle span.nav-bars {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a !important;
  box-shadow: 0 -6px 0 0 #0f172a, 0 6px 0 0 #0f172a !important;
  transform: none !important;
  position: relative;
}
.nav-toggle.is-open span.nav-bars {
  background: #0f172a !important;
  box-shadow: none !important;
  transform: rotate(45deg) !important;
}
.nav-toggle.is-open span.nav-bars::before {
  content: none !important;
  display: none !important;
}
.nav-toggle.is-open span.nav-bars::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #0f172a;
  transform: rotate(-90deg);
}
.nav-toggle.is-open {
  background: rgba(15, 23, 42, .06) !important;
  border-radius: 10px;
}
/* ===== v20261019_20 汉堡按钮最终版：单 span 本体一条线 + ::before/::after 两条线，展开交叉成 X ===== */
.nav-toggle {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span.nav-bars {
  position: relative !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 22px !important;
  max-width: 22px !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: #0f172a !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  transition: background .2s ease !important;
}
.nav-toggle span.nav-bars::before,
.nav-toggle span.nav-bars::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  width: 22px !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: #0f172a !important;
  opacity: 1 !important;
  transition: top .2s ease, transform .2s ease !important;
}
.nav-toggle span.nav-bars::before { top: -7px !important; transform: none !important; }
.nav-toggle span.nav-bars::after  { top: 7px !important; transform: none !important; }
.nav-toggle.is-open,
.nav-toggle.is-open span.nav-bars {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.nav-toggle.is-open span.nav-bars::before { top: 0 !important; transform: rotate(45deg) !important; }
.nav-toggle.is-open span.nav-bars::after  { top: 0 !important; transform: rotate(-45deg) !important; }


/* ===== v20261019_21 手机端页脚收短：品牌占满一行，快捷链接/生态资源两列并排 ===== */
@media (max-width: 900px) {
  .site-footer { padding: 32px 0 20px !important; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 16px !important;
    padding-bottom: 18px !important;
  }
  /* 品牌介绍占满整行，下面两列链接并排 */
  .footer-brand-col {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
  }
  .footer-logo { margin-bottom: 10px !important; }
  .footer-desc {
    max-width: 100% !important;
    margin-bottom: 0 !important;
    font-size: .84rem !important;
    line-height: 1.6 !important;
  }
  .footer-nav-col { min-width: 0 !important; }
  .footer-nav-col h4 {
    margin-bottom: 10px !important;
    font-size: .9rem !important;
  }
  .footer-nav-col ul { gap: 8px !important; }
  .footer-nav-col a { font-size: .84rem !important; }
  .footer-nav-col a:hover { transform: none !important; }
  .footer-bottom { padding-top: 16px !important; font-size: .76rem !important; }
}

@media (max-width: 380px) {
  .footer-grid { gap: 18px 10px !important; }
  .footer-nav-col ul { gap: 6px !important; }
  .footer-nav-col a,
  .footer-desc { font-size: .8rem !important; }
}
/* ===== v20261019_22 桌面端隐藏汉堡按钮（仅手机/窄屏显示） =====
   之前 v20 里 .nav-toggle 写了 display:inline-flex !important 无条件生效，
   导致 PC 端 logo 和导航之间多出一个按钮。这里按断点收回来。 */
.nav-toggle{
  display: none !important;
}
@media (min-width: 901px){
  .nav-toggle{
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
  }
  /* PC 端导航保持原位，不受 order 影响 */
  .site-header .brand-wrap{ order: 0 !important; }
  .site-header .header-actions{ order: 0 !important; margin-left: auto !important; }
}
@media (max-width: 900px){
  .nav-toggle{
    display: inline-flex !important;
    visibility: visible !important;
    width: 40px !important;
    height: 40px !important;
    pointer-events: auto !important;
    order: 3 !important;
  }
}
/* ===== v20261019_23 桌面端导航回到居中、加大间距 =====
   v22 给 .header-actions 加了 margin-left:auto，flex 里 auto 外边距会吃掉
   全部剩余空间，把导航挤到 logo 旁边（截图中导航紧贴品牌名）。
   这里撤销 auto，让 .site-nav 自身 flex:1 + 内部居中，导航即回到中间。 */
@media (min-width: 901px) {
  .site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }
  .site-header .brand-wrap {
    flex: 0 0 auto !important;
    order: 0 !important;
  }
  .site-header .header-actions {
    flex: 0 0 auto !important;
    order: 0 !important;
    margin-left: 0 !important;
  }
  /* 导航占据中间剩余空间并在其中居中 */
  .site-header .site-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-width: 0 !important;
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    transform: none !important;
  }
  .site-header .site-nav > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }
  .site-header .site-nav a {
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    padding: 0 18px !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
  }
}

/* 日期归档页 · 年/月/日 三级时间线 */
.fh-dtl{display:flex;flex-direction:column;gap:10px;margin:0 0 22px;padding:14px 16px;background:#fff;border:1px solid #e8edf3;border-radius:14px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.fh-dtl-row{display:flex;align-items:flex-start;gap:10px}
.fh-dtl-label{flex:0 0 auto;width:20px;padding-top:5px;font-size:.82rem;font-weight:700;color:#0f766e;text-align:center}
.fh-dtl-track{display:flex;flex:1 1 auto;gap:6px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.fh-dtl-track::-webkit-scrollbar{height:4px}
.fh-dtl-track::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}
.fh-dtl-chip{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:28px;padding:0 10px;font-size:.82rem;color:#475569;background:#f8fafc;border:1px solid #e8edf3;border-radius:8px;text-decoration:none;transition:all .16s ease}
.fh-dtl-chip:hover{color:#0f766e;border-color:#99f6e4;background:#f0fdfa;transform:translateY(-1px)}
.fh-dtl-chip.is-cur{color:#fff;background:#0f766e;border-color:#0f766e;font-weight:700;box-shadow:0 2px 6px rgba(15,118,110,.28)}
@media (max-width:640px){
  .fh-dtl{padding:12px 12px;gap:8px}
  .fh-dtl-label{width:16px;font-size:.76rem}
  .fh-dtl-chip{min-width:38px;height:26px;padding:0 8px;font-size:.78rem}
}


/* ===== 专题合集页（topic / topics） ===== */
body.topic .topic-page{padding:32px 0 56px}
body.topic .catalog-header{margin-bottom:24px}
body.topic .breadcrumb-nav{display:flex;align-items:center;gap:8px;font-size:13px;color:#64748b;margin-bottom:14px}
body.topic .breadcrumb-nav a{color:#0ea5e9;text-decoration:none}
body.topic .breadcrumb-nav a:hover{text-decoration:underline}
body.topic .catalog-main-title{font-size:30px;line-height:1.3;font-weight:800;color:#0f172a;margin:0 0 8px}
body.topic .catalog-desc{font-size:14px;color:#64748b;margin:0}
body.topic .catalog-desc strong{color:#0ea5e9;font-weight:700}
body.topic .topic-index-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-top:8px}
body.topic .topic-index-card{display:flex;flex-direction:column;gap:6px;padding:18px 18px 16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
body.topic .topic-index-card:hover{transform:translateY(-2px);border-color:#bae6fd;box-shadow:0 10px 24px -12px rgba(14,165,233,.45)}
body.topic .topic-index-name{font-size:16px;font-weight:700;color:#0f172a;line-height:1.45}
body.topic .topic-index-num{font-size:12px;color:#0ea5e9;font-weight:600;background:#f0f9ff;border-radius:999px;padding:3px 10px;align-self:flex-start}
body.topic .topic-chip-list{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 26px}
body.topic .topic-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:13px;text-decoration:none;border:1px solid transparent;transition:.16s}
body.topic .topic-chip:hover{background:#e0f2fe;color:#0369a1;border-color:#bae6fd}
body.topic .topic-chip.is-current{background:#0ea5e9;color:#fff}
body.topic .topic-chip-num{font-size:11px;opacity:.75}
body.topic .news-empty-state{padding:60px 20px;text-align:center;color:#94a3b8}
body.topic .topic-article-list{display:grid;gap:14px}
body.topic .topic-article-item{padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
body.topic .topic-article-item h3{margin:0 0 8px;font-size:17px;line-height:1.5}
body.topic .topic-article-item h3 a{color:#0f172a;text-decoration:none}
body.topic .topic-article-item h3 a:hover{color:#0ea5e9}
@media (max-width:640px){
  body.topic .catalog-main-title{font-size:22px}
  body.topic .topic-index-grid{grid-template-columns:1fr 1fr;gap:10px}
  body.topic .topic-index-card{padding:14px}
}

/* ===== 专题详情页（专业化改版） ===== */
body.topic .topic-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:#94a3b8;margin-bottom:20px}
body.topic .topic-crumb a{color:#0d9488;text-decoration:none;font-weight:600}
body.topic .topic-crumb a:hover{text-decoration:underline}
body.topic .topic-crumb-sep{color:#cbd5e1}
body.topic .topic-crumb-cur{color:#334155;font-weight:600}
body.topic .topic-hero{background:linear-gradient(160deg,#f8fafc 0%,#fff 60%);border:1px solid rgba(226,232,240,.95);border-radius:22px;padding:34px 34px 30px;margin-bottom:28px;box-shadow:0 12px 30px -18px rgba(15,23,42,.18)}
body.topic .topic-hero-tag{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.08em;color:#0f766e;background:rgba(13,148,136,.1);border-radius:999px;padding:4px 12px;margin-bottom:14px}
body.topic .topic-hero-title{font-size:34px;line-height:1.28;font-weight:800;letter-spacing:-.02em;color:#0f172a;margin:0 0 12px}
body.topic .topic-hero-meta{display:flex;align-items:center;flex-wrap:wrap;gap:18px;font-size:13px;color:#64748b;margin-bottom:14px}
body.topic .topic-meta-item strong{color:#0d9488;font-size:16px;font-weight:800}
body.topic .topic-hero-intro{margin:0;max-width:820px;font-size:15px;line-height:1.95;color:#475569;border-left:3px solid rgba(13,148,136,.35);padding-left:16px}
body.topic .topic-sec-title{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:800;color:#0f172a;margin:0 0 16px}
body.topic .topic-sec-title:before{content:"";width:4px;height:18px;border-radius:2px;background:linear-gradient(180deg,#0d9488,#0ea5e9)}
body.topic .topic-nav-box{margin-bottom:30px}
body.topic .topic-toc{margin-bottom:32px}
body.topic .topic-toc-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px}
body.topic .topic-toc-list a{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-decoration:none;transition:.18s}
body.topic .topic-toc-list a:hover{border-color:#99f6e4;background:#f0fdfa;transform:translateY(-1px)}
body.topic .topic-toc-index{flex:0 0 auto;width:24px;height:24px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#0f766e;background:rgba(13,148,136,.1)}
body.topic .topic-toc-text{flex:1;font-size:14.5px;color:#0f172a;font-weight:600;line-height:1.5}
body.topic .topic-toc-size{flex:0 0 auto;font-size:12px;color:#94a3b8}
body.topic .topic-article-list{display:grid;gap:16px;margin-bottom:36px}
body.topic .topic-article-item{border:1px solid rgba(226,232,240,.95);border-radius:18px;background:#fff;padding:24px 26px;box-shadow:0 10px 25px -18px rgba(15,23,42,.2);transition:.2s}
body.topic .topic-article-item:hover{transform:translateY(-2px);border-color:rgba(13,148,136,.35);box-shadow:0 18px 34px -20px rgba(13,148,136,.4)}
body.topic .topic-article-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
body.topic .topic-article-cate{font-size:12px;font-weight:700;color:#0f766e;background:rgba(13,148,136,.1);border-radius:999px;padding:3px 10px;text-decoration:none}
body.topic .topic-article-cate:hover{background:rgba(13,148,136,.18)}
body.topic .topic-article-date{font-size:12px;color:#94a3b8}
body.topic .topic-article-title{margin:0 0 10px;font-size:19px;line-height:1.5;font-weight:800;letter-spacing:-.01em}
body.topic .topic-article-title a{color:#0f172a;text-decoration:none}
body.topic .topic-article-title a:hover{color:#0d9488}
body.topic .topic-article-desc{margin:0 0 14px;font-size:14.5px;line-height:1.9;color:#64748b}
body.topic .topic-article-foot{border-top:1px solid #f1f5f9;padding-top:12px}
body.topic .topic-article-more{font-size:13px;font-weight:700;color:#0d9488;text-decoration:none}
body.topic .topic-article-more:hover{text-decoration:underline}
body.topic .topic-post-list{margin-bottom:36px}
body.topic .topic-sec-count{margin-left:2px;font-size:12px;font-weight:700;color:#0f766e;background:rgba(13,148,136,.1);border-radius:999px;padding:2px 9px}
body.topic .topic-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px}
body.topic .topic-post-card{display:flex;flex-direction:column;border:1px solid rgba(226,232,240,.95);border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 25px -18px rgba(15,23,42,.2);transition:.22s}
body.topic .topic-post-card:hover{transform:translateY(-3px);border-color:rgba(13,148,136,.35);box-shadow:0 20px 38px -22px rgba(13,148,136,.45)}
body.topic .topic-post-cover{display:block;aspect-ratio:16/9;overflow:hidden;background:#f1f5f9}
body.topic .topic-post-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
body.topic .topic-post-card:hover .topic-post-cover img{transform:scale(1.05)}
body.topic .topic-post-body{display:flex;flex-direction:column;flex:1;padding:18px 20px 20px}
body.topic .topic-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
body.topic .topic-post-cate{font-size:12px;font-weight:700;color:#0f766e;background:rgba(13,148,136,.1);border-radius:999px;padding:3px 10px;text-decoration:none}
body.topic .topic-post-cate:hover{background:rgba(13,148,136,.18)}
body.topic .topic-post-date{font-size:12px;color:#94a3b8}
body.topic .topic-post-title{margin:0 0 10px;font-size:17px;line-height:1.55;font-weight:800;letter-spacing:-.01em}
body.topic .topic-post-title a{color:#0f172a;text-decoration:none}
body.topic .topic-post-title a:hover{color:#0d9488}
body.topic .topic-post-desc{margin:0 0 14px;font-size:14px;line-height:1.9;color:#64748b;flex:1}
body.topic .topic-post-foot{border-top:1px solid #f1f5f9;padding-top:12px;margin-top:auto}
body.topic .topic-post-more{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:#0d9488;text-decoration:none}
body.topic .topic-post-more:hover{text-decoration:underline}
body.topic .topic-post-arrow{width:14px;height:14px;transition:transform .2s}
body.topic .topic-post-card:hover .topic-post-arrow{transform:translateX(3px)}
body.topic .topic-more{margin-bottom:20px}
body.topic .topic-more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
body.topic .topic-more-card{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;text-decoration:none;transition:.18s}
body.topic .topic-more-card:hover{transform:translateY(-2px);border-color:#bae6fd;box-shadow:0 12px 26px -16px rgba(14,165,233,.5)}
body.topic .topic-more-name{font-size:14.5px;font-weight:700;color:#0f172a;line-height:1.5}
body.topic .topic-more-num{font-size:12px;color:#0ea5e9;font-weight:600}
@media (max-width:640px){
  body.topic .topic-hero{padding:24px 20px}
  body.topic .topic-hero-title{font-size:24px}
  body.topic .topic-hero-intro{font-size:14px;padding-left:12px}
  body.topic .topic-toc-list{grid-template-columns:1fr}
  body.topic .topic-article-item{padding:18px}
  body.topic .topic-article-title{font-size:17px}
  body.topic .topic-post-grid{grid-template-columns:1fr;gap:16px}
  body.topic .topic-post-body{padding:16px 16px 18px}
  body.topic .topic-post-title{font-size:16px}
}

/* ===== 专题单页 专业化样式 ===== */
.topic-page .container{max-width:1120px}
.topic-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:#94a3b8;margin:18px 0 14px}
.topic-crumb a{color:#64748b;text-decoration:none}
.topic-crumb a:hover{color:#0f766e}
.topic-crumb-sep{color:#cbd5e1}
.topic-crumb-cur{color:#334155;font-weight:600}
.topic-hero{position:relative;background:linear-gradient(135deg,#f0fdfa 0%,#ecfeff 55%,#f8fafc 100%);border:1px solid #e2e8f0;border-radius:16px;padding:30px 30px 26px;margin-bottom:26px;overflow:hidden}
.topic-hero:before{content:"";position:absolute;right:-40px;top:-40px;width:180px;height:180px;background:radial-gradient(circle,rgba(15,118,110,.13),transparent 70%);border-radius:50%}
.topic-hero-tag{display:inline-block;font-size:12px;letter-spacing:2px;color:#0f766e;background:#fff;border:1px solid #99f6e4;border-radius:999px;padding:3px 12px;margin-bottom:14px;position:relative}
.topic-hero-title{position:relative;font-size:29px;line-height:1.35;color:#0f172a;margin:0 0 14px;font-weight:800}
.topic-hero-meta{position:relative;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;color:#64748b;margin-bottom:14px}
.topic-meta-item strong{color:#0f766e;font-size:15px;font-weight:800}
.topic-hero-intro{position:relative;font-size:14.5px;line-height:1.85;color:#475569;margin:0;max-width:820px}
.topic-sec-title{display:flex;align-items:center;gap:10px;font-size:19px;color:#0f172a;margin:0 0 16px;font-weight:800;padding-left:12px;border-left:4px solid #0f766e;line-height:1.2}
.topic-sec-count{display:inline-block;font-size:12px;font-weight:700;color:#0f766e;background:#f0fdfa;border:1px solid #99f6e4;border-radius:999px;padding:1px 9px}

.topic-nav-box{margin-bottom:26px}
.topic-chip-list{display:flex;flex-wrap:wrap;gap:9px}
.topic-chip{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;color:#334155;background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px 14px;text-decoration:none;transition:.18s}
.topic-chip:hover{color:#0f766e;border-color:#99f6e4;background:#f0fdfa;transform:translateY(-1px)}
.topic-chip em{font-style:normal;font-size:11px;color:#0f766e;background:#f0fdfa;border-radius:999px;padding:0 6px;line-height:16px}
.topic-chip.is-current{color:#fff;background:#0f766e;border-color:#0f766e;font-weight:700}

/* 专题单页分页条 */
.topic-pager{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 10px;padding:16px 0 0;border-top:1px dashed #e2e8f0}
.topic-page-btn,.topic-page-num{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:36px;padding:0 13px;border-radius:9px;background:#fff;border:1px solid #e2e8f0;color:#334155;font-size:13.5px;font-weight:600;text-decoration:none;transition:.18s}
.topic-page-btn:hover,.topic-page-num:hover{color:#0f766e;border-color:#99f6e4;background:#f0fdfa;transform:translateY(-1px)}
.topic-page-num.is-cur{background:#0f766e;border-color:#0f766e;color:#fff;font-weight:800;cursor:default}
.topic-page-info{margin-left:auto;color:#64748b;font-size:12.5px}
@media (max-width:640px){.topic-page-info{margin-left:0;width:100%;order:9}.topic-page-btn,.topic-page-num{min-width:34px;height:33px;padding:0 10px;font-size:13px}}
.topic-points,.topic-toc,.topic-feature,.topic-faq,.topic-archive,.topic-related{margin-bottom:34px}
.topic-point-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.9fr) minmax(0,.85fr);gap:14px;align-items:stretch}
@media (max-width:900px){.topic-point-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.topic-point-card:has(.fh-tl2){grid-column:1/-1}}
@media (max-width:560px){.topic-point-grid{grid-template-columns:minmax(0,1fr)}}
.topic-point-card{background:#fff;border:1px solid #e8edf3;border-radius:12px;padding:16px 18px;display:flex;flex-direction:column;min-width:0}
.topic-point-label{font-size:12px;color:#94a3b8;letter-spacing:1px;margin-bottom:8px}
.topic-point-link{color:inherit;text-decoration:none;border-bottom:1px dashed currentColor;transition:color .18s}
.topic-point-link:hover{color:#0f766e;border-bottom-style:solid}

.topic-point-value{font-size:21px;font-weight:800;color:#0f766e;line-height:1.3;margin-bottom:7px}
.topic-point-card:has(.fh-tl2){grid-column:auto;min-width:0}
.topic-point-text{font-size:13px;color:#64748b;line-height:1.7}
/* 时间跨度：竖向时间线（借鉴文章页底部日期轴，配色与结构独立） */
.fh-tl2{position:relative;display:flex;flex-direction:column;margin:6px 0 0;max-height:96px;overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;scroll-snap-type:y proximity}
.topic-point-value:has(.fh-tl2){display:block;min-height:0;margin-bottom:0}
.topic-point-value:has(.fh-tl2) .fh-tl2{max-height:96px}
.fh-tl2::-webkit-scrollbar{width:6px}
.fh-tl2::-webkit-scrollbar-track{background:transparent}
.fh-tl2::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
.fh-tl2::-webkit-scrollbar-thumb:hover{background:#94a3b8}
.fh-tl2-node{position:relative;display:flex;align-items:center;gap:8px;height:32px;padding:0 0 0 20px;text-decoration:none;color:#334155;font-size:13.5px;line-height:1.45;transition:color .18s;scroll-snap-align:start;flex:0 0 auto}
.fh-tl2-node:before{content:"";position:absolute;left:3px;top:0;bottom:0;width:1px;background:#e6ecf2}
.fh-tl2-node:first-child:before{top:50%}
.fh-tl2-node:last-child:before{bottom:50%}
.fh-tl2-node:only-child:before{display:none}
.fh-tl2-dot{position:absolute;left:0;top:50%;transform:translateY(-50%);width:7px;height:7px;border-radius:50%;background:#fff;border:2px solid #cbd5e1;transition:border-color .18s,background .18s,box-shadow .18s}
.fh-tl2-node:hover{color:#0f766e}
.fh-tl2-node:hover .fh-tl2-date{color:#0f766e}
.fh-tl2-node.is-latest .fh-tl2-dot{border-color:#14b8a6;background:#14b8a6;box-shadow:0 0 0 3px #d1fae5}
.fh-tl2-date{font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums;letter-spacing:.2px}
.fh-tl2-tag{font-style:normal;font-size:11px;font-weight:700;color:#0f766e;background:#ecfdf5;border:1px solid #99f6e4;border-radius:10px;padding:0 6px}
.fh-tl2-n{margin-left:auto;font-size:12px;color:#94a3b8;white-space:nowrap}
.fh-tl2-title{flex:1;min-width:0;color:#334155;text-decoration:none;font-size:13px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fh-tl2-title:hover{color:#0f766e;text-decoration:underline;text-underline-offset:2px}
.fh-tl2-title.is-anchor{color:#334155;cursor:pointer}
.fh-tl2-title.is-anchor:hover{color:#0f766e}
/* 页内锚点定位到导读条目后高亮提示 */
.topic-art-item:target{background:#f0fdfa;box-shadow:inset 3px 0 0 #14b8a6;border-radius:6px;animation:fhArtFlash 1.6s ease-out}
@keyframes fhArtFlash{0%{background:#ccfbf1}100%{background:#f0fdfa}}
@media (prefers-reduced-motion:reduce){.topic-art-item:target{animation:none}}
.fh-tl2-date{text-decoration:none}
.fh-tl2-date:hover{text-decoration:underline;text-underline-offset:2px}
.fh-tl2-node{padding-left:18px}
.fh-tl2-node:before{background:linear-gradient(180deg,#e2e8f0,#eef2f6)}
.fh-tl2-wk{font-size:12px;color:#94a3b8}
.fh-tl2-node.is-latest .fh-tl2-date{color:#0f766e}
.fh-tl2-node.is-earliest .fh-tl2-dot{border-color:#cbd5e1}
.fh-tl2-more{font-size:12px;color:#94a3b8;padding-left:20px;margin-top:2px}
.fh-tl2-more summary{cursor:pointer;color:#0f766e;font-weight:600;list-style:none}
.fh-tl2-more summary::-webkit-details-marker{display:none}
.fh-tl2-more summary:before{content:"▾ ";font-size:11px}
.fh-tl2-more[open] summary:before{content:"▴ "}
/* 时间跨度迷你时间线：外观借鉴文章页底部日期条，但不复用其结构与配色 */
.fh-mini-tl{display:flex;align-items:center;gap:10px;width:100%;padding:2px 0 4px}
.fh-mini-tl-node{display:flex;align-items:center;gap:6px;text-decoration:none;color:#0f766e;white-space:nowrap;transition:color .18s}
.fh-mini-tl-node:hover{color:#0d9488}
.fh-mini-tl-dot{width:8px;height:8px;border-radius:50%;background:#fff;border:2px solid #14b8a6;flex:0 0 auto;transition:transform .18s,box-shadow .18s}
.fh-mini-tl-node:hover .fh-mini-tl-dot{transform:scale(1.15);box-shadow:0 0 0 3px #d1fae5}
.fh-mini-tl-lbl{font-size:15px;font-weight:700;letter-spacing:.2px;font-variant-numeric:tabular-nums}
.fh-mini-tl-line{position:relative;flex:1 1 auto;min-width:18px;height:2px;border-radius:2px;background:linear-gradient(90deg,#a7f3d0,#14b8a6)}
.fh-mini-tl-line:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);border-left:5px solid #14b8a6;border-top:4px solid transparent;border-bottom:4px solid transparent}
.fh-mini-tl.is-single .fh-mini-tl-dot{background:#14b8a6}
@media (max-width:520px){.fh-mini-tl{gap:6px}.fh-mini-tl-lbl{font-size:13px}}

.topic-group{margin-bottom:18px}
.topic-group-head{display:flex;align-items:center;justify-content:space-between;font-size:14.5px;font-weight:700;color:#0f172a;background:#f8fafc;border-left:3px solid #0f766e;border-radius:0 8px 8px 0;padding:9px 14px;margin-bottom:8px}
.topic-group-head em{font-style:normal;font-size:12px;font-weight:600;color:#64748b}
.topic-toc-list{list-style:none;margin:0;padding:0 0 0 6px}
.topic-toc-list li{margin:0}
.topic-toc-list a{display:flex;align-items:flex-start;gap:10px;padding:8px 12px;border-radius:8px;text-decoration:none;transition:.15s}
.topic-toc-list a:hover{background:#f0fdfa}
.topic-toc-index{flex:0 0 auto;min-width:20px;height:20px;line-height:20px;text-align:center;font-size:11.5px;font-weight:700;color:#0f766e;background:#f0fdfa;border:1px solid #ccfbf1;border-radius:6px;margin-top:1px}
.topic-toc-text{flex:1 1 auto;font-size:14px;color:#334155;line-height:1.65}
.topic-toc-list a:hover .topic-toc-text{color:#0f766e}

.topic-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}
.topic-post-card{background:#fff;border:1px solid #e8edf3;border-radius:14px;overflow:hidden;transition:transform .2s,box-shadow .2s,border-color .2s}
.topic-post-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(15,118,110,.12);border-color:#99f6e4}
.topic-post-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.topic-post-cover{aspect-ratio:16/9;overflow:hidden;background:#f1f5f9}
.topic-post-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.topic-post-card:hover .topic-post-cover img{transform:scale(1.05)}
.topic-post-body{display:flex;flex-direction:column;flex:1 1 auto;padding:15px 17px 16px}
.topic-post-meta{display:flex;align-items:center;gap:10px;font-size:12px;color:#94a3b8;margin-bottom:8px}
.topic-post-cate{color:#0f766e;background:#f0fdfa;border:1px solid #ccfbf1;border-radius:5px;padding:1px 7px;font-weight:600}
.topic-post-title{font-size:16px;line-height:1.5;color:#0f172a;margin:0 0 8px;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.topic-post-card:hover .topic-post-title{color:#0f766e}
.topic-post-desc{font-size:13px;line-height:1.75;color:#64748b;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.topic-post-more{margin-top:auto;font-size:12.5px;font-weight:700;color:#0f766e}

/* ===== 专题页：文章式排版 ===== */
body.topic .topic-article-wrap{background:#fff;border:1px solid #e8edf2;border-radius:16px;padding:34px 38px 40px;box-shadow:0 1px 3px rgba(16,24,40,.04)}
body.topic .topic-art-head{border-bottom:1px solid #eef2f6;padding-bottom:22px;margin-bottom:26px}
body.topic .topic-art-title{font-size:30px;line-height:1.35;font-weight:700;color:#0f172a;margin:10px 0 14px}
body.topic .topic-art-meta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;color:#64748b}
body.topic .topic-art-meta strong{color:#0f766e;font-weight:700}
body.topic .topic-art-lead{margin:18px 0 0;padding:16px 18px;background:#f6fbfa;border-left:3px solid #14b8a6;border-radius:0 10px 10px 0;font-size:15px;line-height:1.9;color:#334155}
body.topic .topic-feature,body.topic .topic-points,body.topic .topic-body,body.topic .topic-related{margin-top:30px}
body.topic .topic-sec-title{font-size:19px;font-weight:700;color:#0f172a;margin:0 0 16px;padding-left:12px;border-left:4px solid #14b8a6;line-height:1.2;display:flex;align-items:center;gap:8px}
body.topic .topic-subsec{margin-bottom:32px}
body.topic .topic-subsec:last-child{margin-bottom:0}
body.topic .topic-subsec-title{font-size:17px;font-weight:700;color:#0f172a;margin:0 0 10px;display:flex;align-items:center;gap:10px}
body.topic .topic-subsec-count{font-size:12px;font-weight:400;color:#0f766e;background:#ecfdf5;border:1px solid #99f6e4;border-radius:20px;padding:1px 10px}
body.topic .topic-subsec-desc{margin:0 0 16px;font-size:14.5px;line-height:1.9;color:#475569;background:#f8fafc;border-radius:10px;padding:14px 16px}
body.topic .topic-art-list{list-style:none;margin:0;padding:0;counter-reset:ti}
body.topic .topic-art-item{position:relative;padding:16px 0 16px 40px;border-bottom:1px dashed #e9eef3}
body.topic .topic-art-item:last-child{border-bottom:none;padding-bottom:0}
body.topic .topic-art-item::before{counter-increment:ti;content:counter(ti);position:absolute;left:0;top:17px;width:24px;height:24px;line-height:24px;text-align:center;font-size:12px;font-weight:700;color:#0f766e;background:#ecfdf5;border-radius:7px}
body.topic .topic-art-link{font-size:16px;font-weight:600;line-height:1.6;color:#0f172a;text-decoration:none;transition:color .18s}
body.topic .topic-art-link:hover{color:#0d9488}
body.topic .topic-art-date{display:inline-block;margin-left:10px;font-size:12px;color:#94a3b8;white-space:nowrap}
body.topic .topic-art-excerpt{margin:7px 0 0;font-size:14px;line-height:1.85;color:#64748b}
@media(max-width:640px){
body.topic .topic-article-wrap{padding:20px 16px 26px;border-radius:12px}
body.topic .topic-art-title{font-size:22px}
body.topic .topic-art-lead{font-size:14px;padding:13px 14px}
body.topic .topic-art-item{padding-left:32px}
body.topic .topic-art-link{font-size:15px}
body.topic .topic-art-date{margin-left:0;display:block;margin-top:4px}
}

/* ---------- 专题：文章时间线 ---------- */
body.topic .topic-timeline{margin-top:30px}
body.topic .topic-tl-total{font-size:12px;font-weight:400;color:#0f766e;background:#ecfdf5;border:1px solid #99f6e4;border-radius:20px;padding:1px 10px}
body.topic .topic-tl-hint{margin:-6px 0 18px;font-size:13px;color:#94a3b8}
body.topic .topic-tl-list{list-style:none;margin:0;padding:0 0 0 4px}
body.topic .topic-tl-item{position:relative;display:flex;align-items:flex-start;gap:14px;padding:0 0 18px 0}
body.topic .topic-tl-item:before{content:"";position:absolute;left:66px;top:20px;bottom:-2px;width:1px;background:#e2e8f0}
body.topic .topic-tl-item:last-child:before{display:none}
body.topic .topic-tl-date{flex:0 0 auto;width:66px;text-align:right;text-decoration:none;display:flex;flex-direction:column;align-items:flex-end;gap:1px;line-height:1.25}
body.topic .topic-tl-ym{font-size:11px;font-weight:700;color:#0d9488;letter-spacing:.4px}
body.topic .topic-tl-md{font-size:14px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums}
body.topic .topic-tl-wk{font-size:11px;color:#a3b0bf}
body.topic .topic-tl-dot{position:absolute;left:62px;top:6px;width:9px;height:9px;border-radius:50%;background:#fff;border:2px solid #cbd5e1;z-index:1}
body.topic .topic-tl-item.is-month-start .topic-tl-dot{border-color:#14b8a6;background:#14b8a6;box-shadow:0 0 0 3px #d1fae5}
body.topic .topic-tl-main{padding-left:16px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0}
body.topic .topic-tl-title{font-size:15.5px;font-weight:600;line-height:1.65;color:#0f172a;text-decoration:none;transition:color .18s}
body.topic .topic-tl-title:hover{color:#0d9488}
body.topic .topic-tl-cate{font-size:12px;color:#64748b;background:#f1f5f9;border-radius:6px;padding:1px 8px}
body.topic .topic-tl-more{margin:6px 0 0;padding:10px 14px;font-size:13px;color:#64748b;background:#f8fafc;border-radius:10px;text-align:center}
@media(max-width:640px){
body.topic .topic-tl-item{gap:10px}
body.topic .topic-tl-date{width:54px}
body.topic .topic-tl-item:before{left:54px}
body.topic .topic-tl-dot{left:50px}
body.topic .topic-tl-main{padding-left:12px}
body.topic .topic-tl-title{font-size:14.5px}
}


/* ===== 首页专题云：多彩胶囊（按专题名 crc32 稳定取色） ===== */
.fh-topic-chip{position:relative;padding:8px 13px 8px 12px;border-width:1px;border-style:solid;border-radius:999px;font-weight:600;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease,color .16s ease}
.fh-topic-chip::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.75}
.fh-topic-chip span{max-width:14em}
.fh-topic-chip em{transition:background .16s ease,color .16s ease}

/* 0 · 青 */
.fh-topic-chip.fh-c0{border-color:#99f6e4;background:linear-gradient(180deg,#f4fffd,#e6fbf5);color:#0f766e}
.fh-topic-chip.fh-c0 em{background:#ccfbf1;color:#0f766e}
.fh-topic-chip.fh-c0:hover{border-color:#2dd4bf;background:linear-gradient(180deg,#e6fbf5,#ccfbf1);box-shadow:0 6px 16px -8px rgba(13,148,136,.55);color:#0d5c55}
.fh-topic-chip.fh-c0:hover em{background:#0d9488;color:#fff}

/* 1 · 蓝 */
.fh-topic-chip.fh-c1{border-color:#bfdbfe;background:linear-gradient(180deg,#f7fbff,#eaf3ff);color:#1d4ed8}
.fh-topic-chip.fh-c1 em{background:#dbeafe;color:#1d4ed8}
.fh-topic-chip.fh-c1:hover{border-color:#60a5fa;background:linear-gradient(180deg,#eaf3ff,#dbeafe);box-shadow:0 6px 16px -8px rgba(37,99,235,.55);color:#1e40af}
.fh-topic-chip.fh-c1:hover em{background:#2563eb;color:#fff}

/* 2 · 紫 */
.fh-topic-chip.fh-c2{border-color:#ddd6fe;background:linear-gradient(180deg,#fbfaff,#f3efff);color:#6d28d9}
.fh-topic-chip.fh-c2 em{background:#ede9fe;color:#6d28d9}
.fh-topic-chip.fh-c2:hover{border-color:#a78bfa;background:linear-gradient(180deg,#f3efff,#ede9fe);box-shadow:0 6px 16px -8px rgba(124,58,237,.55);color:#5b21b6}
.fh-topic-chip.fh-c2:hover em{background:#7c3aed;color:#fff}

/* 3 · 玫粉 */
.fh-topic-chip.fh-c3{border-color:#fbcfe8;background:linear-gradient(180deg,#fff8fb,#ffedf5);color:#be185d}
.fh-topic-chip.fh-c3 em{background:#fce7f3;color:#be185d}
.fh-topic-chip.fh-c3:hover{border-color:#f472b6;background:linear-gradient(180deg,#ffedf5,#fce7f3);box-shadow:0 6px 16px -8px rgba(219,39,119,.5);color:#9d174d}
.fh-topic-chip.fh-c3:hover em{background:#db2777;color:#fff}

/* 4 · 橙琥珀 */
.fh-topic-chip.fh-c4{border-color:#fed7aa;background:linear-gradient(180deg,#fffbf5,#fff2e3);color:#c2410c}
.fh-topic-chip.fh-c4 em{background:#ffedd5;color:#c2410c}
.fh-topic-chip.fh-c4:hover{border-color:#fb923c;background:linear-gradient(180deg,#fff2e3,#ffedd5);box-shadow:0 6px 16px -8px rgba(234,88,12,.5);color:#9a3412}
.fh-topic-chip.fh-c4:hover em{background:#ea580c;color:#fff}

/* 5 · 绿 */
.fh-topic-chip.fh-c5{border-color:#bbf7d0;background:linear-gradient(180deg,#f7fff9,#eafaf0);color:#15803d}
.fh-topic-chip.fh-c5 em{background:#dcfce7;color:#15803d}
.fh-topic-chip.fh-c5:hover{border-color:#4ade80;background:linear-gradient(180deg,#eafaf0,#dcfce7);box-shadow:0 6px 16px -8px rgba(22,163,74,.5);color:#166534}
.fh-topic-chip.fh-c5:hover em{background:#16a34a;color:#fff}

/* 悬停统一微动效 */
.fh-topic-chip:hover{transform:translateY(-2px)}
.fh-topic-chip:active{transform:translateY(0)}

@media (max-width:640px){
  .fh-topic-chip{padding:7px 11px 7px 10px;font-size:.8rem}
  .fh-topic-chip::before{width:6px;height:6px}
}
/* ===== 移动端修复（专题云胶囊 / 首页区块，追加覆盖） ===== */
@media (max-width:900px){
  .fh-topic-cloud{display:flex;flex-wrap:wrap;gap:8px;overflow:visible}
  .fh-topic-cloud .fh-topic-chip{flex:0 1 auto;min-width:0}
}
@media (max-width:640px){
  .fh-topic-cloud{display:flex;flex-wrap:wrap;gap:7px;padding:0 2px}
  .fh-topic-cloud .fh-topic-chip{flex:0 1 auto;padding:7px 11px;font-size:.8rem;line-height:1.25;max-width:calc(100vw - 40px)}
  .fh-topic-cloud .fh-topic-chip span{max-width:11em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle}
  .fh-topic-cloud .fh-topic-chip em{flex:none;margin-left:6px;font-size:.72rem;padding:1px 6px}
  .fh-topic-cloud .fh-topic-chip::before{width:6px;height:6px}
  .fh-topic-cloud .fh-topic-chip:hover{transform:none}
}
@media (max-width:420px){
  .fh-topic-cloud{gap:6px}
  .fh-topic-cloud .fh-topic-chip{padding:6px 10px;font-size:.76rem}
  .fh-topic-cloud .fh-topic-chip span{max-width:8.5em}
}

/* 全局防横向溢出（移动端） */
@media (max-width:640px){
  html,body{overflow-x:hidden;max-width:100%}
  .fh-layout,.fh-page-layout,.fh-main,.fh-side{max-width:100%;min-width:0}
  .fh-card,.fh-article,.news-card,.app-card{max-width:100%;box-sizing:border-box}
  img,video,iframe{max-width:100%;height:auto}
  pre,code,table{max-width:100%}
  pre{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .fh-timeline{overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* ===== 专题胶囊：行内 flex 对齐修复（最终覆盖） ===== */
.fh-topic-cloud{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 0 10px;overflow:visible}
.fh-topic-chip{display:inline-flex;align-items:center;gap:6px;box-sizing:border-box;white-space:nowrap;vertical-align:middle}
.fh-topic-chip::before{flex:0 0 auto;display:inline-block}
.fh-topic-chip span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:14em;min-width:0}
.fh-topic-chip em{flex:0 0 auto;display:inline-block;line-height:1.4}

@media (max-width:640px){
  .fh-topic-cloud{gap:7px;padding:10px 0 8px}
  .fh-topic-chip{padding:7px 11px 7px 10px;font-size:.8rem;gap:5px;max-width:calc(100vw - 40px)}
  .fh-topic-chip span{max-width:9.5em}
  .fh-topic-chip em{margin-left:0;font-size:.72rem;padding:1px 6px}
  .fh-topic-chip:hover{transform:none}
}
@media (max-width:420px){
  .fh-topic-cloud{gap:6px}
  .fh-topic-chip{padding:6px 10px;font-size:.76rem;max-width:calc(100vw - 32px)}
  .fh-topic-chip span{max-width:7.5em}
}


/* ===== v20261020 手机端列表单行化（终极覆盖） ===== */
@media (max-width:900px){
  /* 资讯/技术片段/专题榜单：序号 + 标题（单行省略） + 日期（同行右侧） */
  .hot-list a{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:8px !important;
    padding:9px 0 !important;
  }
  .hot-list a:before{flex:0 0 auto !important;width:18px !important;}
  .hot-list a span{
    flex:1 1 auto !important;
    min-width:0 !important;
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
  .hot-date{
    flex:0 0 auto !important;
    min-width:0 !important;
    margin-left:8px !important;
    justify-content:flex-end !important;
    white-space:nowrap !important;
    font-size:.72rem !important;
  }
  /* 作品卡片：标题固定 2 行、简介固定 2 行，超长省略，不再整段铺开 */
  .latest-item strong{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    line-clamp:2 !important;
    white-space:normal !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-height:2.9em !important;
    word-break:break-word !important;
    overflow-wrap:break-word !important;
  }
  .latest-item .latest-desc{
    display:-webkit-box !important;
    -webkit-box-orient:vertical !important;
    -webkit-line-clamp:2 !important;
    line-clamp:2 !important;
    max-height:3em !important;
    overflow:hidden !important;
  }
}


/* ===== 移动端「最新插件 / 最新主题」卡片排版收口 v20261020_1 =====
   目标：图标与标签同行（不再图标独占一行留大片空白）、日期右对齐同行、
   标题单行省略、简介最多两行。覆盖前面 @media 里的单列 grid 与 wrap 规则。 */
@media (max-width: 900px) {
  .latest-item {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-areas:
      "mark meta"
      "title title"
      "desc desc" !important;
    column-gap: 10px !important;
    row-gap: 6px !important;
    align-items: center !important;
    padding: 13px 14px !important;
    overflow: hidden !important;
  }
  .latest-item .latest-mark {
    grid-area: mark !important;
    align-self: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: .92rem !important;
  }
  .latest-item .latest-top {
    grid-area: meta !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
  }
  .latest-item .latest-kind,
  .latest-item .latest-rec { flex: 0 0 auto !important; white-space: nowrap !important; }
  .latest-item .latest-top em {
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 99 !important;
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: .72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .latest-item > strong,
  .latest-item strong {
    grid-area: title !important;
    display: block !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: .95rem !important;
    line-height: 1.4 !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
  }
  .latest-item .latest-desc {
    grid-area: desc !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: .82rem !important;
    line-height: 1.55 !important;
    max-height: none !important;
  }
  /* 「查看」在窄屏隐藏，避免挤掉日期或撑出横向滚动 */
  .latest-item .latest-go { display: none !important; }
}

@media (max-width: 420px) {
  .latest-item {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    column-gap: 9px !important;
    padding: 12px !important;
  }
  .latest-item .latest-mark {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    font-size: .86rem !important;
  }
  .latest-item > strong,
  .latest-item strong { font-size: .92rem !important; }
  .latest-item .latest-desc { font-size: .78rem !important; }
}


/* ===== 导航二级子菜单（移动端/窄屏展开）v20261020 ===== */
@media (max-width: 900px){
  .site-nav li.has-sub{ position: relative !important; }
  .site-nav li.has-sub > a::after{ display: none !important; }
  .site-nav li.has-sub > a{ font-weight: 700; }
  .site-nav .sub-nav{
    display: flex !important;
    position: static !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 4px 0 8px 0 !important;
    padding: 0 0 0 14px !important;
    border: 0 !important;
    border-left: 2px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: hidden !important;
  }
  .site-nav .sub-nav li{ width: 100% !important; }
  .site-nav .sub-nav a{
    display: block !important;
    padding: 9px 10px !important;
    border-radius: 8px !important;
    font-size: .9rem !important;
    font-weight: 500 !important;
    color: #475569 !important;
    background: transparent !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
  .site-nav .sub-nav a:hover,
  .site-nav .sub-nav a:active{
    color: #0f766e !important;
    background: #f0fdfa !important;
  }
}

/* ===== 专题云：统一网格卡片（最终覆盖）===== */
.fh-topic-cloud{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))!important;gap:10px!important;align-items:stretch;padding:14px 0 10px!important;overflow:visible!important}
.fh-topic-cloud .fh-topic-chip{display:flex!important;align-items:center;gap:8px;width:100%;max-width:100%!important;box-sizing:border-box;padding:10px 12px!important;border:1px solid #e5e7eb!important;border-radius:12px!important;background:#fff!important;color:#334155!important;font-size:.86rem!important;font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease}
.fh-topic-cloud .fh-topic-chip::before{content:"";flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#14b8a6!important;opacity:1!important}
.fh-topic-cloud .fh-topic-chip span{flex:1 1 auto;min-width:0;max-width:none!important;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fh-topic-cloud .fh-topic-chip em{flex:0 0 auto;min-width:24px;margin-left:0!important;padding:2px 7px!important;border-radius:999px;background:#f1f5f9!important;color:#64748b!important;font-style:normal;font-size:.72rem!important;font-weight:700;line-height:1.4;text-align:center}
.fh-topic-cloud .fh-topic-chip.fh-c1::before{background:#3b82f6!important}
.fh-topic-cloud .fh-topic-chip.fh-c2::before{background:#8b5cf6!important}
.fh-topic-cloud .fh-topic-chip.fh-c3::before{background:#ec4899!important}
.fh-topic-cloud .fh-topic-chip.fh-c4::before{background:#f97316!important}
.fh-topic-cloud .fh-topic-chip.fh-c5::before{background:#22c55e!important}
.fh-topic-cloud .fh-topic-chip:hover{border-color:#99f6e4!important;background:#f0fdfa!important;color:#0f766e!important;box-shadow:0 6px 16px -10px rgba(13,148,136,.55);transform:none!important}
.fh-topic-cloud .fh-topic-chip:hover em{background:#ccfbf1!important;color:#0f766e!important}
@media (max-width:900px){
.fh-topic-cloud{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;gap:9px!important}
}
@media (max-width:640px){
.fh-topic-cloud{grid-template-columns:1fr!important;gap:8px!important;padding:12px 0 8px!important}
.fh-topic-cloud .fh-topic-chip{padding:9px 11px!important;font-size:.82rem!important;border-radius:10px!important}
.fh-topic-cloud .fh-topic-chip span{max-width:none!important}
}
