@charset "utf-8";

/* ==========================================================================
   在线留言（guestbook）页 —— 工业质感版式
   仅本页引入（guestbook.blade.php 里 @push('styles') 加载），不改全站 style.css
   结构：深色标题带 → 左栏 + 右栏（留言表单 / 留言列表 / 其他联系方式）
   ========================================================================== */

.gb-right {
	--gb-ink: #12212f;
	--gb-sub: #5b6b7c;
	--gb-mute: #93a1b0;
	--gb-blue: #007ae7;
	--gb-line: #e3eaf2;
	--gb-bg: #f5f8fb;

	position: relative;
	border: 0;
	background: transparent;
	box-shadow: 0 18px 38px -30px rgba(9, 28, 48, .5);
}

/* ---------- 标题带（与公司简介 / 联系我们同一套视觉语言） ---------- */
.gb-hero {
	position: relative;
	margin: 25px 0 0;
	overflow: hidden;
	box-shadow: 0 14px 34px -26px rgba(8, 25, 44, .55);
}

.gb-hero::before {
	content: "";
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, #007ae7 0%, #2f9bff 34%, #0a1c2e 100%);
}

.gb-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, #007ae7 0%, rgba(0, 122, 231, .12) 46%, rgba(0, 122, 231, 0) 100%);
}

.gb-head {
	position: relative;
	overflow: hidden;
	padding: 44px 52px 38px;
	background:
		radial-gradient(900px 300px at 90% -70%, rgba(0, 122, 231, .38), rgba(0, 122, 231, 0) 74%),
		linear-gradient(112deg, #071726 0%, #0d2840 52%, #0a1d30 100%);
	color: #fff;
}

.gb-head::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(112deg,
			rgba(255, 255, 255, .05) 0 1px,
			rgba(255, 255, 255, 0) 1px 12px);
	pointer-events: none;
}

.gb-head::after {
	content: "";
	position: absolute;
	left: -90px;
	bottom: -150px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(0, 122, 231, .28), rgba(0, 122, 231, 0) 68%);
	pointer-events: none;
}

.gb-head-in {
	position: relative;
	z-index: 1;
}

/* 右侧装饰：对话气泡 + 定位用虚线环，暗色底上只做极低对比 */
.gb-deco {
	position: absolute;
	right: 96px;
	top: 50%;
	width: 196px;
	height: 196px;
	margin-top: -98px;
	pointer-events: none;
}

.gb-head h1 {
	font-size: 44px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: 4px;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.gb-rule {
	width: 56px;
	height: 4px;
	margin: 20px 0 16px;
	background: linear-gradient(90deg, #007ae7 0%, #4fb0ff 100%);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.gb-crumb {
	font-size: 13px;
	letter-spacing: .4px;
	color: rgba(255, 255, 255, .62);
}

.gb-crumb a {
	font-size: 13px;
	color: rgba(255, 255, 255, .82);
}

.gb-crumb a:hover {
	color: #fff;
}

.gb-crumb span {
	margin: 0 7px;
	color: rgba(255, 255, 255, .34);
}

/* ---------- 卡片外壳 ---------- */
.gb-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--gb-line);
}

/* 表单卡顶部压一条品牌色细线，和标题带呼应，也让「表单」比「列表」更抓眼 */
.gb-form::before {
	content: "";
	position: absolute;
	z-index: 2;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 3px;
	background: linear-gradient(90deg, #007ae7 0%, #4fb0ff 46%, rgba(0, 122, 231, .12) 100%);
}

.gb-card + .gb-card {
	margin-top: 20px;
}

.gb-card-head {
	display: flex;
	align-items: flex-start;
	padding: 32px 44px 22px;
	border-bottom: 1px solid #eef2f7;
}

.gb-card-tt h2 {
	position: relative;
	padding-left: 14px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 1.4px;
	color: var(--gb-ink);
}

.gb-card-tt h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(180deg, #007ae7 0%, #4fb0ff 100%);
}

.gb-card-tt p {
	margin-top: 8px;
	padding-left: 14px;
	font-size: 13px;
	line-height: 1.7;
	letter-spacing: .3px;
	color: var(--gb-mute);
}

.gb-req {
	margin-left: auto;
	padding: 3px 9px;
	border: 1px solid #eaf0f7;
	border-radius: 2px;
	background: #f8fafd;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: .5px;
	color: #8b98a6;
	white-space: nowrap;
}

.gb-req i,
.gb-label i {
	font-style: normal;
	color: #e8453c;
}

/* ---------- 表单 ---------- */
.gb-form-body {
	padding: 26px 44px 30px;
}

.gb-row {
	display: flex;
	gap: 22px;
}

.gb-row .gb-field {
	flex: 1 1 0;
	min-width: 0;
}

.gb-field {
	position: relative;
}

.gb-field + .gb-field {
	margin-top: 0;
}

.gb-row + .gb-field {
	margin-top: 4px;
}

.gb-label {
	display: block;
	margin-bottom: 9px;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: .6px;
	color: #3c4a59;
}

.gb-input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	padding: 0 15px;
	border: 1px solid #dde5ee;
	border-radius: 3px;
	background: #fbfcfe;
	color: var(--gb-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 44px;
	transition: border-color .18s, background .18s, box-shadow .18s;
}

.gb-input::placeholder,
.gb-textarea::placeholder {
	color: #b3bfcc;
}

.gb-input:hover,
.gb-textarea:hover {
	border-color: #c9d6e4;
}

.gb-input:focus,
.gb-textarea:focus {
	outline: none;
	border-color: var(--gb-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 122, 231, .10);
}

.gb-textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 132px;
	padding: 13px 15px;
	border: 1px solid #dde5ee;
	border-radius: 3px;
	background: #fbfcfe;
	color: var(--gb-ink);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.9;
	resize: none;   /* 计数与原生拖拽手柄会打架，工业风表单也不需要随手改尺寸 */
	transition: border-color .18s, background .18s, box-shadow .18s;
}

