/*页面预设置*/
@import "GreedySnake.css";
@import "Mine.css";
@import "Block.css";
@import "reset.css";
body {
  font: 100%/1.4 "幼圆", "华文隶书", "Cooper Black", italic, sans-serif;
  background: #c3c3c3;
  margin: 0;
  /*用户代理中margin为8*/
  padding: 0;
  color: #000;
  width: 100%;
}
/*蒙版*/
.mask {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
}
/*header设置*/
header {
  height: 220px;
  text-align: center;
  background-color: rgba(109, 126, 123, 0.5);
  background-image: url("../images/网页部件/横幅小尺寸.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
header .weather {
  float: right;
  margin: 10px 0 0px 30px;
  text-align: right;
}
header .weather .date {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 5px;
}
header .weather .temp {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
}
header .weather .city-selector select {
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  margin-top: 5px;
}
header .weather .city-selector select option {
  background: #333;
  color: #fff;
}
header h1 {
  display: block;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  clear: both;
  font-size: 320%;
  font-family: 'Courier New', Courier, monospace;
  position: absolute;
  top: 64px;
  left: 30px;
}
header .menu {
  position: absolute;
  bottom: 0;
  width: 100%;
}
header .menu ul {
  padding: 0 20px;
  display: flex;
  width: auto;
  background-color: rgba(119, 126, 132, 0.56);
  /* 又一种颜色书写方式 */
  margin: 0;
}
header .menu ul li {
  flex-grow: 1;
  cursor: pointer;
  color: #FFFFFF;
  line-height: 50px;
  font-size: 2em;
  border-right: solid rgba(0, 0, 0, 0) 2px;
  /* 这里占一个边框的大小但是不显示出来 */
}
header .menu ul li:hover {
  background: #999999;
  border-radius: 15px 15px 0px 0px;
  border-right: solid #505050 2px;
  box-sizing: border-box;
}
header .menu ul .selected {
  background: #c3c3c3;
  border-radius: 15px 15px 0px 0px;
  border-right: solid #505050 2px;
  box-sizing: border-box;
  transition: linear 0.3s;
}
.content {
  margin: auto;
  width: 100%;
}
/*网址导航*/
.nav {
  /*宽度自动填满*/
  /*	background: #9ED89C;*/
  text-align: center;
  /* 高度弹性：内容多时自动撑开（7.0第5次更新，原固定1000px） */
  min-height: 1000px;
}
/* 搜索部分 */
.search {
  text-align: center;
  margin: auto;
}
.search .input_form {
  margin-top: 30px;
  position: relative;
  height: 70px;
}
.search input {
  width: 70%;
  color: #3a3535;
  font-family: "黑体";
  font-size: 130%;
  border: #dedede 1px solid;
  border-radius: 20px;
  line-height: 40px;
  background-color: rgba(0, 0, 0, 0);
  transition: all 0.3s linear;
}
.search input:hover {
  border-color: #ffffff;
  line-height: 42px;
  margin-top: -2px;
}
.search input:focus {
  outline: none;
}
.search .search_submit_button {
  width: 40px;
  height: 40px;
  padding: 10px;
  border: none;
  background: none;
  position: absolute;
  top: 2px;
  left: 85%;
  transition: all 0.3s linear;
}
.search .search_submit_button:hover {
  padding: 5px;
}
.search .search_submit_button img {
  width: 100%;
}
/* 导航部分 */
.websites {
  /* 高度弹性：图标多时自动撑开（7.0第5次更新，原固定800px） */
  min-height: 800px;
  margin: auto;
  padding: 0 8%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}
/* 分类板块：常用铺满整行，其余两个一行；用框体分出边界 */
.websites .web_list {
  flex: 1 1 calc(50% - 9px);
  max-width: calc(50% - 9px);
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 18px 18px;
  background: #ffffff;
  border: 1px solid #e0e7ee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(60, 80, 100, 0.06);
}
.websites .web_list.web_list_wide {
  flex-basis: 100%;
  max-width: 100%;
}
.websites .web_list .web_list_tit {
  color: #b52a13;
  font-size: 130%;
  text-align: left;
  margin: 0;
}
.websites .web_list .white_line {
  width: 100px;
  height: 1px;
  background-color: ghostwhite;
}
/* 网址图标网格（7.0第5次更新：手机App风格，图标+名称顺序排列） */
.websites .web_list .web_icons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.websites .web_list .web_icons .web_icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 86px;
  margin: 14px 8px 6px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}
/* 图标方框 */
.websites .web_list .web_icons .web_icon .web_icon_box {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 22%;
  background-color: azure;
  background-size: cover;
  background-position: center;
  box-shadow: 0px 0px 10px 2px #999;
  position: relative;
}
/* 图标名称 */
.websites .web_list .web_icons .web_icon .web_icon_name {
  margin-top: 6px;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.3;
  color: #444;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.websites .web_list .web_icons .web_icon:hover .web_icon_box {
  box-shadow: 0px 0px 12px 3px #6bc;
}

/* 网站描述tooltip */
.web-icon-tooltip {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  line-height: 1.4;
}

.web-icon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

.web-icon-tooltip.show {
  opacity: 1;
  visibility: visible;
}
/* tools */
/* .tools标题区 */
.tools .tools_tits {
  border-bottom: 2px solid #0000004f;
  font-size: 0;
  /*为了消除空白折叠*/
  padding: 0;
}
.tools .tools_tits li {
  margin: 0;
  font-size: 20px;
  display: inline-block;
  height: 58px;
  line-height: 58px;
  color: #595959;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  /*这里设置透明的边框是为了占据位置，防止hover时整个大小会变*/
  margin-bottom: -2px;
  /*为了让li的边框和ul的边框重叠*/
  cursor: pointer;
}
.tools .tools_tits li:hover {
  /* outline: 2px solid #f43700; */
  border-bottom: 2px solid #f43700;
  color: #f43700;
}
.tools .tools_tits .selected {
  /* outline: 2px solid #f43700; */
  border-bottom: 2px solid #f43700;
  color: #f43700;
}
/* 翻译区 */
.tools .tools_content .translate {
  padding-top: 30px;
  color: #595959;
}
.tools .tools_content .translate .translate_box {
  margin: auto;
  height: 300px;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0px 0px 11px 2px #999;
  overflow: hidden;
  position: relative;
}
.tools .tools_content .translate .translate_box .choose_lang {
  border-bottom: 2px solid #0000004f;
  margin: 0;
}
.tools .tools_content .translate .translate_box .choose_lang li {
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  height: 38px;
  line-height: 38px;
  color: inherit;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  /*这里设置透明的边框是为了占据位置，防止hover时整个大小会变*/
  margin-bottom: -2px;
  /*为了让li的边框和ul的边框重叠*/
}
.tools .tools_content .translate .translate_box .choose_lang li:hover {
  /* outline: 2px solid #f43700; */
  border-bottom: 2px solid #1800f4;
  color: #1800f4;
}
.tools .tools_content .translate .translate_box .choose_lang li.selected {
  border-bottom: 2px solid #1800f4;
  color: #1800f4;
  font-weight: bold;
}
.tools .tools_content .translate .translate_box .origin_txt,
.tools .tools_content .translate .translate_box .translated_txt {
  font-family: "黑体";
  color: #444444;
  font-size: 128%;
  /* background-color: aliceblue; */
  height: 79%;
  /*这里相对的是整个translate_box，上面还有兄弟元素choose_lang，所以填100%话总高度就会超出*/
  width: 47%;
  /*按道理是一边一半，但是都设成50%却装不下*/
  margin: 0;
  background: transparent;
  float: left;
  overflow: hidden;
  border: none;
  padding: 10px;
}
.tools .tools_content .translate .translate_box .origin_txt {
  border-right: solid 2px gray;
  /*单设置个右边框，做成分割线*/
}
.tools .tools_content .translate .translate_box .origin_txt:focus,
.tools .tools_content .translate .translate_box .translated_txt:focus {
  outline: none;
}
.tools .tools_content .translate .translate_box .copy_img {
  position: absolute;
  text-align: center;
  padding: 10px;
  width: 22px;
  height: 22px;
  bottom: 14px;
  right: 26px;
  border-radius: 50%;
  transition: all 0.2s linear;
  cursor: pointer;
}
.tools .tools_content .translate .translate_box .copy_img img {
  width: 100%;
  /*想对于内容盒，也就是上面copy_img是多少它就是多少*/
  height: 100%;
}
.tools .tools_content .translate .translate_box .copy_img:hover {
  background-color: darkgray;
}
/*文字识别区*/
.tools .tools_content .text_rec {
  padding-top: 30px;
  color: #595959;
}
.tools .tools_content .text_rec .rec_box {
  margin: auto;
  height: 300px;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0px 0px 11px 2px #999;
  overflow: hidden;
  position: relative;
}
.tools .tools_content .text_rec .rec_box .choose_file {
  height: 38px;
  border-bottom: 2px solid #0000004f;
  padding: 0 0 0 40px;
}
/* .choose_file内部 */
.choose_file input[type="file"] {
  float: left;
  height: 100%;
  line-height: 100%;
  color: #595959;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 7px 0 0 15px;
}
.choose_file input[type="file"]:focus {
  outline: none;
}
.choose_file .choose_file_radiobutton {
  display: none;
  /* 做成自动识别的，就不需要选择这个了 */
  float: left;
  height: 100%;
  line-height: 100%;
  color: inherit;
}
.choose_file input[type="Button"] {
  height: 25px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 7px;
  border: solid 1px #777;
  border-radius: 2px;
}
.choose_file input[type="Button"]:focus {
  outline: none;
}
.tools .tools_content .text_rec .rec_box .rec_text {
  font-family: "黑体";
  color: #444444;
  font-size: 128%;
  height: 79%;
  /*这里相对的是整个translate_box，上面还有兄弟元素choose_lang，所以填100%话总高度就会超出*/
  width: 97%;
  margin: 0;
  background: transparent;
  overflow: hidden;
  border: none;
  padding: 10px;
}
.tools .tools_content .text_rec .rec_box .rec_text:focus {
  outline: none;
}
.tools .tools_content .text_rec .rec_box .copy_img {
  position: absolute;
  text-align: center;
  padding: 10px;
  width: 22px;
  height: 22px;
  bottom: 14px;
  right: 26px;
  border-radius: 50%;
  transition: all 0.2s linear;
  cursor: pointer;
}
.tools .tools_content .text_rec .rec_box .copy_img img {
  width: 100%;
  /*想对于内容盒，也就是上面copy_img是多少它就是多少*/
  height: 100%;
}
.tools .tools_content .text_rec .rec_box .copy_img:hover {
  background-color: darkgray;
}
/* 游戏分页，搬运tools */
.games .games_tits {
  border-bottom: 2px solid #0000004f;
  font-size: 0;
  /*为了消除空白折叠*/
  padding: 0;
}
.games .games_tits li {
  margin: 0;
  font-size: 20px;
  display: inline-block;
  height: 58px;
  line-height: 58px;
  color: #595959;
  padding: 0 15px;
  border-bottom: 2px solid transparent;
  /*这里设置透明的边框是为了占据位置，防止hover时整个大小会变*/
  margin-bottom: -2px;
  /*为了让li的边框和ul的边框重叠*/
  cursor: pointer;
}
.games .games_tits li:hover {
  /* outline: 2px solid #f43700; */
  border-bottom: 2px solid #f43700;
  color: #f43700;
}
.games .games_tits .selected {
  /* outline: 2px solid #f43700; */
  border-bottom: 2px solid #f43700;
  color: #f43700;
}
/*留言板*/
.message_board {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 25px auto 0;
  padding: 22px 24px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}
.close_button {
  /*用的都是相对位置，可以作为弹出框通用button，所以不加.message_board*/
  text-align: center;
  font-size: 0.7em;
  cursor: pointer;
  border: 2px dashed #000;
  width: 20px;
  height: 20px;
  border-color: #000000;
  border-radius: 50%;
  /*通过设置圆角使矩形变圆形*/
  position: absolute;
  top: -12px;
  left: 387px;
  background-color: #fbfbfb;
}
.message_board .message_board_tips {
  width: auto;
  max-width: none;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid #2196f3;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  text-align: left;
}
.message_board .input_board {
  display: block;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 150px;
  padding: 12px 14px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  background: #fafbfc;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.message_board .input_board:focus {
  background: #fff;
  border-color: #2196f3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
}
.message_board .submit_button {
  display: block;
  margin: 14px 0 0 auto;
  padding: 9px 34px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  background: #4A90D9;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.message_board .submit_button:hover {
  background: #357ABD;
}
.message_board .submit_button:disabled {
  opacity: 0.6;
  cursor: default;
}
.success_submit_board {
  font-size: 1.5em;
  padding: 35px 0 0 13px;
  display: none;
  width: 253px;
  height: 66px;
  background: #fbfbfb;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
/*这是页脚*/
.footer {
  padding: 10px 0;
  background: #abb1b1;
  font-size: 1em;
  text-align: center;
  font-family: Verdana, Geneva, sans-serif;
  clear: both;
  /*防止高度坍塌造成页脚跑到浮动内容上面了*/
  color: #eed;
}
.former_vision li {
  display: inline;
}

/* ================= 7.0 新增样式：用户区 / 登录注册 / 添加网址 / 留言列表 ================= */

/* 头部用户区（左上角） */
header .user-area {
	position: absolute;
	top: 14px;
	left: 20px;
	color: #fff;
	font-size: 14px;
	z-index: 5;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
header .user-area a {
	color: #ffe97f;
	margin: 0 4px;
}
header .user-area a:hover {
	text-decoration: underline;
}
header .user-area .user-area-sep {
	margin: 0 2px;
	color: rgba(255,255,255,0.7);
}
header .user-area .role-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	font-size: 12px;
	color: #fff;
	background: #e67e22;
	border-radius: 10px;
}

/* 登录/注册弹窗（复用排行榜弹窗外壳样式） */
.auth-content {
	min-width: 300px;
}
.auth-tip {
	font-size: 13px;
	color: #666;
	margin: 4px 0 10px 0;
}
.auth-tip a {
	color: #2196f3;
}
.auth-tip-warn {
	color: #e67e22;
	font-weight: bold;
}
.auth-form input {
	display: block;
	width: 240px;
	margin: 10px auto;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-family: "幼圆", "华文隶书", sans-serif;
}
.auth-form input:focus {
	border-color: #2196f3;
	outline: none;
}
.auth-error {
	color: #f44336;
	font-size: 13px;
	min-height: 18px;
	margin: 4px 0;
}
.save-as-tip {
	font-size: 13px;
	color: #666;
	margin: 8px 0;
}

/* 管理员添加网址入口 */
.admin-bar {
	text-align: center;
	margin-top: 15px;
}
.admin-bar #add-web-btn {
	padding: 8px 22px;
	font-size: 15px;
	font-family: "幼圆", "华文隶书", sans-serif;
	color: #fff;
	background: #2196f3;
	border: none;
	border-radius: 18px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(33,150,243,0.4);
	transition: all 0.2s;
}
.admin-bar #add-web-btn:hover {
	background: #1976d2;
	transform: translateY(-1px);
}

