﻿:root {
	--primary-color: #4361ee;
	--primary-hover: #3a56d4;
	--secondary-color: #3f37c9;
	--success-color: #4cc9f0;
	--text-color: #2b2d42;
	--light-bg: #f8f9fa;
	--card-bg: #ffffff;
	--border-color: #e9ecef;
	--error-color: #ef233c;
	--error-bg: #fdecea;
	--warning-color: #f8961e;
	--info-color: #4895ef;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	background-color: var(--light-bg);
	color: var(--text-color);
	padding: 5px;
}

.container {
	max-width: 720px;
	margin: 0 auto;
	background-color: var(--card-bg);
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	padding: 25px;
}

h1 {
	color: var(--text-color);
	font-size: 1.8rem;
	margin-bottom: 5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 15px;
}

h1 i {
	color: var(--primary-color);
}

.ip-container {
	display: flex;
	align-items: center;
	background-color: #edf2ff;
	padding: 15px 20px;
	border-radius: 8px;
	border-left: 4px solid var(--primary-color);
	margin-bottom: 25px;
	gap: 15px;
}

#ip {
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--text-color);
	flex: 1;
	word-break: break-all;
	color: #11b9a2;
}

button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	white-space: nowrap;
}

button:hover {
	background-color: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:disabled {
	background-color: #adb5bd;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

button.copied {
	background-color: var(--secondary-color);
}

.detail-item {
	margin: 15px 0;
	padding: 18px;
	background-color: var(--card-bg);
	border-radius: 8px;
	border-left: 4px solid var(--primary-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-wrap: wrap;
}

.detail-item span:first-child {
	font-weight: bold;
	min-width: 80px;
	color: #6c757d;
	margin-bottom: 8px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
}

.loading {
	color: #6c757d;
	font-style: italic;
}

.error {
	color: var(--error-color);
	background-color: var(--error-bg);
	padding: 15px;
	border-radius: 8px;
	margin: 20px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.toast {
	position: fixed;
	top: 25px;
	right: 25px;
	background-color: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 12px 20px;
	border-radius: 8px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;
}

.toast.show {
	opacity: 1;
	transform: translateY(0);
}

.toast i {
	font-size: 1.2rem;
}

.toast-success {
	background-color: #2a9d8f;
}

.toast-error {
	background-color: var(--error-color);
}
  .lianglaoban {
    margin-bottom: 0px;
    text-align: center;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* 单列布局 */
    grid-gap: 6px;
    padding-top: 5;
	color: #fff;
  }

  .logo-link {
    display: block;
    width: 140px;
    margin: 0 auto;
}

  .llbimg {
    width: 140px;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s; /* 添加过渡效果 */
  }

  .llbimg:hover {
    transform: scale(1.05); /* 鼠标悬停时放大 */
  }

  .github-badge {
    display: inline-flex; /* 使用 flexbox 使内容居中 */
    align-items: center; /* 垂直居中 */
    border-radius: 4px;
    text-shadow: none;
    font-size: 14px;
    color: #fff;
    line-height: 15px;
    background-color: #d72222;
    margin-bottom: 5px;
    white-space: nowrap;
    transition: background-color 0.3s; /* 添加过渡效果 */
  }

  .github-badge:hover {
    background-color: #c71e1e; /* 悬停时改变背景色 */
  }

  .badge-subject {
    display: inline-block;
    background-color: #34d59c;
    padding: 4px 6px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  .badge-icon {
    width: 16px;
    height: auto; /* 保持图标的纵横比 */
  }

  .badge-value {
    display: inline-block;
    padding: 4px 6px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  .bg-pink {
    background-image: linear-gradient(to right, #747474 0%, #ff7eb3 100%);
  }

  .bg-blue {
    background-image: linear-gradient(120deg, #747474 0%, #66a6ff 100%);
    font-size: 12px;
  }

  /* 去掉链接的下划线 */
  .lianglaoban a {
    text-decoration: none; /* 去掉下划线 */
    color: inherit; /* 继承父元素的颜色 */
  }

  .lianglaoban a:hover {
    color: #ffc107; /* 悬停时改变颜色 */
  }

  @media (max-width: 768px) {
    .lianglaoban {
      grid-template-columns: 1fr; /* 在小屏幕上保持单列布局 */
    }
  }
/* 移动端适配 */
@media (max-width: 768px) {
	body {
		padding: 15px;
	}

	.container {
		padding: 20px;
	}

	h1 {
		font-size: 1.5rem;
	}

	.ip-container {
		flex-direction: column;
		align-items: flex-start;
		padding: 15px;
		gap: 10px;
	}

	#ip {
		font-size: 1.2rem;
		margin-right: 0;
		margin-bottom: 10px;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		color: #11b9a2;
	}

	button {
		width: 100%;
		padding: 12px;
	}

	.detail-item {
		padding: 12px;
	}

	.detail-item span:first-child {
		min-width: 70px;
		width: 100%;
	}

	.toast {
		top: 15px;
		right: 15px;
		left: 15px;
		max-width: calc(100% - 30px);
	}

	.detail-item {
		display: grid;
		grid-template-columns: 0.37fr 0.63fr;
	}
}