/* 个人所得税汇算清缴计算器：全部样式限定在 .tax-page 内，避免影响站内其他工具 */
.tax-page {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 0 48px;
	font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #1f2329;
}
.tax-page *, .tax-page *::before, .tax-page *::after { box-sizing: border-box; }

.tax-page .tax-head { padding-bottom: 18px; }
.tax-page .tax-head .tool-name {
	float: none;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: #1f2329;
}
.tax-page .tax-subtitle {
	margin: 6px 0 0;
	font-size: 13px;
	color: #8a919f;
}

/* ===== 双栏主区 ===== */
.tax-page .tax-layout {
	display: grid;
	grid-template-columns: minmax(300px, 350px) 1fr;
	gap: 18px;
	align-items: start;
}
.tax-page .tax-card {
	background: #fff;
	border: 1px solid #e8eaee;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(31, 35, 41, .04);
}
.tax-page .tax-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}
.tax-page .tax-card-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #1f2329;
}
.tax-page .tax-link-btn {
	border: 0;
	background: none;
	padding: 2px 0;
	font-size: 12px;
	color: #8a919f;
	cursor: pointer;
}
.tax-page .tax-link-btn:hover { color: #2563eb; }
.tax-page .tax-actions { display: flex; gap: 8px; flex: none; }
.tax-page .tax-actions button {
	border: 1px solid #dcdfe6;
	border-radius: 6px;
	background: #fff;
	padding: 5px 10px;
	font-size: 12px;
	line-height: 1.5;
	color: #4b5563;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.tax-page .tax-actions button:hover { border-color: #2563eb; color: #2563eb; }

.tax-page .tax-group-title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	color: #4b5563;
}
.tax-page .tax-field { margin: 0 0 14px; }
.tax-page .tax-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}
.tax-page .tax-field input {
	display: block;
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #dcdfe6;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	color: #1f2329;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.tax-page .tax-field input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.tax-page .tax-hint {
	margin: 5px 0 0;
	font-size: 12px;
	line-height: 1.55;
	color: #9aa1ac;
}
.tax-page .tax-fieldset {
	margin: 18px 0 0;
	padding: 4px 14px 0;
	border: 1px solid #e8eaee;
	border-radius: 10px;
}
.tax-page .tax-fieldset legend {
	margin: 0 auto;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #4b5563;
}
.tax-page .tax-fieldset .tax-field:last-child { margin-bottom: 16px; }

