/* 统一子页面主题样式 - 与 index.html 配色一致 */

:root {
	--bg: #f4f5f7;
	--panel: #ffffff;
	--border: #e4e7eb;
	--text: #1f2937;
	--muted: #6b7280;
	--accent: #4f46e5;
	--accent-soft: #eef2ff;
	--accent-hover: #4338ca;
	--shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.6;
}

body { padding: 16px 18px; }

/* 表格容器化为卡片 */
table {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: var(--shadow);
	overflow: hidden;
}
td {
	padding: 14px 18px;
	vertical-align: top;
}

P {
	margin: 8px 0;
	color: var(--text);
}
P:first-child { margin-top: 0; }
P:last-child { margin-bottom: 0; }

b, h1, h2, h3, h4, h5 {
	color: var(--text);
	font-weight: 600;
}

/* 输入框 */
input[type="text"], input[type="file"], select, textarea {
	font-family: inherit;
	font-size: 13px;
	color: var(--text);
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 5px 8px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	vertical-align: middle;
}
input[type="text"]:focus, select:focus, textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
input[type="file"] { padding: 3px 6px; font-size: 12px; }

/* 按钮 */
input[type="button"], button {
	font-family: inherit;
	font-size: 13px;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 6px 14px;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	vertical-align: middle;
	line-height: 1.4;
}
input[type="button"]:hover, button:hover {
	background: var(--accent);
	color: #fff;
}
input[type="button"]:active, button:active {
	background: var(--accent-hover);
}

/* 复选框 */
input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: var(--accent);
	vertical-align: middle;
	cursor: pointer;
}

/* 文本域 - 等宽显示 hex */
textarea {
	width: 100%;
	font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
	font-size: 12px;
	resize: vertical;
	min-height: 80px;
	line-height: 1.55;
}

/* 信息参考块 */
pre, .info-block {
	background: #f9fafb;
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: 6px;
	margin: 8px 0;
	padding: 10px 14px;
	color: var(--text);
	font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
	font-size: 12px;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-all;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 14px 0;
}

blockquote {
	margin: 8px 0;
	padding: 8px 14px;
	background: #f9fafb;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-family: "JetBrains Mono", "Consolas", monospace;
	font-size: 12px;
}

/* 链接 */
a {
	color: var(--accent);
	text-decoration: none;
}
a:hover { text-decoration: underline; }

/* div 布局页面使用的面板容器，等同于 table 卡片 */
.panel {
	max-width: 980px;
	margin: 0 auto;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: var(--shadow);
	padding: 18px 22px;
}

.panel h1, .panel h2, .panel h3, .panel h4 {
	margin-top: 18px;
}
.panel h1:first-child, .panel h2:first-child, .panel h3:first-child, .panel h4:first-child {
	margin-top: 0;
}
