/* ============ New API Enterprise — 门户深色科技风 ============ */
.napi-portal-body {
	margin: 0;
	background: #0b1020;
	color: #e8ecf5;
	font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
	line-height: 1.7;
}

/* 顶栏 */
.napi-header {
	background: rgba(11, 16, 32, 0.95);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	backdrop-filter: blur(10px);
}
.napi-main { padding-top: 76px; }
.napi-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	height: 60px;
	display: flex;
	align-items: center;
	gap: 24px;
}
.napi-logo {
	font-size: 20px;
	font-weight: 700;
	color: #4da3ff;
	text-decoration: none;
	white-space: nowrap;
}
.napi-nav {
	flex: 1;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.napi-nav a {
	color: #b7c1d9;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14px;
}
.napi-nav a:hover, .napi-nav a.active { color: #fff; background: rgba(77, 163, 255, 0.15); }
.napi-header-user { display: flex; gap: 8px; white-space: nowrap; }

/* 主体 */
.napi-main { min-height: 70vh; max-width: 1200px; margin: 0 auto; padding: 24px 20px; }

/* 首页 */
.napi-hero {
	text-align: center;
	padding: 70px 20px 50px;
	background: radial-gradient(ellipse at 50% 0%, rgba(77, 163, 255, 0.18), transparent 70%);
	border-radius: 16px;
}
.napi-hero h1 {
	font-size: 42px;
	margin: 0 0 14px;
	background: linear-gradient(90deg, #4da3ff, #7ee0c3);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.napi-hero p { color: #9aa7c4; font-size: 16px; max-width: 640px; margin: 0 auto 26px; }
.napi-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.napi-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-top: 28px;
}
.napi-feature {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 22px;
}
.napi-feature h3 { margin: 0 0 8px; color: #4da3ff; }
.napi-feature p { color: #9aa7c4; font-size: 13px; margin: 0 0 12px; }
.napi-feature a { color: #7ee0c3; text-decoration: none; font-size: 13px; }

/* 按钮 */
.napi-btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 8px;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	background: #1a2238;
	color: #c3cde4;
}
.napi-btn:hover { opacity: 0.9; }
.napi-btn-primary { background: #2271e0; color: #fff; }
.napi-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: #cfd8ec; }
.napi-btn-danger { background: #c0392b; color: #fff; }
.napi-btn-small { padding: 4px 10px; font-size: 12px; }
.napi-btn-lg { padding: 12px 28px; font-size: 16px; }

/* 内容容器（门户页上的插件盒子适配深色） */
.napi-portal-content .napi-box {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 20px;
	color: #e8ecf5;
}
.napi-portal-content .napi-org-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
}
.napi-portal-content .napi-desc { color: #9aa7c4; }
.napi-portal-content .napi-table th, .napi-portal-content .napi-table td { border-color: rgba(255, 255, 255, 0.12); }
.napi-portal-content .napi-table th { background: rgba(255, 255, 255, 0.06); }
.napi-portal-content .napi-form input[type="text"],
.napi-portal-content .napi-form input[type="email"],
.napi-portal-content .napi-form input[type="number"],
.napi-portal-content .napi-form input[type="password"],
.napi-portal-content .napi-form select,
.napi-create-org input[type="text"] {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #e8ecf5;
}
.napi-portal-content .napi-btn { background: #1a2238; color: #c3cde4; border-color: rgba(255,255,255,0.15); }
.napi-portal-content .napi-btn-primary { background: #2271e0; color: #fff; }
.napi-portal-content .napi-btn-danger { background: #c0392b; color: #fff; }
.napi-tag { background: #2271e0; color: #fff; border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.napi-tag-red { background: #c0392b; }
.napi-key-reveal { background: rgba(255, 200, 0, 0.08); border: 1px solid rgba(255, 200, 0, 0.3); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.napi-key-full { color: #ffd54a; word-break: break-all; }

/* AI 对话 */
.napi-chat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.napi-chat-head h3 { margin: 0; }
.napi-chat-head select, .napi-chat-head input {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #e8ecf5;
	border-radius: 6px;
	padding: 6px 8px;
}
.napi-chat-log {
	min-height: 300px;
	max-height: 480px;
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 14px;
}
.napi-msg-line { margin: 8px 0; padding: 10px 14px; border-radius: 10px; max-width: 85%; white-space: pre-wrap; word-break: break-word; }
.napi-msg-user { background: #2271e0; color: #fff; margin-left: auto; }
.napi-msg-assistant { background: rgba(255, 255, 255, 0.07); color: #e8ecf5; }
.napi-chat-input { display: flex; gap: 10px; }
.napi-chat-input textarea {
	flex: 1;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #e8ecf5;
	border-radius: 10px;
	padding: 12px;
	min-height: 60px;
	resize: vertical;
}

/* 底栏 */
.napi-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 18px 20px;
	margin-top: 30px;
}
.napi-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	color: #6d7895;
	font-size: 13px;
	flex-wrap: wrap;
	gap: 8px;
}
.napi-footer-links a { color: #6d7895; text-decoration: none; margin-left: 14px; }

@media (max-width: 768px) {
	.napi-header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; }
	.napi-hero h1 { font-size: 30px; }
	.napi-nav { order: 3; width: 100%; }
}

/* 定价对比 */
.napi-pricing-head { text-align: center; margin-bottom: 18px; }
.napi-pricing-head h3 { font-size: 26px; margin: 0 0 6px; }
.napi-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.napi-price-card {
	position: relative;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 26px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.napi-price-highlight {
	border: 2px solid #4da3ff;
	box-shadow: 0 0 24px rgba(77, 163, 255, 0.25);
}
.napi-price-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: #4da3ff;
	color: #fff;
	font-size: 12px;
	border-radius: 20px;
	padding: 2px 14px;
}
.napi-price-name { font-size: 17px; font-weight: 600; }
.napi-price-num { font-size: 38px; font-weight: 700; color: #4da3ff; }
.napi-price-period { color: #9aa7c4; font-size: 13px; }
.napi-price-features { list-style: none; margin: 6px 0 10px; padding: 0; text-align: left; flex: 1; }
.napi-price-features li {
	padding: 6px 0 6px 26px;
	color: #c3cde4;
	font-size: 13px;
	position: relative;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.napi-price-features li:before { content: "✓"; position: absolute; left: 4px; color: #7ee0c3; }
.napi-btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }

/* zibll 页面（课程/文章）套门户头尾 */
body.napi-portal-zibll header.header,
body.napi-portal-zibll footer.footer,
body.napi-portal-zibll .header-space,
body.napi-portal-zibll .main-shadow,
body.napi-portal-zibll .footer-tools {
	display: none !important;
}
body.napi-portal-zibll .container {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	margin-top: 18px;
	margin-bottom: 18px;
	max-width: 1160px;
}
body.napi-portal-zibll .napi-header { margin-bottom: 0; }
body.napi-portal-zibll { padding-top: 62px; background: #0b1020; }