.gb-field--area {
	position: relative;
	margin-top: 12px;
}

/* 计数贴在文本域右下角内侧，不额外占一行 */
.gb-count {
	position: absolute;
	right: 14px;
	bottom: 28px;   /* 20px 的提示槽 + 8px 内缩，正好落在文本域右下角内侧 */
	font-size: 12px;
	line-height: 1;
	letter-spacing: .5px;
	color: #b3bfcc;
	pointer-events: none;
}

.gb-count b {
	font-weight: 400;
	color: #8b98a6;
}

.gb-count.is-near b {
	color: #e8963c;
}

/* 提示槽：给 msg-form 的气泡预留固定落点，避免它去猜边距 */
.gb-slot {
	position: relative;
	display: block;
	height: 26px;
}

.gb-actions {
	display: flex;
	align-items: flex-start;
	margin-top: 6px;
}

.gb-code {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.gb-code .gb-label {
	width: 100%;
	margin-bottom: 0;
}

/* 验证码的提示槽在 flex 里会被挤成 0 宽，气泡只能往右溢出，这里强制独占一行 */
.gb-code .gb-slot {
	flex: 0 0 100%;
	width: 100%;
}

.gb-input--code {
	width: 138px;
	height: 46px;
	line-height: 44px;
	letter-spacing: 3px;
	text-transform: uppercase;
}

/* 验证码原图 50×25（2:1），按 2 倍整倍放大，等比不糊 */
.gb-code img {
	display: block;
	width: 92px;
	height: 46px;
	border: 1px solid #dde5ee;
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
}

.gb-refresh {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--gb-blue);
	font-family: inherit;
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
}

.gb-refresh:hover {
	text-decoration: underline;
}

.gb-submit {
	margin-left: auto;
	align-self: flex-start;
	margin-top: 28px;   /* 18px 标签 + 10px 行距，与验证码输入框顶部对齐 */
	box-sizing: border-box;
	height: 46px;
	padding: 0 46px;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(100deg, #007ae7 0%, #1f8ff0 55%, #0b6fd4 100%);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 3px;
	cursor: pointer;
	box-shadow: 0 10px 22px -12px rgba(0, 122, 231, .75);
	transition: transform .18s, box-shadow .18s, filter .18s;
}

.gb-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -12px rgba(0, 122, 231, .85);
	filter: brightness(1.04);
}

.gb-submit:active {
	transform: translateY(0);
	box-shadow: 0 8px 16px -12px rgba(0, 122, 231, .8);
}

.gb-submit:disabled {
	cursor: default;
	transform: none;
	filter: none;
}

.gb-privacy {
	margin-top: 14px;
	padding-left: 1px;
	font-size: 12px;
	line-height: 1.7;
	letter-spacing: .2px;
	color: #a6b2bf;
}

/* ---------- 留言列表 ---------- */
.gb-card-head--list {
	align-items: center;
}

.gb-stat {
	margin-left: auto;
	font-size: 12px;
	letter-spacing: .5px;
	color: var(--gb-mute);
}

.gb-stat b {
	font-size: 18px;
	font-weight: 700;
	color: var(--gb-blue);
	font-family: Georgia, "Times New Roman", serif;
}

.gb-list {
	padding: 0 44px;
}

.gb-msg {
	display: flex;
	padding: 23px 0;
	border-bottom: 1px dashed #e7eef6;
	animation: gbRise .46s cubic-bezier(.2, .72, .3, 1) both;
}

.gb-msg:last-child {
	border-bottom: 0;
}

.gb-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	margin-right: 16px;
	border-radius: 12px;
	background: linear-gradient(140deg, #eaf3fe 0%, #dcebfb 100%);
	color: #0b6fd4;
	font-size: 17px;
	line-height: 42px;
	font-weight: 700;
	text-align: center;
	letter-spacing: 0;
}

