/*!
 * 在线客服 · 前台样式 v2
 * 设计要点：柔和阴影 / 分层圆角 / 渐变主色 / 细腻动效
 */

.wcs-widget,
.wcs-chat,
.wcs-lightbox {
	--wcs-main: #3b7dff;
	--wcs-main-2: #6ea8ff;
	--wcs-bg: #ffffff;
	--wcs-bg-soft: #f6f8fc;
	--wcs-text: #1c2333;
	--wcs-text-2: #6f7b93;
	--wcs-text-3: #a3adc2;
	--wcs-line: #eaeef6;
	--wcs-radius: 18px;
	--wcs-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .18);
	--wcs-shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 28px 60px -18px rgba(16, 24, 40, .32);
	box-sizing: border-box;
}

.wcs-widget *,
.wcs-chat *,
.wcs-lightbox * {
	box-sizing: border-box;
}

/* hidden 属性优先生效（避免被 display:flex 覆盖） */
.wcs-widget [hidden],
.wcs-chat [hidden],
.wcs-lightbox [hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- 悬浮按钮 */

.wcs-widget {
	position: fixed;
	bottom: 28px;
	z-index: 99998;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.wcs-widget.wcs-pos-right { right: 28px; }
.wcs-widget.wcs-pos-left { left: 28px; }

.wcs-fab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 22px 0 18px;
	border: 0;
	border-radius: 28px;
	background: var(--wcs-main);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	cursor: pointer;
	box-shadow:
		0 1px 1px rgba(16, 24, 40, .06),
		0 10px 24px -8px rgba(16, 24, 40, .42);
	transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), box-shadow .22s ease;
	isolation: isolate;
	overflow: hidden;
}

/* 顶部高光 + 底部渐深，营造质感 */
.wcs-fab::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .1));
	pointer-events: none;
	z-index: -1;
}

.wcs-fab:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow:
		0 1px 1px rgba(16, 24, 40, .06),
		0 18px 34px -10px rgba(16, 24, 40, .48);
}

.wcs-fab:active {
	transform: translateY(-1px) scale(.99);
}

.wcs-fab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
}

.wcs-fab-text {
	white-space: nowrap;
}

.wcs-fab-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	border-radius: 11px;
	background: #ff4d4f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 21px;
	text-align: center;
	box-shadow: 0 0 0 3px #fff, 0 4px 10px -2px rgba(255, 77, 79, .6);
	animation: wcs-badge-pop .28s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes wcs-badge-pop {
	from { transform: scale(.4); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.wcs-panel {
	position: absolute;
	bottom: 74px;
	right: 0;
	width: 384px;
	height: 600px;
	max-height: calc(100vh - 130px);
	transform-origin: bottom right;
	animation: wcs-panel-in .26s cubic-bezier(.22, 1, .36, 1);
}

.wcs-widget.wcs-pos-left .wcs-panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

@keyframes wcs-panel-in {
	from { opacity: 0; transform: translateY(14px) scale(.96); }
	to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- 容器 */

.wcs-chat {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: var(--wcs-bg);
	border-radius: var(--wcs-radius);
	box-shadow: var(--wcs-shadow-lg);
	overflow: hidden;
	color: var(--wcs-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
}

.wcs-chat.wcs-inline {
	height: auto;
	min-height: 580px;
	max-height: 78vh;
}

.wcs-chat.wcs-card {
	border: 1px solid var(--wcs-line);
}

/* ---------------------------------------------------------------- 头部 */

.wcs-chat-head {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 16px;
	background: var(--wcs-main);
	color: #fff;
	flex: 0 0 auto;
	overflow: hidden;
}

.wcs-chat-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120px 120px at 88% -30%, rgba(255, 255, 255, .35), transparent 70%),
		linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .12));
	pointer-events: none;
}

.wcs-chat-head > * {
	position: relative;
	z-index: 1;
}

.wcs-head-main {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.wcs-chat-title {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wcs-chat-status {
	font-size: 11px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	white-space: nowrap;
}

.wcs-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b9c2d0;
	flex: 0 0 auto;
}

.wcs-dot.is-on {
	background: #4ade80;
	box-shadow: 0 0 0 4px rgba(74, 222, 128, .22);
}

.wcs-dot.is-on::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid rgba(74, 222, 128, .8);
	animation: wcs-ping 2.4s ease-out infinite;
}

