/* ==================== aaa.css ==================== */

body {
				background-color: aliceblue;
				margin: 0;
				font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
			}

			::-webkit-scrollbar {
				display: none;
				/* Chrome Safari */
			}

			/* 新增重置按钮样式 */
			.reset-btn {
				background: none;
				border: none;
				color: var(--secondary);
				cursor: pointer;
				font-size: 0.8rem;
				margin-left: 10px;
				padding: 0;
				text-decoration: underline;
			}

			.reset-btn:hover {
				color: var(--primary);
			}

			.card-value {
				min-width: 120px;
				/* 防止数值跳动 */
			}

			:root {
				--bg-color: #f5f7fa;
				--text-color: #2d3748;
				--card-bg: #ffffff;
				--primary: #4f46e5;
				--primary-hover: #4338ca;
				--secondary: #6b7280;
				--success: #10b981;
				--border-color: #e5e7eb;
				--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
			}

			[data-theme="dark"] {
				--bg-color: #1a202c;
				--text-color: #f7fafc;
				--card-bg: #2d3748;
				--primary: #7c3aed;
				--primary-hover: #6d28d9;
				--secondary: #a0aec0;
				--success: #059669;
				--border-color: #4a5568;
				--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
			}

			* {
				box-sizing: border-box;
				margin: 0;
				padding: 0;
			}

			body {
				background-color: var(--bg-color);
				color: var(--text-color);
				font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
				line-height: 1.6;
				transition: all 0.3s ease;
				padding: 20px;
				min-height: 100vh;
			}

			.container {
				max-width: 1200px;
				margin: 0 auto;
				padding: 0 15px;
			}

			header {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 30px;
				padding-bottom: 15px;
				border-bottom: 1px solid var(--border-color);
			}

			h1 {
				font-size: 1.8rem;
				background: linear-gradient(90deg, var(--primary), #06b6d4);
				-webkit-background-clip: text;
				background-clip: text;
				color: transparent;
				font-weight: 700;
			}

			.theme-toggle {
				background: var(--primary);
				color: white;
				border: none;
				padding: 8px 16px;
				border-radius: 6px;
				cursor: pointer;
				font-weight: 500;
				transition: all 0.3s;
			}

			.theme-toggle:hover {
				background: var(--primary-hover);
				transform: translateY(-2px);
			}

			.dashboard {
				display: grid;
				grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
				gap: 20px;
				margin-bottom: 30px;
			}

			.card {
				background: var(--card-bg);
				border-radius: 12px;
				padding: 20px;
				box-shadow: var(--shadow);
				transition: transform 0.3s;
			}

			.card:hover {
				transform: translateY(-5px);
			}

			.card-title {
				font-size: 1rem;
				color: var(--secondary);
				margin-bottom: 10px;
				font-weight: 600;
			}

			.card-value {
				font-size: 1.8rem;
				font-weight: 700;
				margin-bottom: 5px;
				display: flex;
				align-items: baseline;
				gap: 5px;
			}

			.card-unit {
				font-size: 1rem;
				color: var(--secondary);
			}

			.control-panel {
				background: var(--card-bg);
				border-radius: 12px;
				padding: 25px;
				box-shadow: var(--shadow);
				margin-bottom: 30px;
			}

			.section-title {
				font-size: 1.2rem;
				margin-bottom: 15px;
				color: var(--primary);
				font-weight: 600;
			}

			.form-group {
				margin-bottom: 20px;
			}

			label {
				display: block;
				margin-bottom: 8px;
				font-weight: 500;
			}

			input[type="number"],
			input[type="url"],
			input[type="text"],
			select {
				width: 100%;
				padding: 10px 15px;
				border: 1px solid var(--border-color);
				border-radius: 8px;
				background: var(--bg-color);
				color: var(--text-color);
				font-size: 1rem;
				transition: border 0.3s;
			}

			input:focus,
			select:focus {
				outline: none;
				border-color: var(--primary);
			}

			.btn-group {
				display: flex;
				gap: 10px;
				flex-wrap: wrap;
			}

			button {
				padding: 10px 20px;
				border: none;
				border-radius: 8px;
				font-weight: 500;
				cursor: pointer;
				transition: all 0.3s;
			}

			.btn-primary {
				background: var(--primary);
				color: white;
			}

			.btn-primary:hover {
				background: var(--primary-hover);
			}

			.btn-secondary {
				background: var(--secondary);
				color: white;
			}

			.btn-secondary:hover {
				opacity: 0.9;
			}

			.btn-danger {
				background: #ef4444;
				color: white;
			}

			.btn-danger:hover {
				background: #dc2626;
			}

			.custom-links {
				margin-top: 20px;
			}

			.custom-link-item {
				display: flex;
				align-items: center;
				gap: 10px;
				margin-bottom: 10px;
				padding: 10px;
				background: var(--bg-color);
				border-radius: 8px;
			}

			.ip-info {
				background: var(--card-bg);
				border-radius: 12px;
				padding: 20px;
				box-shadow: var(--shadow);
				margin-bottom: 30px;
			}

			.ip-frame {
				width: 100%;
				border: none;
				overflow: hidden;
				height: 200px;
			}

			.url-select-group {
				display: grid;
				grid-template-columns: 1fr auto;
				gap: 10px;
				align-items: center;
			}

			.saved-nodes {
				margin-top: 20px;
				background: var(--card-bg);
				padding: 15px;
				border-radius: 8px;
			}

			@media (max-width: 768px) {
				/* 减小容器边距 */
				body {
					padding: 8px;
				}

				.container {
					padding: 0 8px;
				}

				/* 减小卡片间距 */
				.dashboard {
					grid-template-columns: 1fr;
					gap: 12px;
					margin-bottom: 12px;
				}

				/* 减小卡片内边距 */
				.card {
					padding: 10px;
				}

				/* 减小控制面板内边距和外边距 */
				.control-panel {
					padding: 12px;
					margin-bottom: 12px;
				}

				/* 减小表单组间距 */
				.form-group {
					margin-bottom: 12px;
				}

				/* 减小标题间距 */
				.section-title {
					margin-bottom: 10px;
					font-size: 1.1rem;
				}

				/* 减小 header 间距 */
				header {
					margin-bottom: 15px;
					padding-bottom: 10px;
				}

				.btn-group {
					flex-direction: column;
				}

				.btn-group button {
					width: 100%;
				}

				.ip-frame {
					height: 300px;
				}

				.url-select-group {
					grid-template-columns: 1fr;
				}
			}

			@media (max-width: 480px) {
				h1 {
					font-size: 1.8rem;
					/* 增大字号 */
					font-weight: 700;
					/* 加粗字体 */
					line-height: 1.2;
					/* 优化行高 */
					margin: 0 0 15px;
					/* 增加下边距 */
					text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
					/* 添加立体感 */
				}

				/* 保持按钮比例协调 */
				.theme-toggle {
					font-size: 1rem;
					padding: 10px 15px;
					border-radius: 8px;
				}
			}

			@media (max-width: 480px) {
				header {
					flex-direction: column;
					gap: 8px;
					padding-bottom: 12px;
					border-bottom: 1px solid var(--border-color);
				}


				header>div {
					width: 100%;
					display: flex;
					justify-content: space-between;
					gap: 8px;
				}

				.theme-toggle {
					width: auto;
					min-width: 120px;
					padding: 6px 6px;
					font-size: 0.9rem;
					margin: 0;
					flex: 1;
				}

				#backgroundToggle {
					margin-left: auto;
				}
			}

			/* 网速趋势图表样式 */
			.chart-wrapper {
				position: relative;
				width: 100%;
				height: 300px;
				margin-top: 15px;
			}

			@media (max-width: 768px) {
				.chart-wrapper {
					height: 200px;
				}
			}

			/* 息屏显示样式 */
			.screensaver {
				position: fixed;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
				background-color: #000000;
				color: #ffffff;
				display: none;
				z-index: 9999;
				cursor: none;
			}

			.screensaver.active {
				display: block;
			}

			.screensaver-content {
				display: flex;
				flex-direction: row;
				align-items: center;
				justify-content: center;
				width: 100%;
				max-width: 900px;
				padding: 40px 20px;
				gap: 60px;
				position: absolute;
				transition: all 2s ease-in-out;
			}

			.screensaver-left {
				text-align: left;
			}

			.screensaver-title {
				font-size: 32px;
				font-weight: bold;
				margin-bottom: 20px;
				letter-spacing: 4px;
			}

			.screensaver-time {
				font-size: 56px;
				font-weight: bold;
				margin-bottom: 8px;
				font-family: 'Courier New', monospace;
			}

			.screensaver-date {
				font-size: 18px;
				margin-bottom: 8px;
				color: #cccccc;
			}

			.screensaver-status {
				font-size: 14px;
				color: #aaaaaa;
			}

			.screensaver-right {
				display: flex;
				flex-direction: column;
				gap: 12px;
				text-align: right;
				min-width: 200px;
			}

			.screensaver-stat {
				display: flex;
				flex-direction: column;
				gap: 6px;
			}

			.screensaver-label {
				font-size: 14px;
				color: #aaaaaa;
			}

			.screensaver-value {
				font-size: 24px;
				font-weight: bold;
				font-family: 'Courier New', monospace;
			}

			@media (max-width: 768px) {
				.screensaver-content {
					flex-direction: column;
					gap: 40px;
					text-align: center;
				}

				.screensaver-left,
				.screensaver-right {
					text-align: center;
				}

				.screensaver-title {
					font-size: 36px;
				}

				.screensaver-time {
					font-size: 56px;
				}

				.screensaver-date {
					font-size: 20px;
				}
			}