/* 添加网址弹窗 */
.add-web-content {
	width: 92vw;
	max-width: 430px;
	min-width: 0;
	text-align: left;
}
.add-web-content h3 {
	text-align: center;
}
.add-web-form .form-row {
	margin: 10px 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.add-web-form .form-row > label:first-child {
	width: 60px;
	text-align: right;
	margin-right: 10px;
	font-size: 14px;
	color: #333;
}
.add-web-form input[type=text],
.add-web-form select {
	flex: 1;
	min-width: 220px;
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-family: "幼圆", "华文隶书", sans-serif;
}
.add-web-form input[type=text]:focus,
.add-web-form select:focus {
	border-color: #2196f3;
	outline: none;
}
.add-web-form #add-category-new {
	flex: 1;
	margin-left: 8px;
}
.add-web-form .radio-label {
	margin-right: 14px;
	font-size: 14px;
	cursor: pointer;
}
.add-web-form .radio-label input {
	vertical-align: -2px;
	margin-right: 4px;
}
/* 预设图案网格 */
.preset-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 160px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px;
	width: 100%;
}
.preset-grid img {
	width: 34px;
	height: 34px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 6px;
	transition: all 0.15s;
}
.preset-grid img:hover {
	transform: scale(1.1);
}
.preset-grid img.selected {
	border-color: #2196f3;
	box-shadow: 0 0 4px rgba(33,150,243,0.6);
}
.preset-loading {
	color: #999;
	font-size: 13px;
}
/* 上传图标行 */
.upload-row input[type=file] {
	font-size: 13px;
}