.gb-msg-main {
	flex: 1 1 auto;
	min-width: 0;
}

.gb-msg-meta {
	display: flex;
	align-items: baseline;
}

.gb-msg-meta b {
	font-size: 15px;
	font-weight: 700;
	color: var(--gb-ink);
	letter-spacing: .4px;
}

.gb-msg-meta time {
	margin-left: auto;
	font-size: 12px;
	letter-spacing: .4px;
	color: #a8b4c1;
}

.gb-msg-meta time i {
	margin-left: 7px;
	font-style: normal;
	color: #bcc7d3;
}

.gb-msg-text {
	margin-top: 9px;
	font-size: 14px;
	line-height: 1.95;
	letter-spacing: .2px;
	color: #3f4d5c;
	word-break: break-word;
}

.gb-reply {
	position: relative;
	display: flex;
	align-items: flex-start;
	margin-top: 13px;
	padding: 11px 15px 12px;
	border-left: 3px solid #7dc0ff;
	background: #f4f9ff;
}

.gb-reply-tag {
	flex: 0 0 auto;
	margin: 2px 11px 0 0;
	padding: 0 6px;
	border: 1px solid #cbe3fb;
	border-radius: 2px;
	background: #fff;
	color: #0b6fd4;
	font-size: 11px;
	line-height: 17px;
	letter-spacing: .6px;
	white-space: nowrap;
}

.gb-reply p {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	line-height: 1.9;
	color: #4a5a6a;
	word-break: break-word;
}

/* ---------- 分页 ---------- */
.gb-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 44px 30px;
	border-top: 1px solid #eef2f7;
}

.gb-page {
	display: inline-block;
	min-width: 36px;
	height: 34px;
	margin: 0 4px;
	padding: 0 12px;
	border: 1px solid #dfe7f0;
	border-radius: 3px;
	background: #fff;
	color: #4a5a6a;
	font-size: 13px;
	line-height: 32px;
	text-align: center;
	transition: border-color .18s, color .18s, background .18s;
}

a.gb-page:hover {
	border-color: #9dcbf6;
	background: #f4f9ff;
	color: #0b6fd4;
}

.gb-page.is-on {
	border-color: var(--gb-blue);
	background: var(--gb-blue);
	color: #fff;
	font-weight: 700;
}

.gb-page.is-off {
	border-color: #eef2f7;
	background: #fafcfe;
	color: #c3ccd7;
}

.gb-page-dot {
	margin: 0 4px;
	color: #b3bfcc;
	letter-spacing: 1px;
}

/* ---------- 空状态 ---------- */
.gb-empty {
	margin: 26px 44px 34px;
	padding: 38px 20px;
	border: 1px dashed #dde7f2;
	background: #fbfdff;
	text-align: center;
}

.gb-empty svg {
	width: 56px;
	height: 56px;
	color: #c9d9ea;
}

.gb-empty p {
	margin-top: 12px;
	font-size: 13px;
	letter-spacing: .4px;
	color: #9aa8b7;
}

/* ---------- 其他联系方式 ---------- */
.gb-alt {
	display: flex;
	align-items: center;
	margin-top: 20px;
	padding: 0 44px;
	border: 1px solid var(--gb-line);
	background: #fff;
}

.gb-alt-item {
	display: flex;
	align-items: center;
	padding: 19px 0;
}

.gb-alt-item + .gb-alt-item {
	margin-left: 34px;
	padding-left: 34px;
	border-left: 1px solid #eef2f7;
}

.gb-alt-item svg {
	width: 18px;
	height: 18px;
	margin-right: 9px;
	color: #9fb2c6;
}

.gb-alt-item em {
	margin-right: 8px;
	font-style: normal;
	font-size: 12px;
	letter-spacing: .6px;
	color: var(--gb-mute);
}

.gb-alt-item strong {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .4px;
	color: #22323f;
}

.gb-alt-more {
	margin-left: auto;
	font-size: 13px;
	color: #5b6b7c;
	letter-spacing: .4px;
	transition: color .18s;
}

.gb-alt-more span {
	display: inline-block;
	margin-left: 6px;
	color: #b3bfcc;
	transition: transform .18s, color .18s;
}

.gb-alt-more:hover {
	color: var(--gb-blue);
}

.gb-alt-more:hover span {
	transform: translateX(3px);
	color: var(--gb-blue);
}

/* ---------- 左栏联系块的小图标（与联系我们页一致，本页单独引入） ---------- */
.ct-li-ico {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 5px;
	vertical-align: -2px;
	overflow: visible;
}

.ct-li-ico svg {
	display: block;
	width: 14px;
	height: 14px;
	color: #7b8b9c;
}

.ct-li-txt {
	vertical-align: middle;
}

/* ---------- 列表入场（guestbook.js 通过 IntersectionObserver 加动画） ---------- */
@keyframes gbRise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-msg {
		opacity: 1 !important;
		animation: none !important;
	}
}
