@font-face {font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url('https://lib.baomitu.com/fonts/roboto/roboto-regular.woff2') format('woff2');}
body{margin:0;font-family:'Roboto','microsoft yahei',sans-serif;line-height:160%;overflow-y:scroll;}
a{text-decoration:none;}
h1 a{color:#000;}
#url_list{margin:0;padding:0;}
#url_list li{margin-bottom:2.5rem;}
#url_list a{word-break:break-word !important;word-wrap:break-word !important;}
#url_list h5{color:#212529;margin-bottom:0.5rem;margin-top:0.5rem;}
#url_list span{margin-right:0.25em;}
.sm75{font-size:0.75rem;font-weight:400;}
.bgray{background-color:#dedede;padding:0.1rem 0.5rem;border-radius:0.2rem;font-size:0.75rem;margin-bottom:0.2rem;}
.bgray:hover{background-color:#343a40;color:#fff;}
.blight{background-color:#f3f4f5;padding:0.1rem 0.5rem;border-radius:0.2rem;font-size:0.75rem;margin-bottom:0.2rem;}
.blight:hover{background-color:#e2e6ea;}
.tip{position:absolute;z-index:9999;font-size:12px;background:#000;color:#fff;padding:4px 8px;border-radius:3px;}

/* ===== modal 内表单紧凑化 ===== */
#modalbody .mb-3 { margin-bottom: 0.5rem !important; }
#modalbody .form-label {
  margin-bottom: 0.15rem;
  font-size: 0.85rem;
  color: #555;
}
#modalbody .form-control,
#modalbody .form-select {
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
}
#modalbody textarea.form-control {
  line-height: 1.35;
  min-height: 200px;
  max-height: 55vh;
  overflow-y: auto;
}

/* ===== 顶部管理导航栏 ===== */
.admin-nav-trigger {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 999;
}
.admin-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #4969c7;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transform: translateY(-100%);
  transition: transform 0.2s ease;
  z-index: 1000;
}
.admin-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0 16px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  transition: background-color 0.15s;
  white-space: nowrap;
}
.admin-nav a:hover {
  background-color: #3a55a8;
  color: #fff;
  text-decoration: none;
}
.admin-nav a.active {
  background-color: #3a55a8;
  font-weight: 600;
}
.admin-nav.visible,
.admin-nav:hover {
  transform: translateY(0);
}
@media (any-hover: hover) {
  .admin-nav-trigger:hover + .admin-nav {
    transform: translateY(0);
  }
}
@media (any-hover: none) {
  .admin-nav {
    position: static;
    transform: none;
    box-shadow: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav a {
    padding: 0 12px;
    font-size: 13px;
  }
  .admin-nav-trigger {
    display: none;
  }
}
.admin-header-row {
  align-items: center;
}
.admin-header-row h1 {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  line-height: 1;
}
.admin-header-row h1 a {
  display: inline-flex;
  align-items: center;
}

/* ===== notes 列表（单行紧凑布局，字号调大） ===== */
.note-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.note-list .note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 17px;
  line-height: 1.5;
}
.note-list .note-item:last-child {
  border-bottom: none;
}
.note-list .note-alias {
  flex: 0 0 auto;
  background-color: #f3f4f5;
  color: #333;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-family: Consolas, Menlo, Monaco, monospace;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.note-list .note-alias:hover {
  background-color: #4969c7;
  color: #fff;
}
.note-list .note-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #212529;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-list .note-title:hover {
  color: #0969da;
}
.note-list .note-badge {
  flex: 0 0 auto;
  background: #eaecef;
  color: #59636e;
  font-size: 13px;
  padding: 2px 9px;
  border-radius: 10px;
  white-space: nowrap;
}
.note-list .note-date {
  flex: 0 0 auto;
  color: #888;
  font-size: 14px;
  white-space: nowrap;
  font-family: Consolas, Menlo, Monaco, monospace;
}
.note-list .note-actions {
  flex: 0 0 auto;
  white-space: nowrap;
}
.note-list .note-actions a {
  color: #0969da;
  margin-left: 12px;
  font-size: 15px;
}
.note-list .note-actions a:hover {
  text-decoration: underline;
}
.note-list .note-actions a:last-child {
  color: #c62828;
}

@media (max-width: 576px) {
  .note-list .note-date {
    display: none;
  }
  .note-list .note-item {
    gap: 10px;
    padding: 9px 0;
  }
}

/* ===== notes 内容 Markdown（GitHub 风格） ===== */
.note-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2328;
  word-wrap: break-word;
}
.note-content > *:first-child { margin-top: 0 !important; }
.note-content > *:last-child { margin-bottom: 0 !important; }

.note-content h1,
.note-content h2,
.note-content h3,
.note-content h4,
.note-content h5,
.note-content h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}
.note-content h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d1d9e0b3;
}
.note-content h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #d1d9e0b3;
}
.note-content h3 { font-size: 1.25em; }
.note-content h4 { font-size: 1em; }
.note-content h5 { font-size: 0.875em; }
.note-content h6 { font-size: 0.85em; color: #59636e; }

.note-content p {
  margin-top: 0;
  margin-bottom: 16px;
}
.note-content a {
  color: #0969da;
  text-decoration: none;
}
.note-content a:hover {
  text-decoration: underline;
}
.note-content strong { font-weight: 600; }
.note-content em { font-style: italic; }
.note-content del { text-decoration: line-through; color: #59636e; }

.note-content code,
.note-content tt {
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  white-space: break-spaces;
  background-color: rgba(129, 139, 152, 0.12);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.note-content pre {
  margin-top: 0;
  margin-bottom: 16px;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  color: #1f2328;
  background-color: #f6f8fa;
  border-radius: 6px;
  word-wrap: normal;
}
.note-content pre code {
  display: inline;
  max-width: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  line-height: inherit;
  word-wrap: normal;
  background-color: transparent;
  border: 0;
  font-size: 100%;
}

.note-content ul,
.note-content ol {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 2em;
}
.note-content ul { list-style-type: disc; }
.note-content ol { list-style-type: decimal; }
.note-content li + li { margin-top: 0.25em; }
.note-content li > p { margin-top: 16px; }

.note-content blockquote {
  margin: 0 0 16px;
  padding: 0 1em;
  color: #59636e;
  border-left: 0.25em solid #d1d9e0;
}

.note-content hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #d1d9e0;
  border: 0;
  box-sizing: content-box;
  overflow: hidden;
}

.note-content table {
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 0;
  margin-bottom: 16px;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  font-variant: tabular-nums;
}
.note-content table th {
  font-weight: 600;
}
.note-content table th,
.note-content table td {
  padding: 6px 13px;
  border: 1px solid #d1d9e0;
}
.note-content table tr {
  background-color: #ffffff;
  border-top: 1px solid #d1d9e0;
}
.note-content table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.note-content img {
  max-width: 100%;
  box-sizing: content-box;
  background-color: #ffffff;
}