* {
	padding: 0;
	margin: 0;
}
body {
	background: #1a1a2e;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}
.wrap {
	margin: 0px auto;
	width: 1024px;
	height: 768px;
	background: url(../img/1_100804231616_12.jpg);
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
ul {
	list-style: none;
	width: 570px;
	overflow: hidden;
	margin: 300px 0 0 230px;
}
ul li {
	width: 150px;
	height: 87px;
	margin: 20px;
	float: left;
	position: relative;
	cursor: pointer;
	transition: transform 0.2s;
}
ul li:hover {
	transform: scale(1.08);
}
ul li.selected {
	outline: 3px solid #F0B90B;
	border-radius: 8px;
}
ul li img:nth-child(1) {
	max-width: 80px;
	max-height: 80px;
}
ul li img:nth-child(2){
	position: absolute;
	left: -43px;
	top: 45px;
	display: none;
}
ul li .plot-timer {
	position: absolute;
	bottom: -20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	color: #fff;
	background: rgba(0,0,0,0.7);
	padding: 2px 8px;
	border-radius: 10px;
	white-space: nowrap;
}
/* 成熟标记 */
ul li .mature-badge {
	position: absolute;
	top: -5px;
	right: 10px;
	background: #0ECB81;
	color: #fff;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 8px;
	animation: pulse 1s infinite;
}
@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.container {
	width: 450px;
	height: 46px;
	position: absolute;
	left: 50%;
	margin-left: -225px;
	bottom: 60px;
	background-color: #955624;
	border-radius: 5px;
}
.operate {
	width: 100%;
	height: 100%;
	position: absolute;
	bottom: 20px;
}
.operate button:hover {
	cursor: pointer;
	transform: scale(1.1);
}
.operate button {
	border: 0;
	font-family: "Microsoft yahei";
	color: #FEE16C;
	font-weight: 800;
	text-stroke: 1px #472E15;
	-webkit-text-stroke: 1px #472E15; 
	font-size: 17px;
	width: 61px;
	height: 46px;
	line-height: 86px;
	outline: none;
}
.operate button:nth-child(1){
	background: url(../img/bo.png) no-repeat;
	background-size: cover;
}
.operate button:nth-child(2){
	background: url(../img/shoutao.png) no-repeat;
	background-size: cover;
}
.operate button:nth-child(3){
	background: url(../img/chanzi.png) no-repeat;
	background-size: cover;
}
.operate button:nth-child(4){
	background: url(../img/quanshou.png) no-repeat;
	background-size: cover;
}
.util {
	width: 450px;
	height: 46px;
	margin-left: 288px;
}
.util img {
	display: none;
	position: absolute;
	pointer-events: none;
}

/* ===== 社交链接栏 ===== */
.social-bar {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 100;
}
.social-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
	transition: all 0.2s;
}
.social-btn:hover {
	transform: translateY(-2px);
}
.twitter-btn {
	background: #000;
	color: #fff;
	border: 1px solid #333;
}
.twitter-btn:hover {
	background: #1d9bf0;
	border-color: #1d9bf0;
}
.chart-btn {
	background: rgba(240, 185, 11, 0.2);
	color: #F0B90B;
	border: 1px solid #F0B90B;
}
.chart-btn:hover {
	background: #F0B90B;
	color: #1E2026;
}

/* ===== 钱包栏 ===== */
.wallet-bar {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 100;
}
.user-info {
	display: flex;
	gap: 12px;
	background: rgba(0,0,0,0.8);
	padding: 8px 15px;
	border-radius: 20px;
	color: #fff;
	font-size: 12px;
}
.info-item strong {
	color: #F0B90B;
}
.wallet-btn {
	background: linear-gradient(135deg, #F0B90B, #C9980A);
	color: #1E2026;
	border: none;
	padding: 10px 20px;
	border-radius: 20px;
	font-weight: bold;
	cursor: pointer;
	font-size: 14px;
	transition: transform 0.2s;
}
.wallet-btn:hover {
	transform: scale(1.05);
}
.wallet-btn.connected {
	background: rgba(0,0,0,0.8);
	color: #F0B90B;
	font-size: 12px;
}

/* ===== 农场主人信息 ===== */
.farm-owner {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0,0,0,0.8);
	padding: 10px 15px;
	border-radius: 20px;
	color: #fff;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 15px;
	z-index: 100;
}
.farm-owner #ownerName {
	color: #F0B90B;
	font-weight: bold;
}
.steal-tip {
	background: #F6465D;
	color: #fff;
	padding: 5px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: bold;
	animation: blink 1s infinite;
}
@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}
.back-btn {
	background: #F0B90B;
	color: #1E2026;
	border: none;
	padding: 5px 12px;
	border-radius: 12px;
	font-size: 12px;
	cursor: pointer;
	font-weight: bold;
}
.back-btn:hover {
	background: #fff;
}

