/**
 * 作者：viewweiwu
 * github: https://github.com/viewweiwu/v2ex-qiita-theme
 * 帖子地址: https://v2ex.com/t/819780
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

body #Wrapper {
  /* background-image: url('https://img.alicdn.com/imgextra/i3/O1CN01PaQurJ1QgnAICTCgg_!!6000000002006-2-tps-1490-2984.png') !important; */
  background-image: none !important;
  background-color: #f5f6f6;
}

select {
  padding: 5px;
  border-radius: var(--box-border-radius);
  border: 1px solid var(--box-border-color);
}

:root {
  --box-border-radius: 0px;
  --box-border-color: #f0f2f7;
  --link-color: #333;
  --box-border-color: #f0f2f7;
  --primary-color: #55c500;
  --primary-color-hover: #55c500;
}

a:active,
a:link,
a:visited {
  color: var(--link-color);
  text-underline-offset: 2px;
}

a.topic-link:active,
a.topic-link:link {
  color: #333;
  font-size: 18px;
}

a.topic-link:hover {
  text-decoration: underline;
}

.bigger a,
form a {
  color: var(--primary-color) !important;
}

font[color='green'] {
  color: var(--primary-color);
}

.onoffswitch label .frame:before {
  background-color: var(--primary-color) !important;
}

.cell {
  padding: 12px;
}

.cell td[align='right'] {
  vertical-align: top;
}

#Top {
  height: 52px;
  border-bottom: none;
  background-color: var(--primary-color);
}

#Top > .content {
  height: 100%;
  display: flex;
  align-items: center;
}

#Rightbar .fade {
  color: #333 !important;
}

.fade {
  color: var(--primary-color);
}

#Tabs {
  padding: 12px 0 !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

body .box {
  border-bottom: none;
  box-shadow: unset;
}

#Main .item a:hover {
  color: #333;
}

#Main .item_title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #333;
}

#Main .cell.item {
  background-color: #fff;
  padding: 16px 24px;
  border-bottom: 8px solid #f5f5f6;
  border-top: 8px solid #f5f6f6
}


#Main .avatar {
  border-radius: 50%;
}

#Main .cell.item td:nth-child(3) {
  padding-left: 8px;
}

#Main .cell td:nth-child(2) {
  line-height: unset !important;
}

#Main .cell .cell {
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
  white-space: normal !important;
}

.count_livid {
  padding: 0 !important;
  margin-right: 0 !important;
  color: #999 !important;
  font-family: 'Bender' !important;
  background-color: unset !important;
}

.site-nav #Logo {
  background: unset;
  position: relative;

}

.site-nav #Logo::after {
  content: 'V2EX';
  color: #fff;
  font-size: 26px;
  font-weight: bold;
}

.topic_info {
  margin-top: 4px;
  display: inline-block;
}

.topic_info a {
  color: var(--color-fade);
  font-weight: normal;
}

.topic_info a:hover {
  color: var(--link-hover-color);
}

a.tab:active,
a.tab:link,
a.tab:visited {
  min-width: 4.8em;
  padding: 12px 6px 12px 24px;
  margin-right: 0 !important;
  font-size: 16px;
  font-weight: 500;
}

.a.tab_current:active,
a.tab_current:link,
a.tab_current:visited {
  min-width: 4.8em;
  padding: 12px 6px 12px 24px;
  margin-right: 0 !important;
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 500;
  background-color: unset;
}

a.tab:hover {
  color: var(--link-hover-color);
  background-color: unset;
}

h1 {
  margin: 0 0 16px;
  letter-spacing: 1px;
}

a.top:link,
a.top:visited {
  font-weight: unset;
  color: #fff;
}

a.top:hover {
  text-decoration: underline;
}

.cell .cell .cell {
  margin-left: -58px;
  width: auto;
  display: block;
}

.cell .cell {
  border-bottom: none;
}

#Main .no {
  min-width: 2em;
  background-color: unset;
}