/* ===== 结果卡片 ===== */
.tax-page .tax-result-hero {
	padding: 18px 20px;
	margin: 0 0 18px;
	border: 1px solid #cdeed9;
	border-radius: 10px;
	background: linear-gradient(135deg, #f0fbf4 0%, #e7f7ed 100%);
}
.tax-page .tax-result-hero.is-pay {
	border-color: #fad9c4;
	background: linear-gradient(135deg, #fff7f1 0%, #fff0e5 100%);
}
.tax-page .tax-result-hero.is-none {
	border-color: #dfe3e9;
	background: #f7f8fa;
}
.tax-page .tax-hero-label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
}
.tax-page .tax-hero-amount {
	display: block;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .5px;
	color: #16a34a;
}
.tax-page .is-pay .tax-hero-amount { color: #e2622b; }
.tax-page .is-none .tax-hero-amount { color: #4b5563; }

.tax-page .tax-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.tax-page .tax-metric {
	padding: 12px 14px;
	border-radius: 8px;
	background: #f7f8fa;
}
.tax-page .tax-metric-label {
	display: block;
	margin: 0 0 4px;
	font-size: 12px;
	color: #8a919f;
}
.tax-page .tax-metric-value {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1f2329;
	word-break: break-all;
}
.tax-page .tax-metric-value.is-highlight { color: #2563eb; }
.tax-page .tax-warn {
	margin: 14px 0 0;
	padding: 9px 12px;
	border-radius: 6px;
	background: #fff7ed;
	font-size: 12px;
	line-height: 1.6;
	color: #c05621;
}
.tax-page .tax-disclaimer {
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px dashed #e8eaee;
	font-size: 12px;
	line-height: 1.7;
	color: #8a919f;
}

/* ===== 说明性内容 ===== */
.tax-page .tax-docs { margin: 28px 0 0; }
.tax-page .tax-doc {
	margin: 0 0 16px;
	padding: 22px 24px;
	border: 1px solid #e8eaee;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(31, 35, 41, .03);
}
.tax-page .tax-doc h2 {
	margin: 0 0 14px;
	padding: 0 0 0 10px;
	border-left: 3px solid #2563eb;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #1f2329;
}
.tax-page .tax-doc p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.85;
	color: #4b5563;
}
.tax-page .tax-doc p:last-child { margin-bottom: 0; }
.tax-page .tax-doc p.tax-doc-note { margin: 14px 0 0; font-size: 13px; color: #6b7280; }

.tax-page .tax-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: taxstep;
}
.tax-page .tax-steps li {
	position: relative;
	margin: 0 0 10px;
	padding: 0 0 0 34px;
	font-size: 14px;
	line-height: 1.8;
	color: #4b5563;
	counter-increment: taxstep;
}
.tax-page .tax-steps li:last-child { margin-bottom: 0; }
.tax-page .tax-steps li::before {
	content: counter(taxstep);
	position: absolute;
	left: 0;
	top: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #eaf1ff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	color: #2563eb;
}

.tax-page .tax-doc .tax-formula {
	margin: 0;
	padding: 14px 16px;
	border-radius: 8px;
	background: #f7f8fa;
}
.tax-page .tax-doc .tax-formula p {
	margin: 0 0 6px;
	font-size: 13.5px;
	line-height: 1.9;
	color: #374151;
	word-break: break-word;
}
.tax-page .tax-doc .tax-formula p:last-child { margin-bottom: 0; }

.tax-page .tax-table {
	width: 100%;
	margin: 14px 0 0;
	border-collapse: collapse;
	font-size: 13px;
	color: #4b5563;
}
.tax-page .tax-table th, .tax-page .tax-table td {
	padding: 9px 10px;
	border: 1px solid #e8eaee;
	text-align: left;
	line-height: 1.5;
}
.tax-page .tax-table th { background: #f7f8fa; font-weight: 700; color: #374151; }
.tax-page .tax-table tbody tr:nth-child(even) { background: #fcfcfd; }

.tax-page .tax-scenes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.tax-page .tax-doc .tax-scene {
	padding: 16px;
	border: 1px solid #eef0f3;
	border-radius: 10px;
	background: #fafbfc;
}
.tax-page .tax-doc .tax-scene h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #1f2329;
}
.tax-page .tax-doc .tax-scene p { margin: 0; font-size: 13px; line-height: 1.8; }

.tax-page .tax-doc .tax-faq details {
	margin: 0 0 10px;
	padding: 0 14px;
	border: 1px solid #e8eaee;
	border-radius: 8px;
	background: #fff;
}
.tax-page .tax-doc .tax-faq details:last-child { margin-bottom: 0; }
.tax-page .tax-doc .tax-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	color: #1f2329;
	cursor: pointer;
	list-style: none;
}
.tax-page .tax-doc .tax-faq summary::-webkit-details-marker { display: none; }
.tax-page .tax-doc .tax-faq summary::after {
	content: "▾";
	flex: none;
	font-size: 13px;
	color: #9aa1ac;
	transition: transform .2s;
}
.tax-page .tax-doc .tax-faq details[open] summary::after { transform: rotate(180deg); }
.tax-page .tax-doc .tax-faq details p {
	margin: 0;
	padding: 12px 0 14px;
	border-top: 1px solid #eef0f3;
	font-size: 13px;
	line-height: 1.85;
}

/* ===== 轻提示 ===== */
.tax-toast {
	position: fixed;
	left: 50%;
	bottom: 36px;
	z-index: 9999;
	transform: translate(-50%, 12px);
	padding: 10px 18px;
	border-radius: 8px;
	background: rgba(31, 35, 41, .9);
	font-size: 13px;
	color: #fff;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
}
.tax-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
	.tax-page .tax-layout { grid-template-columns: 1fr; }
	.tax-page .tax-scenes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tax-page { padding-top: 16px; }
	.tax-page .tax-card { padding: 16px; }
	.tax-page .tax-doc { padding: 18px 16px; }
	.tax-page .tax-card-head { flex-wrap: wrap; }
	.tax-page .tax-metrics { gap: 8px; }
	.tax-page .tax-metric { padding: 10px; }
	.tax-page .tax-hero-amount { font-size: 26px; }
	.tax-page .tax-table { font-size: 12px; }
	.tax-page .tax-table th, .tax-page .tax-table td { padding: 7px 6px; }
}