/* ===== 底部功能栏 ===== */
.bottom-bar {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}
.action-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
}
.action-btn:hover {
	transform: translateY(-2px);
}
.buy-btn { background: #0ECB81; color: #fff; }
.sell-btn { background: #F0B90B; color: #1E2026; }
.visit-btn { background: #1890FF; color: #fff; }
.action-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* ===== 规则面板 ===== */
.rules-panel {
	position: fixed;
	left: calc(50% - 512px - 200px);
	top: 50%;
	transform: translateY(-50%);
	width: 180px;
	background: rgba(30, 35, 41, 0.95);
	border-radius: 12px;
	padding: 15px;
	border: 1px solid rgba(240, 185, 11, 0.3);
	z-index: 50;
}
.rules-title {
	color: #F0B90B;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rules-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.rule-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #aaa;
}
.rule-icon {
	font-size: 14px;
}
.rule-item strong {
	color: #F0B90B;
}
.rule-divider {
	height: 1px;
	background: rgba(255,255,255,0.1);
	margin: 5px 0;
}
.version-tag {
	font-size: 10px;
	background: #F0B90B;
	color: #1E2026;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 5px;
	font-weight: bold;
}
.rule-item.small {
	font-size: 10px;
	color: #666;
	padding-left: 22px;
}

/* ===== 更新预告面板 ===== */
.update-panel {
	position: fixed;
	left: calc(50% - 512px - 200px);
	top: calc(50% + 180px);
	width: 180px;
	background: rgba(30, 35, 41, 0.95);
	border-radius: 12px;
	padding: 15px;
	border: 1px solid rgba(14, 203, 129, 0.3);
	z-index: 50;
}
.update-title {
	color: #0ECB81;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.update-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.update-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #888;
}
.update-icon {
	font-size: 12px;
}

/* ===== KOL 面板 ===== */
.kol-panel {
	position: fixed;
	right: calc(50% - 512px - 200px);
	top: 50%;
	transform: translateY(-50%);
	width: 180px;
	background: rgba(30, 35, 41, 0.95);
	border-radius: 12px;
	padding: 15px;
	border: 1px solid rgba(240, 185, 11, 0.3);
	z-index: 50;
}
.kol-title {
	color: #F0B90B;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.kol-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.kol-item {
	background: rgba(255,255,255,0.05);
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
}
.kol-item:hover {
	background: rgba(240, 185, 11, 0.2);
	transform: translateX(-5px);
}
.kol-name {
	display: block;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 3px;
}
.kol-addr {
	display: block;
	color: #888;
	font-size: 10px;
	font-family: monospace;
}

/* ===== 在别人田地时的特殊样式 ===== */
.wrap.visiting .operate {
	display: none;
}
.wrap.visiting .bottom-bar {
	display: none;
}
.wrap.visiting ul li:hover {
	outline: 2px dashed #F6465D;
	border-radius: 8px;
}
.wrap.visiting ul li .steal-hint {
	position: absolute;
	bottom: -25px;
	left: 50%;
	transform: translateX(-50%);
	background: #F6465D;
	color: #fff;
	font-size: 10px;
	padding: 2px 8px;
	border-radius: 8px;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s;
}
.wrap.visiting ul li:hover .steal-hint {
	opacity: 1;
}

/* ===== 弹窗 ===== */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}
.modal.show {
	display: flex;
}
.modal-content {
	background: #1E2329;
	padding: 25px;
	border-radius: 12px;
	min-width: 320px;
	color: #fff;
	border: 1px solid #F0B90B;
}
.modal-content h3 {
	margin-bottom: 15px;
	color: #F0B90B;
}
.modal-content p {
	margin: 8px 0;
	color: #aaa;
	font-size: 14px;
}
.steal-info {
	background: rgba(246, 70, 93, 0.2);
	padding: 10px;
	border-radius: 8px;
	text-align: center;
}
.steal-info strong {
	color: #F0B90B;
	font-size: 18px;
}
.input-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 15px 0;
}
.input-row label {
	width: 50px;
	font-size: 14px;
}
.input-row input {
	flex: 1;
	padding: 10px;
	border: 1px solid #333;
	border-radius: 6px;
	background: #0B0E11;
	color: #fff;
	font-size: 14px;
}
.input-row input:focus {
	outline: none;
	border-color: #F0B90B;
}
.total {
	font-size: 16px !important;
	color: #F0B90B !important;
	font-weight: bold;
}
.modal-btns {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}
.modal-btns button {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
}
.cancel-btn {
	background: #333;
	color: #aaa;
}
.confirm-btn {
	background: #F0B90B;
	color: #1E2026;
}

/* ===== 加载提示 ===== */
.loading {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	z-index: 2000;
	justify-content: center;
	align-items: center;
}
.loading.show {
	display: flex;
}
.loading-box {
	text-align: center;
	color: #fff;
}
.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #333;
	border-top-color: #F0B90B;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ===== Toast 提示 ===== */
.toast {
	display: none;
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	background: #1E2329;
	color: #fff;
	padding: 12px 25px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 3000;
	border: 1px solid #F0B90B;
}
.toast.show {
	display: block;
	animation: fadeIn 0.3s;
}
.toast.success { border-color: #0ECB81; }
.toast.error { border-color: #F6465D; }
@keyframes fadeIn {
	from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
	to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
