﻿* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Arial, sans-serif;
}

body {
	background-color: #f5f5f5;
}
#app {
    height: 100vh;
    display: flex;
}
.sideBar {
	width: 300px;
	height: 100vh;
	background: #f9fafb;
	left: 0;
	padding-top: 58px;
	position: absolute;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.calcNew1{
	box-sizing: border-box;
	cursor: pointer;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid rgba(103, 158, 254, 0);
	border-radius: 100px;
	flex-shrink: 0;
	align-items: center;
	text-align: center;
	width: 68%;
	height: 40px;
	margin: 0 auto;
	font-size: 14px;
	line-height: 14px;
	font-weight: 500;
	display: flex;
	transition: box-shadow .3s;
	position: relative;
	box-shadow: 0 -2px 2px rgba(72, 104, 178, .04), 0 2px 2px rgba(106, 111, 117, .09), 0 1px 2px rgba(72, 104, 178, .08);
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
}
.calcNew1:hover {
	box-shadow: 0 4px 4px rgba(72, 104, 178, .04), 0 -3px 4px rgba(72, 104, 178, .04), 0 6px 6px rgba(106, 111, 117, .1);
}
.history{
	margin: 15px 0;
	height: 88vh;
	background: #f9fafb;
}
.historyList{
	
}
.history1{
	width: 100%;
    padding: 5px 20px;
    height: 40px;
    line-height: 30px;
    font-size: 16px;
    list-style: none;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    mask: linear-gradient(to right, black 60%, transparent);
}
.profitSuccess{
    font-size: 10px;
    margin-right: 5px;
}
.history1:hover{
	cursor:pointer;
    background:#f1f4f5;
}
.historyCurrent{
	background:#d9edff;
}

.historyBTN button{
height: 20px;
    font-size: 12px;
    align-items: center;
}
.historyBTN:hover button{
	cursor:pointer;
}
.historyDel1{
	width: 28px;
}
.historyRename1{
	width: 58px;
}
.history1 .historyBTN{
    display: flex;
    opacity: 0;
    transition: opacity 0.2s;
    align-items: center;
    justify-content: center;
position: absolute;
    right: 0;
}
.history1:hover .historyBTN{
	opacity: 1; /* 悬浮时显示 */
}



.loginInfo{
	border-top: 1px solid #CCC;
	height: 70px;
	bottom: 0;
	position: absolute;
	z-index: 99;
	width: 100%;
}
.user-info {
	padding: 10px;
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: center;
}
.userAvatar {
    width: 45px;
    height: 45px;
    border-radius: 99px;
}
.loginOut{
    width: 58px;
    height: 30px;
    align-content: center;
}
.loginOut:hover{cursor:pointer;}
.profit-calculator {
	max-width: 1000px;
	height: 100vh;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 15px;
}

.header {
	text-align: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #4a6fa5;
}

.header h1 {
	color: #2c3e50;
	font-size: 30px;
}

.subtitle {
	color: #666;
	font-size: 16px;
	margin-top: 5px;
}

.calculator-container {
	display: grid;
	grid-template-columns: 1fr 2.2fr;
	gap: 15px;
}

.input-section, .results-section {
	background-color: #f9f9f9;
	border-radius: 5px;
	padding: 15px;
	border: 1px solid #ddd;
}

.section-title {
	font-size: 17px;
	color: #2c3e50;
	margin: 10px 0px;
	font-weight: 600;
	padding-bottom: 8px;
	border-bottom: 1px solid #ddd;
}

.input-group {
	margin-bottom: 20px;
}

.input-group h3 {
	font-size: 14px;
	color: #4a6fa5;
	margin-bottom: 10px;
}

.input-row {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.input-row label {
	width: 150px;
	font-size: 13px;
	font-weight: 500;
	text-align: right;
	margin-right: 10px;
}

.input-with-unit {
	display: flex;
	align-items: center;
	flex: 1;
}

.input-with-unit input {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
}

.input-with-unit input:focus {
	border-color: #4a6fa5;
	outline: none;
}

.unit {
	margin-left: 5px;
	font-size: 12px;
	color: #666;
	min-width: 25px;
}

.required-star {
	color: #e74c3c;
	font-weight: bold;
}

.results-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.result-category {
	background-color: white;
	border-radius: 4px;
	padding: 10px;
	border: 1px solid #e0e0e0;
}

.category-title {
	text-align: center;
	font-size: 13px;
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 8px;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}

.result-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 13px;
}

.result-label {
	color: #555;
}

.result-value {
	font-weight: 600;
	color: #2c3e50;
}

.result-value.positive {
	color: #27ae60;
}

.result-value.negative {
	color: #e74c3c;
}

.summary-box {
	background-color: #e8f4fd;
	border-radius: 5px;
	padding: 15px;
	margin-top: 15px;
	border: 1px solid #b8d4f0;
}

.summary-title {
	font-size: 20px;
	color: #2c3e50;
	margin-bottom: 10px;
	text-align: center;
}

.summary-content {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.summary-item {
	text-align: center;
	padding: 8px;
	background-color: white;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.summary-label {
	font-size: 16px;
	color: #666;
	margin-bottom: 5px;
}

.summary-value {
	font-size: 28px;
	font-weight: bold;
}

.summary-value.positive {
	color: #27ae60;
}

.summary-value.negative {
	color: #e74c3c;
}

.actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.btn {
	width: 46%;
	padding: 8px;
	border: none;
	border-radius: 4px;
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.btn-reset {
	background-color: #f39c12;
	color: white;
}

.btn-reset:hover {
	background-color: #e67e22;
}

.btn-save {
	background-color: #3498db;
	color: white;
}

.btn-save:hover {
	background-color: #2980b9;
}

.legend {
	font-size: 11px;
	color: #777;
	text-align: center;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
}



@media (max-width: 768px) {
	.calculator-container {
		grid-template-columns: 1fr;
	}
	
	.results-grid {
		grid-template-columns: 1fr;
	}
	
	.summary-content {
		grid-template-columns: 1fr;
	}
}
.isNotLoggedIn {
    width: 100%;
    color: #FFF;
    font-size: 28px;
    text-align: center;
    background: #00000073;
    height: 100%;
    align-content: center;
    justify-content: center;
    align-items: center;
}
/* 微信登录弹窗样式 */
.wechat-login-dialog .el-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
}

.wechat-login-dialog .el-dialog__header {
    text-align: center;
    border-bottom: 1px solid #ebeef5;
    padding: 15px 20px;
}

.wechat-login-dialog .el-dialog__body {
	height: 408px;
    padding: 30px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.wechat-login-content {
    text-align: center;
    padding: 20px 0;
}
.qr-code-container {
    margin-bottom: 20px;
}
/* 弹窗结束 */

#qrCode4scan{
display: flex;
    text-align: center;
    justify-content: center;
    padding-top: 10px;
}
/* 高亮 */
.highLight {
  background-color: #ffeb3b;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.layerContent{padding: 10px;
    text-align: center;}
.layerContentP{display: inline-block;
    width: 100%;
    background: yellow;
    padding: 2px 5px;
}

.losing{
	position: relative;
	overflow: hidden;             /* 避免文字溢出影响 */
	font-family: "Microsoft YaHei", sans-serif;
}
.losing::before{
	content: "亏";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-10deg); /* 居中并旋转 */
	font-size: 128px;
	font-weight: bold;
	color: rgba(255, 0, 0, 0.28);  /* 红色半透明 */
	white-space: nowrap;
	z-index: 1;                   /* 确保在底层 */
	pointer-events: none;          /* 让鼠标事件穿透 */
}

.underlineKeyPoint{
	border-bottom: 2px dashed red;
}
.amount{
    font-weight: bold;
    color: red;
}