@keyframes wcs-ping {
	0% { transform: scale(.7); opacity: .9; }
	70%, 100% { transform: scale(1.5); opacity: 0; }
}

.wcs-dot.is-off {
	background: #ffb020;
	box-shadow: 0 0 0 4px rgba(255, 176, 32, .2);
}

.wcs-head-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wcs-btn-text,
.wcs-btn-icon {
	border: 0;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	border-radius: 10px;
	cursor: pointer;
	font-size: 12px;
	padding: 5px 11px;
	line-height: 1.5;
	transition: background .16s ease, transform .16s ease;
	backdrop-filter: blur(4px);
}

.wcs-btn-icon {
	width: 28px;
	height: 28px;
	padding: 0;
	font-size: 19px;
	line-height: 26px;
}

.wcs-btn-text:hover,
.wcs-btn-icon:hover {
	background: rgba(255, 255, 255, .3);
	transform: translateY(-1px);
}

/* ---------------------------------------------------------------- 消息区 */

.wcs-chat-body {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 14px 16px 8px;
	background:
		radial-gradient(1px 1px at 20% 10%, rgba(0, 0, 0, .045) 1px, transparent 0),
		var(--wcs-bg-soft);
	background-size: 22px 22px, auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, .16) transparent;
	-webkit-overflow-scrolling: touch;
}

.wcs-chat-body::-webkit-scrollbar {
	width: 6px;
}

.wcs-chat-body::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .16);
	border-radius: 3px;
}

.wcs-chat-body::-webkit-scrollbar-track {
	background: transparent;
}

.wcs-online-tip {
	margin: 0 auto 12px;
	padding: 6px 14px;
	max-width: 92%;
	width: fit-content;
	border-radius: 999px;
	background: rgba(255, 255, 255, .8);
	border: 1px solid var(--wcs-line);
	color: var(--wcs-text-2);
	font-size: 11.5px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.wcs-chat .wcs-msgs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 4px;
}

/* 日期分隔 */
.wcs-chat .wcs-day {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 4px;
	color: var(--wcs-text-3);
	font-size: 11px;
}

.wcs-chat .wcs-day::before,
.wcs-chat .wcs-day::after {
	content: "";
	width: 18px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .12));
}

.wcs-chat .wcs-day::after {
	background: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent);
}

/* 气泡结构 */
.wcs-chat .wcs-msg {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	max-width: 100%;
	animation: wcs-msg-in .26s cubic-bezier(.22, 1, .36, 1);
}

@keyframes wcs-msg-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.wcs-chat .wcs-msg.is-user {
	flex-direction: row-reverse;
}

.wcs-chat .wcs-ava {
	width: 32px;
	height: 32px;
	border-radius: 11px;
	flex: 0 0 auto;
	background: linear-gradient(135deg, #dfe6f5, #ccd7ee);
	color: #5a6b8c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
	text-transform: uppercase;
	box-shadow: 0 0 0 1px rgba(16, 24, 40, .04);
}

.wcs-chat .wcs-ava img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wcs-chat .wcs-col {
	min-width: 0;
	max-width: calc(100% - 46px);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wcs-chat .wcs-msg.is-user .wcs-col {
	align-items: flex-end;
}

.wcs-chat .wcs-meta {
	font-size: 11px;
	color: var(--wcs-text-3);
	line-height: 1.4;
	padding: 0 2px;
}

.wcs-chat .wcs-bubble {
	position: relative;
	padding: 10px 13px;
	border-radius: 15px;
	border-top-left-radius: 5px;
	background: #fff;
	border: 1px solid var(--wcs-line);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.wcs-chat .wcs-msg.is-user .wcs-bubble {
	border-radius: 15px;
	border-top-right-radius: 5px;
	background: var(--wcs-main);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 16px -8px rgba(16, 24, 40, .5);
}

.wcs-chat .wcs-msg.is-user .wcs-bubble::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%);
	pointer-events: none;
}

.wcs-chat .wcs-msg.is-note .wcs-bubble {
	background: #fffaf0;
	border-color: #f5dfae;
	border-style: dashed;
	color: #8a6100;
}

.wcs-chat .wcs-bubble.is-media {
	padding: 5px;
	background: #fff;
	border-color: var(--wcs-line);
}

.wcs-chat .wcs-text {
	white-space: pre-wrap;
}

.wcs-chat .wcs-img {
	display: block;
	max-width: 216px;
	max-height: 240px;
	border-radius: 11px;
	cursor: zoom-in;
	transition: filter .2s ease, transform .2s ease;
}

.wcs-chat .wcs-img:hover {
	filter: brightness(.96);
	transform: scale(1.012);
}

.wcs-chat .wcs-video {
	display: block;
	max-width: 240px;
	border-radius: 11px;
	background: #000;
}

.wcs-chat .wcs-bubble audio {
	max-width: 216px;
	height: 36px;
}

/* 文件卡片 */
.wcs-chat .wcs-filechip {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	color: inherit;
	min-width: 180px;
	padding: 2px 0;
}

.wcs-chat .wcs-filechip-icon {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 9px;
	background: rgba(0, 0, 0, .05);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
}

.wcs-chat .wcs-msg.is-user .wcs-filechip-icon {
	background: rgba(255, 255, 255, .2);
}

.wcs-chat .wcs-filechip-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 1px;
}

