/*
  Theme Name: Niche Radar Theme 1.3.0
  Version: 1.3.0
*/

:root {
  --bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #666;
  --line: #e8e8e8;
  --primary: #6b4c9a;
  --primary-light: #9b7ccf;
  --accent: #e85d75;
  --tag-bg: #f5f0ff;
  --tag-text: #6b4c9a;
  --radius: 12px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }
a { color:var(--primary); text-decoration:none; }
a:hover { color:var(--accent); }
img { max-width:100%; height:auto; }

/* ===== HEADER ===== */
.site-header { background:#fff; border-bottom:1px solid var(--line); padding:16px 24px; position:sticky; top:0; z-index:100; }
.header-inner { max-width:1200px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.site-logo { font-size:22px; font-weight:700; color:var(--primary) !important; text-decoration:none; border-bottom:2px solid var(--primary); }
.main-nav { display:flex; gap:20px; flex-wrap:wrap; }
.main-nav a { font-size:15px; color:var(--text); display:flex; align-items:center; gap:4px; padding:6px 10px; border-radius:8px; transition:all .2s; }
.main-nav a:hover { background:var(--tag-bg); color:var(--primary); }
.user-area { display:flex; align-items:center; gap:10px; }
.user-name { font-size:14px; color:var(--text-light); }
.btn-login,.btn-register { font-size:13px; padding:6px 16px; border-radius:20px; border:1px solid var(--primary); color:var(--primary); }
.btn-login:hover,.btn-register:hover { background:var(--primary); color:#fff; }
.btn-logout { font-size:13px; color:var(--accent); cursor:pointer; }

/* ===== TAG FILTER ===== */
.tag-filter { max-width:1200px; margin:20px auto 0; padding:0 24px; display:flex; gap:8px; flex-wrap:wrap; }
.tag-btn { font-size:13px; padding:6px 16px; border-radius:20px; border:1px solid var(--line); color:var(--text-light); background:#fff; cursor:pointer; transition:all .2s; white-space:nowrap; }
.tag-btn:hover,.tag-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ===== MAIN CONTENT ===== */
.site-main { max-width:1200px; margin:24px auto; padding:0 24px; min-height:60vh; }

/* ===== FEED LIST ===== */
.feed-list { display:flex; flex-direction:column; gap:16px; }
.feed-item { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px 24px; transition:all .25s ease; }
.feed-item:hover { border-color:var(--primary-light); box-shadow:0 4px 16px rgba(107,76,154,0.1); transform:translateY(-2px); }
.feed-link { display:block; text-decoration:none; color:inherit; }
.feed-title { font-size:17px; font-weight:600; color:var(--text); margin-bottom:8px; line-height:1.4; }
.feed-link:hover .feed-title { color:var(--primary); }
.feed-excerpt { font-size:14px; color:var(--text-light); line-height:1.7; margin-bottom:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feed-meta { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.feed-date { font-size:12px; color:#999; }
.feed-tags { font-size:12px; color:var(--primary-light); }

/* ===== PAGINATION ===== */
.feed-pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin:32px 0; flex-wrap:wrap; }
.feed-pagination span { font-size:14px; color:var(--text-light); }
.feed-pagination a { font-size:14px; padding:6px 12px; border-radius:8px; border:1px solid var(--line); color:var(--text); }
.feed-pagination a:hover,.feed-pagination a.active { background:var(--primary); color:#fff; border-color:var(--primary); }

/* ===== FOOTER ===== */
.site-footer { text-align:center; padding:24px; color:#999; font-size:13px; border-top:1px solid var(--line); margin-top:40px; }

/* ===== TOAST ===== */
.toast { position:fixed; top:20px; left:50%; transform:translateX(-50%); padding:12px 24px; border-radius:10px; font-size:14px; z-index:9999; opacity:0; pointer-events:none; transition:opacity .3s; }
.toast.show { opacity:1; }
.toast.success { background:#d4edda; color:#155724; }
.toast.error { background:#f8d7da; color:#721c24; }

/* ===== MEMBERSHIP PAGE ===== */
.membership-container { max-width:600px; margin:40px auto; padding:0 24px; }
.membership-hero { text-align:center; margin-bottom:30px; }
.membership-hero h1 { font-size:28px; color:var(--primary); margin-bottom:8px; }
.membership-hero p { color:var(--text-light); }
.activate-section { background:#fafafa; border-radius:var(--radius); padding:30px; margin-bottom:30px; }
.activate-box h3 { margin-bottom:8px; }
.activate-hint { font-size:13px; color:var(--text-light); margin-bottom:16px; }
.btn-plan { display:inline-block; padding:10px 24px; border-radius:8px; font-size:14px; cursor:pointer; border:none; transition:all .2s; }
.btn-plan-primary { background:var(--primary); color:#fff; }
.btn-plan-primary:hover { background:#5a3d82; }
.plan-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-top:24px; }
.plan-card { border:1px solid var(--line); border-radius:var(--radius); padding:24px; text-align:center; }
.plan-card h4 { font-size:18px; margin-bottom:8px; }
.plan-card .price { font-size:28px; font-weight:700; color:var(--primary); margin:12px 0; }
.plan-card ul { list-style:none; font-size:13px; color:var(--text-light); text-align:left; margin:16px 0; }
.plan-card li { padding:4px 0; }
.member-welcome { text-align:center; }
.member-welcome h2 { color:var(--primary); margin-bottom:8px; }
.member-info { background:#f0ebf8; border-radius:var(--radius); padding:20px; margin:20px 0; font-size:14px; }
.member-info p { margin:4px 0; }

/* ===== LOGIN/REGISTER ===== */
.auth-container { max-width:400px; margin:60px auto; padding:0 24px; }
.auth-container h1 { text-align:center; color:var(--primary); margin-bottom:24px; }
.auth-form { background:#fafafa; border-radius:var(--radius); padding:30px; }
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--text); }
.form-group input { width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:8px; font-size:14px; box-sizing:border-box; }
.form-group input:focus { outline:none; border-color:var(--primary); }
.btn-submit { width:100%; padding:12px; background:var(--primary); color:#fff; border:none; border-radius:8px; font-size:15px; cursor:pointer; }
.btn-submit:hover { background:#5a3d82; }
.auth-switch { text-align:center; margin-top:16px; font-size:13px; color:var(--text-light); }
.auth-switch a { color:var(--primary); }

/* ===== RANKING PAGE ===== */
.ranking-container { max-width:900px; margin:30px auto; padding:0 24px; }
.ranking-container h1 { text-align:center; color:var(--primary); margin-bottom:24px; }
.ranking-table { width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.ranking-table th { background:var(--primary); color:#fff; padding:12px 16px; font-size:13px; text-align:left; }
.ranking-table td { padding:12px 16px; border-bottom:1px solid var(--line); font-size:14px; }
.ranking-table tr:hover td { background:#fafafa; }
.rank-num { font-weight:700; color:var(--primary); width:50px; }
.rank-1,.rank-2,.rank-3 { color:#e85d75; }

/* ===== SINGLE OPPORTUNITY PAGE ===== */
.single-opportunity { max-width:800px; margin:30px auto; padding:0 24px; }
.single-opportunity h1 { font-size:26px; color:var(--text); margin-bottom:16px; }
.single-meta { color:var(--text-light); font-size:13px; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.single-content { font-size:15px; line-height:1.8; color:var(--text); }
.single-content h2 { font-size:20px; margin:24px 0 12px; color:var(--primary); }
.single-content h3 { font-size:17px; margin:20px 0 10px; }
.single-content p { margin-bottom:14px; }
.single-content ul,.single-content ol { margin:12px 0 12px 24px; }
.single-content li { margin-bottom:6px; }

/* ===== RESPONSIVE ===== */
@media (max-width:768px) {
  .header-inner { padding:8px 0; }
  .main-nav { order:3; width:100%; justify-content:center; }
  .site-main { padding:0 16px; }
  .tag-filter { padding:0 16px; }
  .feed-item { padding:16px; }
  .feed-title { font-size:16px; }
  .plan-grid { grid-template-columns:1fr; }
  .ranking-table { font-size:13px; }
  .ranking-table th,.ranking-table td { padding:8px 10px; }
}

/* ===== DETAIL/ SINGLE PAGE (for single.php) ===== */
.detail-container { max-width:800px; margin:30px auto; padding:0 24px; }
.detail-back { display:inline-block; font-size:14px; color:var(--primary); text-decoration:none; margin-bottom:16px; }
.detail-back:hover { text-decoration:underline; }
.detail-title { font-size:26px; color:var(--text); margin-bottom:16px; line-height:1.3; }
.detail-content { font-size:15px; line-height:1.8; color:var(--text); margin-bottom:24px; }
.detail-content p { margin-bottom:14px; }
.detail-content h2 { font-size:20px; margin:24px 0 12px; color:var(--primary); }
.detail-paywall-notice { background:#fef3c7; border:1px solid #f59e0b; border-radius:8px; padding:16px; text-align:center; margin-bottom:20px; }
.btn-upgrade { display:inline-block; background:var(--primary); color:#fff; padding:8px 20px; border-radius:6px; text-decoration:none; margin-top:8px; font-size:14px; }
.detail-meta-bar { display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:20px; flex-wrap:wrap; }
.detail-action-btn { background:none; border:1px solid var(--line); border-radius:8px; padding:6px 14px; font-size:13px; cursor:pointer; color:var(--text-light); transition:all .2s; }
.detail-action-btn:hover { border-color:var(--primary); color:var(--primary); }
.detail-action-btn.liked { color:#ef4444; border-color:#ef4444; }
.detail-action-btn.bookmarked { color:#f59e0b; border-color:#f59e0b; }
.detail-date { font-size:13px; color:var(--text-light); }
.detail-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.detail-tag { background:var(--tag-bg); color:var(--primary); padding:4px 12px; border-radius:20px; font-size:12px; text-decoration:none; transition:all .2s; }
.detail-tag:hover { background:var(--primary); color:#fff; }
.detail-comments { margin-top:30px; }
.detail-comments h3 { font-size:18px; margin-bottom:16px; color:var(--text); }
.comment-form-wrap { margin-top:16px; }
.comment-form-wrap textarea { width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; font-size:14px; resize:vertical; box-sizing:border-box; font-family:inherit; }
.btn-comment-submit { background:var(--primary); color:#fff; border:none; padding:8px 20px; border-radius:6px; font-size:14px; cursor:pointer; margin-top:8px; }
.login-to-comment { text-align:center; padding:20px; color:var(--text-light); font-size:14px; background:var(--bg); border-radius:8px; }
.login-to-comment a { color:var(--primary); }

/* ===== FREE LIMIT NOTICE ===== */
.free-limit-notice { margin:24px auto; max-width:600px; }
.free-limit-inner { background:linear-gradient(135deg,#fef3c7,#fde68a); border:1px solid #f59e0b; border-radius:12px; padding:24px; text-align:center; }
.free-limit-text { font-size:16px; font-weight:600; color:#92400e; margin-bottom:8px; }
.free-limit-text strong { color:#dc2626; font-size:20px; }
.free-limit-sub { font-size:13px; color:#a16207; margin-bottom:16px; }
.btn-upgrade-free { display:inline-block; background:linear-gradient(135deg,#6B4C9A,#8B5CF6); color:#fff; padding:10px 28px; border-radius:8px; text-decoration:none; font-weight:600; font-size:15px; transition:all .2s; box-shadow:0 4px 12px rgba(107,76,154,0.3); }
.btn-upgrade-free:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(107,76,154,0.4); }

/* ============================================
   会员中心 - 三档方案 + 激活码 + QR弹窗
   ============================================ */

.membership-container { max-width:960px; margin:20px auto; padding:0 16px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; }

/* --- 身份状态 --- */
.auth-notice { text-align:center; padding:60px 20px; background:#f8f9fa; border-radius:12px; }
.auth-notice h2 { font-size:24px; color:#333; margin-bottom:10px; }
.auth-notice p { color:#666; margin-bottom:20px; }
.auth-btns { display:flex; gap:12px; justify-content:center; }

.member-status { background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); color:#fff; border-radius:12px; padding:24px; margin-bottom:30px; display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.member-status .status-badge { background:rgba(255,255,255,0.25); padding:6px 16px; border-radius:20px; font-weight:bold; font-size:15px; }
.member-status .status-info { flex:1; min-width:200px; }
.member-status .status-info p { margin:4px 0; font-size:14px; opacity:0.95; }
.member-status .plan-name { font-weight:bold; font-size:16px; }
.member-status .expire-date { font-weight:bold; text-decoration:underline; }
.member-status .days-left { font-size:22px; font-weight:bold; }
.renew-hint { font-size:13px; opacity:0.85; }

/* --- 方案标题 --- */
.plans-title { text-align:center; font-size:22px; color:#333; margin:30px 0 20px; position:relative; }
.plans-title::after { content:''; display:block; width:60px; height:3px; background:linear-gradient(90deg,#667eea,#764ba2); margin:8px auto 0; border-radius:2px; }

/* --- 三档卡片网格 --- */
.plans-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:30px; }
@media(max-width:768px){ .plans-grid { grid-template-columns:1fr; } }

.plan-card { background:#fff; border:2px solid #e8e8e8; border-radius:16px; padding:28px 20px; text-align:center; transition:all 0.3s ease; position:relative; overflow:hidden; }
.plan-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,0,0,0.10); }

/* 免费卡片 */
.free-card { border-color:#ddd; }
.free-card .plan-header h3 { color:#888; font-size:18px; }
.free-card .plan-price .price-num { font-size:28px; color:#999; font-weight:bold; }
.free-card .plan-current { display:inline-block; margin-top:16px; padding:6px 20px; background:#f0f0f0; border-radius:20px; color:#666; font-size:13px; }

/* 月度 - 推荐 */
.monthly-card { border-color:#667eea; box-shadow:0 4px 16px rgba(102,126,234,0.15); }
.monthly-card .plan-badge { position:absolute; top:0; right:20px; background:linear-gradient(90deg,#667eea,#764ba2); color:#fff; padding:4px 14px; border-radius:0 0 8px 8px; font-size:11px; font-weight:bold; }
.monthly-card .plan-header h3 { color:#667eea; font-size:20px; }
.monthly-card .plan-price .currency { font-size:18px; vertical-align:top; color:#667eea; }
.monthly-card .plan-price .price-num { font-size:42px; color:#667eea; font-weight:800; line-height:1; }
.monthly-card .plan-price .period { font-size:14px; color:#888; }

/* 年度 - 最惊喜 */
.yearly-card { border-color:#f59e0b; box-shadow:0 4px 16px rgba(245,158,11,0.12); }
.yearly-card .plan-badge.best-value { position:absolute; top:0; right:20px; background:linear-gradient(90deg,#f59e0b,#ef4444); color:#fff; padding:4px 14px; border-radius:0 0 8px 8px; font-size:11px; font-weight:bold; }
.yearly-card .plan-header h3 { color:#f59e0b; font-size:20px; }
.yearly-card .plan-price .currency { font-size:18px; vertical-align:top; color:#f59e0b; }
.yearly-card .plan-price .price-num { font-size:42px; color:#f59e0b; font-weight:800; line-height:1; }
.yearly-card .plan-price .period { font-size:14px; color:#888; }
.plan-save { color:#059669; font-size:12px; font-weight:bold; margin-top:4px; }

/* 权益列表 */
.plan-features { list-style:none; padding:0; margin:20px 0; text-align:left; }
.plan-features li { padding:8px 0; font-size:14px; color:#444; border-bottom:1px solid #f5f5f5; }
.plan-features li:last-child { border:none; }
.plan-features li strong { color:#333; }

/* 开通按钮 */
.btn-pay { width:100%; padding:12px; border:none; border-radius:10px; font-size:16px; font-weight:bold; cursor:pointer; transition:all 0.2s; margin-top:8px; }
.monthly-card .btn-pay { background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; }
.monthly-card .btn-pay:hover { background:linear-gradient(135deg,#5a6fd6,#6a4190); transform:scale(1.02); }
.yearly-card .btn-pay { background:linear-gradient(135deg,#f59e0b,#ef4444); color:#fff; }
.yearly-card .btn-pay:hover { background:linear-gradient(135deg,#d97706,#dc2626); transform:scale(1.02); }
.btn-pay:disabled { opacity:0.6; cursor:not-allowed; transform:none !important; }

/* --- 激活码输入区 --- */
.activate-section { background:#f0fdf4; border:2px dashed #86efac; border-radius:12px; padding:24px; margin-bottom:30px; text-align:center; }
.activate-section h3 { color:#166534; margin-bottom:6px; font-size:17px; }
.activate-hint { color:#15803d; font-size:13px; margin-bottom:14px; }
#nr-activate-form { display:flex; gap:8px; max-width:400px; margin:0 auto; }
#nr-activate-code { flex:1; padding:10px 14px; border:2px solid #86efac; border-radius:8px; font-size:16px; letter-spacing:2px; text-transform:uppercase; text-align:center; outline:none; }
#nr-activate-code:focus { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,0.15); }
#nr-activate-btn { padding:10px 24px; background:#22c55e; color:#fff; border:none; border-radius:8px; font-size:15px; font-weight:bold; cursor:pointer; white-space:nowrap; }
#nr-activate-btn:hover { background:#16a34a; }
#nr-activate-result { margin-top:12px; min-height:24px; }
#nr-activate-result .success-box { background:#dcfce7; border:1px solid #86efac; border-radius:8px; padding:14px; color:#166534; }
#nr-activate-result .success-box p { margin:4px 0; font-size:14px; }
#nr-activate-result .error { color:#dc2626; font-size:14px; }
#nr-activate-result .loading { color:#666; font-size:14px; }

/* --- 权益对比表 --- */
.benefits-compare { margin-bottom:30px; overflow-x:auto; }
.benefits-compare h3 { font-size:17px; color:#333; margin-bottom:12px; }
.benefits-compare table { width:100%; border-collapse:collapse; font-size:13px; }
.benefits-compare th { background:#f8f9fa; padding:10px 8px; border:1px solid #e8e8e8; font-weight:600; color:#555; }
.benefits-compare td { padding:10px 8px; border:1px solid #e8e8e8; text-align:center; color:#444; }
.benefits-compare td:first-child { text-align:left; font-weight:500; }
.benefits-compare tr:nth-child(even) td { background:#fafafa; }

/* --- 微信收款码弹窗 --- */
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.55); z-index:9999; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.modal-content { background:#fff; border-radius:16px; padding:32px; max-width:380px; width:90%; position:relative; animation:modalPop 0.3s ease; }
@keyframes modalPop { from{transform:scale(0.9);opacity:0;} to{transform:scale(1);opacity:1;} }
.modal-close { position:absolute; top:10px; right:14px; background:none; border:none; font-size:26px; cursor:pointer; color:#999; line-height:1; }
.modal-close:hover { color:#333; }
.modal-title h3 { text-align:center; margin:0 0 16px; font-size:20px; color:#333; }
.qr-section { text-align:center; margin:16px 0; }
.qr-image { width:200px; height:200px; border:2px solid #e8e8e8; border-radius:8px; object-fit:contain; }
.qr-hint { color:#07c160; font-weight:bold; font-size:15px; margin-top:8px; }
.pay-steps { background:#f8f9fa; border-radius:8px; padding:14px 16px; margin:16px 0; font-size:13px; color:#555; }
.pay-steps ol { margin:6px 0 0 18px; padding:0; }
.pay-steps li { margin:4px 0; line-height:1.5; }
.pay-steps code { background:#e8e8e8; padding:1px 5px; border-radius:3px; font-size:12px; color:#07c160; }
.pay-price-display { text-align:center; font-size:18px; color:#e74c3c; font-weight:bold; padding:10px 0; }

/* --- ADMIN 面板 --- */
.admin-panel { background:#1e293b; color:#e2e8f0; border-radius:12px; padding:24px; margin-top:30px; }
.admin-panel h3 { color:#f8fafc; margin-bottom:16px; font-size:17px; }
.admin-generate { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:16px; }
.admin-generate select, .admin-generate input { padding:8px 10px; border:1px solid #475569; border-radius:6px; background:#334155; color:#e2e8f0; font-size:13px; }
.admin-generate button { padding:8px 18px; background:#3b82f6; color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:13px; font-weight:bold; }
.admin-stats { background:#334155; padding:10px 14px; border-radius:6px; font-size:13px; margin-bottom:14px; word-wrap:break-word; }
.codes-table { width:100%; border-collapse:collapse; font-size:12px; }
.codes-table th,.codes-table td { padding:6px 8px; border:1px solid #475569; text-align:left; }
.codes-table th { background:#475569; font-weight:600; }
.codes-table tr.unused td { color:#4ade80; }
.codes-table tr.used td { color:#94a3b8; }
.codes-table code { background:#0f172a; padding:1px 5px; border-radius:3px; font-size:12px; color:#fbbf24; }
.btn-small { padding:5px 12px !important; font-size:12px !important; }

/* ===== SITE SEARCH BOX (首页导航与标签行之间) ===== */
/* ===== 高级标签筛选（首页） ===== */
.nr-adv-filter { max-width:1200px; margin:14px auto 0; padding:0 24px; }
.nr-adv-toggle {
  width:100%; text-align:left; background:#faf7ff; border:1px solid var(--line);
  border-radius:10px; padding:12px 16px; font-size:14px; color:var(--primary);
  cursor:pointer; font-family:inherit; transition:all .2s;
}
.nr-adv-toggle:hover { border-color:var(--primary-light); background:#f3ecff; }
.nr-adv-panel {
  margin-top:10px; background:#fff; border:1px solid var(--line); border-radius:12px;
  padding:18px 20px; box-shadow:0 2px 10px rgba(107,76,154,0.06);
}
.nr-adv-panel.nr-adv-open { display: block !important; }
.nr-adv-group { margin-bottom:16px; }
.nr-adv-group:last-of-type { margin-bottom:8px; }
.nr-adv-dim {
  font-size:13px; font-weight:700; color:var(--primary); margin-bottom:10px;
  padding-left:10px; border-left:3px solid var(--primary); line-height:1.2;
}
.nr-adv-tags { display:flex; flex-wrap:wrap; gap:8px; }
.nr-adv-tags label {
  display:inline-flex; align-items:center; gap:5px; font-size:13px; color:var(--text);
  background:#f7f7fb; border:1px solid var(--line); border-radius:18px;
  padding:5px 12px; cursor:pointer; transition:all .15s; user-select:none;
}
.nr-adv-tags label:hover { border-color:var(--primary-light); background:var(--tag-bg); }
.nr-adv-tags input[type=checkbox] { accent-color:var(--primary); width:14px; height:14px; margin:0; }
.nr-adv-tags label:has(input:checked) {
  background:var(--primary); border-color:var(--primary); color:#fff;
}
.nr-adv-actions { display:flex; align-items:center; gap:12px; margin-top:6px; padding-top:14px; border-top:1px solid var(--line); }
.nr-adv-apply {
  background:var(--primary); color:#fff; border:none; border-radius:8px;
  padding:9px 22px; font-size:14px; cursor:pointer; font-family:inherit; transition:all .2s;
}
.nr-adv-apply:hover { background:#5a3d82; }
.nr-adv-reset {
  background:#fff; color:var(--text-light); border:1px solid var(--line); border-radius:8px;
  padding:9px 18px; font-size:14px; cursor:pointer; font-family:inherit; transition:all .2s;
}
.nr-adv-reset:hover { border-color:var(--accent); color:var(--accent); }
.nr-adv-count { font-size:13px; color:var(--primary-light); }

@media (max-width:768px){
  .nr-adv-filter { padding:0 16px; }
  .nr-adv-panel { padding:14px 16px; }
}

/* ===== 高级筛选-业务特色12类折叠 ===== */
.nr-biz-wrap { margin-top:18px; border-top:1px dashed var(--line); padding-top:16px; }
.nr-biz-title { font-size:13px; font-weight:700; color:var(--primary); margin-bottom:12px; }
.nr-biz-cat {
  background:#faf7ff; border:1px solid var(--line); border-radius:10px;
  margin-bottom:10px; overflow:hidden; transition:all .2s;
}
.nr-biz-cat > summary {
  cursor:pointer; padding:11px 16px; font-size:14px; font-weight:600; color:var(--primary);
  list-style:none; user-select:none; display:flex; align-items:center; gap:8px;
  background:#f3ecff;
}
.nr-biz-cat > summary::-webkit-details-marker { display:none; }
.nr-biz-cat > summary::before { content:'▶'; font-size:10px; transition:transform .2s; color:var(--primary-light); }
.nr-biz-cat[open] > summary::before { transform:rotate(90deg); }
.nr-biz-cat[open] > summary { border-bottom:1px solid var(--line); }
.nr-biz-cat .nr-adv-tags { padding:14px 16px; }

/* 基础维度序号样式强化 */
.nr-adv-dim { font-size:13px; font-weight:700; color:var(--primary); margin-bottom:10px;
  padding-left:10px; border-left:3px solid var(--primary); line-height:1.2; }

@media (max-width:768px){
  .nr-biz-cat > summary { padding:10px 12px; font-size:13px; }
  .nr-biz-cat .nr-adv-tags { padding:12px; }
}

/* ===== 业务特色12类：横排Tab + 点击展开 ===== */
.nr-biz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.nr-biz-tab { padding: 7px 14px; border: 1px solid #e0d4f5; background: #faf7ff; color: #6b4ea8; border-radius: 18px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; white-space: nowrap; }
.nr-biz-tab:hover { background: #f0e8ff; border-color: #c9b3ef; }
.nr-biz-tab-active { background: linear-gradient(135deg,#7b4fc7,#9b6fe0); color: #fff; border-color: #7b4fc7; box-shadow: 0 2px 6px rgba(123,79,199,.3); }
.nr-biz-panels { border-top: 1px dashed #e0d4f5; padding-top: 12px; }
.nr-biz-panel { animation: nrFade .2s ease; }
@keyframes nrFade { from { opacity:0; transform:translateY(4px);} to {opacity:1; transform:none;} }
@media (max-width: 640px) { .nr-biz-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .nr-biz-tab { flex: 0 0 auto; } }

/* ===== 缩小标题区与首页内容的垂直间距（减半） ===== */
.site-main { margin-top: 12px; }
.tag-filter { margin-top: 10px; }
.nr-adv-filter { margin-top: 8px; }
.site-header { padding-top: 10px; padding-bottom: 10px; }

/* ===== 首页顶部 Banner ===== */
.nr-home-banner {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
}

/* ===== 首页 Banner 内部样式 ===== */
.nr-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ede7f6 !important;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(123, 79, 199, 0.15);
}
.nr-banner-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #0d47a1;
  margin: 0 0 8px;
  letter-spacing: 1px;
}
.nr-banner-sub {
  text-align: center;
  font-size: 14px;
  color: #1565c0;
  margin: 0;
  letter-spacing: 1px;
}


/* ===== 搜索框颜色突出（与Banner同宽对齐） ===== */
.nr-site-search {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.nr-search-box {
  display: flex;
  gap: 8px;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(155,111,224,0.10));
  border: 1.5px solid var(--primary);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(123,79,199,0.15);
}
.nr-search-input {
  flex: 1;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #d9c8f5;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  box-sizing: border-box;
  transition: all .2s;
}
.nr-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.22);
}
.nr-search-input::placeholder { color: #aaa; }
.nr-search-btn {
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #9b6fe0);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124,58,237,0.3);
  transition: all .2s;
}
.nr-search-btn:hover {
  background: linear-gradient(135deg, #6d28d9, #8b5fe0);
}
@media (max-width: 640px) {
  .nr-site-search { padding: 0 16px; margin-top: 12px; }
  .nr-search-box { padding: 10px 12px; border-radius: 12px; }
}

/* ===== 现代简约风格认证页面 ===== */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 30px -5px rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.08);
}
.auth-card h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #1e1b4b;
  margin: 0 0 28px;
  letter-spacing: 1px;
}
.auth-field {
  margin-bottom: 20px;
}
.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4c1d95;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.auth-field input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9d5ff;
  border-radius: 12px;
  font-size: 15px;
  color: #1e1b4b;
  background: #faf5ff;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}
.auth-field input::placeholder {
  color: #c4b5fd;
}
.auth-field input:focus {
  border-color: #7c3aed;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}
.auth-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}
.btn-auth {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  margin-top: 8px;
}
.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
}
.btn-auth:active {
  transform: translateY(0);
}
.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #6b7280;
}
.auth-switch a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-switch a:hover {
  color: #5b21b6;
  text-decoration: underline;
}
#nr-login-error {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444 !important;
  font-size: 13px !important;
  margin-top: 12px !important;
}
/* Turnstile 验证框样式 */
.auth-card .cf-turnstile {
  margin: 16px 0;
  display: flex;
  justify-content: center;
}
/* 响应式适配 */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; border-radius: 16px; }
  .auth-card h2 { font-size: 22px; }
  .auth-field input { padding: 11px 14px; font-size: 14px; }
  .btn-auth { padding: 12px; font-size: 15px; }
}

/* ===== 个人中心页面 ===== */
.profile-page { max-width: 900px; margin: 0 auto; padding: 20px; }
.profile-banner {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}
.profile-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-avatar-lg {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
  border: 3px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.profile-meta { flex: 1; min-width: 200px; }
.profile-name {
  font-size: 24px; font-weight: 700; color: #fff;
  margin: 0 0 10px;
}
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-tag {
  padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.tag-premium { background: rgba(255,255,255,0.25); color: #fff; }
.tag-free { background: rgba(255,255,255,0.15); color: #fff; }
.tag-expire { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.tag-date { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.profile-logout {
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.2);
}
.profile-logout:hover { background: rgba(255,255,255,0.25); }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: #fff; border-radius: 16px;
  padding: 24px 20px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0ecfa;
  transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,58,237,0.1); }
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-num { font-size: 28px; font-weight: 700; color: #1e1b4b; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: #6b7280; }
.stat-card-upgrade {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #c4b5fd;
}
.stat-upgrade-btn {
  display: inline-block; margin-top: 8px;
  padding: 8px 20px; border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.stat-upgrade-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.profile-content {
  background: #fff; border-radius: 20px;
  padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0ecfa;
}
.profile-tabs {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
  border-bottom: 2px solid #f0ecfa; padding-bottom: 12px;
}
.profile-tab {
  padding: 8px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: #6b7280;
  cursor: pointer; transition: all 0.2s;
  border: 0; background: transparent; font-family: inherit;
}
.profile-tab:hover { background: #f5f3ff; color: #7c3aed; }
.profile-tab.active {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
}
.profile-panel[hidden] { display: none; }
.profile-basic-form { max-width: 720px; }
.profile-form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.profile-form-grid label { display: flex; flex-direction: column; gap: 7px; }
.profile-form-grid label > span { font-size: 13px; font-weight: 600; color: #374151; }
.profile-form-grid input {
  width: 100%; box-sizing: border-box; border: 1px solid #ddd6fe; border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: #1f2937; background: #fff;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.profile-form-grid input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.profile-form-grid input:disabled { color: #9ca3af; background: #f9fafb; cursor: not-allowed; }
.profile-form-grid small { color: #9ca3af; font-size: 12px; }
.profile-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.profile-save-btn {
  border: 0; border-radius: 10px; padding: 11px 22px; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6); color: #fff;
  font-size: 14px; font-weight: 600; font-family: inherit;
}
.profile-save-btn:disabled { opacity: .65; cursor: wait; }
.profile-message { font-size: 13px; color: #6b7280; }
.profile-message.is-success { color: #15803d; }
.profile-message.is-error { color: #dc2626; }
.profile-empty { text-align: center; color: #94a3b8; padding: 36px 0; margin: 0; }
@media (max-width: 600px) {
  .profile-banner { padding: 24px 20px; }
  .profile-avatar-lg { width: 56px; height: 56px; font-size: 24px; }
  .profile-name { font-size: 20px; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-content { padding: 20px; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-tab { flex: 1 1 calc(50% - 12px); }
}

/* ===== 排行榜页面 ===== */
.ranking-page { max-width: 900px; margin: 0 auto; padding: 20px; }
.ranking-banner {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  border-radius: 20px; padding: 32px; margin-bottom: 24px;
  text-align: center; box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}
.ranking-banner h1 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.ranking-banner p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0; }
.ranking-section { margin-bottom: 28px; }
.section-title {
  font-size: 18px; font-weight: 700; color: #1e1b4b;
  margin: 0 0 16px; padding-left: 12px;
  border-left: 4px solid #7c3aed;
}
.hot-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: #fff; border: 1px solid #e9d5ff;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.hot-tag:hover { background: #f5f3ff; border-color: #c4b5fd; transform: translateY(-1px); }
.hot-tag-name { font-size: 14px; font-weight: 600; color: #4c1d95; }
.hot-tag-count {
  font-size: 12px; color: #fff; background: #7c3aed;
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: #fff;
  border-radius: 14px; border: 1px solid #f0ecfa;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.rank-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,58,237,0.1); border-color: #c4b5fd; }
.rank-number {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.rank-top1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-top2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #fff; }
.rank-top3 { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; }
.rank-normal { background: #f5f3ff; color: #7c3aed; }
.rank-card-body { flex: 1; min-width: 0; }
.rank-card-title {
  font-size: 15px; font-weight: 600; color: #1e1b4b;
  margin-bottom: 6px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.paywall-badge { margin-right: 4px; }
.rank-card-meta { display: flex; gap: 14px; font-size: 13px; color: #6b7280; }
.rank-likes, .rank-bookmarks { display: inline-flex; align-items: center; gap: 4px; }
.rank-heat { color: #7c3aed; font-weight: 600; }
.rank-heat em { font-style: normal; font-weight: 700; }
@media (max-width: 600px) {
  .ranking-banner { padding: 24px 20px; }
  .ranking-banner h1 { font-size: 22px; }
  .rank-card { padding: 12px 16px; gap: 12px; }
  .rank-number { width: 30px; height: 30px; font-size: 14px; }
  .rank-card-title { font-size: 14px; }
  .rank-card-meta { gap: 10px; font-size: 12px; }
}

/* ===== 首页：机会库 + 软件工具榜 ===== */
.nr-content-grid { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:24px; align-items:start; margin-top:20px; }
.nr-opportunity-column { min-width:0; }
.nr-column-heading,.nr-software-header { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.nr-column-eyebrow { display:block; margin-bottom:3px; color:var(--primary); font-size:12px; font-weight:700; letter-spacing:.08em; }
.nr-column-heading h2,.nr-software-header h2 { margin:0; color:var(--text); font-size:21px; line-height:1.35; }
.nr-column-hint { flex:0 0 auto; color:#94a3b8; font-size:12px; }
.nr-content-grid .feed-item { padding:18px 20px; }
.nr-content-grid .feed-title { font-size:16px; }
.nr-feed-error,.nr-software-error { padding:13px 14px; border:1px solid #fecaca; border-radius:10px; background:#fef2f2; color:#b91c1c; font-size:13px; }
.nr-software-sidebar { position:sticky; top:82px; min-width:0; }
.nr-software-panel { overflow:hidden; border:1px solid #e6dcf7; border-radius:16px; background:linear-gradient(180deg,#fbfaff 0%,#fff 30%); box-shadow:0 10px 30px rgba(91,33,182,.08); }
.nr-software-header { position:relative; display:block; margin:0; padding:24px 16px 18px; text-align:center; }
.nr-software-header h2 { font-size:25px; line-height:1.35; }
.nr-software-live { position:relative; display:inline-block; margin-top:8px; padding-left:12px; color:#64748b; font-size:11px; }
.nr-software-live::before { position:absolute; top:50%; left:0; width:7px; height:7px; border-radius:50%; background:#22c55e; content:''; transform:translateY(-50%); box-shadow:0 0 0 4px rgba(34,197,94,.12); }
.nr-software-controls { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0 14px 14px; }
.nr-software-controls label { display:flex; flex-direction:column; gap:4px; color:#64748b; font-size:11px; }
.nr-software-controls select,.software-directory-filters select { min-width:0; width:100%; padding:8px 28px 8px 9px; border:1px solid #ddd6fe; border-radius:9px; background:#fff; color:#312e81; font-family:inherit; font-size:12px; }
.nr-software-loader { margin:0 14px 8px; color:var(--primary); font-size:12px; }
.nr-software-list { display:flex; flex-direction:column; padding:0 10px; }
.nr-software-item { position:relative; display:grid; grid-template-columns:24px 42px minmax(0,1fr) 42px; gap:9px; align-items:start; min-height:118px; padding:14px 7px; border-top:1px solid #f1ecf9; transition:background-color .2s,transform .2s; }
.nr-software-item:hover { background:#faf7ff; }
.nr-software-item.is-top { background:linear-gradient(90deg,rgba(124,58,237,.055),transparent); }
.nr-software-rank { color:#94a3b8; font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; }
.nr-software-item.is-top .nr-software-rank { color:var(--primary); }
.nr-software-logo { display:flex; align-items:center; justify-content:center; width:42px; height:42px; overflow:hidden; border:1px solid #e8e1f4; border-radius:11px; background:linear-gradient(135deg,#ede9fe,#faf5ff); color:var(--primary); font-size:17px; font-weight:800; }
.nr-software-logo img { width:100%; height:100%; object-fit:cover; }
.nr-software-body { min-width:0; }
.nr-software-title { display:block; overflow:hidden; color:#1f2937; font-size:13px; font-weight:700; line-height:1.35; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.nr-software-title:hover { color:var(--primary); }
.nr-software-body>p { display:-webkit-box; overflow:hidden; margin:5px 0 7px; color:#6b7280; font-size:11px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.nr-software-meta { display:flex; gap:5px; align-items:center; flex-wrap:wrap; }
.nr-software-meta span { padding:2px 5px; border-radius:5px; background:#f5f3ff; color:#6d28d9; font-size:9px; line-height:1.3; }
.nr-software-meta strong { color:#d97706; font-size:10px; }
.nr-software-out { display:flex; align-items:center; justify-content:center; min-width:38px; min-height:28px; margin-top:2px; border:1px solid #c4b5fd; border-radius:8px; color:#7c3aed; font-size:10px; font-weight:700; text-decoration:none; }
.nr-software-out:hover { background:#7c3aed; color:#fff; }
.nr-software-empty { display:flex; flex-direction:column; gap:5px; margin:8px 4px 14px; padding:22px 16px; border:1px dashed #c4b5fd; border-radius:12px; background:#faf8ff; color:#64748b; text-align:center; font-size:12px; }
.nr-software-empty strong { color:#4c1d95; font-size:14px; }
.nr-software-error { margin-bottom:7px; }
.nr-software-all { display:block; margin-top:7px; padding:12px; border-top:1px solid #eee8f7; color:var(--primary); font-size:12px; font-weight:700; text-align:center; text-decoration:none; }
.nr-software-all:hover { background:#faf7ff; }

/* ===== 软件目录与详情 ===== */
.software-directory,.software-detail { max-width:1100px; margin:28px auto; }
.software-directory-header { padding:30px; border-radius:18px; background:linear-gradient(135deg,#f2edfb,#faf8ff); text-align:center; }
.software-directory-header h1 { margin:4px 0 8px; color:#312e81; font-size:28px; }
.software-directory-header p { margin:0; color:#64748b; font-size:14px; }
.software-directory-filters { display:flex; align-items:flex-end; gap:12px; margin:20px 0; padding:14px; border:1px solid #ece7f5; border-radius:12px; background:#fff; }
.software-directory-filters label { display:flex; flex:1; flex-direction:column; gap:5px; color:#64748b; font-size:12px; }
.software-directory-filters button,.software-official-button,.software-download-button,.software-directory-visit { padding:9px 16px; border:0; border-radius:9px; background:var(--primary); color:#fff; font-family:inherit; font-size:13px; font-weight:700; text-decoration:none; cursor:pointer; }
.software-directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.software-directory-card { display:grid; grid-template-columns:52px minmax(0,1fr); gap:12px; padding:18px; border:1px solid #e8e1f4; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(76,29,149,.05); }
.software-directory-card .nr-software-logo { width:52px; height:52px; }
.software-directory-card p { display:-webkit-box; overflow:hidden; margin:6px 0 10px; color:#64748b; font-size:12px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.software-directory-visit { grid-column:1/-1; justify-self:start; margin-top:4px; padding:7px 12px; font-size:11px; }
.software-directory-pagination { margin-top:26px; }
.software-directory-pagination ul { display:flex; justify-content:center; gap:6px; padding:0; list-style:none; }
.software-directory-pagination a,.software-directory-pagination span { display:block; padding:7px 11px; border:1px solid #ddd6fe; border-radius:8px; background:#fff; }
.software-detail-header { display:flex; align-items:center; gap:20px; margin-top:18px; padding:26px; border:1px solid #e8e1f4; border-radius:16px; background:#fff; }
.software-detail-logo { display:flex; align-items:center; justify-content:center; width:92px; height:92px; overflow:hidden; border-radius:20px; background:#ede9fe; color:var(--primary); font-size:32px; font-weight:800; flex:0 0 auto; }
.software-detail-logo img { width:100%; height:100%; object-fit:cover; }
.software-detail-heading { flex:1; min-width:0; }
.software-detail-heading h1 { margin:0 0 8px; color:#1f2937; font-size:27px; }
.software-detail-heading h1 small { margin-left:8px; color:#7c3aed; font-size:14px; font-weight:700; }
.software-detail-meta { display:flex; gap:7px; flex-wrap:wrap; }
.software-detail-meta span { padding:4px 8px; border-radius:7px; background:#f5f3ff; color:#6d28d9; font-size:11px; }
.software-detail-actions { display:flex; flex-direction:column; gap:8px; flex:0 0 auto; }
.software-download-button { padding:12px 22px; text-align:center; }
.software-download-button:hover,.software-official-button:hover { background:#5b21b6; color:#fff; }
.software-official-button { background:#f5f3ff; color:#6d28d9; text-align:center; }
.software-download-unavailable { padding:11px 16px; border-radius:9px; background:#f1f5f9; color:#64748b; font-size:12px; }
.software-detail-summary { margin:18px 0; padding:15px 18px; border-left:3px solid var(--primary); background:#faf8ff; color:#475569; line-height:1.7; }
.software-detail-section { margin-top:20px; padding:22px; border:1px solid #ece7f5; border-radius:14px; background:#fff; }
.software-detail-section h2 { margin:0 0 14px; color:#312e81; font-size:19px; }
.software-detail-content,.software-detail-text { color:var(--text); font-size:15px; line-height:1.85; }
.software-detail-placeholder { margin:0; color:#94a3b8; font-size:13px; }
.software-screenshot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.software-screenshot-grid a { display:block; overflow:hidden; border:1px solid #ede9fe; border-radius:10px; }
.software-screenshot-grid img { display:block; width:100%; height:auto; }
.software-faq-list { display:flex; flex-direction:column; gap:9px; }
.software-faq-list details { padding:12px 14px; border:1px solid #ede9fe; border-radius:10px; background:#faf8ff; }
.software-faq-list summary { color:#312e81; font-weight:700; cursor:pointer; }
.software-faq-list p { margin:9px 0 0; color:#64748b; line-height:1.7; }
.software-copyright { margin:20px 0 0; padding:14px; border-top:1px solid #ede9fe; color:#94a3b8; font-size:12px; text-align:center; }

@media (max-width:1000px) {
  .nr-content-grid { grid-template-columns:1fr; }
  .nr-software-sidebar { position:static; order:-1; }
  .nr-software-list { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
  .nr-software-item:nth-of-type(n+7) { display:none; }
  .software-directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .nr-content-grid { margin-top:14px; }
  .nr-column-heading { align-items:flex-start; }
  .nr-column-hint { display:none; }
  .nr-column-heading h2 { font-size:18px; }
  .nr-software-list { display:flex; }
  .nr-software-item:nth-of-type(n+6) { display:none; }
  .nr-software-controls { grid-template-columns:1fr; }
  .software-directory,.software-detail { margin:18px auto; }
  .software-directory-header { padding:22px 16px; }
  .software-directory-header h1 { font-size:22px; }
  .software-directory-filters { align-items:stretch; flex-direction:column; }
  .software-directory-grid { grid-template-columns:1fr; }
  .software-detail-header { align-items:flex-start; flex-wrap:wrap; padding:18px; }
  .software-detail-logo { width:60px; height:60px; }
  .software-detail-heading h1 { font-size:21px; }
  .software-detail-actions { width:100%; }
  .software-official-button,.software-download-button { width:100%; box-sizing:border-box; text-align:center; }
  .software-screenshot-grid { grid-template-columns:1fr; }
  .nr-software-header { padding:20px 16px 16px; }
  .nr-software-header h2 { font-size:21px; }
  .nr-software-live { position:relative; top:auto; right:auto; display:inline-block; margin-top:8px; transform:none; }
}
