/* ============================================================
   前台统一主题样式（site.css）
   仅在前台页面引入（header.lbi + Book/index.dwt + User/index.dwt + 登录系列）。
   不影响后台页面（后台用各自 CSS，结构不同）。
   ============================================================ */

body {
	background: #f3f5f9;
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
	color: #38405a;
	-webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航（layui-header） ---------- */
.layui-header {
	background: linear-gradient(135deg, #1f2d4d 0%, #2b3c63 55%, #3a5180 100%) !important;
	box-shadow: 0 2px 12px rgba(31, 45, 77, .18);
}
.layui-header .layui-logo {
	color: #fff;
	font-weight: 600;
	letter-spacing: 1px;
}
.layui-header .layui-logo img { height: 65px; }
.layui-header a,
.layui-header .layui-nav-item a { color: rgba(255, 255, 255, .85) !important; }
.layui-header a:hover,
.layui-header .layui-nav-item a:hover { color: #c9a86a !important; }
.layui-header .layui-layout-right { right: 20px; }

/* 内容区上间距（避开顶部 nav） */
.layui-main.dm-main { padding-top: 16px; }
.layui-main.dm-main .layui-row { margin-top: 0; }

/* ---------- 内容容器 ---------- */
.layui-fluid { padding: 20px 16px 60px; box-sizing: border-box; }
.layui-fluid > .layui-card { max-width: 1040px; margin: 0 auto; }

/* ---------- 卡片基础（layui-card） ---------- */
.layui-card {
	background: #fff;
	border-radius: 16px;
	border: none;
	box-shadow: 0 6px 28px rgba(30, 42, 68, .06);
	overflow: hidden;
}
.layui-card-body { padding: 28px 36px; }

/* ---------- 卡片头部（横幅条） ---------- */
.layui-card-header {
	background: linear-gradient(135deg, #2b3c63 0%, #3a5180 100%);
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 1px;
	padding: 18px 36px !important;
	border-bottom: none;
	height: auto !important;
	line-height: normal !important;
}
.layui-card-header span { color: #fff; }
.layui-card-header a.layui-btn { color: #c9a86a !important; }
.layui-card-header a.layui-btn.layui-btn-normal { background: transparent; border: 1px solid rgba(201, 168, 106, .55); border-radius: 20px; padding: 6px 16px; font-size: 13px; }
.layui-card-header a.layui-btn.layui-btn-normal:hover { background: rgba(201, 168, 106, .15); color: #e3c892 !important; }

/* ---------- 侧栏（#side-nav） ---------- */
#side-nav {
	border-radius: 14px;
	padding: 14px 0;
	box-shadow: 0 6px 28px rgba(30, 42, 68, .06);
	border: none;
	background: #fff;
}
#side-nav li.h4 { padding: 14px 22px 8px; margin: 0; }
#side-nav li.h4 h4 { font-size: 14px; color: #1f2d4d; margin: 0; font-weight: 700; letter-spacing: 1px; }
#side-nav li a {
	display: flex;
	align-items: center;
	padding: 10px 22px;
	color: #4a5168;
	border-left: 3px solid transparent;
	transition: all .2s;
	border-radius: 0;
}
#side-nav li a i { margin-right: 10px; color: #c9a86a; font-size: 16px; width: 18px; text-align: center; }
#side-nav li a cite { font-size: 14px; }
#side-nav li a:hover { background: #f3f5f9; color: #1f2d4d; }
#side-nav li.current a { background: linear-gradient(90deg, rgba(201, 168, 106, .18) 0%, transparent 100%); color: #1f2d4d; border-left-color: #c9a86a; font-weight: 600; }
#side-nav li.current a i { color: #b8933f; }
#side-nav li.nav_right { transition: .3s; }

/* ---------- 通用表单（与 add 页保持一致） ---------- */
.layui-form-item { margin-bottom: 18px; }
.layui-form-label {
	color: #38405a;
	font-weight: 600;
	font-size: 13.5px;
	padding: 9px 15px;
}
.layui-form-label font { color: #e15b64; margin-right: 2px; }
.layui-input,
.layui-textarea {
	border: 1px solid #dce0ec;
	border-radius: 8px;
	background: #fbfcfe;
	color: #333;
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.layui-input:focus,
.layui-textarea:focus {
	border-color: #c9a86a;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(201, 168, 106, .18);
}
.layui-input { height: 42px; line-height: 42px; }
.layui-textarea { min-height: 120px; line-height: 1.7; padding: 10px 14px; }
.layui-form-mid.layui-word-aux { font-size: 12px; color: #9aa2b5; padding-top: 6px; }

/* ---------- 按钮 ---------- */
.layui-btn {
	border-radius: 22px;
	font-size: 13.5px;
	transition: all .2s;
	background: linear-gradient(135deg, #1f2d4d, #3a5180);
	color: #fff;
	border: none;
	box-shadow: 0 4px 12px rgba(31, 45, 77, .2);
}
.layui-btn:hover { color: #fff; box-shadow: 0 6px 16px rgba(31, 45, 77, .3); }
.layui-btn.layui-btn-disabled { opacity: .45; box-shadow: none; }
.layui-btn-primary { background: #fff !important; color: #5a6377 !important; box-shadow: none; border: 1px solid #d6dae5 !important; }
.layui-btn-primary:hover { color: #1f2d4d !important; border-color: #c9a86a !important; }
.layui-btn-normal,
.layui-btn.layui-btn-normal {
	background: linear-gradient(135deg, #1f2d4d, #3a5180) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 4px 12px rgba(31, 45, 77, .22);
}
.layui-btn-normal:hover { box-shadow: 0 6px 16px rgba(31, 45, 77, .32); color: #fff !important; transform: translateY(-1px); }
.layui-btn-warm { background: #c9a86a !important; border-color: #c9a86a !important; color: #fff !important; }
.layui-btn-danger { background: #e15b64 !important; border-color: #e15b64 !important; color: #fff !important; }
.layui-btn-lg { height: 46px !important; line-height: 46px !important; font-size: 15px; padding: 0 36px !important; border-radius: 24px; letter-spacing: 2px; }

/* 表格行内操作小按钮 */
.layui-table .layui-btn { padding: 0 12px; height: 28px; line-height: 28px; font-size: 12.5px; border-radius: 14px; }
.layui-table .layui-btn + .layui-btn { margin-left: 6px; }

/* ---------- 表格 ---------- */
.layui-table { border-radius: 10px; overflow: hidden; }
.layui-table thead tr { background: #f3f5f9; }
.layui-table thead th { color: #1f2d4d; font-weight: 600; border-bottom: 1px solid #e6eaf2; }
.layui-table tbody tr:hover { background: #fafbfd; }
.layui-table td, .layui-table th { border-color: #eef0f5; }
.layui-table-cell { height: auto; line-height: 22px; padding: 12px 10px; max-height: 300px; overflow-y: auto; }
/* 含按钮/操作的行不限制高度（:has 不支持时自动忽略本规则，无副作用） */
.layui-table-cell:has(.layui-btn),
.layui-table-cell:has(a[lay-event]) { max-height: none; overflow: visible; }
.layui-table-cell::-webkit-scrollbar { width: 6px; }
.layui-table-cell::-webkit-scrollbar-thumb { background: #e6eaf2; border-radius: 3px; }
.layui-table-page .layui-laypage { margin: 16px 0 0; }
.layui-table-page .layui-laypage a,
.layui-table-page .layui-laypage span { border-radius: 16px; }

/* ---------- 状态色（与 workorder/index/index 兼容） ---------- */
.status_color_1, .status-color-1 { color: #3498db; }
.status_color_2, .status-color-2 { color: #f39c12; }
.status_color_3, .status-color-3 { color: #e74c3c; }
.status_color_4, .status-color-4 { color: #18bc9c; }
.status_color_5, .status-color-5 { color: #9b59b6; }
.status_color_0, .status-color-0 { color: #95a5a6; }
/* pill 形式状态（自动识别常见的"已提交/待审核/已完成"等纯文字状态） */
.layui-table td > .layui-badge,
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; line-height: 1.6; background: #eef0f5; color: #4a5168; }
.status-pill.blue { background: rgba(52, 152, 219, .12); color: #2980b9; }
.status-pill.orange { background: rgba(243, 156, 18, .14); color: #c97a0a; }
.status-pill.green { background: rgba(24, 188, 156, .14); color: #139b81; }
.status-pill.red { background: rgba(225, 91, 100, .14); color: #c5444d; }
.status-pill.gray { background: #eef0f5; color: #95a5a6; }

/* ---------- 申报影片 product_item 卡片 ---------- */
.product_title {
	font-size: 17px !important;
	color: #1f2d4d !important;
	font-weight: 700;
	padding: 4px 0 14px !important;
	margin-top: 14px !important;
	position: relative;
	letter-spacing: 1px;
}
.product_title::before {
	content: "";
	position: absolute;
	left: 0; bottom: 6px;
	width: 28px; height: 3px;
	background: linear-gradient(90deg, #c9a86a, transparent);
	border-radius: 2px;
}
.product_item a {
	background: #fff !important;
	border-radius: 14px !important;
	border: 1px solid #eef0f5;
	box-shadow: 0 4px 14px rgba(30, 42, 68, .04);
	transition: all .25s;
	overflow: hidden;
}
.product_item a:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(30, 42, 68, .12);
	border-color: #c9a86a;
}
.product_item .item_icon { padding: 16px 16px 16px 18px; border-right: 1px solid #f0f2f7; margin-right: 0; background: #fbf9f3; }
.product_item .item_icon img { height: 56px; width: 56px; border-radius: 8px; object-fit: cover; }
.product_item .item_content { padding: 16px 18px; }
.product_item .item_content_title { font-size: 15px; color: #1f2d4d !important; margin-bottom: 6px; font-weight: 600; }
.product_item .item_content_text { color: #6b7388 !important; font-size: 12.5px; line-height: 1.7 !important; height: auto !important; max-height: 42px; overflow: hidden; }

/* ---------- 推荐方案 channel_item ---------- */
.channel_item a {
	background: linear-gradient(135deg, #1f2d4d, #3a5180) !important;
	border-radius: 14px !important;
	color: #fff !important;
	padding: 20px 24px !important;
	border: none;
	transition: all .25s;
}
.channel_item a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 45, 77, .32); }
.channel_item .item_content_title { color: #c9a86a !important; font-size: 15px !important; font-weight: 600; }
.channel_item .item_content_text { color: rgba(255, 255, 255, .75) !important; font-size: 12.5px; }
.channel_item .item_icon {
	width: 48px; height: 48px;
	border-radius: 12px;
	background: rgba(201, 168, 106, .2);
	background-image: linear-gradient(135deg, #c9a86a, #b8933f);
	background-size: 60%;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.channel_item .item_icon::after {
	content: "\f03d";
	font-family: FontAwesome;
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 20px;
}

/* ---------- 影片详情 steps 进度条 ---------- */
.steps { display: flex; border-radius: 12px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 3px 14px rgba(30, 42, 68, .06); }
.step {
	flex: 1;
	text-align: center;
	background: #f3f5f9;
	color: #9aa2b5;
	font-size: 13.5px;
	font-weight: 600;
	padding: 16px 10px;
	position: relative;
	letter-spacing: 1px;
}
.step .step_text { position: relative; padding-left: 22px; }
.step .step_text::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	transform: translateY(-50%);
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #d6dae5;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}
.step.step-after .step_text::before { content: "\f00c"; font-family: FontAwesome; }
.step.step-active { background: linear-gradient(135deg, #1f2d4d, #3a5180); color: #fff; }
.step.step-active .step_text::before { background: #c9a86a; color: #fff; box-shadow: 0 0 0 4px rgba(201, 168, 106, .25); }
.step.step-before .step_text::before { content: counter(o); }

/* ---------- 影片详情 .detail 信息条 ---------- */
.detail {
	background: #fbfcfe;
	border: 1px solid #eef0f5;
	border-radius: 12px;
	padding: 18px 22px;
	margin: 0 0 24px;
}
.detail_item { font-size: 13.5px; color: #4a5168; padding: 8px 0; }
.detail_item > strong,
.detail_item b { color: #1f2d4d; margin-right: 6px; }
.detail .d-blue { color: #c9a86a !important; }

/* ---------- 沟通列表 ---------- */
.detail-content-title {
	font-size: 15px;
	color: #1f2d4d;
	font-weight: 700;
	margin: 24px 0 14px;
	padding-left: 12px;
	border-left: 4px solid #c9a86a;
}
.detail-content-list { padding: 0 4px; }
.list_items { list-style: none; padding: 0; margin: 0; }
.list_item { margin-bottom: 18px; }
.item_meta { display: flex; gap: 14px; }
.avatar_img img { width: 44px; height: 44px; border: 2px solid #eef0f5; }
.item_meta_content {
	background: #fbfcfe;
	border: 1px solid #eef0f5;
	border-radius: 12px;
	padding: 14px 18px;
	max-width: 80%;
}
.item_meta_user .item_meta_content { background: linear-gradient(135deg, rgba(31, 45, 77, .04), rgba(58, 81, 128, .06)); border-color: rgba(31, 45, 77, .1); }
.item_meta_engineer .item_meta_content,
.item_meta_audit .item_meta_content { background: linear-gradient(135deg, rgba(201, 168, 106, .08), rgba(184, 147, 63, .14)); border-color: rgba(201, 168, 106, .25); }
.item_meta_createtime { font-size: 12px; color: #9aa2b5; margin-bottom: 6px; }
.item_meta_text { font-size: 14px; line-height: 1.7; color: #38405a; word-break: break-word; }
.item_meta_text img { max-width: 220px; max-height: 220px; border-radius: 8px; margin: 4px 6px 0 0; }

/* ---------- 推荐方案 textarea ---------- */
.layui-card-body > textarea {
	width: 100% !important;
	min-height: 480px;
	max-width: 100%;
	padding: 22px 26px !important;
	border-radius: 12px !important;
	border: 1px solid #e6eaf2 !important;
	background: #fbfcfe !important;
	font-size: 14px !important;
	line-height: 1.9 !important;
	color: #2c3144 !important;
	font-family: -apple-system, "PingFang SC", "Microsoft YaHei", serif !important;
	box-sizing: border-box;
}

/* ---------- 征片章程正文 ---------- */
.wt-charter {
	background: #fbfcfe;
	border: 1px solid #e6eaf2;
	border-radius: 12px;
	padding: 28px 34px;
	font-size: 14px;
	line-height: 2;
	color: #2c3144;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 640px;
	overflow-y: auto;
}
.wt-charter::-webkit-scrollbar { width: 8px; }
.wt-charter::-webkit-scrollbar-thumb { background: #d6dae5; border-radius: 4px; }
.layui-card-body > h2 {
	font-size: 16px;
	color: #1f2d4d;
	font-weight: 700;
	margin: 26px 0 14px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* 申报卡片图标占位 */
.product_item .item_icon_ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: linear-gradient(135deg, #c9a86a, #b8933f);
	color: #fff;
	font-size: 22px;
}

/* 无数据 ---------- */
.no_data {
	padding: 80px 20px;
	text-align: center;
	color: #9aa2b5;
	font-size: 14px;
	background: #fbfcfe;
	border: 1px dashed #e6eaf2;
	border-radius: 12px;
	margin: 20px 0;
}
.no_data::before {
	content: "\f1ea";
	font-family: FontAwesome;
	display: block;
	font-size: 36px;
	color: #d6dae5;
	margin-bottom: 8px;
}

/* ---------- 登录/注册/找回密码页（覆盖 login.css 的主题色变量） ---------- */
:root {
	--background-color-1: linear-gradient(135deg, #2b3c63, #3a5180);
	--button-color-1: linear-gradient(135deg, #1f2d4d, #3a5180);
	--background-color-bj-1: #eef1f7;
	--background-color: linear-gradient(135deg, #2b3c63, #3a5180);
	--button-color: linear-gradient(135deg, #1f2d4d, #3a5180);
	--background-color-bj: #eef1f7;
}
.login-bg .login {
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(20, 30, 55, .16);
}
.login-bg .login .message {
	border-radius: 10px;
	font-weight: 600;
	letter-spacing: 2px;
}
.login-bg .login input[type=text],
.login-bg .login input[type=password],
.login-bg .login input[type=email] {
	height: 48px;
	border-radius: 24px;
	border: 1px solid #dce0ec;
	background: #fbfcfe;
	padding: 0 18px 0 42px;
	transition: all .2s;
}
.login-bg .login input[type=text]:focus,
.login-bg .login input[type=password]:focus,
.login-bg .login input[type=email]:focus {
	border-color: #c9a86a;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(201, 168, 106, .18);
}
.login-bg .login input[type=submit],
.login-bg .login input[type=button] {
	height: 48px;
	border-radius: 24px;
	font-size: 16px;
	letter-spacing: 4px;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(31, 45, 77, .26);
	transition: all .25s;
}
.login-bg .login input[type=submit]:hover,
.login-bg .login input[type=button]:hover { box-shadow: 0 9px 22px rgba(31, 45, 77, .34); }
.login-bg .login .login_tip a { color: #8a6d2f; }
.login-bg .login a { color: #6b7388; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
	.layui-card-body { padding: 18px 16px; }
	.layui-card-header { padding: 14px 20px !important; font-size: 15px; }
	.layui-main.dm-main { padding: 12px 8px 30px; }
	.layui-fluid { padding: 12px 8px 30px; }
	.product_item a { flex-direction: column; align-items: stretch; }
	.product_item .item_icon { padding: 12px; border-right: none; border-bottom: 1px solid #f0f2f7; margin-right: 0; background: #fbf9f3; text-align: center; }
	.steps { flex-direction: column; }
	.detail-item .avatar_img img { width: 36px; height: 36px; }
	.item_meta_content { max-width: 100% !important; }
}