.wcs-chat .wcs-filechip-name {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 172px;
}

.wcs-chat .wcs-filechip-size {
	font-size: 11px;
	color: var(--wcs-text-3);
}

.wcs-chat .wcs-msg.is-user .wcs-filechip-size {
	color: rgba(255, 255, 255, .72);
}

/* 系统消息 */
.wcs-chat .wcs-sys {
	align-self: center;
	max-width: 88%;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(16, 24, 40, .05);
	color: var(--wcs-text-2);
	font-size: 11.5px;
	text-align: center;
	line-height: 1.5;
}

.wcs-chat .wcs-sys-login {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--wcs-line);
	border-radius: 14px;
	padding: 22px 18px;
	margin: 20px auto;
	color: var(--wcs-text);
	font-size: 13.5px;
	box-shadow: var(--wcs-shadow);
}

/* 欢迎卡片 */
.wcs-chat .wcs-welcome {
	display: flex;
	gap: 11px;
	padding: 14px;
	background: #fff;
	border-radius: 15px;
	border: 1px solid var(--wcs-line);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	margin-bottom: 12px;
	animation: wcs-msg-in .3s ease;
}

.wcs-chat .wcs-welcome-ava {
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	border-radius: 12px;
	background: var(--wcs-main);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 6px 14px -8px rgba(16, 24, 40, .8);
}

.wcs-chat .wcs-welcome-title {
	font-weight: 700;
	font-size: 13.5px;
	margin-bottom: 3px;
}

.wcs-chat .wcs-welcome-text {
	font-size: 13px;
	color: var(--wcs-text-2);
	white-space: pre-wrap;
}

.wcs-chat .wcs-welcome-body {
	min-width: 0;
}

/* 正在输入 */
.wcs-chat .wcs-typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	padding: 8px 13px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--wcs-line);
	color: var(--wcs-text-2);
	font-size: 11.5px;
	width: fit-content;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	animation: wcs-msg-in .2s ease;
}

.wcs-chat .wcs-typing span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wcs-text-3);
	animation: wcs-bounce 1.3s infinite;
}

.wcs-chat .wcs-typing span:nth-child(2) { animation-delay: .16s; }
.wcs-chat .wcs-typing span:nth-child(3) { animation-delay: .32s; }

@keyframes wcs-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .45; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* 评分卡片 */
.wcs-chat .wcs-rate {
	align-self: center;
	width: 100%;
	max-width: 300px;
	margin: 8px auto 4px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--wcs-line);
	border-radius: 16px;
	text-align: center;
	box-shadow: var(--wcs-shadow);
	animation: wcs-msg-in .3s ease;
}

.wcs-chat .wcs-rate-title {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 10px;
}

.wcs-chat .wcs-stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-bottom: 6px;
}

.wcs-chat .wcs-star {
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	color: #d8dfec;
	font-size: 24px;
	line-height: 1;
	transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), color .15s ease;
}