/* 留言列表 */
.message .message_list_area {
	max-width: 800px;
	margin: 25px auto;
	text-align: left;
}
.message .message_list_area h4 {
	text-align: center;
	font-size: 1.2em;
	margin-bottom: 12px;
	color: #333;
}
.message_list .message_item {
	background: #fff;
	border-radius: 8px;
	padding: 10px 16px;
	margin-bottom: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.message_list .message_meta {
	font-size: 12px;
	color: #888;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.message_list .message_meta .msg-source {
	font-size: 16px;
	line-height: 1;
}
.message_list .message_meta .msg-user {
	font-weight: bold;
	color: #2196f3;
}
.message_list .message_meta .msg-time {
	color: #aaa;
	font-size: 11px;
}
.message_list .message_meta .msg-del-btn {
	margin-left: auto;
	color: #e64340;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 10px;
	background-color: #fde8e8;
	transition: background 0.2s;
}
.message_list .message_meta .msg-del-btn:hover {
	background-color: #fbd1d1;
}
.message_list .message_content {
	font-size: 14px;
	color: #333;
	word-break: break-all;
	line-height: 1.5;
}
.message .no-login-tip {
	text-align: center;
	color: #666;
	padding: 15px 0;
}
.message .no-login-tip a {
	color: #2196f3;
}

/* 导航加载失败提示 */
.load-error {
	text-align: center;
	color: #e74c3c;
	padding: 40px 0;
	font-size: 15px;
}

/* ================= 7.0第2次更新：翻译语言栏 ================= */
.translate_lang_bar {
	margin-bottom: 8px;
	font-size: 15px;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
}
.translate_lang_bar .from_lang {
	padding: 4px 14px;
	background: #e3f2fd;
	border: 1px solid #90caf9;
	border-radius: 15px;
}
.translate_lang_bar .lang_arrow {
	margin: 0 10px;
	font-size: 18px;
	color: #666;
}
.translate_lang_bar .target_lang {
	padding: 5px 12px;
	font-size: 14px;
	font-family: "幼圆", "华文隶书", sans-serif;
	border: 1px solid #90caf9;
	border-radius: 15px;
	background: #fff;
	cursor: pointer;
	outline: none;
}
.translate_lang_bar .target_lang:focus {
	border-color: #2196f3;
}
.translate_lang_bar .enter_tip {
	margin-left: 14px;
	font-size: 12px;
	color: #999;
}

/* ================= 7.0第5次更新：编辑模式开关（管理员） ================= */
/* 编辑网址按钮（与添加按钮并排，胶囊造型一致） */
#edit-mode-btn {
	padding: 7px 20px;
	margin-left: 8px;
	font-size: 15px;
	font-family: "幼圆", "华文隶书", sans-serif;
	color: #ff9800;
	background: #fff;
	border: 1px solid #ff9800;
	border-radius: 18px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(255,152,0,0.25);
	transition: all 0.2s;
}
#edit-mode-btn:hover {
	background: #fff3e0;
	transform: translateY(-1px);
}
#edit-mode-btn.active {
	background: #ff9800;
	color: #fff;
	box-shadow: 0 2px 6px rgba(255,152,0,0.5);
}
/* ================= 7.0第4次更新：网址编辑/删除（管理员） ================= */
/* 图标角标：仅进入编辑模式（.websites.editing）时显示 */
.site-admin-btn {
	position: absolute;
	top: -7px;
	width: 18px;
	height: 18px;
	line-height: 16px;
	text-align: center;
	border-radius: 50%;
	color: #fff;
	font-size: 11px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.35);
	z-index: 5;
	user-select: none;
}
.websites.editing .site-admin-btn {
	opacity: 1;
	pointer-events: auto;
}
.site-edit-btn {
	left: -7px;
	background: #2196f3;
}
.site-del-btn {
	right: -7px;
	background: #e74c3c;
}
.site-admin-btn:hover {
	transform: scale(1.15);
}
/* 编辑模式下点击图标不跳转，鼠标提示编辑中 */
.websites.editing .web_icon {
	cursor: default;
}

/* 编辑弹窗当前图标预览 */
.edit-icon-preview-row .edit-icon-preview {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	vertical-align: middle;
}