/* ==================== bbb.css ==================== */

 .modal {
    display: none; /* 默认不显示 */
    position: fixed; /* 固定定位 */
    z-index: 1; /* 置于顶层 */
    left: 0;
    top: 0;
    width: 100%; /* 宽度100% */
    height: 100%; /* 高度100% */
    overflow: auto; /* 如果有滚动条则显示 */
    background-color: skyblue; /* 背景颜色 */
    background-color: rgba(0,0,0,0.4); /* 背景颜色半透明 */
  }
  .modal-content {
    /* background-color: #fefefe; */
	background-color: white;
    margin: 25% auto; /* 25% 从顶部开始，居中显示 */
    padding: 20px;
    border: 1px solid #888;
    width: 85%; /* 宽度 */
	border-radius: 15px;
  }
  
  
  .modal-content button {
	background-color: rgba(0,0,0,0.4);
  	/* margin: -20px -10px auto auto; */
  	width: 20px;
  	height: 40px;
  	background: gainsboro;
	font-size: 30px;
	text-align: center;

  }
  
.modal-content p{
	padding-left: 30px;
	color: black;
	
}

.modal-content h4{
	padding-left: 30px;
	color: black;
}
  .queren{
	  background: lightgoldenrodyellow;
	  font-size: 15px;
	  text-align: center;
	  margin: 10px;
	  padding: 10px 20px 10px 10px;
	  border-radius: 5px;
	  cursor: pointer;
	  color: black;
  }