.wcs-chat .wcs-star:hover,
.wcs-chat .wcs-star.is-on {
	color: #ffb020;
	transform: scale(1.15);
}

.wcs-chat .wcs-rate-tip {
	font-size: 11.5px;
	color: var(--wcs-text-3);
}

.wcs-chat .wcs-rate-done {
	font-size: 13px;
	color: #12925a;
	font-weight: 600;
}

/* ---------------------------------------------------------------- 输入区 */

.wcs-chat-foot {
	flex: 0 0 auto;
	border-top: 1px solid var(--wcs-line);
	background: #fff;
	padding: 10px 12px 12px;
	position: relative;
}

.wcs-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	border: 1px solid var(--wcs-line);
	border-radius: 15px;
	background: var(--wcs-bg-soft);
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.wcs-form:focus-within {
	background: #fff;
	border-color: var(--wcs-main);
	box-shadow: 0 0 0 4px rgba(59, 125, 255, .1);
}

.wcs-input {
	width: 100%;
	border: 0;
	outline: 0;
	resize: none;
	font-size: 14px;
	line-height: 1.6;
	max-height: 116px;
	min-height: 26px;
	padding: 4px 0;
	background: transparent;
	color: var(--wcs-text);
	font-family: inherit;
}

.wcs-input::placeholder {
	color: var(--wcs-text-3);
}

.wcs-tools {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wcs-attach {
	border: 0;
	background: transparent;
	color: var(--wcs-text-2);
	cursor: pointer;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .16s ease, color .16s ease, transform .16s ease;
}

.wcs-attach:hover {
	background: rgba(59, 125, 255, .1);
	color: var(--wcs-main);
	transform: translateY(-1px);
}

.wcs-progress {
	flex: 1 1 auto;
	height: 4px;
	border-radius: 2px;
	background: rgba(0, 0, 0, .07);
	overflow: hidden;
	max-width: 130px;
}

.wcs-progress i {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--wcs-main), var(--wcs-main-2));
	transition: width .2s linear;
}

.wcs-chat .wcs-hint {
	flex: 1 1 auto;
	font-size: 11.5px;
	color: var(--wcs-text-2);
	text-align: right;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcs-send {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 0;
	border-radius: 11px;
	background: var(--wcs-main);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	cursor: pointer;
	flex: 0 0 auto;
	transition: transform .16s cubic-bezier(.34, 1.4, .64, 1), filter .16s ease;
	box-shadow: 0 6px 14px -8px rgba(16, 24, 40, .9);
}

.wcs-send svg {
	display: block;
}

.wcs-send:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.wcs-send:active {
	transform: scale(.97);
}

.wcs-send:disabled {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
}

.wcs-chat.is-dragover::after {
	content: "松开即可发送";
	position: absolute;
	inset: 8px;
	background: rgba(59, 125, 255, .08);
	backdrop-filter: blur(2px);
	border: 2px dashed var(--wcs-main);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wcs-main);
	font-weight: 600;
	font-size: 13.5px;
	z-index: 5;
	pointer-events: none;
}

/* ---------------------------------------------------------------- 昵称表单 */

.wcs-guestbox {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	z-index: 8;
	animation: wcs-fade .2s ease;
}

.wcs-guestbox-inner {
	width: 100%;
	max-width: 292px;
	padding: 22px 20px;
	background: #fff;
	border-radius: 18px;
	box-shadow: var(--wcs-shadow-lg);
	border: 1px solid var(--wcs-line);
	text-align: center;
	animation: wcs-msg-in .28s cubic-bezier(.22, 1, .36, 1);
}

.wcs-guestbox-title {
	font-weight: 700;
	font-size: 14.5px;
	margin: 0 0 14px;
	color: var(--wcs-text);
}

.wcs-guestbox input {
	width: 100%;
	height: 42px;
	margin-bottom: 9px;
	padding: 0 13px;
	border: 1px solid var(--wcs-line);
	border-radius: 11px;
	font-size: 14px;
	outline: 0;
	background: var(--wcs-bg-soft);
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
	color: var(--wcs-text);
}

.wcs-guestbox input::placeholder {
	color: var(--wcs-text-3);
}

