@font-face {
	font-family: 'phi-style';
	src: url("/cmdysj.ttf");
}

/* 基础设置与变量定义 */
:root {
	--primary: #007bff;
	--primary-light: #87CEEB;
	--primary-lighter: #ADD8E6;
	--primary-hover: #0056b3;
	--border-light: #e0e0e0;
	--shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
	--transition-standard: all 0.3s ease;
  }
  
  /* 全局样式重置与基础设置 */
  * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  
  body {
	width: 100%;
	min-height: 100vh;
	font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
	line-height: 1.6;
	color: #333;
	padding-top: 32px; /* 为导航栏预留空间 */
  }
  
  /* 导航栏样式增强 */
  .nav {
	width: 100%;
	height: 37px;
	white-space: nowrap;
	position: fixed; /* 改为fixed使其在滚动时保持在顶部 */
	z-index: 999;
	top: 0;
	left: 0;
	border-bottom: 1px solid var(--border-light);
	background-color: rgba(255, 255, 255, 0.95); /* 半透明背景 */
	backdrop-filter: blur(4px); /* 毛玻璃效果 */
	box-shadow: var(--shadow-light);
	user-select: none;
  }
  
  .navitem {
	font-size: 15px;
	cursor: pointer;
	padding: 5px 35px;
	border-bottom: 2px solid transparent; /* 透明边框作为基础 */
	text-decoration: none;
	color: #666;
	white-space: nowrap;
	display: inline-block; /* 使padding正常工作 */
	transition: var(--transition-standard);
	position: relative;
  }
  
  .navitem::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--primary-light);
	transition: var(--transition-standard);
  }
  
  .navitem:hover {
	color: var(--primary);
  }
  
  .navitem:hover::after {
	width: 100%;
  }
  
  .selected {
	color: var(--primary);
	cursor: default;
  }
  
  .selected::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--primary);
  }
  
  /* 标题样式优化 */
  h1 {
	color: var(--primary);
	font-size: 30px;
	margin: 1.5rem 0;
	position: relative;
	padding-bottom: 0.5rem;
  }
  
  h1::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background-color: var(--primary-light);
  }
  
  h2 {
	color: var(--primary-light);
	font-size: 25px;
	margin: 1.2rem 0;
  }
  
  h3 {
	color: var(--primary-lighter);
	font-size: 22.5px;
	margin: 1rem 0;
  }
  
  /* 文本元素样式 */
  b, div, p:not(.navitem) {
	color: #333;
	text-decoration: none;
	font-size: 20px;
  }
  
  /* 内容容器 */
  #content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
  }
  
  /* 链接样式 */
  a:not(.navitem) {
	color: var(--primary);
	text-decoration: none;
	overflow: hidden;
	white-space: nowrap;
	position: relative;
  }
  
  a:not(.navitem)::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--primary);
	transition: var(--transition-standard);
  }
  
  a:not(.navitem):hover::after {
	width: 100%;
  }
  
  /* 图片样式 */
  img {
	width: 100%;
	border-radius: 4px;
	transition: var(--transition-standard);
	display: block; /* 移除图片底部间隙 */
  }
  
  img:hover {
	transform: scale(1.01);
	box-shadow: var(--shadow-light);
  }
  
  /* 按钮容器 */
  .btn-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 5px 0;
  }
  
  /* 按钮样式增强 */
  .btn {
	position: relative;
	border-radius: 5px;
	border: 1px solid var(--primary-light);
	width: 50%;
	text-align: center;
	color: var(--primary);
	transition: var(--transition-standard);
	padding: 5px 0;
	overflow: hidden;
	background-color: white;
  }
  
  .btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background-color: rgba(135, 206, 235, 0.1);
	transition: var(--transition-standard);
  }
  
  .btn:hover {
	border-color: var(--primary);
	color: var(--primary-hover);
	/* transform: translateY(-2px); */
	box-shadow: var(--shadow-light);
  }
  
  .btn:hover::before {
	left: 100%;
  }
  
  .btn > a {
	display: block;
	margin-top: 5px;
	margin-bottom: 5px;
	color: inherit;
  }
  
  /* 输入框样式增强 */
  .entry {
	position: relative;
	border: 1px solid var(--border-light);
	border-radius: 10px;
	width: 50%;
	left: 25%;
	text-align: center;
	font-family: Consolas, monospace;
	height: 40px;
	font-size: 20px;
	margin: 15px 0;
	padding: 0 15px;
	transition: var(--transition-standard);
  }
  
  .entry:hover {
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
  }
  
  .entry:focus {
	border-color: var(--primary);
	caret-color: var(--primary);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
	.navitem {
	  padding: 5px 15px;
	  font-size: 14px;
	}
	
	.btn, .entry {
	  width: 80%;
	  left: 10%;
	}
	
	h1 {
	  font-size: 26px;
	}
	
	h2 {
	  font-size: 22px;
	}
	
	h3 {
	  font-size: 20px;
	}
	
	b, div, p:not(.navitem) {
	  font-size: 18px;
	}
  }
  