/* ============ 贷款计算器样式 · 左右对称版 · 绿色主题 ============ */

/* 页面外层 */
.lc-page {
	background: #f6f8f7 !important;
	padding: 28px 0 48px;
	min-height: 60vh;
}
.lc-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- 头部（居中，强化对称感） ---------- */
.lc-header {
	text-align: center;
	margin-bottom: 26px;
}
.lc-header h1 {
	font-size: 24px;
	font-weight: 700;
	color: #2c3e50 !important;
	margin: 0 0 8px;
	background: transparent !important;
}
.lc-header p {
	font-size: 13px;
	color: #9aa5b1 !important;
	margin: 0;
	background: transparent !important;
}

/* ---------- 布局：左右等宽对称 ---------- */
.lc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}

/* ---------- 卡片：左右完全同款 ---------- */
.lc-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 640px;
	background: #ffffff !important;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(16,24,40,.04), 0 4px 12px rgba(16,24,40,.04);
	overflow: hidden;
}
.lc-panel-result {
	padding: 0;
}

/* 面板标题（左右统一：绿色小竖条 + 白底） */
.lc-panel-title {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: none;
	padding: 16px 22px;
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50 !important;
	background: #ffffff !important;
	border-bottom: 1px solid #f0f3f6;
}
.lc-panel-title::before {
	content: '';
	flex: none;
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: linear-gradient(180deg, #28a745, #5cd67d);
}

/* ---------- 左侧表单主体 ---------- */
.lc-panel-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 22px;
	background: #ffffff !important;
}

/* 表单项 */
.lc-form-item {
	margin-bottom: 20px;
	background: transparent !important;
}
.lc-form-item:last-child {
	margin-bottom: 0;
}
.lc-form-item > label {
	display: block;
	font-size: 13px;
	color: #6b7488 !important;
	margin-bottom: 8px;
	background: transparent !important;
}

/* 输入框容器 */
.lc-input-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid #e6eaef !important;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff !important;
	transition: border-color .2s, box-shadow .2s;
}
.lc-input-wrap:focus-within {
	border-color: #28a745 !important;
	box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
}

/* 输入框 */
.lc-input-wrap input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: none !important;
	outline: none;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50 !important;
	background: #ffffff !important;
	font-variant-numeric: tabular-nums;
	box-shadow: none !important;
}
.lc-input-wrap input:focus {
	border: none !important;
	box-shadow: none !important;
}

/* 单位标签 */
.lc-input-wrap .lc-unit {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: #f2fbf6 !important;
	color: #1e9e43 !important;
	font-size: 13px;
	font-weight: 600;
	border-left: 1px solid #e6f3ea;
	white-space: nowrap;
}

