/*
	hudou_doudou —— 左下角「豆豆 AI 创业顾问」浮窗样式
	全部选择器以 .dda 前缀隔离，不污染主题；不依赖任何前端框架。
*/

.dda,
.dda * {
	box-sizing: border-box;
}

.dda {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 0;
	height: 0;
	z-index: var(--dda-z, 1050);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #2b2118;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.dda [hidden] {
	display: none !important;
}

.dda button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.dda a {
	color: var(--dda-primary, #c8860a);
	text-decoration: none;
}

.dda a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   悬浮按钮
------------------------------------------------------------------ */
.dda .dda-fab {
	position: fixed;
	left: var(--dda-left, 20px);
	bottom: var(--dda-bottom, 24px);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--dda-primary, #c8860a), var(--dda-primary, #c8860a));
	box-shadow:
		0 10px 28px rgba(80, 45, 10, 0.32),
		0 3px 10px rgba(80, 45, 10, 0.18),
		inset -6px -8px 16px rgba(0, 0, 0, 0.18),
		inset 4px 5px 12px rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	z-index: 2;
}

.dda .dda-fab:hover,
.dda .dda-fab:focus-visible {
	transform: translateY(-2px) scale(1.04);
	box-shadow:
		0 14px 34px rgba(80, 45, 10, 0.38),
		0 4px 12px rgba(80, 45, 10, 0.22),
		inset -6px -8px 16px rgba(0, 0, 0, 0.16),
		inset 4px 5px 12px rgba(255, 255, 255, 0.2);
	outline: none;
}

.dda .dda-fab:focus-visible {
	box-shadow:
		0 0 0 4px rgba(255, 255, 255, 0.9),
		0 0 0 8px var(--dda-primary, #c8860a),
		0 14px 34px rgba(80, 45, 10, 0.38);
}

.dda .dda-fab-icon {
	font-size: 28px;
	line-height: 1;
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.dda .dda-fab-pulse {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.32);
	animation: dda-pulse 3s ease-in-out infinite;
	pointer-events: none;
}

.dda .dda-fab-label {
	position: fixed;
	left: calc(var(--dda-left, 20px) + 72px);
	bottom: calc(var(--dda-bottom, 24px) + 15px);
	background: #241a12;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 8px 11px;
	border-radius: 8px;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-5px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	z-index: 3;
}

.dda .dda-fab:hover .dda-fab-label,
.dda .dda-fab:focus-visible .dda-fab-label {
	opacity: 1;
	transform: translateX(0);
}

@keyframes dda-pulse {
	0%, 100% { transform: scale(1); opacity: 0.45; }
	50% { transform: scale(1.12); opacity: 0.12; }
}

/* ------------------------------------------------------------------
   主动提示气泡
------------------------------------------------------------------ */
.dda .dda-tip {
	position: fixed;
	left: var(--dda-left, 20px);
	bottom: calc(var(--dda-bottom, 24px) + 76px);
	width: 282px;
	max-width: calc(100vw - 32px);
	background: #fffdf9;
	border: 1px solid #eadfce;
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(50, 30, 10, 0.18), 0 3px 10px rgba(50, 30, 10, 0.08);
	padding: 11px 30px 11px 11px;
	z-index: 1;
	animation: dda-tip-in 0.3s ease both;
}

.dda .dda-tip::after {
	content: "";
	position: absolute;
	left: 26px;
	bottom: -6px;
	width: 11px;
	height: 11px;
	background: #fffdf9;
	border-right: 1px solid #eadfce;
	border-bottom: 1px solid #eadfce;
	transform: rotate(45deg);
}

.dda .dda-tip-body {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: left;
	width: 100%;
}

.dda .dda-tip-icon {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: var(--dda-primary, #c8860a);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	margin-top: 1px;
}

.dda .dda-tip-text {
	font-size: 12px;
	line-height: 1.55;
	color: #4a3a2a;
	font-weight: 500;
}

.dda .dda-tip-close {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #eadfce;
	color: #9a8a78;
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	z-index: 2;
}

.dda .dda-tip-close:hover {
	color: #e05a3a;
	border-color: #e8c4b8;
}

@keyframes dda-tip-in {
	from { opacity: 0; transform: translateY(8px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------------
   对话面板
------------------------------------------------------------------ */
.dda .dda-panel {
	position: fixed;
	left: var(--dda-left, 20px);
	bottom: calc(var(--dda-bottom, 24px) + 76px);
	width: 392px;
	max-width: calc(100vw - 32px);
	height: auto;
	min-height: 520px;
	max-height: 620px;
	background: #fffdf9;
	border: 1px solid rgba(90, 60, 25, 0.12);
	border-radius: 20px;
	box-shadow:
		0 30px 80px rgba(40, 25, 8, 0.26),
		0 8px 24px rgba(40, 25, 8, 0.12);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 3;
	animation: dda-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dda-panel-in {
	from { opacity: 0; transform: translateY(14px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 头部 */
.dda .dda-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 14px;
	background:
		radial-gradient(120% 160% at 0% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
		linear-gradient(135deg, #241a12 0%, #3a2410 100%);
	color: #fff;
}

.dda .dda-avatar {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background: linear-gradient(140deg, var(--dda-primary, #c8860a), #8a3d18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	animation: dda-bob 2.6s ease-in-out infinite;
}

@keyframes dda-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}

.dda .dda-head-info {
	flex: 1 1 auto;
	min-width: 0;
}

.dda .dda-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffe6bd;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dda .dda-name-dot {
	opacity: 0.55;
	font-weight: 400;
}

.dda .dda-status {
	margin-top: 3px;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.58);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dda .dda-status-dot {
	width: 6px;
	height: 6px;
	flex: 0 0 6px;
	border-radius: 50%;
	background: #35c46a;
	box-shadow: 0 0 0 3px rgba(53, 196, 106, 0.14);
	animation: dda-blink 2s ease-in-out infinite;
}

.dda .dda-status-dot.is-off {
	background: #e4a33a;
	box-shadow: 0 0 0 3px rgba(228, 163, 58, 0.14);
}

@keyframes dda-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.dda .dda-badge {
	flex: 0 0 auto;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #ffd89a;
	max-width: 84px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dda .dda-badge.is-off {
	color: #ffb4a5;
	border-color: rgba(255, 120, 100, 0.3);
}

.dda .dda-head-btn {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.55);
	font-size: 16px;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease;
}

.dda .dda-head-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.dda .dda-head-btn svg {
	width: 14px;
	height: 14px;
	display: block;
}

.dda .dda-close {
	font-size: 22px;
	font-weight: 300;
}

/* ------------------------------------------------------------------
   消息区
------------------------------------------------------------------ */
.dda .dda-msgs {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 14px 14px 10px;
	background: #faf7f2;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 220px;
	scrollbar-width: thin;
	scrollbar-color: #d9cdbd transparent;
}

.dda .dda-msgs::-webkit-scrollbar {
	width: 5px;
}

.dda .dda-msgs::-webkit-scrollbar-thumb {
	background: #d9cdbd;
	border-radius: 4px;
}

.dda .dda-msg {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 100%;
	animation: dda-msg-in 0.2s ease both;
}

.dda .dda-msg.dda-user {
	flex-direction: row-reverse;
}

@keyframes dda-msg-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.dda .dda-avatar-sm {
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	font-size: 14px;
	animation: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.dda .dda-msg.dda-user .dda-avatar-sm {
	background: #2b2118;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.dda .dda-bubble {
	max-width: 86%;
	padding: 9px 12px;
	border-radius: 14px;
	border-bottom-left-radius: 5px;
	background: #ffffff;
	border: 1px solid #eee5d8;
	color: #2b2118;
	font-size: 12.8px;
	line-height: 1.68;
	word-break: break-word;
	overflow-wrap: anywhere;
	text-wrap: pretty;
	box-shadow: 0 1px 2px rgba(40, 25, 8, 0.04);
}

.dda .dda-msg.dda-user .dda-bubble {
	background: #2b2118;
	border-color: #2b2118;
	color: #fff;
	border-bottom-left-radius: 14px;
	border-bottom-right-radius: 5px;
	white-space: pre-wrap;
}

.dda .dda-bubble-notice {
	background: #fff7e8;
	border-color: #f0d9ae;
	color: #6a4a16;
}

.dda .dda-bubble p {
	margin: 0 0 8px;
}

.dda .dda-bubble p:last-child {
	margin-bottom: 0;
}

.dda .dda-bubble strong {
	font-weight: 700;
	color: #1f150c;
}

.dda .dda-bubble code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11.5px;
	background: #f4ede2;
	border: 1px solid #e8dccb;
	border-radius: 4px;
	padding: 1px 4px;
	color: #7a4b12;
}

.dda .dda-bubble pre {
	margin: 8px 0;
	padding: 9px 10px;
	background: #241a12;
	color: #f4e7d2;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 11.5px;
	line-height: 1.55;
}

.dda .dda-bubble pre code {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}

.dda .dda-bubble ul,
.dda .dda-bubble ol {
	margin: 6px 0;
	padding-left: 18px;
}

.dda .dda-bubble li {
	margin: 2px 0;
}

.dda .dda-bubble .dda-h {
	font-weight: 700;
	color: #1f150c;
	margin: 9px 0 4px;
	line-height: 1.4;
}

.dda .dda-bubble .dda-h1 { font-size: 14px; }
.dda .dda-bubble .dda-h2 { font-size: 13.5px; }
.dda .dda-bubble .dda-h3 { font-size: 13px; }

.dda .dda-bubble .dda-gap {
	height: 4px;
}

.dda .dda-bubble .dda-line {
	margin: 0;
}

.dda .dda-inline-link {
	display: inline-block;
	margin-top: 6px;
	font-weight: 700;
	color: #a86400;
}

/* 打字 */
.dda .dda-typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 2px;
}

.dda .dda-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #b9a58c;
	animation: dda-typing 1.2s ease-in-out infinite;
}

.dda .dda-typing span:nth-child(2) { animation-delay: 0.16s; }
.dda .dda-typing span:nth-child(3) { animation-delay: 0.32s; }

.dda .dda-typing-text {
	display: inline-block;
	margin-left: 4px;
	font-size: 11px;
	color: #a39380;
	vertical-align: middle;
}

@keyframes dda-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.dda .dda-cursor {
	display: inline-block;
	width: 2px;
	height: 13px;
	background: var(--dda-primary, #c8860a);
	margin-left: 2px;
	vertical-align: -1px;
	animation: dda-cursor 0.8s step-end infinite;
}

@keyframes dda-cursor {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* 错误 / 重试 */
.dda .dda-error {
	color: #a33a22;
}

.dda .dda-retry {
	display: inline-block;
	margin-top: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e6c3b5;
	color: #a33a22;
	font-size: 11px;
	font-weight: 600;
}

.dda .dda-retry:hover {
	background: #fff3ef;
}

/* ------------------------------------------------------------------
   快捷关键词
------------------------------------------------------------------ */
.dda .dda-quick {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 10px;
	background: #faf7f2;
}

.dda .dda-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e8ddcd;
	color: #4a3a2a;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.35;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.dda .dda-chip:hover {
	background: var(--dda-primary, #c8860a);
	border-color: var(--dda-primary, #c8860a);
	color: #fff;
	transform: translateY(-1px);
}

.dda .dda-chip-emoji {
	font-size: 12px;
	line-height: 1;
}

.dda .dda-chip-more {
	border-style: dashed;
	color: #8a6a3a;
	background: transparent;
}

.dda .dda-chip-more:hover {
	color: #fff;
}

/* ------------------------------------------------------------------
   话题库
------------------------------------------------------------------ */
.dda .dda-topics {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #faf7f2;
}

.dda .dda-panel.is-topics .dda-msgs,
.dda .dda-panel.is-topics .dda-quick {
	display: none;
}

.dda .dda-topics-head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid #eee5d8;
	background: #fffdf9;
}

.dda .dda-topics-back {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	background: #f4ede2;
	color: #6a5642;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dda .dda-topics-back:hover {
	background: #eadfce;
}

.dda .dda-topic-search {
	flex: 1 1 auto;
	min-width: 0;
	height: 32px;
	padding: 0 12px;
	border: 1px solid #e8ddcd;
	border-radius: 999px;
	background: #faf7f2;
	color: #2b2118;
	font-size: 12px;
	outline: none;
	font-family: inherit;
}

.dda .dda-topic-search:focus {
	border-color: var(--dda-primary, #c8860a);
	background: #fff;
}

.dda .dda-topics-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 14px 14px;
	scrollbar-width: thin;
	scrollbar-color: #d9cdbd transparent;
}

.dda .dda-topics-body::-webkit-scrollbar {
	width: 5px;
}

.dda .dda-topics-body::-webkit-scrollbar-thumb {
	background: #d9cdbd;
	border-radius: 4px;
}

.dda .dda-group {
	margin-top: 10px;
}

.dda .dda-group:first-child {
	margin-top: 2px;
}

.dda .dda-group-title {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #9a8770;
	margin: 0 0 6px;
}

.dda .dda-group-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dda .dda-empty {
	padding: 24px 6px;
	text-align: center;
	color: #a39380;
	font-size: 12px;
}

/* ------------------------------------------------------------------
   输入区 / 底部
------------------------------------------------------------------ */
.dda .dda-composer {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	gap: 6px;
	padding: 9px 12px 8px;
	border-top: 1px solid #eee5d8;
	background: #fffdf9;
}

.dda .dda-topic-btn {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	background: #f6efe3;
	color: #7a5a24;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.dda .dda-topic-btn:hover {
	background: #efe3cf;
}

.dda .dda-input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 36px;
	max-height: 104px;
	padding: 8px 13px;
	border: 1px solid #e6dac8;
	border-radius: 19px;
	background: #faf7f2;
	color: #2b2118;
	font-family: inherit;
	font-size: 12.8px;
	line-height: 1.5;
	resize: none;
	outline: none;
	overflow-y: auto;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dda .dda-input::placeholder {
	color: #b2a18c;
}

.dda .dda-input:focus {
	border-color: var(--dda-primary, #c8860a);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(200, 134, 10, 0.12);
}

.dda .dda-input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #f2eee7;
}

.dda .dda-send,
.dda .dda-stop {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.dda .dda-send {
	background: linear-gradient(145deg, var(--dda-primary, #c8860a), var(--dda-primary, #c8860a));
	color: #fff;
	box-shadow: 0 3px 10px rgba(80, 45, 10, 0.24);
}

.dda .dda-send:hover:not(:disabled) {
	transform: translateY(-1px) scale(1.04);
}

.dda .dda-send:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.dda .dda-stop {
	background: #fff;
	border: 1px solid #e6dac8;
	color: #a33a22;
	font-size: 12px;
}

.dda .dda-stop:hover {
	background: #fff4ef;
}

.dda .dda-foot {
	flex: 0 0 auto;
	padding: 0 12px 9px;
	background: #fffdf9;
	color: #aa9a86;
	font-size: 9.5px;
	line-height: 1.4;
	text-align: center;
}

/* ------------------------------------------------------------------
   移动端：全宽底部抽屉
------------------------------------------------------------------ */
@media (max-width: 640px) {
	.dda .dda-fab {
		left: 14px;
		bottom: var(--dda-mobile-bottom, 100px);
		width: 54px;
		height: 54px;
	}

	.dda .dda-fab-icon {
		font-size: 25px;
	}

	.dda .dda-fab-label {
		display: none;
	}

	.dda .dda-tip {
		left: 12px;
		bottom: calc(var(--dda-mobile-bottom, 100px) + 64px);
		width: calc(100vw - 24px);
		max-width: none;
	}

	.dda .dda-tip::after {
		left: 22px;
	}

	.dda .dda-panel {
		left: 10px;
		right: 10px;
		bottom: calc(var(--dda-mobile-bottom, 100px) + 62px);
		width: auto;
		max-width: none;
		height: auto;
		min-height: 0;
		max-height: calc(100vh - var(--dda-mobile-bottom, 100px) - 96px);
		border-radius: 17px;
	}

	.dda .dda-head {
		padding: 11px 12px;
		gap: 8px;
	}

	.dda .dda-avatar {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
		font-size: 17px;
	}

	.dda .dda-name {
		font-size: 13px;
	}

	.dda .dda-status {
		font-size: 10px;
	}

	.dda .dda-badge {
		max-width: 66px;
		font-size: 9px;
		padding: 2px 6px;
	}

	.dda .dda-head-btn {
		width: 26px;
		height: 26px;
		flex-basis: 26px;
	}

	.dda .dda-msgs {
		padding: 12px 12px 8px;
		gap: 10px;
	}

	.dda .dda-bubble {
		max-width: 84%;
		font-size: 12.5px;
	}

	.dda .dda-quick {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 0 12px 9px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.dda .dda-quick::-webkit-scrollbar {
		display: none;
	}

	.dda .dda-composer {
		padding: 8px 10px 7px;
	}

	.dda .dda-topic-btn {
		width: 34px;
		height: 34px;
		flex-basis: 34px;
	}

	.dda .dda-send,
	.dda .dda-stop {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}
}

.dda.dda-no-mobile {
	/* 由后台“移动端显示”开关控制 */
}

@media (max-width: 640px) {
	.dda.dda-no-mobile {
		display: none !important;
	}
}

/* 矮窗口 / 横屏桌面：避免面板被 min-height 撑出视口（移动端由上面的变量公式处理） */
@media (min-width: 641px) and (max-height: 700px) {
	.dda .dda-panel {
		min-height: 0;
		max-height: calc(100vh - 110px);
	}
}

/* ------------------------------------------------------------------
   减少动态效果
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.dda *,
	.dda *::before,
	.dda *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
