/* 留言板右栏的「意见反馈信箱」卡片。
   卡片外壳套用站点自己的 .aklh-card（白底圆角描边），这里只管内部控件。
   注意：.aklh-card 本身没有内边距，隔壁「留言规则」卡片是自己写 padding:20px 的，
   所以这里也必须自带 padding，否则控件会贴到卡片边缘上。 */

.aktw-fb {
	padding: 20px;
}

.aktw-fb h3 {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	font-size: 15.5px;
	line-height: 1.5;
}

.aktw-fb-tip {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.75;
	color: #94a3b8;
}

.aktw-fb-tip b {
	color: #475569;
	font-weight: 600;
}

/* 「仅老师和开发者可见」小胶囊：单独一行，避免夹在正文里断行断出孤字 */
.aktw-fb-only {
	display: inline-block;
	margin-top: 6px;
	background: #eff6ff;
	color: #1d4ed8;
	border-radius: 5px;
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
}

.aktw-fb-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aktw-fb select,
.aktw-fb textarea,
.aktw-fb input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e2e8f4;
	border-radius: 9px;
	background: #f8fafc;
	color: #1e293b;
	font-family: inherit;
	font-size: 12.5px;
	padding: 7px 10px;
	outline: none;
	transition: border-color .15s, background .15s;
}

.aktw-fb select { height: 34px; }

.aktw-fb textarea {
	min-height: 72px;
	max-height: 200px;
	resize: vertical;
	line-height: 1.7;
	margin: 0;
}

.aktw-fb input[type="text"] { height: 32px; margin: 0; }

.aktw-fb select:focus,
.aktw-fb textarea:focus,
.aktw-fb input[type="text"]:focus {
	background: #fff;
	border-color: #bfd4fb;
}

.aktw-fb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 2px;
}

.aktw-fb-anon {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #64748b;
	cursor: pointer;
	user-select: none;
}

.aktw-fb-anon input { margin: 0; }

.aktw-fb-send {
	margin-left: auto;
	flex: 0 0 auto;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(135deg, #2563eb, #0ea5e9);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 18px;
	cursor: pointer;
	box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
	transition: transform .15s, box-shadow .15s, opacity .15s;
}

.aktw-fb-send:hover { transform: translateY(-1px); box-shadow: 0 9px 18px rgba(37, 99, 235, .3); }

.aktw-fb-send:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.aktw-fb-msg {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.6;
	color: #64748b;
	min-height: 0;
}

.aktw-fb-msg.is-ok { color: #15803d; }
.aktw-fb-msg.is-err { color: #b91c1c; }

.aktw-fb-guest {
	margin-top: 8px;
	font-size: 12px;
	color: #94a3b8;
}

.aktw-fb-guest a { color: #2563eb; font-weight: 600; text-decoration: none; }

/* ---------- 老师 / 开发者：收信箱 ---------- */
.aktw-fb-inbox {
	margin-top: 14px;
	padding-top: 13px;
	border-top: 1px dashed #e6ebf5;
}

.aktw-fb-open {
	width: 100%;
	border: 1px solid #e2e8f4;
	background: #f8fafc;
	color: #334155;
	border-radius: 9px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	padding: 9px 10px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.aktw-fb-open:hover { background: #eff6ff; border-color: #bfd4fb; color: #1d4ed8; }

.aktw-fb-list {
	margin-top: 9px;
	max-height: 360px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.aktw-fb-item {
	border: 1px solid #eef2f9;
	background: #fff;
	border-radius: 9px;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.65;
	color: #334155;
}

.aktw-fb-item .hd {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 3px;
	font-size: 11px;
	color: #94a3b8;
}

.aktw-fb-item .tag {
	background: #eff6ff;
	color: #1d4ed8;
	border-radius: 5px;
	padding: 1px 5px;
	font-weight: 700;
	font-size: 10.5px;
}

.aktw-fb-item .who { color: #475569; font-weight: 600; }

.aktw-fb-item .body {
	white-space: pre-wrap;
	word-break: break-word;
}

.aktw-fb-item .ct {
	margin-top: 3px;
	font-size: 11px;
	color: #94a3b8;
}

.aktw-fb-empty {
	font-size: 12px;
	color: #94a3b8;
	padding: 10px 0;
}

@media (max-width: 720px) {
	.aktw-fb { padding: 16px; }
	.aktw-fb textarea { min-height: 66px; }
}
