* {
  box-sizing: border-box;
  word-break: break-all;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC,
    Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
}

ul,
ol {
  padding: 1rem 0 1rem 2rem;
}

footer {
  width: 100%;
  padding: 0.625rem 0;
  font-size: 0.8rem;
  text-align: center;
}

header {
  width: 100%;
  padding: 3px 0;
  color: #fff;
  background-color: #444;
  border-bottom: 1px solid #444;
}

textarea {
  width: 100%;
  min-height: 8rem;
  padding: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  border-radius: 5px;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #eee;
  color: #000;
  font-size: 1rem;
  line-height: 1.7;
}

h1.subject {
  display: inline;
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

pre {
  white-space: pre-wrap;
  margin: 0;
  font-family: Courier New, Courier, monospace;
}


blockquote {
  border-left: 4px solid #eee;
  margin: 0.625rem 0;
  padding: 0 0 0 1rem;
  color: #666;
}

blockquote p {
  display: inline;
}

a.subject {
  font-weight: bold;
}

.i {
  font-style: italic;
}

.gray {
  color: grey;
}

.gray a {
  color: grey;
}

.white {
  color: white;
}

.close-btn {
  position: absolute;
  right: 5px;
  cursor: pointer;
  color: gray;
}

.submit {
  padding: 2px 5px;
  border: 0;
  color: #fff;
  color: #fff !important;
  background-color: #4caf50;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.4rem;
}

button {
  padding: 2px 5px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}


button:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

html {
  height: 100%;
}

a {
  color: #000;
  text-decoration: none;
}

a.submit {
  color: #fff;
}

header a {
  color: #fff;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

input {
  padding: 2px 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  border-radius: 5px;
}

input[type="file"] {
  padding: 0;
  border-radius: 0;
  border: none;
  font-size: 0.8rem;
}

select {
  padding: 2px 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  border-radius: 5px;
}

code {
  background-color: #f4f4f4;
  font-family: Courier New, Courier, monospace;
  border-radius: 5px;
}

nav {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
}

.box-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.pointer {
  cursor: pointer;
}

.w100 {
  width: 100%;
}

.mr {
  margin-right: 5px;
}

.box-line {
  padding: 0.625rem 0;
  border-bottom: 1px solid #eee;
}

.box-list {
  margin: 0.625rem 0;
}

.box-title {
  margin: 0.625rem 0;
}

.box-section {
  margin: 0.625rem 0;
  padding: 5px 1rem;
  border: 1px solid #d4d4d4;
  background: #fff;
  border-radius: 5px;
}

.center {
  text-align: center;
}

.empty {
  padding: 0.625rem;
  color: #ccc;
  font-size: 0.8rem;
  text-align: center;
  text-align: center;
  border-radius: 5px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0 0.625rem;
}

.flex-center {
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-end {
  justify-content: flex-end;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  max-height: 80%;
  min-width: 200px;
  padding: 0 0.625rem;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  transform: translate(-50%, -50%);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal .box-section {
  border: none;
  padding: 0;
}

.show-tip {
  display: none;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  padding: 0.625rem 0.625rem;
  border: 1px solid #4caf50;
  color: #fff;
  background-color: #4caf50;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  place-items: center;
  transform: translateX(-50%);
  transition: opacity 0.5s;
}

.show-tip a {
  color: #fff;
}

.show-tip.notice {
  border: 1px solid #666;
  color: #fff;
  background-color: #666;
}

.box {
  display: flex;
  position: relative;
  flex-wrap: wrap;
  gap: 5px 0.625rem;
}

.box-item {
  display: flex;
  position: relative;
  align-items: center;
}

.box-item.active {
  background: #eee;
  color: #333;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.box-item.active a {
  color: #555;
}

.flex-item {
  position: relative;
  flex: 1;
}

.link {
  color: #007bff;
}

.box-link a {
  color: #007bff;
}

.link:hover {
  text-decoration: underline;
}

.page {
  display: flex;
  justify-content: center;
  margin: 0.625rem 0;
  font-size: 0.8rem;
  gap: 5px;
}

.page a {
  padding: 0 8px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 5px;
}

.avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.avatar-big {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.avatar-bigger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-huge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.pl {
  padding-left: 5px;
}

.pt {
  padding-top: 5px;
}

.pb {
  padding-bottom: 5px;
}

.green {
  color: green;
}

.green a {
  color: green;
}

.del {
  color: grey;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.red {
  color: red;
}

.blue {
  color: #00f;
}

.bg {
  background: #f7f7f7;
}

.right {
  text-align: right;
}

.box-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1px 6px;
}

.box-line:last-child {
  border: 0;
}

.bold {
  font-weight: 700;
}

.none {
  display: none;
}

table {
  border: 1px solid #d1d5da;
  border-collapse: collapse;
  width: 100%;
}

th {
  background: #f9f9f9;
}

th,
td {
  border: 1px solid #d1d5da;
  padding: 6px;
  text-align: left;
}

.box-active {
  border: 2px solid gray;
}

.tag {
  border: 1px solid #ccc;
  color: gray;
  font-size: 0.8rem;
  border-radius: 5px;
  padding: 0 5px;
  margin: 0 5px 0 0;
  background: #fff;
}

.notify {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: bold;
}

@keyframes notify-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  50% {
    transform: scale(1);
    opacity: 0.9;
  }

  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

.notify-num {
  display: inline-block;
  padding: 0 5px;
  background-color: #f43530;
  color: white;
  font-size: 0.8rem;
  line-height: 1rem;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #fff;
  animation: notify-pulse 2s ease-in-out infinite;
}

.box-icon {
  display: flex;
  align-items: center;
  width: 50px;
  height: 50px;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 50%;
  font-size: 0.8rem;
  color: gray;
}

.box-icon img {
  padding: 5px;
}

.code-list {
  background: #f9f9f9;
  padding: 0.625rem;
  margin: 0.625rem 0;
  /* color: #fff; */
  border-radius: 5px;
  /* border: 1px solid #ccc; */
  overflow: auto;
  font-size: 0.8rem;
}

.code-list li {
  list-style-position: inside;
  white-space: pre;
  font-family: Courier New, Courier, monospace;
}

.code-list li::marker {
  color: #ccc;
}

.code-list li:last-child {
  border: none;
}

.code-list ol {
  padding: 0;
  margin: 0;
}

.box-box {
  margin: 0.625rem 0;
  background: #f7f7f7;
  padding: 0.625rem;
  border-radius: 5px;
  border: 1px solid #eee;
}

.modal-message .box-line {
  border: none;
  padding: 0;
}

.loading {
  width: 100%;
  min-height: 10px;
  background: linear-gradient(90deg, #ccc 25%, #3498db 50%, #ccc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 5px;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.dot {
  padding: 0 5px;
  color: gray;
}

.small {
  font-size: 0.8rem;
  color: gray;
  margin-right: 5px;
  font-weight: normal;
}

.small a {
  color: gray;
}

.thread-views {
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 0;
  width: 46px;
  text-align: center;
  font-size: 0.8rem;
  color: gray;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-view-num {
  border-bottom: 1px solid #eee;
  background: #eee;
  border-radius: 0 0 5px 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 37px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 0.625rem;
  position: absolute;
  transition: 0.4s;
  cursor: pointer;
}

.slider:before {
  position: absolute;
  transition: 0.4s;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 0.625rem;
}

input:checked+.slider {
  background-color: #4caf50;
}

input:checked+.slider:before {
  transform: translateX(16px);
}

input:focus+.slider {
  box-shadow: 0 0 1px #4caf50;
}

.box-av {
  max-width: 600px;
  text-align: center;
  color: gray;
  margin: 0.625rem 0;
}

.box-av audio,
video {
  width: 100%;
  border-radius: 5px;
}

.icon {
  width: 0.8rem;
  height: 0.8rem;
  vertical-align: middle;
  fill: currentColor;
}

.post-message img {
  margin: 5px 0;
}

.textarea-message {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 0 0 0.625rem 0;
}

.textarea-message textarea {
  border: none;
  border-radius: 5px 5px 0 0;
}

.emoji-list {
  padding: 0 5px 5px 5px;
}

hr {
  background-color: #eaecef;
  height: 2px;
  padding: 0;
  margin: 0;
  border: 0;
}

.thread-message {
    font-size: small;
    color: gray;
}

.thread-tag {
    font-size: small;
    color: gray;
}

.thread-tag a {
    color:gray;
}