/* ==================== beauty.css ==================== */

/* =========================================================
   页面美化 —— 马卡龙动态背景 + 鼠标吸附粒子 + 按钮特效
   仅视觉层，不影响任何功能逻辑
   ========================================================= */

/* ---------- 马卡龙配色（浅色模式） ---------- */
:root {
    --bg-grad-1: #ffd6e7;
    /* 樱花粉 */
    --bg-grad-2: #d6ecff;
    /* 婴儿蓝 */
    --bg-grad-3: #e7d9ff;
    /* 薰衣草紫 */
    --bg-grad-4: #d6f5e9;
    /* 薄荷绿 */
    --blob-1: rgba(255, 183, 205, 0.55);
    --blob-2: rgba(173, 216, 255, 0.55);
    --blob-3: rgba(214, 194, 255, 0.52);
    --title-grad-1: #e287a6;
    --title-grad-2: #a183d6;
    --title-grad-3: #64b293;
}

/* ---------- 马卡龙配色（夜间模式） ---------- */
[data-theme="dark"] {
    --bg-grad-1: #2b1f33;
    /* 深梅紫 */
    --bg-grad-2: #1f2a3d;
    /* 深夜蓝 */
    --bg-grad-3: #2c1f3a;
    /* 深薰衣草 */
    --bg-grad-4: #1e332b;
    /* 深薄荷绿 */
    --blob-1: rgba(196, 150, 220, 0.34);
    --blob-2: rgba(120, 170, 220, 0.30);
    --blob-3: rgba(226, 150, 180, 0.28);
    --title-grad-1: #f8bcd2;
    --title-grad-2: #c9b4f2;
    --title-grad-3: #9fe0c4;
}