.wcs-guestbox input:focus {
	border-color: var(--wcs-main);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(59, 125, 255, .1);
}

.wcs-guest-go {
	width: 100%;
	height: 42px;
	border: 0;
	border-radius: 11px;
	background: var(--wcs-main);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 4px;
	box-shadow: 0 10px 22px -12px rgba(16, 24, 40, .9);
	transition: transform .16s ease, filter .16s ease;
}

.wcs-guest-go:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.wcs-guest-tip {
	margin: 8px 0 0;
	font-size: 11.5px;
	color: #e5484d;
	min-height: 15px;
}

/* ---------------------------------------------------------------- 登录 / 入口 */

.wcs-login-box {
	padding: 30px 24px;
	text-align: center;
	background: #fff;
	border-radius: var(--wcs-radius);
	border: 1px solid var(--wcs-line);
	box-shadow: var(--wcs-shadow);
}

.wcs-login-box p {
	margin: 0 0 14px;
	color: var(--wcs-text-2);
}

.wcs-entry-btn {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 11px;
	background: var(--wcs-main);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	box-shadow: 0 10px 22px -12px rgba(16, 24, 40, .9);
	transition: transform .16s ease, filter .16s ease;
}

.wcs-entry-btn:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.wcs-notice {
	padding: 18px;
	border-radius: 12px;
	background: #fff7e6;
	border: 1px solid #f5dfae;
	color: #8a6100;
}

/* ---------------------------------------------------------------- 灯箱 */

.wcs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(10, 14, 24, .86);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	animation: wcs-fade .18s ease;
}

@keyframes wcs-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.wcs-lightbox-box {
	position: relative;
	max-width: min(1100px, 96vw);
	max-height: 92vh;
	animation: wcs-pop-in .24s cubic-bezier(.22, 1, .36, 1);
}

@keyframes wcs-pop-in {
	from { opacity: 0; transform: scale(.94); }
	to { opacity: 1; transform: none; }
}

.wcs-lightbox-media {
	display: block;
	max-width: min(1100px, 96vw);
	max-height: 88vh;
	border-radius: 12px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}

.wcs-lightbox-frame {
	width: min(900px, 92vw);
	height: 84vh;
	border: 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}

.wcs-lightbox-close {
	position: absolute;
	top: -42px;
	right: 0;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .2);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .16s ease, transform .16s ease;
}

.wcs-lightbox-close:hover {
	background: rgba(255, 255, 255, .26);
	transform: rotate(90deg);
}

/* ---------------------------------------------------------------- 独立页面 */

.wcs-page-wrap {
	max-width: 780px;
	margin: 40px auto 64px;
	padding: 0 16px;
}

.wcs-page-wrap.wcs-page-wide {
	max-width: 1320px;
}

.wcs-page-head {
	text-align: center;
	margin-bottom: 24px;
}

.wcs-page-title {
	font-size: 24px;
	line-height: 1.4;
	font-weight: 800;
	letter-spacing: -.2px;
	margin: 0 0 8px;
	color: var(--wcs-text);
}

.wcs-page-desc {
	color: var(--wcs-text-2);
	font-size: 14px;
	margin: 0;
}

.wcs-page-tips {
	margin-top: 18px;
	font-size: 12.5px;
	color: var(--wcs-text-3);
	text-align: center;
	line-height: 1.8;
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 640px) {
	.wcs-widget.wcs-pos-right { right: 14px; bottom: 14px; }
	.wcs-widget.wcs-pos-left { left: 14px; bottom: 14px; }

	.wcs-fab {
		height: 52px;
		padding: 0 18px 0 15px;
		border-radius: 26px;
	}

	.wcs-fab-text {
		display: none;
	}

	.wcs-fab-icon {
		width: 26px;
		height: 26px;
	}

	.wcs-panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: 0;
		width: 100%;
		height: 100%;
		max-height: 100%;
	}

	.wcs-chat,
	.wcs-chat.wcs-inline {
		border-radius: 0;
		min-height: 100%;
		max-height: 100%;
	}

	.wcs-chat-head {
		padding: 13px 14px;
	}

	.wcs-page-wrap {
		margin: 20px auto 36px;
	}

	.wcs-page-title {
		font-size: 20px;
	}
}