/* 下拉选择 */
.lc-input-wrap select {
	border: none !important;
	outline: none;
	background-color: #f2fbf6 !important;
	padding: 0 30px 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: #1e9e43 !important;
	border-left: 1px solid #e6f3ea;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231e9e43' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

/* 快捷标签 */
.lc-quick {
	margin-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	background: transparent !important;
}
.lc-quick a {
	display: inline-block;
	padding: 3px 11px;
	font-size: 12px;
	color: #6b7488 !important;
	background: #f2f5fa !important;
	border-radius: 20px;
	text-decoration: none;
	transition: all .15s;
}
.lc-quick a:hover {
	background: #e6f8ee !important;
	color: #1e9e43 !important;
}

/* 还款方式切换 */
.lc-method {
	display: flex;
	background: #f2f5fa !important;
	border-radius: 10px;
	padding: 4px;
}
.lc-method-item {
	flex: 1;
	text-align: center;
	padding: 9px 0;
	font-size: 14px;
	color: #6b7488 !important;
	border-radius: 8px;
	text-decoration: none;
	transition: all .18s;
	background: transparent !important;
}
.lc-method-item:hover {
	color: #1e9e43 !important;
}
.lc-method-item.on {
	background: #ffffff !important;
	color: #1e9e43 !important;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

/* 按钮：自动贴到卡片底部 */
.lc-btns {
	display: flex;
	gap: 10px;
	margin-top: auto;
	padding-top: 26px;
	background: transparent !important;
}
.lc-btn-main,
.lc-btn-ghost {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border-radius: 23px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all .2s;
}
.lc-btn-main {
	flex: 1;
	color: #ffffff !important;
	background: linear-gradient(135deg, #28a745, #3fbf60) !important;
	box-shadow: 0 6px 16px rgba(40, 167, 69, 0.28);
}
.lc-btn-main:hover {
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 9px 22px rgba(40, 167, 69, 0.34);
}
.lc-btn-ghost {
	padding: 0 26px;
	color: #6b7488 !important;
	background: #f2f5fa !important;
}
.lc-btn-ghost:hover {
	color: #1e9e43 !important;
	background: #e6f8ee !important;
}

/* ---------- 右侧：绿色结果区 ---------- */
.lc-result-blue {
	flex: none;
	background: linear-gradient(135deg, #28a745 0%, #1e9e43 100%) !important;
	color: #ffffff;
}

/* 每月月供 */
.lc-result-top {
	padding: 26px 24px 18px;
	text-align: center;
	color: #ffffff !important;
	background: transparent !important;
}
.lc-result-label {
	font-size: 13px;
	opacity: 0.85;
	color: #ffffff !important;
	background: transparent !important;
}
.lc-result-value {
	margin: 10px 0 8px;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -1px;
	color: #ffffff !important;
	background: transparent !important;
	font-variant-numeric: tabular-nums;
}
.lc-result-value small {
	margin-right: 6px;
	font-size: 18px;
	font-weight: 500;
	opacity: 0.85;
	color: #ffffff !important;
}
.lc-result-tip {
	font-size: 12px;
	opacity: 0.8;
	color: #ffffff !important;
	background: transparent !important;
}

/* 三个数字横排 */
.lc-result-stats {
	display: flex;
	background: rgba(255, 255, 255, 0.10) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.lc-stat {
	flex: 1;
	position: relative;
	padding: 15px 8px;
	text-align: center;
	color: #ffffff !important;
	background: transparent !important;
}
.lc-stat + .lc-stat::before {
	content: '';
	position: absolute;
	left: 0;
	top: 24%;
	width: 1px;
	height: 52%;
	background: rgba(255, 255, 255, 0.18);
}
.lc-stat span {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	opacity: 0.8;
	color: #ffffff !important;
	background: transparent !important;
}
.lc-stat b {
	font-size: 16px;
	font-weight: 600;
	color: #ffffff !important;
	background: transparent !important;
	font-variant-numeric: tabular-nums;
}

/* 进度条 */
.lc-bar-area {
	padding: 4px 24px 20px;
	background: transparent !important;
}
.lc-bar {
	display: flex;
	height: 10px;
	border-radius: 6px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.24) !important;
}
.lc-bar-p {
	width: 0;
	height: 100%;
	background: #ffffff !important;
	transition: width .45s ease;
}
.lc-bar-i {
	width: 0;
	height: 100%;
	background: #c8f0d5 !important;
	transition: width .45s ease;
}
.lc-bar-legend {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.9) !important;
	background: transparent !important;
}
.lc-bar-legend b {
	font-weight: 600;
	color: #ffffff !important;
}
.lc-bar-legend .dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: 1px;
}
.lc-bar-legend .dot-p {
	background: #ffffff !important;
}
.lc-bar-legend .dot-i {
	background: #c8f0d5 !important;
}

/* ---------- 右侧：白色明细区 ---------- */
.lc-result-table {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #ffffff !important;
}
.lc-result-table-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	padding: 14px 22px;
	border-bottom: 1px solid #f0f3f6;
	background: #ffffff !important;
}
/* 标题样式与左侧「贷款信息」保持一致：绿色竖条 */
.lc-result-table-title {
	position: relative;
	padding-left: 14px;
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50 !important;
}
.lc-result-table-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 16px;
	border-radius: 2px;
	background: linear-gradient(180deg, #28a745, #5cd67d);
}
.lc-table-count {
	font-size: 12px;
	font-weight: 400;
	color: #9aa5b1 !important;
	background: transparent !important;
}

/* 表格滚动区 */
.lc-table-scroll {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 360px;
	overflow-y: auto;
	background: #ffffff !important;
}
.lc-table-scroll::-webkit-scrollbar {
	width: 6px;
}
.lc-table-scroll::-webkit-scrollbar-thumb {
	background: #d6dde8;
	border-radius: 3px;
}
.lc-table-scroll::-webkit-scrollbar-thumb:hover {
	background: #b7c1d3;
}
.lc-table-scroll::-webkit-scrollbar-track {
	background: #f6f8fc;
}

.lc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: #ffffff !important;
}
.lc-table thead th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 12px 16px;
	text-align: right;
	font-weight: 600;
	font-size: 12px;
	color: #9aa5b1 !important;
	white-space: nowrap;
	background: #f8fafb !important;
	border-bottom: 1px solid #f0f3f6;
}
.lc-table thead th:first-child {
	text-align: left;
	padding-left: 22px;
}
.lc-table thead th:last-child {
	padding-right: 22px;
}
.lc-table tbody td {
	padding: 11px 16px;
	text-align: right;
	color: #5b6672 !important;
	white-space: nowrap;
	border-bottom: 1px solid #f4f6fa;
	font-variant-numeric: tabular-nums;
	background: transparent !important;
}
.lc-table tbody td:first-child {
	text-align: left;
	padding-left: 22px;
	color: #9aa5b1 !important;
	font-weight: 600;
}
.lc-table tbody td:last-child {
	padding-right: 22px;
}
.lc-table tbody tr:nth-child(even) {
	background: #fafbfe !important;
}
.lc-table tbody tr:nth-child(even) td {
	background: #fafbfe !important;
}
.lc-table tbody tr:hover {
	background: #f2fbf6 !important;
}
.lc-table tbody tr:hover td {
	background: #f2fbf6 !important;
}
.lc-table tbody td.lc-td-interest {
	color: #e0574a !important;
}
.lc-table tbody td.lc-td-rest {
	color: #9aa5b1 !important;
}

/* 底部说明：贴到卡片底边 */
.lc-table-note {
	margin-top: auto;
	padding: 12px 22px;
	font-size: 12px;
	color: #a3aabb !important;
	border-top: 1px solid #f2f4f9;
	background: #fcfdff !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
	.lc-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.lc-panel {
		min-height: 0;
	}
	.lc-btns {
		margin-top: 24px;
		padding-top: 0;
	}
	.lc-table-scroll {
		max-height: 320px;
	}
}
@media (max-width: 575px) {
	.lc-page {
		padding: 20px 0 32px;
	}
	.lc-header h1 {
		font-size: 20px;
	}
	.lc-result-value {
		font-size: 34px;
	}
	.lc-stat b {
		font-size: 14px;
	}
	.lc-table {
		font-size: 12px;
	}
	.lc-table thead th,
	.lc-table tbody td {
		padding: 9px 10px;
	}
	.lc-table thead th:first-child,
	.lc-table tbody td:first-child {
		padding-left: 14px;
	}
	.lc-table thead th:last-child,
	.lc-table tbody td:last-child {
		padding-right: 14px;
	}
	.lc-table-scroll {
		max-height: 300px;
	}
}