/* ---------- 背景装饰层：随时间缓慢自然渐变 ---------- */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(-45deg,
            var(--bg-grad-1),
            var(--bg-grad-2),
            var(--bg-grad-3),
            var(--bg-grad-4));
    background-size: 360% 360%;
    animation: bgGradientShift 32s ease-in-out infinite;
}

@keyframes bgGradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-fx canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---------- 浮动光斑 ---------- */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.bg-blob-1 {
    width: 46vmax;
    height: 46vmax;
    left: -12vmax;
    top: -14vmax;
    background: radial-gradient(circle, var(--blob-1), transparent 70%);
    animation: blobFloat1 30s ease-in-out infinite alternate;
}

.bg-blob-2 {
    width: 42vmax;
    height: 42vmax;
    right: -14vmax;
    top: 16vmax;
    background: radial-gradient(circle, var(--blob-2), transparent 70%);
    animation: blobFloat2 36s ease-in-out infinite alternate;
}

.bg-blob-3 {
    width: 40vmax;
    height: 40vmax;
    left: 28vmax;
    bottom: -16vmax;
    background: radial-gradient(circle, var(--blob-3), transparent 70%);
    animation: blobFloat3 42s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(7vmax, 5vmax) scale(1.12);
    }
    100% {
        transform: translate(-4vmax, 9vmax) scale(0.95);
    }
}

@keyframes blobFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-8vmax, -6vmax) scale(1.1);
    }
    100% {
        transform: translate(5vmax, -4vmax) scale(1.02);
    }
}

@keyframes blobFloat3 {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-6vmax, -7vmax) scale(1.15);
    }
    100% {
        transform: translate(4vmax, -3vmax) scale(0.98);
    }
}

/* ---------- 按钮：马卡龙配色 + 触碰/点击特效（保证可见性） ---------- */
.theme-toggle,
.btn-primary,
.btn-secondary,
.btn-danger {
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(150, 120, 160, 0.28);
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.theme-toggle {
    background: linear-gradient(135deg, #e7d9ff, #ffc9dc);
    color: #5a3a68;
    border-color: #d3b6ee;
}

.btn-primary {
    background: linear-gradient(135deg, #a8e6cf, #8fdcb8);
    color: #14532d;
    border-color: #7cc9a6;
    box-shadow: 0 4px 16px rgba(120, 200, 165, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #bcd9ff, #a5cdfb);
    color: #1e3a5f;
    border-color: #8fb8ec;
}

.btn-danger {
    background: linear-gradient(135deg, #ffb3c1, #ff9db1);
    color: #7f1d2e;
    border-color: #f18aa0;
}

/* 触碰（悬停） */
.theme-toggle:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
    transform: translateY(-3px);
    filter: brightness(1.05) saturate(1.06);
    box-shadow: 0 10px 22px rgba(150, 120, 160, 0.36);
}

.theme-toggle:hover {
    background: linear-gradient(135deg, #f0e6ff, #ffdce8);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b6ecd6, #9fe4c2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #c9e1ff, #b2d5ff);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ffc2cd, #ffaebf);
}

/* 点击 / 按压 */
.theme-toggle:active,
.btn-primary:active,
.btn-secondary:active,
.btn-danger:active {
    transform: translateY(1px) scale(0.95);
    filter: brightness(0.96);
    box-shadow: 0 2px 6px rgba(150, 120, 160, 0.3);
}

/* ---------- 标题：马卡龙渐变配色（兼容夜间模式，清晰可见） ---------- */
h1,
.section-title {
    background-image: linear-gradient(90deg,
            var(--title-grad-1),
            var(--title-grad-2),
            var(--title-grad-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    max-width: 100%;
}

/* ---------- 布局修复：三个统计卡片仅“横向三列”或“纵向单列” ---------- */
.dashboard {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    .bg-fx {
        animation: none;
    }
    .bg-blob {
        animation: none;
    }
}