#Main .cell,
.header,
.subtle,
.message,
.note_item,
.outdated,
.sidebar_compliance {
  padding: 16px 24px;
}

#Main .page_current,
#Main .page_normal {
  padding: 5px 10px;
}

.cell.alt,
.status,
.inner.alt {
  padding: 16px 24px !important;
}

.light-toggle img {
  height: 16px;
}

#reply-box .flex-one-row a:nth-child(1) {
  white-space: nowrap;
  margin-right: -1em;
}

#reply-box a:nth-child(2) {
  bottom: 16px;
  right: 16px;
  width: 3.6em;
  height: 3.6em;
  line-height: 1.3;
  padding: 0 0.8em;
  outline: 1px solid var(--box-border-color);
  border-radius: var(--box-border-radius);
  box-shadow: 0 1px 3px rgb(18 18 18 / 10%);
  background-color: var(--box-background-color);
  position: fixed;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: unset !important;
}

#reply-box a:nth-child(2):hover {
  filter: brightness(1.2);
}

#SecondaryTabs {
  border-bottom: 8px solid #f5f6f6;
}

#SecondaryTabs,
.inner {
  padding: 10px 24px;
}

#Rightbar .inner {
  padding: 10px;
}

#SecondaryTabs a {
  color: #999;
}

#SecondaryTabs a:hover {
  color: var(--primary-color-hover);
}

body .site-nav {
  padding-top: 0;
}

.site-nav .tools {
  flex: 1;
  text-align: right;
}

.site-nav .tools * {
  margin-left: 24px;
}

.topic_content {
  line-height: 1.8;
}

.topic_content,
.topic_content {
  font-size: 16px;
}

.topic_content p {
  margin: 1.8em 0;
}

.topic_buttons {
  background: unset;
  padding: 12px;
}

.topic_buttons > *:nth-child(2)::before {
  content: '🌟';
  margin-right: 0.5em;
}

.topic_buttons > *:nth-child(3)::before {
  content: '🪶';
  margin-right: 0.5em;
}

.topic_buttons > *:nth-child(4)::before {
  content: '🥱';
  margin-right: 0.5em;
}

.topic_buttons #topic_thank a::before {
  content: '🙏';
  margin-right: 0.5em;
}

.reply_content {
  font-size: 16px;
  line-height: 1.8;
}

body .normal.button,
body .super.button {
  cursor: pointer;
  color: #fff !important;
  font-weight: unset !important;
  background: unset !important;
  background-color: var(--primary-color) !important;
  background-image: unset !important;
  text-shadow: unset !important;
  box-shadow: unset !important;
  border-radius: var(--box-border-radius);
  border: 1px solid var(--primary-color) !important;
}

body .normal.button:hover,
body .super.button {
  color: #fff !important;
  background-color: var(--primary-color-hover) !important;
  border: 1px solid var(--primary-color-hover) !important;
}

body td.normal.button.disable_now,
body td.super.button.disable_now {
  color: #00000040 !important;
  border-color: #d9d9d9 !important;
  background: #f5f5f5 !important;
}

form .button {
  border-radius: var(--box-border-radius) !important;
}

#Bottom {
  border-top: none;
  color: #fff;
  background-color: #2f3232;
}

#Bottom a {
  color: #fff;
}


#Bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

#Rightbar td {
  border-left: none !important;
  border-right: none !important;
}

select,
.sl,
.ml,
.select2-container--default .select2-selection--single {
  border-color: #ccc;
  border-radius: var(--box-border-radius) !important;
}

body #search-container::before {
  width: 47px;
  top: unset;
}

body #search-container {
  height: 34px;
  border-radius: 17px;
}

body #search-container #search {
  height: 34px;
  padding-left: 12px;
}

body #search-container:focus-within {
  border-color: var(--box-border-focus-color);
}

.select2-container--default .select2-selection--single {
  border-radius: var(--box-border-radius);
}

.wwads-cn {
  border-bottom: none;
}

.onoffswitch label {
  border-radius: var(--box-border-radius);
}

img {
  max-width: 100%;
}
