/* ============================================================================
   nspdown 主题 · 仿 nspdown.com（Modown 风格）资源下载站
   特征：红色顶栏/页脚 #dd3333 + 主题蓝 #1e88e5 + 封面网格卡片
        + 蓝色虚线付费框 + 金色渐变 VIP 胶囊 + banner 大搜索
   注意：pay-* 弹窗类名是 JS 契约不可改；JS 会 inline 设 display:block，
        弹窗内按钮必须自带 width + margin:auto 居中（勿依赖 text-align）
   ========================================================================== */

:root {
    --nsp-red: #dd3333;
    --nsp-red-dk: #c22b2b;
    --nsp-red-deep: #b02626;
    --nsp-blue: #1e88e5;
    --nsp-blue-dk: #1565c0;
    --nsp-gold-a: #f0d68d;
    --nsp-gold-b: #e0bf73;
    --nsp-gold-txt: #4e342e;
    --nsp-bg: #f9f9f9;
    --nsp-card: #ffffff;
    --nsp-txt: #333333;
    --nsp-txt2: #666666;
    --nsp-txt3: #999999;
    --nsp-line: #ececec;
    --nsp-radius: 5px;
    --nsp-shadow: 0 0 15px rgba(0, 0, 0, .075);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--nsp-bg);
    color: var(--nsp-txt);
    font: 15px/1.6 "Microsoft Yahei", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}
a { color: var(--nsp-blue); text-decoration: none; }
a:hover { color: var(--nsp-blue-dk); }
img { max-width: 100%; border: 0; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--nsp-txt); }

.nsp-container { max-width: 1220px; margin: 0 auto; padding: 0 16px; }