/* 删除确认弹窗 */
.site-del-tip {
	text-align: center;
	color: #555;
	font-size: 14px;
	margin: 10px 0 4px;
}
.score-buttons .del-btn {
	background: #e74c3c;
	color: #fff;
}
.score-buttons .del-btn:hover {
	background: #c0392b;
}
/* 编辑弹窗按钮配色 */
#edit-web-submit {
	background: #2196f3;
	color: #fff;
}
#edit-web-submit:hover {
	background: #1976d2;
}
/* 上传行样式兼容新增/编辑弹窗的类名 */
.add-upload-row input[type=file],
.edit-upload-row input[type=file] {
        font-size: 13px;
}

/* 公式识别（7.0第8次更新） */
.tools .tools_content .formula_rec {
  padding-top: 30px;
  color: #595959;
}
.formula_rec .formula_box {
  max-width: 980px;
  margin: 0 auto;
}
.formula_drop {
  position: relative;
  border: 2px dashed #c8c8c8;
  border-radius: 10px;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  background: #fbfbfb;
  transition: border-color .2s, background .2s;
}
.formula_drop:hover,
.formula_drop.dragging {
  border-color: #f43700;
  background: #fff6f3;
}
.formula_drop input[type="file"] {
  display: none;
}
.formula_drop_text {
  margin: 0;
  font-size: 16px;
  color: #595959;
}
.formula_drop_tip {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #9a9a9a;
}
.formula_body {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}
.formula_body .formula_side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.formula_preview {
  display: none;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #ffffff;
}
.formula_status {
  margin-top: 8px;
  min-height: 20px;
  font-size: 14px;
  color: #8a8a8a;
}
.formula_status.loading { color: #2d7ef7; }
.formula_status.ok { color: #1a9c4b; }
.formula_status.error { color: #d8301b; }
.formula_latex {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  padding: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  outline: none;
  resize: vertical;
}
.formula_latex:focus {
  border-color: #f43700;
}
.formula_render {
  margin-top: 10px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #ffffff;
  overflow-x: auto;
  font-size: 18px;
  color: #222222;
}
.formula_actions {
  margin-top: 14px;
  text-align: right;
}
.formula_actions button {
  margin-left: 10px;
  padding: 8px 18px;
  font-size: 14px;
  color: #ffffff;
  background: #f43700;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: opacity .2s;
}
.formula_actions button:hover {
  opacity: .85;
}
.formula_actions button#formula-clear {
  background: #8c8c8c;
}
@media (max-width: 720px) {
  .formula_body {
    flex-direction: column;
  }
}

/* 提取文字（SimpleTex 通用图片识别） */
.tools .tools_content .text_rec {
  padding-top: 30px;
  color: #595959;
}
.text_rec .formula_box {
  max-width: 1080px;
  margin: 0 auto;
}
.text_rec .formula_preview {
  max-height: 300px;
}
.text_rec .text_result {
  flex: 1;
  min-height: 300px;
  font-family: "微软雅黑", "Microsoft YaHei", "黑体", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
.formula_actions button.text_btn_clear {
  background: #8c8c8c;
}
@media (max-width: 720px) {
  .text_rec .text_result {
    min-height: 200px;
  }
}

/* 和弦查询（与小程序逻辑一致） */
.tools .tools_content .chord {
  padding-top: 30px;
  color: #595959;
}
.chord_box {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.chord_panel {
  background: #ffffff;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  padding: 16px 18px;
  box-sizing: border-box;
}
.chord_panel_wide {
  grid-column: 1 / -1;
}
.chord_panel_head {
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid #f43700;
  font-size: 15px;
  font-weight: bold;
  color: #3a3a3a;
}
.chord_pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chord_field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #595959;
}
.chord_field select {
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  color: #333333;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}
.chord_field select:focus {
  border-color: #f43700;
}
.chord_result {
  margin-top: 14px;
}
.chord_name_row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.chord_name {
  font-size: 18px;
  color: #333333;
}
.chord_symbol {
  font-size: 22px;
  font-weight: bold;
  color: #f43700;
}
.chord_notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.chord_note {
  min-width: 64px;
  padding: 8px 10px;
  text-align: center;
  background: #f5f8fb;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
}
.chord_note.is_root {
  background: #fff1ec;
  border-color: #f8c2ad;
}
.chord_note_name {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}
.chord_note_solfege {
  display: block;
  font-size: 13px;
  color: #f43700;
}
.chord_note_interval {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a929c;
}
/* 五度圈 */
.chord_circle {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.chord_circle_ring {
  position: absolute;
  border: 1px dashed #d7e2ec;
  border-radius: 50%;
}
.chord_circle_ring.ring_outer {
  inset: 8%;
}
.chord_circle_ring.ring_inner {
  inset: 24%;
}
.chord_circle_center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  letter-spacing: 2px;
  color: #a4b0bd;
}
.chord_circle_note {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f8fb;
  border: 1px solid #e3eaf2;
  font-size: 13px;
  color: #48586a;
  cursor: pointer;
  user-select: none;
  transition: background .2s, color .2s, border-color .2s;
}
.chord_circle_note:hover {
  background: #ffece5;
  border-color: #f8b79f;
}
.chord_circle_note.is_root {
  background: #f43700;
  border-color: #f43700;
  color: #ffffff;
}
.chord_circle_note.note_minor {
  width: 32px;
  height: 32px;
  font-size: 12px;
  background: #fbfcfd;
  color: #7c8b9a;
}
.chord_circle_tip {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #a4a4a4;
}
/* 调内和弦 */
.scale_chords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.scale_chord {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 8px 10px;
  background: #f5f8fb;
  border: 1px solid #e3eaf2;
  border-radius: 8px;
}
.scale_chord.is_main {
  background: #fff1ec;
  border-color: #f8c2ad;
}
.scale_chord_roman {
  font-size: 12px;
  color: #8a929c;
}
.scale_chord_name {
  margin-top: 2px;
  font-size: 15px;
  font-weight: bold;
  color: #333333;
}
/* 常用进行 */
.prog_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prog_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f7fafc;
  border-radius: 8px;
}
.prog_name {
  flex: 0 0 46px;
  font-size: 13px;
  font-weight: bold;
  color: #f43700;
}
.prog_text {
  font-size: 14px;
  color: #333333;
}
.prog_detail {
  font-size: 13px;
  color: #8a929c;
}
@media (max-width: 720px) {
  .chord_box {
    grid-template-columns: 1fr;
  }
}

/* 单位换算（7.0第11次更新） */
.tools .tools_content .unit_conv {
  padding-top: 30px;
  color: #595959;
}
.unit_conv .conv_box {
  max-width: 780px;
  margin: 0 auto;
}
.conv_cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}
.conv_cat {
  padding: 7px 18px;
  font-size: 14px;
  color: #595959;
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  cursor: pointer;
  transition: all .2s;
}
.conv_cat:hover {
  border-color: #f43700;
  color: #f43700;
}
.conv_cat.selected {
  background: #f43700;
  border-color: #f43700;
  color: #ffffff;
}
.conv_body {
  background: #fbfbfb;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 24px 28px;
}
.conv_row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.conv_sel {
  flex: 0 0 180px;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  color: #333333;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}
.conv_sel:focus {
  border-color: #f43700;
}
.conv_input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  font-size: 16px;
  color: #333333;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}
.conv_input:focus {
  border-color: #f43700;
}
.conv_input[readonly] {
  background: #f5f5f5;
  color: #1a9c4b;
  font-weight: 600;
}
.conv_swap {
  text-align: center;
  font-size: 22px;
  color: #9a9a9a;
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
  transition: color .2s;
}
.conv_swap:hover {
  color: #f43700;
}
.conv_table {
  margin-top: 20px;
  max-height: 260px;
  overflow-y: auto;
}
.conv_table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.conv_table th,
.conv_table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}
.conv_table th {
  background: #f5f5f5;
  color: #595959;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.conv_table td:last-child {
  color: #333333;
  font-family: Consolas, monospace;
}
@media (max-width: 640px) {
  .conv_row {
    flex-direction: column;
  }
  .conv_sel, .conv_input {
    width: 100%;
    flex: none;
  }
}

/* 密码大全（7.0第12次更新） */
.tools .tools_content .pwd_book {
  padding-top: 24px;
  color: #595959;
}
.pwd_book .pwd_box {
  max-width: 1080px;
  margin: 0 auto;
}
.pwd_lock {
  padding: 60px 20px;
  text-align: center;
  font-size: 16px;
  color: #8a8a8a;
  background: #fbfbfb;
  border: 1px dashed #d5d5d5;
  border-radius: 10px;
}
.pwd_bar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.pwd_bar input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}
.pwd_bar input:focus { border-color: #f43700; }
.pwd_bar button {
  padding: 0 18px;
  font-size: 14px;
  color: #ffffff;
  background: #f43700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.pwd_table_wrap {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #ffffff;
}
.pwd_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pwd_table th, .pwd_table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  word-break: break-all;
}
.pwd_table th {
  position: sticky;
  top: 0;
  background: #f7f7f7;
  color: #595959;
  font-weight: 600;
  white-space: nowrap;
}
.pwd_table .pwd_name { font-weight: 600; color: #333; white-space: nowrap; }
.pwd_pwdcell { white-space: nowrap; }
.pwd_pwdcell .pwd_val { font-family: Consolas, monospace; color: #333; }
.pwd_eye, .pwd_copy {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 13px;
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
}
.pwd_eye:hover, .pwd_copy:hover { border-color: #f43700; }
.pwd_ops { white-space: nowrap; }
.pwd_ops button {
  margin-right: 6px;
  padding: 4px 12px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.pwd_edit { background: #1976d2; color: #fff; }
.pwd_del { background: #d8301b; color: #fff; }
.pwd_empty { text-align: center; color: #9a9a9a; padding: 40px 0 !important; }

/* 密码记录弹窗 */
.pwd_modal_mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.pwd_modal {
  width: 420px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.pwd_modal h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #333;
}
.pwd_form label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #777;
}
.pwd_form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}
.pwd_form input:focus { border-color: #f43700; }
.pwd_modal_err {
  min-height: 18px;
  font-size: 13px;
  color: #d8301b;
}
.pwd_modal_btns {
  text-align: right;
  margin-top: 8px;
}
.pwd_modal_btns button {
  margin-left: 10px;
  padding: 8px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #e8e8e8;
  color: #555;
}
.pwd_modal_btns button.primary {
  background: #f43700;
  color: #ffffff;
}

/* 密码分类分组 + 备注（7.0第15次更新） */
.pwd_cat_row td {
  background: #eef3f8 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid #dde5ee !important;
}
.pwd_cat_name {
  font-size: 15px;
  font-weight: 700;
  color: #2c5f9e;
}
.pwd_cat_count {
  margin-left: 10px;
  font-size: 12px;
  color: #9a9a9a;
}
.pwd_cat_edit {
  margin-left: 10px;
  padding: 1px 8px;
  font-size: 13px;
  background: transparent;
  border: 1px solid #b8c6d8;
  border-radius: 4px;
  color: #2c5f9e;
  cursor: pointer;
}
.pwd_cat_edit:hover { border-color: #f43700; color: #f43700; }
.pwd_notecell {
  cursor: pointer;
  max-width: 200px;
}
.pwd_notecell:hover { background: #fffbf5; }
.pwd_note_val { color: #555; }
.pwd_note_empty { color: #ccc; }
.pwd_note_input {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  font-size: 13px;
  border: 1px solid #f43700;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}
.pwd_form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  height: 34px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  outline: none;
  background: #fff;
  box-sizing: border-box;
}
.pwd_form select:focus { border-color: #f43700; }
.pwd_notes_box {
  margin-top: 20px;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
}
.pwd_notes_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pwd_notes_head span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.pwd_notes_save {
  padding: 6px 16px;
  font-size: 13px;
  color: #fff;
  background: #f43700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.pwd_notes {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  color: #333;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
.pwd_notes:focus { border-color: #f43700; }
.pwd_notes_status {
  min-height: 18px;
  margin-top: 6px;
  font-size: 13px;
  color: #1a9c4b;
}

/* ============ 手机端适配（7.0第16次更新；nav8.0 按 360~430px 主流机型强化，PC端不受影响） ============ */
@media (max-width: 768px) {
  /* 全局：手机无"幼圆/华文隶书"，回退系统字体；禁止双击缩放错位 */
  body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  }
  input, textarea, select, button {
    font-family: inherit;
  }
  /* 顶部：标题改流式布局，避免与天气/用户区/菜单互相重叠 */
  header {
    height: auto;
    min-height: 0;
    padding: 34px 0 0;
  }
  header .user-area {
    top: 6px;
    left: 8px;
    font-size: 13px;
  }
  header .weather {
    position: absolute;
    top: 6px;
    right: 8px;
    margin: 0;
    float: none;
  }
  header .weather .date,
  header .weather .temp {
    font-size: 12px;
    margin: 2px 0;
  }
  header h1 {
    position: static;
    font-size: 6.5vw;
    margin: 18px 10px 14px;
    text-align: center;
  }
  header .menu {
    position: static;
  }
  header .menu ul {
    padding: 0 6px;
    flex-wrap: nowrap;
  }
  header .menu ul li {
    font-size: 1.15em;
    line-height: 42px;
  }
  /* 搜索框：加宽，按钮改为右侧相对定位 */
  .search .input_form {
    margin-top: 18px;
    height: 56px;
  }
  .search input {
    width: 84%;
    font-size: 16px; /* ≥16px 防止 iOS 聚焦自动放大 */
    line-height: 38px;
  }
  .search .search_submit_button {
    left: auto;
    right: 8%;
    top: 0;
  }
  /* 导航区留白收紧 */
  .websites {
    padding: 0 3%;
    min-height: 400px;
  }
  /* 窄屏不再两列，全部铺满 */
  .websites .web_list,
  .websites .web_list.web_list_wide {
    flex-basis: 100%;
    max-width: 100%;
  }
  /* 图标格：每行4个，间距均分 */
  .websites .web_list .web_icons .web_icon {
    width: calc((100% - 32px) / 4);
    margin: 10px 4px 4px;
  }
  .websites .web_list .web_icons .web_icon .web_icon_box {
    width: 52px;
    height: 52px;
  }
  /* 工具/游戏页标签：单行横向滑动，不挤成两行 */
  .tools .tools_tits,
  .games .games_tits {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .tools .tools_tits li,
  .games .games_tits li {
    font-size: 15px;
    height: 44px;
    line-height: 44px;
    padding: 0 12px;
  }
  /* 翻译区：双栏改上下堆叠，固定高改为自适应 */
  .tools .tools_content .translate .translate_box {
    height: auto;
    padding-bottom: 10px;
  }
  .tools .tools_content .translate .translate_box .origin_txt,
  .tools .tools_content .translate .translate_box .translated_txt {
    width: 100%;
    height: 110px;
    float: none;
    box-sizing: border-box;
    font-size: 16px;
  }
  .tools .tools_content .translate .translate_box .origin_txt {
    border-right: none;
    border-bottom: solid 2px gray;
  }
  .translate_lang_bar {
    flex-wrap: wrap;
    font-size: 14px;
  }
  .translate_lang_bar .enter_tip {
    display: none;
  }
  /* 文字识别区：高度自适应 */
  .tools .tools_content .text_rec .rec_box {
    height: auto;
    padding-bottom: 10px;
  }
  .tools .tools_content .text_rec .rec_box .rec_text {
    height: 160px;
    font-size: 16px;
  }
  .choose_file input[type="file"] {
    padding-left: 4px;
    font-size: 13px;
  }
  /* 留言板关闭按钮收进屏幕内 */
  .close_button {
    left: auto;
    right: 6px;
  }
  /* 游戏区限制不超屏 */
  .games canvas {
    max-width: 100%;
  }
  /* 密码/留言等表格允许横向滚动 */
  .pwd_box, .bd_box {
    width: 94%;
    padding: 14px 10px;
  }
}

@media (max-width: 480px) {
  /* 更小屏：图标每行3个 */
  .websites .web_list .web_icons .web_icon {
    width: calc((100% - 24px) / 3);
  }
  header .menu ul li {
    font-size: 1.05em;
    line-height: 38px;
  }
  header h1 {
    font-size: 7vw;
  }
  /* 小屏留言板收窄内边距 */
  .message_board {
    width: 94%;
    padding: 16px 14px 14px;
  }
  .message_board .input_board {
    height: 130px;
  }
}

/* ==================== 生日管理（网页端） ==================== */
.bd_box {
	width: 90%;
	max-width: 760px;
	margin: 20px auto 40px;
	background-color: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}
.bd_tip {
	font-size: 13px;
	color: #999;
	margin-bottom: 14px;
}
.bd_form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}
.bd_form input,
.bd_form select {
	flex: 1;
	min-width: 120px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 14px;
}
.bd_add_btn {
	height: 38px;
	padding: 0 22px;
	border: none;
	border-radius: 6px;
	background: linear-gradient(135deg, #E91E63, #C2185B);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
.bd_empty {
	text-align: center;
	color: #999;
	font-size: 14px;
	padding: 26px 0;
	margin: 0;
}
.bd_item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 4px;
	border-bottom: 1px solid #f2f2f2;
}
.bd_item:last-child {
	border-bottom: none;
}
.bd_item_left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.bd_item_name {
	font-size: 15px;
	font-weight: bold;
	color: #333;
}
.bd_item_sub {
	font-size: 12px;
	color: #999;
}
.bd_item_right {
	display: flex;
	align-items: center;
	gap: 14px;
}
.bd_item_days {
	font-size: 14px;
	font-weight: bold;
	color: #E91E63;
}
.bd_today {
	background-color: #E91E63;
	color: #fff;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
}
.bd_item_del {
	font-size: 12px;
	color: #e64340;
	background-color: #fde8e8;
	padding: 4px 10px;
	border-radius: 6px;
	cursor: pointer;
}
.bd_item_del:hover {
	background-color: #fbd1d1;
}

/* ==================== 管理员数据表格（admin.html 复用） ==================== */
.admin_table_wrap {
	overflow-x: auto;
}
.admin_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.admin_table th,
.admin_table td {
	border-bottom: 1px solid #f0f0f0;
	padding: 9px 8px;
	text-align: left;
	white-space: nowrap;
}
.admin_table th {
	background-color: #fafafa;
	color: #666;
}
.admin_table .admin_md5 {
	font-family: monospace;
	color: #888;
	font-size: 12px;
}
.admin_note {
	font-size: 12px;
	color: #aaa;
	margin: 10px 0 0;
}

/* ==================== 摩斯密码（网页端，与小程序风格一致） ==================== */
.morse_box {
	width: 90%;
	max-width: 760px;
	margin: 20px auto 40px;
	background-color: #fff;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}
.morse_modes {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}
.morse_mode_btn {
	padding: 8px 16px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	background-color: #f6f8fa;
	color: #555;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
}
.morse_mode_btn:hover {
	border-color: #3498DB;
	color: #3498DB;
}
.morse_mode_btn.active {
	background-color: #3498DB;
	border-color: #3498DB;
	color: #fff;
}
.morse_chinese_tip {
	display: block;
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
	cursor: pointer;
	user-select: none;
}
.morse_input {
	width: 100%;
	height: 120px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.6;
	resize: vertical;
	box-sizing: border-box;
	outline: none;
	font-family: inherit;
}
.morse_input:focus {
	border-color: #3498DB;
}
.morse_actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 16px;
	font-size: 13px;
	color: #999;
}
.morse_btn {
	padding: 7px 14px;
	margin-left: 6px;
	border: none;
	border-radius: 6px;
	background-color: #3498DB;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}
.morse_btn.light {
	background-color: #eef3f7;
	color: #3498DB;
}
.morse_btn.playing {
	background-color: #E74C3C;
	color: #fff;
}
.morse_btn:hover {
	opacity: 0.9;
}
.morse_result_label {
	font-size: 13px;
	color: #999;
	margin-bottom: 6px;
}
.morse_output {
	min-height: 80px;
	padding: 12px;
	background-color: #eaf4fb;
	border-left: 4px solid #3498DB;
	border-radius: 8px;
	font-family: "Courier New", monospace;
	font-size: 15px;
	color: #2c3e50;
	line-height: 1.7;
	word-break: break-all;
	white-space: pre-wrap;
}
.morse_hint {
	margin-top: 16px;
	padding: 12px;
	background-color: #fff8e1;
	border-left: 4px solid #F39C12;
	border-radius: 8px;
}
.morse_hint p {
	margin: 4px 0;
	font-size: 12px;
	color: #888;
	line-height: 1.7;
}
@media (max-width: 640px) {
	.morse_box {
		width: 100%;
		padding: 14px;
		margin: 10px auto 20px;
	}
	.morse_mode_btn {
		flex: 1;
		padding: 8px 6px;
		font-size: 13px;
	}
	.morse_input {
		height: 100px;
		font-size: 14px;
	}
	.morse_actions {
		justify-content: flex-start;
	}
	.morse_btn {
		margin-left: 0;
		margin-right: 6px;
	}
}

/* ==================== 留言回复（管理员单向回复） ==================== */
.message_list .message_item.message-unread {
	border-left: 4px solid #F39C12;
	background: #fffdf5;
}
.message_list .message_meta .msg-reply-btn {
	margin-left: auto;
	color: #2196f3;
	cursor: pointer;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 10px;
	background-color: #e3f2fd;
	transition: background 0.2s;
}
.message_list .message_meta .msg-reply-btn:hover {
	background-color: #cfe8fb;
}
.msg-reply-block {
	margin-top: 8px;
	padding: 8px 12px;
	background-color: #eef6ff;
	border-left: 3px solid #2196f3;
	border-radius: 6px;
}
.msg-reply-head {
	font-size: 12px;
	color: #5a8ab5;
	margin-bottom: 4px;
}
.msg-reply-head .msg-reply-by {
	font-weight: bold;
	color: #2196f3;
}
.msg-reply-content {
	font-size: 13px;
	color: #333;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-all;
}
.msg-reply-foot {
	text-align: right;
	margin-top: 4px;
}
.msg-reply-foot .msg-reply-edit {
	font-size: 12px;
	color: #2196f3;
	cursor: pointer;
}
.msg-reply-foot .msg-reply-edit:hover {
	text-decoration: underline;
}
.reply-modal-mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1000;
}
.reply-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 460px;
	background: #fff;
	border-radius: 10px;
	padding: 18px;
	box-sizing: border-box;
	z-index: 1001;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.reply-modal-title {
	font-size: 16px;
	font-weight: bold;
	color: #2c3e50;
	margin-bottom: 10px;
}
.reply-modal textarea {
	width: 100%;
	height: 110px;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #dde3e9;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	font-family: inherit;
	resize: vertical;
	outline: none;
}
.reply-modal textarea:focus {
	border-color: #2196f3;
}
.reply-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 12px;
}
.reply-modal-actions button {
	padding: 7px 16px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	background: #eef3f7;
	color: #555;
}
.reply-modal-actions .btn-primary {
	background: #2196f3;
	color: #fff;
}
.reply-modal-actions button:hover {
	opacity: 0.9;
}

/* ==================== 投稿查询（期刊库） ==================== */
.journals_box {
	width: 94%;
	max-width: 1080px;
	margin: 20px auto 40px;
	background: #fff;
	border-radius: 10px;
	padding: 18px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}
.journals_bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}
.journals_cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.journals_cat {
	padding: 6px 14px;
	border-radius: 16px;
	background: #f2f5f8;
	color: #5b6b7c;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
}
.journals_cat:hover {
	background: #e4eef7;
	color: #4A90D9;
}
.journals_cat.active {
	background: #4A90D9;
	color: #fff;
}
.journals_tools {
	display: flex;
	align-items: center;
	gap: 10px;
}
.journals_count {
	font-size: 12px;
	color: #999;
}
.journals_btn {
	padding: 7px 14px;
	border: none;
	border-radius: 6px;
	background: #4A90D9;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}
.journals_btn.light {
	background: #eef3f7;
	color: #4A90D9;
}
.journals_btn.danger {
	background: #E74C3C;
}
.journals_btn:hover {
	opacity: 0.9;
}
.journals_list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	max-height: 62vh;
	overflow-y: auto;
	padding: 2px;
}
.journals_empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #999;
	padding: 30px 0;
	font-size: 14px;
}
.journal_card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #eef1f4;
	border-radius: 10px;
	background: #fbfcfd;
	cursor: pointer;
	transition: all 0.2s;
}
.journal_card:hover {
	border-color: #4A90D9;
	box-shadow: 0 3px 12px rgba(74, 144, 217, 0.15);
	transform: translateY(-2px);
}
.journal_logo {
	width: 52px;
	height: 66px;
	flex: 0 0 52px;
	border-radius: 6px;
	background: #eef3f7;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.journal_logo_img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.journal_logo_text {
	font-size: 16px;
	font-weight: bold;
	color: #4A90D9;
	letter-spacing: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.journal_main {
	flex: 1;
	min-width: 0;
}
.journal_name_row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.journal_name {
	font-size: 15px;
	font-weight: bold;
	color: #2c3e50;
}
.journal_rank {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	color: #fff;
	background: #95A5A6;
	white-space: nowrap;
}
.journal_rank.r1 {
	background: #E74C3C;
}
.journal_rank.r2 {
	background: #E67E22;
}
.journal_rank.r3 {
	background: #16A085;
}
.journal_rank.r9 {
	background: #95A5A6;
}
.journal_tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.journal_tags span {
	font-size: 11px;
	color: #7f8c9b;
	background: #f0f3f6;
	border-radius: 8px;
	padding: 2px 8px;
}
.journal_arrow {
	color: #c3ccd6;
	font-size: 22px;
	line-height: 1;
}
.journal_mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1000;
}
.journal_modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(92vw, 560px);
	max-height: 82vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	z-index: 1001;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.journal_modal_head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid #eef1f4;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}
.journal_modal_title {
	font-size: 17px;
	font-weight: bold;
	color: #2c3e50;
	flex: 1;
}
.journal_modal_close {
	cursor: pointer;
	color: #aaa;
	font-size: 16px;
	padding: 2px 6px;
}
.journal_modal_close:hover {
	color: #E74C3C;
}
.journal_modal_body {
	padding: 16px 18px 20px;
}
.journal_meta_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}
.journal_meta_grid > div {
	background: #f7f9fb;
	border-radius: 8px;
	padding: 8px 10px;
}
.journal_meta_grid label {
	display: block;
	font-size: 11px;
	color: #999;
	margin-bottom: 2px;
}
.journal_meta_grid span {
	font-size: 13px;
	color: #2c3e50;
}
.journal_section {
	margin-bottom: 14px;
}
.journal_section_title {
	font-size: 13px;
	font-weight: bold;
	color: #4A90D9;
	margin-bottom: 6px;
	padding-left: 8px;
	border-left: 3px solid #4A90D9;
}
.journal_section_body {
	font-size: 13px;
	color: #4a5568;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}
.journal_submit_line {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.journal_submit_link {
	color: #4A90D9;
	word-break: break-all;
	font-size: 13px;
}
.journal_copy_btn {
	padding: 4px 10px;
	border: 1px solid #4A90D9;
	background: #fff;
	color: #4A90D9;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
}
.journal_copy_btn:hover {
	background: #eef3f7;
}
.journal_empty_text {
	color: #aaa;
	font-size: 13px;
}
.journal_admin_actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px dashed #eef1f4;
}
.journal_form .journal_modal_body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.journal_field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.journal_field > span {
	font-size: 12px;
	color: #7f8c9b;
}
.journal_field input,
.journal_field select,
.journal_field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #dde3e9;
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	outline: none;
	resize: vertical;
}
.journal_field input:focus,
.journal_field select:focus,
.journal_field textarea:focus {
	border-color: #4A90D9;
}
.journal_field_row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.journal_form_actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 6px;
}
@media (max-width: 640px) {
	.journals_box {
		width: 100%;
		padding: 14px;
		margin: 10px auto 20px;
	}
	.journals_list {
		grid-template-columns: 1fr;
		max-height: none;
	}
	.journal_meta_grid {
		grid-template-columns: 1fr 1fr;
	}
	.journal_field_row {
		grid-template-columns: 1fr;
	}
}


/* ========== 统计数据 ========== */
.stats-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.stats-card-title {
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 14px;
    padding-left: 8px;
    border-left: 3px solid #4A90D9;
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.stats-cell {
    flex: 1;
    min-width: 100px;
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
}
.stats-cell-val {
    font-size: 28px;
    font-weight: bold;
    color: #4A90D9;
}
.stats-cell-key {
    font-size: 12px;
    color: #7f8c9b;
    margin-top: 4px;
}
.stats-sources {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}
.stats-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding-top: 8px;
}
.stats-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.stats-bar {
    width: 70%;
    background: linear-gradient(180deg, #4A90D9, #8ec1ec);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}
.stats-bar-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.stats-feature {
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f6;
}
.stats-feature:last-child { border-bottom: none; }
.stats-feature-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}
.stats-feature-name {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}
.stats-feature-clicks {
    font-size: 14px;
    color: #E74C3C;
    font-weight: bold;
}
.stats-feature-users {
    font-size: 12px;
    color: #999;
}
.stats-feature-bar-wrap {
    height: 8px;
    background: #f0f3f6;
    border-radius: 4px;
    overflow: hidden;
}
.stats-feature-bar {
    height: 100%;
    background: linear-gradient(90deg, #4A90D9, #8ec1ec);
    border-radius: 4px;
}
.stats-source-item {
    color: #4A90D9;
}


/* ========== 统计数据 v2 样式 ========== */
.stats-clickable {
    background: linear-gradient(135deg, #fff7f1, #fff);
    border: 1px solid #ffe0c8;
    cursor: pointer;
}
.stats-clickable:hover {
    background: linear-gradient(135deg, #ffefe0, #fff);
}
.stats-clickable:active {
    transform: scale(0.995);
}
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.stats-grid-compact { gap: 10px; }
.stats-click-hint {
    display: block;
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: #e67e22;
}
.stats-svg-wrap {
    display: flex;
    justify-content: center;
    padding: 4px 0 4px;
}
.stats-user-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 12px;
    z-index: 2001;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
.stats-user-popup-head {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px solid #f0f3f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stats-user-popup-close {
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    padding: 2px 8px;
}
.stats-user-popup-close:hover { color: #E74C3C; }
.stats-user-popup-body {
    padding: 14px 18px;
    max-height: 320px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    font-family: Consolas, monospace;
    color: #34495e;
}
.stats-sources {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}
.stats-source-item { color: #4A90D9; }
.stats-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding-top: 8px;
}
.stats-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.stats-bar {
    width: 70%;
    background: linear-gradient(180deg, #4A90D9, #8ec1ec);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2px;
}
.stats-bar-label {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.stats-feature {
    padding: 12px 0;
    border-bottom: 1px solid #f0f3f6;
    cursor: pointer;
}
.stats-feature:last-child { border-bottom: none; }
.stats-feature:hover { background: #f7fbff; }
.stats-feature-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}
.stats-feature-name {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
}
.stats-feature-clicks {
    font-size: 14px;
    color: #E74C3C;
    font-weight: bold;
}
.stats-feature-users {
    font-size: 12px;
    color: #999;
}
.stats-feature-bar-wrap {
    height: 8px;
    background: #f0f3f6;
    border-radius: 4px;
    overflow: hidden;
}
.stats-feature-bar {
    height: 100%;
    background: linear-gradient(90deg, #4A90D9, #8ec1ec);
    border-radius: 4px;
}

/* ==================== 旅行地图（Tools V1.0） ==================== */
.travel_box {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  width: 80%;
  min-width: 720px;
  margin: 0 auto;
}
.travel_login {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #556;
}
.travel_login_icon { font-size: 64px; line-height: 1; margin-bottom: 12px; }
.travel_login p { margin: 0 0 18px; font-size: 16px; }
.travel_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.travel_stats { font-size: 15px; color: #445; }
.travel_stats b { color: #e8590c; font-size: 20px; margin: 0 3px; }
.travel_btns { display: flex; gap: 8px; flex-wrap: wrap; }
.travel_btn {
  border: 1px solid #cfd8e3;
  background: #fff;
  color: #3c4a5a;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.travel_btn:hover { background: #f3f7fb; }
.travel_btn.primary {
  background: #3498db;
  border-color: #3498db;
  color: #fff;
}
.travel_btn.primary:hover { background: #2f89c5; }
.travel_btn:disabled { opacity: .6; cursor: default; }
.travel_canvas_wrap {
  position: relative;
  width: 100%;
  height: 800px;
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  overflow: hidden;
}
#travel-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.travel_loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.82);
  color: #667;
  font-size: 15px;
  cursor: pointer;
}
.travel_hint { margin-top: 10px; font-size: 13px; color: #8894a3; }
.travel_modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
}
.travel_modal_box {
  width: 520px;
  max-width: 94vw;
  height: 76vh;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.travel_modal_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f6;
  font-size: 16px;
}
.travel_modal_close {
  font-size: 24px;
  line-height: 1;
  color: #99a;
  cursor: pointer;
}
.travel_search {
  margin: 12px 16px 6px;
  padding: 9px 12px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.travel_search:focus { border-color: #3498db; }
.travel_city_list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 12px;
}
.travel_prov {
  font-size: 13px;
  color: #8a97a6;
  margin: 12px 0 6px;
  font-weight: bold;
}
.travel_city_item {
  display: inline-flex;
  align-items: center;
  width: 46%;
  margin: 3px 3% 3px 0;
  padding: 5px 8px;
  font-size: 14px;
  color: #334;
  cursor: pointer;
  border-radius: 5px;
}
.travel_city_item:hover { background: #f4f8fc; }
.travel_city_item input { margin-right: 6px; }
.travel_empty { color: #99a; text-align: center; padding: 30px 0; }
.travel_modal_foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #eef2f6;
  font-size: 14px;
  color: #556;
}
.travel_modal_foot span { margin-right: auto; }

@media (max-width: 768px) {
  .travel_box { padding: 10px; width: 100%; min-width: 0; margin: 0; }
  .travel_canvas_wrap { height: 360px; }
  .travel_toolbar { align-items: flex-start; }
  .travel_btns { width: 100%; }
  .travel_btn { padding: 6px 10px; font-size: 13px; }
  .travel_city_item { width: 100%; margin-right: 0; }
  .travel_modal_box { height: 82vh; }
}