/* ======================== 顶部公告条（红色系） ======================== */
.nsp-topbar {
    background: var(--nsp-red-dk);
    color: #fff;
    font-size: 12px;
}
.nsp-topbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 32px;
    overflow: hidden;
}
.nsp-topbar-label { flex: none; opacity: .92; font-weight: 600; }
.nsp-topbar-links { display: flex; gap: 14px; overflow: hidden; white-space: nowrap; }
.nsp-topbar-links a { color: #fff; opacity: .88; }
.nsp-topbar-links a:hover { opacity: 1; }
.nsp-topbar-right { margin-left: auto; display: flex; gap: 14px; white-space: nowrap; }
.nsp-topbar-right a { color: #fff; opacity: .88; }
.nsp-topbar-right a:hover { opacity: 1; }

/* ======================== 头部：红条（logo + 菜单 + 搜索 + 登录态） ======================== */
.nsp-header {
    background: var(--nsp-red);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nsp-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 60px;
}
.nsp-brand { display: flex; align-items: baseline; gap: 10px; flex: none; }
.nsp-logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.nsp-logo:hover { color: #fff; }
.nsp-slogan { color: rgba(255, 255, 255, .82); font-size: 12px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 主菜单（红条内白字） */
.nsp-menu { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.nsp-menu a {
    color: #fff;
    padding: 8px 13px;
    border-radius: 4px;
    font-size: 15px;
    white-space: nowrap;
    opacity: .95;
}
.nsp-menu a:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.nsp-menu a.on { background: rgba(0, 0, 0, .18); font-weight: 600; opacity: 1; }

.nsp-header-search { display: flex; flex: none; width: 230px; border-radius: 30px; overflow: hidden; background: #fff; }
.nsp-header-search input { flex: 1; border: 0; outline: 0; padding: 8px 15px; font-size: 13px; background: transparent; }
.nsp-header-search button { border: 0; background: transparent; color: var(--nsp-red); padding: 0 14px; font-size: 13px; font-weight: 600; }

.nsp-header-auth { display: flex; align-items: center; gap: 8px; flex: none; }
.nsp-btn-sm {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .75);
    transition: all .15s ease;
}
.nsp-btn-sm:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.nsp-btn-sm.nsp-btn-gold {
    background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b));
    border-color: transparent;
    color: var(--nsp-gold-txt);
    font-weight: 600;
}
.nsp-btn-sm.nsp-btn-gold:hover { filter: brightness(1.05); color: var(--nsp-gold-txt); }
.nsp-btn-sm.nsp-btn-white { background: #fff; color: var(--nsp-red); border-color: #fff; font-weight: 600; }
.nsp-btn-sm.nsp-btn-white:hover { background: #f7f7f7; color: var(--nsp-red-dk); }

.nsp-user-chip { display: flex; align-items: center; gap: 8px; color: #fff; padding: 4px 8px; border-radius: 30px; }
.nsp-user-chip:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nsp-user-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.nsp-user-avatar.is-vip { background: linear-gradient(135deg, var(--nsp-gold-a), var(--nsp-gold-b)); color: var(--nsp-gold-txt); }
.nsp-user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.nsp-user-name { font-size: 13px; font-weight: 600; color: #fff; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsp-user-level { font-size: 11px; color: rgba(255, 255, 255, .8); }
.nsp-user-level.is-vip { color: var(--nsp-gold-a); }
.nsp-sep { font-style: normal; margin: 0 3px; opacity: .7; }

.nsp-nav-toggle { display: none; background: transparent; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; padding: 7px 9px; }
.nsp-nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; margin: 3px 0; border-radius: 2px; }

/* ======================== banner（首页顶部大搜索） ======================== */
.nsp-banner {
    position: relative;
    background: linear-gradient(180deg, #3a4657 0%, #2b3445 60%, #252d3b 100%);
    color: #fff;
    text-align: center;
    padding: 52px 16px 58px;
    overflow: hidden;
}
.nsp-banner::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 18% 20%, rgba(221, 51, 51, .35), transparent 52%),
        radial-gradient(ellipse at 82% 85%, rgba(30, 136, 229, .30), transparent 52%);
    pointer-events: none;
}
.nsp-banner-title { position: relative; font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.nsp-banner-sub { position: relative; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.nsp-banner-form {
    position: relative;
    margin: 26px auto 0;
    max-width: 560px;
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.nsp-banner-form input { flex: 1; border: 0; outline: 0; padding: 13px 22px; font-size: 15px; }
.nsp-banner-form button {
    border: 0;
    background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b));
    color: var(--nsp-gold-txt);
    font-size: 15px; font-weight: 700;
    padding: 0 34px;
}
.nsp-banner-form button:hover { filter: brightness(1.05); }

/* ======================== 主体两栏 ======================== */
.nsp-shell { display: flex; gap: 20px; align-items: flex-start; padding: 20px 16px 30px; }
.nsp-main { flex: 1 1 auto; min-width: 0; }
.nsp-side { flex: none; width: 330px; }

/* ======================== 区块标题 ======================== */
.nsp-block { margin-bottom: 22px; }
.nsp-block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.nsp-block-title {
    font-size: 19px;
    font-weight: 700;
    display: flex; align-items: center; gap: 9px;
}
.nsp-block-title i {
    width: 4px; height: 18px;
    background: var(--nsp-red);
    border-radius: 2px;
    display: inline-block;
}
.nsp-more { font-size: 13px; color: var(--nsp-txt3); }
.nsp-more:hover { color: var(--nsp-blue); }
a.nsp-more { color: var(--nsp-txt3); }

/* ======================== 封面网格卡片（Modown grids） ======================== */
.nsp-grids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nsp-grid {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.nsp-grid:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, .13); }
.nsp-grid-img {
    display: block;
    height: 158px;
    background: #f2f3f5;
    overflow: hidden;
    position: relative;
}
.nsp-grid-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nsp-grid:hover .nsp-grid-img img { transform: scale(1.04); }
.nsp-noimg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #c3c9d1; font-size: 13px;
    background: linear-gradient(135deg, #f4f5f7, #e9ecf1);
}
.nsp-grid-con { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.nsp-grid-title {
    font-size: 15px; font-weight: 600; line-height: 1.4;
    height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nsp-grid-title a { color: var(--nsp-txt); }
.nsp-grid-title a:hover { color: var(--nsp-blue); }
.nsp-grid-ex {
    margin-top: 7px;
    font-size: 12.5px; color: var(--nsp-txt3); line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nsp-grid-meta {
    padding-top: 10px;
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--nsp-txt3);
    border-top: 1px dashed var(--nsp-line);
    margin-top: 12px;
}
.nsp-grid-meta .nsp-price { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--nsp-red); }
.nsp-grid-meta .nsp-price.is-free { color: #2e9e5b; }

/* 角标（免费 / 专题 / 栏目） */
.nsp-badge-hot {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    background: rgba(221, 51, 51, .92);
    z-index: 2;
}
.nsp-badge-hot.is-free { background: rgba(46, 158, 91, .92); }
a.nsp-badge-hot:hover { color: #fff; opacity: .92; }
/* 免费角标固定封面右上；栏目/专题角标在左上 */
.nsp-grid .nsp-badge-hot.is-free { left: auto; right: 10px; }
.nsp-badge-cat {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    background: rgba(30, 136, 229, .92);
    z-index: 2;
}

/* ======================== 面包屑 ======================== */
.nsp-crumb {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 11px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--nsp-txt3);
}
.nsp-crumb a { color: var(--nsp-txt2); }
.nsp-crumb a:hover { color: var(--nsp-blue); }
.nsp-crumb-sep { margin: 0 8px; color: #ccc; }

/* ======================== 页头（栏目 / 通用页） ======================== */
.nsp-cat-head,
.nsp-page-head {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 24px 22px;
    margin-bottom: 16px;
}
.nsp-page-title { font-size: 23px; font-weight: 700; color: var(--nsp-txt); }
.nsp-page-sub { margin-top: 7px; font-size: 13.5px; color: var(--nsp-txt3); }

/* 子分类标签 */
.nsp-sub-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nsp-sub-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--nsp-card);
    border-radius: 3px;
    font-size: 13px;
    color: var(--nsp-txt2);
    box-shadow: var(--nsp-shadow);
}
.nsp-sub-tag:hover { color: #fff; background: var(--nsp-red); }

/* ======================== 侧栏 ======================== */
.nsp-side-inner { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.nsp-widget {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 15px 17px 16px;
}
.nsp-widget-head {
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--nsp-line);
    margin-bottom: 12px;
}
.nsp-widget-head i { width: 4px; height: 15px; background: var(--nsp-red); border-radius: 2px; }
.nsp-widget-body { font-size: 13.5px; }

/* 热门榜（红色系序号） */
.nsp-hotlist li {
    display: flex; align-items: center; gap: 10px;
    padding: 7.5px 0;
}
.nsp-hotlist li + li { border-top: 1px dashed #f3f3f3; }
.nsp-hot-idx {
    flex: none;
    width: 19px; height: 19px;
    border-radius: 3px;
    background: #eceff3;
    color: #9aa3ad;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.nsp-hot-idx.idx-1 { background: var(--nsp-red); color: #fff; }
.nsp-hot-idx.idx-2 { background: #f0824a; color: #fff; }
.nsp-hot-idx.idx-3 { background: #f2b03c; color: #fff; }
.nsp-hot-title {
    flex: 1; min-width: 0;
    color: var(--nsp-txt2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nsp-hot-title:hover { color: var(--nsp-blue); }
.nsp-hot-views { flex: none; font-size: 12px; color: #b6bcc4; }

/* 栏目导航列表 */
.nsp-navlist li { padding: 6.5px 0; }
.nsp-navlist li + li { border-top: 1px dashed #f3f3f3; }
.nsp-navlist a {
    color: var(--nsp-txt2);
    display: flex; align-items: center; gap: 8px;
}
.nsp-navlist a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #d6dce2; flex: none; }
.nsp-navlist a:hover { color: var(--nsp-blue); }
.nsp-navlist a:hover::before { background: var(--nsp-red); }

/* 专题推荐 chips（灰底小标签，Modown 标签云风） */
.nsp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nsp-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f1f1;
    color: #444;
    font-size: 12px;
    border-radius: 3px;
}
.nsp-chip:hover { background: var(--nsp-red); color: #fff; }

/* 侧栏 VIP 推广卡（金色渐变） */
.nsp-vip-promo {
    background: linear-gradient(135deg, #33404f, #26303d);
    border-radius: var(--nsp-radius);
    padding: 22px 18px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.nsp-vip-promo::after {
    content: "VIP";
    position: absolute; right: -14px; bottom: -22px;
    font-size: 74px; font-weight: 800;
    color: rgba(240, 214, 141, .12);
    letter-spacing: 2px;
}
.nsp-vip-promo-title { font-size: 18px; font-weight: 700; color: var(--nsp-gold-a); }
.nsp-vip-promo-sub { margin-top: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.nsp-vip-promo-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 9px 42px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b));
    color: var(--nsp-gold-txt);
    font-size: 14.5px; font-weight: 700;
}
.nsp-vip-promo-btn:hover { filter: brightness(1.06); color: var(--nsp-gold-txt); }
.nsp-vip-promo-note { margin-top: 11px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ======================== 详情页 Hero ======================== */
.nsp-hero {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 22px;
    display: flex; gap: 22px;
    margin-bottom: 16px;
}
.nsp-hero-thumb {
    flex: none;
    width: 300px;
    border-radius: 4px;
    overflow: hidden;
    background: #f2f3f5;
    position: relative;
    align-self: flex-start;
}
.nsp-hero-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.nsp-hero-thumb span {
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 16 / 10;
    color: #c3c9d1; font-size: 13px;
}
.nsp-hero-thumb-bar {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(20, 26, 34, .78);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 6px 8px;
}
.nsp-hero-info { flex: 1; min-width: 0; }
.nsp-hero-info .nsp-page-title { font-size: 21px; line-height: 1.45; }
.nsp-article-meta {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-top: 11px;
    font-size: 13px; color: var(--nsp-txt3);
}
.nsp-article-meta a { color: var(--nsp-txt3); }
.nsp-article-meta a:hover { color: var(--nsp-blue); }
.nsp-hero-fields {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 13px;
    padding: 11px 14px;
    background: #f7f9fb;
    border-radius: 4px;
    font-size: 13px; color: var(--nsp-txt2);
}
.nsp-hero-fields b { color: var(--nsp-txt3); font-weight: 600; }

/* 价格行 */
.nsp-hero-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.nsp-hero-price { font-size: 30px; font-weight: 700; color: var(--nsp-red); }
.nsp-hero-price small { font-size: 14px; font-weight: 400; color: var(--nsp-txt3); }
.nsp-hero-price-label { font-size: 13px; color: var(--nsp-txt3); }
.nsp-hero-free-tag {
    display: inline-block;
    padding: 4px 13px;
    border-radius: 3px;
    background: #e5f6ec;
    color: #2e9e5b;
    font-size: 14px; font-weight: 700;
}

/* ===== 付费框：Modown 标志性蓝色虚线盒 ===== */
.nsp-paybox {
    margin-top: 16px;
    border: 2px dashed var(--nsp-blue);
    border-radius: var(--nsp-radius);
    padding: 16px 18px;
    background: rgba(30, 136, 229, .028);
}
.nsp-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 通用按钮 */
.nsp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14.5px;
    border: 1px solid transparent;
    transition: all .15s ease;
    cursor: pointer;
}
.nsp-btn-orange { background: var(--nsp-red); color: #fff; font-weight: 600; }
.nsp-btn-orange:hover { background: var(--nsp-red-dk); color: #fff; }
.nsp-btn-primary { background: var(--nsp-blue); color: #fff; font-weight: 600; }
.nsp-btn-primary:hover { background: var(--nsp-blue-dk); color: #fff; }
.nsp-btn-suc { background: #2e9e5b; color: #fff; font-weight: 600; }
.nsp-btn-suc:hover { background: #27894f; color: #fff; }
.nsp-btn-outline { background: #fff; border-color: var(--nsp-blue); color: var(--nsp-blue); }
.nsp-btn-outline:hover { background: var(--nsp-blue); color: #fff; }
.nsp-btn-ghost { background: #fff; border-color: #d8dde3; color: var(--nsp-txt2); }
.nsp-btn-ghost:hover { border-color: var(--nsp-blue); color: var(--nsp-blue); }
.nsp-btn-vip {
    background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b));
    color: var(--nsp-gold-txt);
    font-weight: 700;
    border-radius: 20px;
    padding: 10px 26px;
}
.nsp-btn-vip:hover { filter: brightness(1.05); color: var(--nsp-gold-txt); }
.nsp-btn-block { width: 100%; }

.nsp-hero-services {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin-top: 15px;
    font-size: 12.5px; color: var(--nsp-txt3);
}
.nsp-hero-notice {
    margin-top: 13px;
    padding: 10px 13px;
    background: #fff8ec;
    border: 1px solid #ffe7bd;
    border-radius: 4px;
    font-size: 12.5px;
    color: #a06a12;
    line-height: 1.7;
}

/* ======================== 正文卡片 ======================== */
.nsp-content-card {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 24px;
    margin-bottom: 16px;
}
.nsp-detail-content { font-size: 15px; line-height: 1.9; color: var(--nsp-txt); word-break: break-word; }
.nsp-detail-content p { margin: 0 0 14px; }
.nsp-detail-content img { border-radius: 4px; margin: 8px auto; }
.nsp-detail-content h1, .nsp-detail-content h2, .nsp-detail-content h3 { margin: 22px 0 12px; font-size: 18px; }
.nsp-detail-content ul, .nsp-detail-content ol { padding-left: 22px; margin-bottom: 14px; }
.nsp-detail-content ul { list-style: disc; }
.nsp-detail-content ol { list-style: decimal; }
.nsp-detail-content blockquote {
    margin: 0 0 14px; padding: 10px 16px;
    border-left: 3px solid var(--nsp-blue);
    background: #f7f9fb; color: var(--nsp-txt2);
}
.nsp-detail-content pre, .nsp-detail-content code { background: #f4f5f7; border-radius: 3px; font-size: 13px; }
.nsp-detail-content pre { padding: 12px 14px; overflow: auto; }
.nsp-detail-content table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.nsp-detail-content th, .nsp-detail-content td { border: 1px solid var(--nsp-line); padding: 8px 10px; font-size: 13.5px; }

/* 付费提示 / 解锁内容 */
.nsp-paid-hint {
    background: #fff8ec;
    border: 1px dashed #f0c26a;
    border-radius: var(--nsp-radius);
    padding: 18px;
    text-align: center;
    color: #a06a12;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
}
.nsp-paid-hint-link { color: var(--nsp-red); font-weight: 600; }
.nsp-paid-box {
    background: linear-gradient(180deg, #f2f9ff, #ffffff);
    border: 1px solid #cfe6fb;
    border-radius: var(--nsp-radius);
    padding: 18px;
    margin-bottom: 16px;
}
.nsp-paid-head { font-size: 15px; font-weight: 700; color: #2e9e5b; margin-bottom: 12px; }
.nsp-paid-body { font-size: 14.5px; line-height: 1.85; word-break: break-all; }
.nsp-paid-body p { margin-bottom: 10px; }
.nsp-paid-copy {
    margin-top: 12px;
    padding: 9px 20px;
    border: 1px solid var(--nsp-blue);
    background: #fff;
    color: var(--nsp-blue);
    border-radius: 4px;
    font-size: 13.5px;
}
.nsp-paid-copy:hover { background: var(--nsp-blue); color: #fff; }
.paid-flash { animation: nspFlash 1.2s ease 2; }
@keyframes nspFlash { 0%, 100% { background: #fff; } 50% { background: #fdf3d0; } }

/* 购买表单卡 */
.nsp-buy-card {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 22px;
    max-width: 460px;
}
.nsp-buy-card h3 { font-size: 17px; margin-bottom: 8px; }
.nsp-form-hint { font-size: 13px; color: var(--nsp-txt3); margin-bottom: 14px; }
.nsp-form-group { margin-bottom: 13px; }
.nsp-form-group label { display: block; font-size: 13px; color: var(--nsp-txt2); margin-bottom: 6px; }
.nsp-form-group input, .nsp-form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #dde2e8;
    border-radius: 4px;
    outline: none;
    background: #fff;
}
.nsp-form-group input:focus, .nsp-form-group select:focus { border-color: var(--nsp-blue); }

/* 通用表单卡（登录 / 注册 / 订单查询等） */
.nsp-form-card {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 26px;
    max-width: 430px;
    margin: 0 auto;
}
.nsp-form-card-wide { max-width: 720px; }

/* 提示条 */
.nsp-alert { padding: 11px 15px; border-radius: 4px; font-size: 13.5px; margin-bottom: 14px; }
.nsp-alert-success { background: #e5f6ec; color: #22764a; border: 1px solid #bfe8cf; }
.nsp-alert-error { background: #fdecec; color: #b02a2a; border: 1px solid #f5c8c8; }

/* 状态徽标 */
.nsp-status-ok { display: inline-block; padding: 3px 10px; border-radius: 3px; background: #e5f6ec; color: #2e9e5b; font-size: 12.5px; font-weight: 600; }
.nsp-status-no { display: inline-block; padding: 3px 10px; border-radius: 3px; background: #fdecec; color: #b02a2a; font-size: 12.5px; font-weight: 600; }

/* ======================== VIP 套餐（金色渐变） ======================== */
.nsp-pay-type { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.nsp-pay-type-label { font-size: 14px; color: var(--nsp-txt2); }
.nsp-pay-pill {
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid #dde2e8;
    background: #fff;
    font-size: 14px;
    color: var(--nsp-txt2);
}
.nsp-pay-pill:hover { border-color: var(--nsp-gold-b); color: var(--nsp-gold-txt); }
.nsp-pay-pill.active {
    background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b));
    border-color: transparent;
    color: var(--nsp-gold-txt);
    font-weight: 700;
}
.nsp-vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.nsp-vip-card {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 26px 20px 24px;
    text-align: center;
    position: relative;
    border: 2px solid transparent;
    transition: transform .2s ease;
}
.nsp-vip-card:hover { transform: translateY(-4px); }
.nsp-vip-card.hot { border-color: var(--nsp-gold-b); }
.nsp-vip-flag {
    position: absolute; top: -1px; right: 14px;
    background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b));
    color: var(--nsp-gold-txt);
    font-size: 12px; font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 6px 6px;
}
.nsp-vip-name { font-size: 17px; font-weight: 700; }
.nsp-vip-price { margin: 14px 0 6px; font-size: 34px; font-weight: 700; color: var(--nsp-red); }
.nsp-vip-price small { font-size: 14px; font-weight: 400; color: var(--nsp-txt3); }
.nsp-vip-days { font-size: 13px; color: var(--nsp-txt3); margin-bottom: 20px; }
.nsp-vip-card .nsp-btn { border-radius: 20px; background: linear-gradient(90deg, var(--nsp-gold-a), var(--nsp-gold-b)); color: var(--nsp-gold-txt); font-weight: 700; }
.nsp-vip-card .nsp-btn:hover { filter: brightness(1.05); }

/* CTA 面板 */
.nsp-cta {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 22px 24px;
    margin-top: 18px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.nsp-cta-body { flex: 1 1 320px; }
.nsp-cta-title { font-size: 16px; font-weight: 700; }
.nsp-cta-sub { margin-top: 6px; font-size: 13.5px; color: var(--nsp-txt2); }
.nsp-cta-note { margin-top: 4px; font-size: 12.5px; color: var(--nsp-txt3); }
.nsp-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ======================== 表格（会员中心 / 订单列表） ======================== */
.nsp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.nsp-table th, .nsp-table td { padding: 10px 12px; border-bottom: 1px solid var(--nsp-line); text-align: left; }
.nsp-table th { background: #f7f8fa; color: var(--nsp-txt2); font-weight: 600; white-space: nowrap; }
.nsp-table tr:hover td { background: #fafbfc; }

/* ======================== 空态 / 分页 ======================== */
.nsp-empty {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 52px 20px;
    text-align: center;
    color: var(--nsp-txt3);
}

/* 分页（{pagination} 引擎固定输出 .pagination > a / span.current） */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 6px; }
.pagination a, .pagination span {
    min-width: 36px;
    padding: 8px 13px;
    text-align: center;
    background: var(--nsp-card);
    border-radius: 4px;
    box-shadow: var(--nsp-shadow);
    font-size: 13.5px;
    color: var(--nsp-txt2);
}
.pagination a:hover { color: #fff; background: var(--nsp-red); }
.pagination span.current { background: var(--nsp-red); color: #fff; font-weight: 700; }

/* ======================== 专题 ======================== */
.nsp-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.nsp-topic-card {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 18px 20px;
    border-left: 3px solid var(--nsp-red);
    transition: transform .2s ease;
}
.nsp-topic-card:hover { transform: translateY(-3px); }
.nsp-topic-name { font-size: 16.5px; font-weight: 700; }
.nsp-topic-name a { color: var(--nsp-txt); }
.nsp-topic-name a:hover { color: var(--nsp-blue); }
.nsp-topic-summary { margin-top: 7px; font-size: 13px; color: var(--nsp-txt3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nsp-topic-meta { margin-top: 11px; font-size: 12.5px; color: #b6bcc4; }

/* ======================== 友链 ======================== */
.nsp-links-intro { font-size: 13.5px; color: var(--nsp-txt3); margin-bottom: 16px; }
.nsp-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.nsp-link-card {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 15px 17px;
    display: flex; gap: 12px; align-items: flex-start;
}
.nsp-link-logo { flex: none; }
.nsp-link-text { min-width: 0; }
.nsp-link-name { font-size: 14.5px; font-weight: 600; }
.nsp-link-desc { margin-top: 4px; font-size: 12.5px; color: var(--nsp-txt3); }

/* ======================== 首页 SEO 简介 / 友链条 ======================== */
.nsp-home-seo {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 22px 24px;
    margin-top: 22px;
}
.nsp-home-seo-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; padding-left: 11px; border-left: 4px solid var(--nsp-red); }
.nsp-home-seo-body { font-size: 14px; color: var(--nsp-txt2); line-height: 1.9; }
.nsp-home-links {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    padding: 18px 22px;
    margin-top: 22px;
    display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.nsp-home-links-title { flex: none; font-size: 14px; font-weight: 700; }
.nsp-home-links-body { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.nsp-home-links-body a { color: var(--nsp-txt3); }
.nsp-home-links-body a:hover { color: var(--nsp-blue); }

/* ======================== 404 ======================== */
.nsp-404 {
    background: var(--nsp-card);
    border-radius: var(--nsp-radius);
    box-shadow: var(--nsp-shadow);
    text-align: center;
    padding: 64px 20px;
}
.nsp-404-num { font-size: 72px; font-weight: 800; color: #e3e6ea; line-height: 1; margin-bottom: 14px; }

/* ======================== 页脚（红条） ======================== */
.nsp-footer { background: var(--nsp-red); color: rgba(255, 255, 255, .85); margin-top: 26px; font-size: 13px; }
.nsp-footer a { color: rgba(255, 255, 255, .85); }
.nsp-footer a:hover { color: #fff; }
.nsp-footer-links {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    padding: 20px 0 4px;
    justify-content: center;
}
.nsp-footer-friend { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
.nsp-footer-friend-label { opacity: .75; }
.nsp-footer-center { text-align: center; padding: 14px 0 22px; line-height: 1.9; }

/* ======================== 支付弹窗（JS 契约类名，勿改） ======================== */
.pay-mask {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 31, .58);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pay-modal {
    background: #fff;
    border-radius: 8px;
    width: 356px;
    max-width: 100%;
    padding: 0 24px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.pay-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0 13px;
    border-bottom: 1px solid #f0f1f3;
    font-size: 15px; font-weight: 600;
}
.pay-amount { color: var(--nsp-red); }
.pay-close { cursor: pointer; font-size: 24px; line-height: 1; color: #9aa1aa; font-weight: 400; }
.pay-close:hover { color: var(--nsp-txt); }
.pay-qr-wrap { padding: 18px 0 6px; display: flex; justify-content: center; }
.pay-caption { text-align: center; font-size: 13px; color: var(--nsp-txt3); margin-bottom: 14px; }
.pay-btn-phone {
    display: none;
    width: 200px;
    margin: 0 auto 12px;
    border: 1px solid var(--nsp-blue);
    color: var(--nsp-blue);
    background: #fff;
    border-radius: 4px;
    padding: 9px 0;
    font-size: 13px;
}
.pay-btn-phone:hover { background: var(--nsp-blue); color: #fff; }
.pay-status {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 12.5px;
    color: var(--nsp-txt3);
    padding: 9px 12px;
    background: #f7f8fa;
    border-radius: 4px;
    margin: 0 0 12px;
    line-height: 1.5;
}
.pay-status-ok { background: #e5f6ec; color: #2e9e5b; }
.pay-status-expired { background: #fff4e6; color: #b35c00; }
.pay-status-fail { background: #fdecec; color: var(--nsp-red); }
.pay-spinner {
    width: 12px; height: 12px;
    border: 2px solid #d4d9df;
    border-top-color: var(--nsp-blue);
    border-radius: 50%;
    animation: nspSpin .8s linear infinite;
    flex: none;
}
@keyframes nspSpin { to { transform: rotate(360deg); } }
.pay-btn-refresh {
    /* ⚠️ JS 会 inline 设 display:block —— 必须自带宽度 + auto 边距才能保持居中 */
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 10px 0;
    border: 1px solid var(--nsp-blue);
    border-radius: 4px;
    background: #fff;
    color: var(--nsp-blue);
    font-size: 13.5px;
    transition: all .15s ease;
}
.pay-btn-refresh:hover { background: var(--nsp-blue); color: #fff; }
.pay-btn-refresh:disabled { opacity: .55; cursor: not-allowed; }

/* ======================== 响应式 ======================== */
@media (max-width: 1120px) {
    .nsp-shell { flex-direction: column; }
    .nsp-side { width: 100%; }
    .nsp-side-inner { position: static; flex-direction: row; flex-wrap: wrap; }
    .nsp-side-inner > * { flex: 1 1 300px; }
    .nsp-menu { overflow-x: auto; }
}
@media (max-width: 920px) {
    .nsp-slogan, .nsp-header-search { display: none; }
    .nsp-header-inner { gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 4px; }
    .nsp-nav-toggle { display: block; order: 2; margin-left: auto; }
    .nsp-menu { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 6px; display: none; }
    .nsp-menu.open { display: flex; }
    .nsp-grids { grid-template-columns: repeat(2, 1fr); }
    .nsp-hero { flex-direction: column; }
    .nsp-hero-thumb { width: 100%; }
    .nsp-topic-grid, .nsp-link-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nsp-grids { grid-template-columns: 1fr; }
    .nsp-banner { padding: 38px 14px 44px; }
    .nsp-banner-title { font-size: 21px; }
    .nsp-banner-form button { padding: 0 22px; }
    .nsp-user-meta { display: none; }
}

/* 付费引导卡（七十七期：同步主站 m-paid-cta 形态 —— 大号橙价 + 绿色按钮 + 找回订单） */
.nsp-paid-cta{background:linear-gradient(180deg,#f1f2f4,#e9eaec);border-radius:10px;padding:22px 16px;text-align:center;margin:18px 0}
.nsp-paid-cta-price{font-size:14px;color:#555;margin-bottom:14px}
.nsp-paid-cta-price strong{font-size:30px;color:#ff6600;font-weight:700;margin:0 4px;line-height:1.1}
.nsp-paid-cta-btn{display:inline-block;border:0;cursor:pointer;padding:13px 64px;border-radius:8px;color:#fff;font-size:16px;font-weight:600;background:linear-gradient(180deg,#2fce5f,#17b34a);box-shadow:0 4px 12px rgba(23,179,74,.28);transition:transform .18s,box-shadow .18s}
.nsp-paid-cta-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(23,179,74,.36)}
.nsp-paid-cta-tip{font-size:13px;color:#888;margin-top:12px}
.nsp-paid-cta-tip a{color:#ff8c00;text-decoration:none}
.nsp-paid-cta-tip a:hover{text-decoration:underline}
@media (max-width:640px){.nsp-paid-cta-btn{width:100%;padding:13px 0}}

/* ---- 116 期 SEO 内链闭环（上下篇 + 相关推荐）：中性配色，明暗主题自适应 ---- */
.seo-pn { margin: 26px 0 10px; padding: 18px 20px; border: 1px solid rgba(127,127,127,.25); border-radius: 8px; background: rgba(127,127,127,.06); font-size: 14px; }
.seo-pn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.seo-pn a { text-decoration: none; color: inherit; flex: 1 1 260px; min-width: 0; display: block; padding: 10px 14px;
    border: 1px solid rgba(127,127,127,.25); border-radius: 6px; background: rgba(127,127,127,.05); transition: border-color .2s; }
.seo-pn a:hover { border-color: currentColor; text-decoration: none; }
.seo-pn a span { display: block; font-size: 12px; opacity: .65; margin-bottom: 4px; }
.seo-pn a b { display: block; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-pn-empty { flex: 1 1 260px; }
.seo-pn-rel h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.seo-pn-rel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.seo-pn-rel li { min-width: 0; }
.seo-pn-rel a { display: block; padding: 4px 0; border: 0; background: none; border-radius: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-pn-rel a::before { content: "\2022  "; opacity: .5; }
.seo-pn-rel a:hover { text-decoration: underline; }
@media (max-width: 560px) { .seo-pn { padding: 14px; } .seo-pn a { flex-basis: 100%; } }
