:root {
  --vt-color-primary: #007aff;
  --vt-color-success: #4cd964;
  --vt-color-warning: #f0ad4e;
  --vt-color-error: #dd524d;
  --vt-color-danger: #dd524d;
  --vt-font-size-sm: 13px;
  --vt-font-size-base:16px;
  --vt-font-size-lg: 22px;
  --vt-text-color: #333;
  --vt-text-color-inverse: #fff;
  --vt-text-color-grey: #999;
  --vt-text-color-placeholder: #8c8c8c;
  --vt-text-color-disable: #e2e4eb;
  --vt-bg-color: #f3f3f3;
  --vt-bg-color-grey: #f1f1f1;
  --vt-bg-color-hover: #f2f2f2;
  --vt-bg-color-mask: rgba(50, 50, 50, 0.5);
  --vt-bg-color-card: #ffffff;
  --vt-border-radius: 4px;
  --vt-border-color: #e5ebeb;
  --vt-shadow-color: #d1d2d3;
}

body.dark-mode {
  --vt-text-color: #b9b9b9;
  --vt-text-color-inverse: #333;
  --vt-text-color-grey: #999;
  --vt-text-color-placeholder: #808080;
  --vt-text-color-disable: #404244;
  --vt-bg-color: #2e2e2e;
  --vt-bg-color-grey: #5a5a5a;
  --vt-bg-color-hover: #979797;
  --vt-bg-color-mask: rgba(50, 50, 50, 0.5);
  --vt-bg-color-card: #272727;
  --vt-border-color: #303030;
  --vt-shadow-color: #181818;
}

body.dark-mode img {
  filter: brightness(70%);
}
body.dark-mode .logo {
  filter: brightness(200%);
}

@media (prefers-color-scheme: dark) {
  body.dark-mode-auto {
    --vt-text-color: #b9b9b9;
    --vt-text-color-inverse: #333;
    --vt-text-color-grey: #999;
    --vt-text-color-placeholder: #808080;
    --vt-text-color-disable: #404244;
    --vt-bg-color: #2e2e2e;
    --vt-bg-color-grey: #5a5a5a;
    --vt-bg-color-hover: #979797;
    --vt-bg-color-mask: rgba(50, 50, 50, 0.5);
    --vt-bg-color-card: #272727;
    --vt-border-color: #303030;
    --vt-shadow-color: #181818;
  }
  body.dark-mode-auto img {
    filter: brightness(70%);
  }
  body.dark-mode-auto .logo {
    filter: brightness(200%);
  }
}

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/*
 * 公共按钮
 */
.btn {
  display: inline-block;
  width: 100%;
  height: 32px;
  line-height: 32px;
  box-sizing: border-box;
  border: 1px solid var(--vt-border-color);
  border-radius: var(--vt-border-radius);
  color: var(--vt-text-color);
  cursor: pointer;
  font-size: var(--vt-font-size-sm);
  text-align: center;
  padding: 0 8px;
  font-size: 13px;
}
.btn:hover {
  color: var(--vt-text-color);
}

.btn.btn-sm {
  height: 22px;
  line-height: 22px;
  font-size: 12px;
  width: auto;
  padding: 0 8px;
}

.btn.btn-primary {
  background-color: var(--vt-color-primary);
  color: var(--vt-text-color-inverse);
}

.btn.btn-success {
  background-color: var(--vt-color-success);
  color: var(--vt-text-color-inverse);
}

.btn.btn-danger {
  background-color: var(--vt-color-danger);
  color: var(--vt-text-color-inverse);
}

.btn.btn-error {
  background-color: var(--vt-color-error);
  color: var(--vt-text-color-inverse);
}

.btn.btn-primary-sec {
  border: 1px solid var(--vt-color-primary);
  color: var(--vt-color-primary);
}

.btn.btn-success-sec {
  border: 1px solid var(--vt-color-success);
  color: var(--vt-color-success);
}

.btn.btn-danger-sec {
  border: 1px solid var(--vt-color-danger);
  color: var(--vt-color-danger);
}

.btn.btn-error-sec {
  border: 1px solid var(--vt-color-error);
  color: var(--vt-color-error);
}

@media only screen and (min-width: 900px) {
  .btn, .btn-primary {
    width: auto;
  }
}

/*
 * 默认的样式
 */
html {
  -webkit-text-size-adjust: none;
}

* {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

img {
  border: 0;
  height: auto;
  width: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: var(--vt-font-size-base);
  color: var(--vt-text-color);
  letter-spacing: 0.8px;
  /* position: relative; */
  letter-spacing: 1px;
  background-color: var(--vt-bg-color);
  overflow-x: hidden;
}

body:before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
  z-index: -1;
  display: block;
  position: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  content: "";
}

a {
  color: var(--vt-text-color);
  font-size: var(--vt-font-size-base);
  text-decoration: none;
  letter-spacing: 1px;
}

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

/**
 * 文章页，文档页等 公共的点赞，收藏 模块
 */
/**
 * 面包屑
 */
.breadcrumbs {
  width: auto;
  height: 35px;
  line-height: 35px;
  font-size: var(--vt-font-size-sm);
  color: var(--vt-text-color-grey);
}
.breadcrumbs i {
  font-size: var(--vt-font-size-lg);
  vertical-align: -5px;
}
.breadcrumbs a {
  font-size: var(--vt-font-size-sm);
  color: var(--vt-text-color-grey);
}

/**
 * 404
 */
.page-no-found {
  width: 100%;
  max-width: 350px;
  margin: 60px auto 250px auto;
  color: var(--vt-text-color);
}
.page-no-found img {
  width: 100%;
}
.page-no-found p {
  font-size: 30px;
  text-align: center;
}
.page-no-found a {
  display: block;
  width: 100px;
  height: 30px;
  color: var(--vt-text-color-inverse);
  font-size: 13px;
  margin: 50px auto 0px auto;
  line-height: 30px;
  text-align: center;
  background-color: var(--vt-color-primary);
  border-radius: 3px;
}
.page-no-found a:hover {
  color: var(--vt-text-color-inverse);
}

/**
 * 没有内容
 */
.no-content {
  text-align: center;
  padding: 100px 0px;
  font-size: var(--vt-font-size-base);
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.no-content img {
  max-width: 150px;
  margin: 20px auto;
}
.no-content p {
  margin-top: 10px;
  color: var(--vt-text-color-grey);
}

.search-title {
  margin-top: 10px;
  color: var(--vt-text-color);
}


.no-scrollbar {
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
}
/**
 * 模态对话框样式
 */
.modal {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--vt-bg-color-mask);
  backdrop-filter: saturate(97%) blur(20px);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal.modal-show {
  display: flex;
}

.vt-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  display: none;
}

.vt-dialog[open] {
  display: flex !important;
}

.vt-dialog[modal] {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(0, 0);
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
}

.vt-dialog[modal]::before {
  content: "";
  display: block;
  width: 100vw;
  height: 100vh;
  background-color: var(--vt-bg-color-mask);
  position: fixed;
  top: 0;
  left: 0;
}

.no-scroll {
  overflow-y: hidden;
}

.dialog-widget {
  box-sizing: border-box;
  font-size: 18px;
  padding: 25px;
  border-radius: var(--vt-border-radius);
  background-color: var(--vt-bg-color-card);
  /* box-shadow: 0 0 20px var(--vt-shadow-color); */
  position: relative;
  user-select: none;
}

.dialog-widget .close-button {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 5px;
  right: 5px;
  text-align: center;
  color: var(--vt-text-color-grey);
  z-index: 9;
}

.dialog-widget .close-button i {
  font-size: 22px;
  font-weight: bold;
}

.dialog-header {
  height: 25px;
  font-size: 16px;
}

.dialog-header .title {
  float: left;
}

.dialog-header .close {
  float: right;
  font-size: 25px;
  position: relative;
  top: -5px;
}

.dialog-body {
  padding: 10px 0;
}

.dialog-body label {
  cursor: pointer;
  font-size: 14px;
}

.dialog-action-group {
  display: flex;
  justify-content: flex-end;
}

.dialog-action-group .btn {
  margin: 0 0 0 10px;
}

.field {
  margin: 20px 0 0 0;
  position: relative;
}

.field .btn {
  padding: 0 15px;
}

.field > label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  margin-bottom: 6px;
}

.field .radio-group label{
  font-size: 14px;
  margin: 0 15px 0 0;
}
.field .radio-group input[type="radio"]{
  position: relative;
  top: 1px;
}


/* .field-text label, 
.field-text input:-internal-autofill-selected */

.field-text input[type="text"],
.field-text input[type="password"],
.field-text input[type="email"],
.field select,
.field-text .form-help,
.field-text textarea
{
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  background-color: var(--vt-bg-color-card) !important;
}

.field-text input,
.field select,
.field-text textarea {
  padding: 8px 30px 8px 8px;
  border: 1px solid var(--vt-border-color);
  border-radius: 3px;
}

.field-text :focus {
  outline: 0;
  box-shadow: 0 0 5px rgba(93, 162, 248, 0.5);
  border-color: var(--vt-color-primary);
}

/* .field-text :invalid {
  border-color: var(--vt-color-danger);
  box-shadow: 0 0 5px rgba(229, 43, 37, 0.5);
} */

.form-help {
  display: block;
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  transition: all 0.05s linear;
}

input:focus + .form-help {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid var(--vt-color-warning);
  border-radius: 3px;
  font-style: italic;
  font-size: 13px;
  color: var(--vt-text-color);
  background-color: var(--vt-bg-color-grey);
  position: relative;
  width: auto;
  height: auto;
  crop: none;
}

.field-text input[disabled],
.field-text textarea[disabled] {
  background-color: var(--vt-bg-color-grey) !important;
}


@media only screen and (min-width: 900px) {
  .field {
    width: 100%;
  }
  .field .form-control{
    max-width: 500px;
  }
}




/**
 * Captain 专用分页样式
 */

.vt-captain-pagination{
    padding: 20px 0;
}

/* 容器：去除默认列表样式 */
.vt-captain-pagination .page-numbers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

/* 所有分页项（链接和当前页） */
.vt-captain-pagination .page-numbers a,
.vt-captain-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 33px;
	height: 33px;
	padding: 0 8px;
	font-size: 14px;
	font-weight: normal;
	color: var(--vt-color-primary);
	text-decoration: none;
	background: var(--vt-bg-color-card);
	border: 1px solid var(--vt-border-color);
	border-radius: var(--vt-border-radius);
	transition: all 0.2s ease;
	box-sizing: border-box;
}

/* 当前页（高亮） */
.vt-captain-pagination .page-numbers .current {
	color: var(--vt-text-color-inverse);
	background: var(--vt-color-primary);
	border-color: var(--vt-color-primary);
	cursor: default;
}

/* 悬停效果（仅链接） */
.vt-captain-pagination .page-numbers a:hover {
	color: var(--vt-text-color-inverse);
	background: var(--vt-color-primary);
	border-color: var --vt-color-primary;
}

/* 上一页 / 下一页 文字按钮 */
.vt-captain-pagination .page-numbers .prev,
.vt-captain-pagination .page-numbers .next {
	min-width: auto;
	padding: 0 12px;
}

/* 禁用状态（例如第一页时“上一页”不可点） */
.vt-captain-pagination .page-numbers .disabled {
	opacity: 0.5;
	pointer-events: none;
	color: var(--vt-text-color-grey) !important;
	background: var(--vt-bg-color-card) !important;
	border-color: var(--vt-border-color) !important;
}

/* 响应式：小屏缩小字体 */
@media (max-width: 768px) {
	.vt-captain-pagination .page-numbers a,
	.vt-captain-pagination .page-numbers span {
		min-width: 32px;
		height: 32px;
		font-size: var(--vt-font-size-sm);
		padding: 0 6px;
	}
}


/* vt-post-item 移动端优先布局样式 */

/**
 * 通用文章卡片 - 移动端基础样式
 */

/* 基础文章卡片样式 */
.vt-post-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid var(--vt-border-color);
  transition: background-color 0.3s ease;
  border-radius: var(--vt-border-radius);
}

/* 图片区域 - 移动端样式 */
.vt-post-thumbnail {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 0.6;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.vt-post-thumbnail a{
  display: block;
  width: 100%;
  height: 100%;
}

.vt-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vt-post-item:hover .vt-post-thumbnail img {
  transform: scale(1.05);
}

.vt-post-thumbnail-default {
  background-color: var(--vt-bg-color-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vt-text-color-grey);
  font-size: 14px;
  text-align: center;
}

/* 内容区域 */
.vt-post-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vt-post-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.vt-post-title a {
  color: var(--vt-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt-post-title a:hover {
  color: var(--vt-color-primary);
}

.vt-post-meta {
  margin-bottom: 10px;
  margin-top: auto;
  font-size: 14px;
  color: var(--vt-text-color-grey);
  display: flex;
  /* flex-wrap: wrap; */
  overflow-x: scroll;
  gap: 5px;
}

.vt-post-tag {
  flex: 0 0 auto;
  display: inline-block;
  padding: 2px 8px;
  background-color: var(--vt-bg-color-grey);
  color: var(--vt-text-color-grey);
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.vt-post-tag:hover {
  background-color: var(--vt-color-primary);
  color: var(--vt-text-color-inverse);
  text-decoration: none;
}

.vt-post-excerpt {
  margin-bottom: 15px;
  color: var(--vt-text-color-grey);
  line-height: 1.6;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 底部信息区域 - 移动端垂直布局 */
.vt-post-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--vt-text-color-grey);
  margin-top: auto;
}

.vt-post-footer a{
  font-size: 12px;
  color: var(--vt-text-color-grey);
}

.vt-post-author {
  display: flex;
  align-items: center;
  gap: 5px;
}
.vt-post-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.vt-post-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vt-post-stats {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.vt-user-post-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/*****************************************************************************/
/* 平板端样式增强 */
@media (min-width: 481px) {
  .vt-post-item {
    padding: 20px;
    gap: 20px;
  }
  
  .vt-post-thumbnail {
    flex: 0 0 200px;
    height: auto;
  }
  
  .vt-post-stats {
    gap: 15px;
  }
}

/*****************************************************************************/
/* 桌面端样式增强 - 水平布局 */
@media (min-width: 769px) {
  .vt-post-item {
    flex-direction: row;
  }
  
  .vt-post-thumbnail {
    width: 200px;
    aspect-ratio: 1 / 0.6;
  }
  
  .vt-post-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/*****************************************************************************/
/**
 * 样式覆盖
 */

/* 带边框 */
.vt-post-item.vt-no-border{
  border: none;
}

/* 窄屏模式 */
.vt-post-item.vt-no-card{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  /* align-items: flex-start; */
}
.vt-post-item.vt-no-card .vt-post-thumbnail{
  width: 120px;
  aspect-ratio: 1 / 0.6;
}
.vt-post-item.vt-no-card .vt-post-meta,
.vt-post-item.vt-no-card .vt-post-author span,
.vt-post-item.vt-no-card .vt-user-post-stat-item:nth-child(2),
.vt-post-item.vt-no-card .vt-user-post-stat-item:nth-child(3),
.vt-post-item.vt-no-card .vt-post-excerpt{
  display: none;
}

@media (min-width: 481px) {
  .vt-post-thumbnail {
      flex: 0 0 auto;
  }
}



.pagination {
  margin: 20px 0;
  text-align: center;
}

.user-no-content {
  text-align: center;
  padding: 40px 20px;
  color: var(--vt-text-color-grey);
}

.user-no-content img {
  width: 150px;
  height: auto;
  opacity: 0.7;
}

.user-no-content span {
  display: block;
  margin-top: 15px;
  font-size: 16px;
}


.user-likes-list {
  position: relative;
}

.user-like-item {
  display: flex;
  border: 1px solid var(--vt-border-color);
  background-color: var(--vt-bg-color-card);
  border-radius: var(--vt-border-radius);
  padding: 15px;
  box-shadow: 0 0 2px 0 var(--vt-shadow-color);
  margin-bottom: 15px;
  position: relative;
}

.user-like-thumbnail{
  display: none;
}

@media screen and (min-width:900px) {
  .user-like-thumbnail{
    display: block;
    width: 90px;
    aspect-ratio: 4 / 3;
    margin: 0 20px 0 0;
  }
  .user-like-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: var(--vt-border-radius);
    object-fit: cover;
  }
}

.like-item-body{
  display: flex;
  flex-direction: column;
}
.like-item-body .like-item-action {
  display: flex;
  margin-top: auto;
}

.like-item-body .like-item-action .like-action-item{
  font-size: 13px;
  margin: 0 20px 0 0;
  color: var(--vt-text-color-grey);
}

.like-edit-btn{
  position: absolute;
  top: 10px;
  right: 10px;
}


/**
 * overwrite
 */
.my-posts-container .user-like-item{
  min-height: 50px;
}


.auth-tabs {
  width: 100%;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--vt-border-color);
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--vt-text-color-grey);
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  outline: none;
  position: relative;
}

.tab-btn.active {
  color: var(--vt-color-primary);
  border-bottom: 2px solid var(--vt-color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.field {
  margin-bottom: 15px;
}

.field-text {
  display: flex;
  flex-direction: column;
}

.field-text label {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--vt-text-color-grey);
}

.field-text input {
  padding: 10px;
  border: 1px solid var(--vt-border-color);
  border-radius: var(--vt-border-radius);
  background-color: var(--vt-bg-color-card);
  color: var(--vt-text-color);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.field-text input:focus {
  outline: none;
  border-color: var(--vt-color-primary);
}

.verification-input-group {
  display: flex;
  gap: 10px;
}

.verification-input-group input {
  flex: 1;
}

.verification-input-group button {
  flex-shrink: 0;
  height: auto;
  padding: 10px 15px;
  font-size: 13px;
}

.field-button {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.login-register-dialog .btn {
  color: #fff !important;
  padding: 3px 20px !important;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  /* 
  border: none;
  border-radius: var(--vt-border-radius);
  background-color: var(--vt-color-primary);
  color: #fff !important;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 120px; */
}
.dark-mode .login-register-dialog .btn { color: #fff; }

.btn.primary {
  background-color: var(--vt-color-primary);
}

.btn.primary:hover {
  /* background-color: var(--vt-color-primary-hover); */
  opacity: 0.9;
}

.btn.secondary {
  width: 150px;
  background-color: var(--vt-text-color-grey);
  color: #fff;
}

.btn.secondary:hover {
  background-color: #e0e0e0;
}

.login-register-dialog .dialog-widget {
  max-width: 400px;
  width: 90%;
  min-width: 300px;
}

.login-register-dialog .dialog-header {
  border-bottom: 1px solid var(--vt-border-color);
  padding-bottom: 15px;
}

.login-register-dialog .dialog-header .title {
  font-size: 18px;
  font-weight: bold;
  color: var(--vt-text-color);
}

.login-register-dialog .dialog-body {
  padding: 20px 15px;
}

/* 头像上传功能样式 */
.avatar-upload-container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.avatar-upload-overlay span {
  z-index: 2;
  pointer-events: none;
}

.avatar-upload-container:hover .avatar-upload-overlay {
  display: flex;
}

/* 密码重置表单样式 */
#forgot-form-step2 {
  margin-top: 15px;
}

#forgot-back {
  text-align: center;
  margin-top: 15px;
}

#forgot-back a {
  color: var(--vt-color-primary);
  text-decoration: none;
  font-size: 14px;
}

#forgot-back a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .login-register-dialog .dialog-widget {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }
  
  .field-text input {
    font-size: 16px; /* Prevents zoom on iOS devices */
  }
  
  .verification-input-group {
    flex-direction: column;
  }
}



.vt-account-panel .media-item {
  padding: 15px 0 !important;
}

/*
 * 用户中心
 */
.vt-account-container {
  width: calc(100% - 16px);
  margin: 10px auto 10px auto;
}

.vt-account-container::after {
  content: "";
  width: 0;
  height: 0;
  display: block;
  clear: both;
}

.vt-account-sidebar {
  width: calc(100% - 40px);
  width: 100%;
}

.vt-account-sidebar > * {
  margin-top: 10px;
}

.vt-account-sidebar > *:nth-child(1) {
  margin-top: 0;
}


@media only screen and (min-width:900px) {
  .vt-account-container {
    width: 1200px;
    margin: 20px auto 20px auto;
    display: flex;
    justify-content: space-between;
  }
  .vt-account-sidebar {
    width: 300px;
    float: left;
    margin-top: 0px;
  }
  .vt-account-sidebar > * {
    margin-top: 20px;
  }
  .vt-account-sidebar > *:nth-child(1) {
    margin-top: 0;
  }
}


/*****************************************************************************/

.vt-account-wrapper {
  width: 100%;
}
.vt-account-wrapper > div:last-child { margin-bottom: 0 !important; }

.vt-account-panel {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  margin-top: 10px;
  background-color: var(--vt-bg-color-card);
  border-radius: var(--vt-border-radius);
  box-shadow: 0 0 2px 0 var(--vt-shadow-color);
  color: var(--vt-text-color);
  box-sizing: border-box;
}

.vt-account-panel h3 {
  font-size: var(--vt-font-size-base);
  margin-top: 0px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--vt-border-color);
  display: flex;
  align-items: center;
}

@media only screen and (min-width:900px) {
  .vt-account-wrapper {
    width: 880px;
    margin-top: 0;
    margin-left: auto;
    font-size: 18px;
  }
  .vt-account-panel {
    margin-top: 0;
    margin-bottom: 20px;
  }

}


/*****************************************************************************/

/* banner */

.profile-hero {
  position: relative;
  height: 200px;
  width: 100%;
  background: var(--background-color, #f0f0f0);
  overflow: hidden;
  background-color: var(--vt-bg-color-card);
  border-radius: var(--vt-border-radius);
  box-shadow: 0 0 2px 0 var(--vt-shadow-color);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--theme-color, #5a667d) 0%, #7f8fa4 100%);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--vt-bg-color-card);
  box-shadow: 0 -1px 4px rgba(0,0,0,0.08);
  padding: 0 8px 30px 0;
  box-sizing: border-box;
}

.hero-avatar-widget {
  position: relative;
  z-index: 2;
  margin-left: 20px;
  margin-top: -50px;
  width: 80px;
  height: 80px;
  border: 4px solid var(--vt-bg-color-card);
  border-radius: var(--vt-border-radius);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.hero-avatar-widget img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-user-info {
  flex: 1;
  margin: 0 0 0 10px;
}

.hero-display-name {
  margin: 5px 0 6px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--vt-text-color);
  line-height: 1.3;
}
.hero-level {
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
  display: inline-block;
  border-radius: var(--vt-border-radius);
  color: #595d69;
  background-color: #cecece;
  padding: 3px 3px;
  transform: scale(0.9);
  position: relative;
  top: -1px;
}
.hero-level i {
  font-size: 13px;
  margin: 0 3px 0 0;
}
.hero-level.vip {
  color: #0cbc87;
  background-color: #afffe7;
}
.hero-level.svip {
  color: #D4AF37; /* 金属光泽 */
  background-color: #FFF599; /* 光泽背景 */
}

/* .hero-level.svip { background-color: var(--vt-color-danger); } */

.hero-bio {
  margin: 0;
  color: var(--text-color-secondary, #666);
  font-size: 14px;
  line-height: 1.4;
}


@media only screen and (min-width: 900px) {
  .profile-hero {
      height: 300px;
  }
  
  .hero-avatar-widget{
      width: 130px;
      height: 130px;
      margin-left: 35px;
      margin-top: -65px;
  }

  .hero-user-info {
    margin: 0 0 0 20px;
  }

}




/*****************************************************************************/


/* user center nav */
.vt-account-sidebar .user-nav {
  background-color: var(--vt-bg-color-card);
  border-radius: var(--vt-border-radius);
  padding: 20px;
  box-shadow: 0 0 2px 0 var(--vt-shadow-color);
  display: flex;
  flex-wrap: wrap;
}

.user-nav a.sidebar-action {
  width: 25%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--vt-font-size-sm);
  padding: 25px 0 0 0;
  box-sizing: border-box;
  color: var(--vt-text-color);
}

.user-nav a.sidebar-action i {
  font-size: 25px;
}

.user-nav a.sidebar-action i:last-child {
  display: none;
}

.user-nav a.sidebar-action.active {
  color: var(--vt-color-primary);
}

.user-nav a.sidebar-action span { margin: 10px 0 0 0; }

@media only screen and (min-width:900px){
  .user-nav a.sidebar-action {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    font-size: var(--vt-font-size-base);
    padding-bottom: 0;
    padding: 11px 0;
  }
  .user-nav a.sidebar-action i {
    font-size: 20px;
    width: 25px;
  }
  .user-nav a.sidebar-action i:last-child {
    font-size: 16px;
    margin-left: auto;
    display: block;
    width: auto;
  }
  .user-nav a.sidebar-action span {
    margin-left: 10px;
    margin-top: 5px;
  }
}


/*****************************************************************************/


.user-no-content {
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--vt-text-color-grey);
  margin-top: 100px;
}
.user-no-content img {
  width: 100px;
}
.user-no-content span {
  margin-top: 10px;
}


/*****************************************************************************/


.detail-widget {
  position: relative;
  font-size: 15px;
}

.detail-item{
  padding: 20px 0;
  line-height: 25px;
}
.detail-item > *{
  display: inline-block;
}

.detail-item .detail-label{
  min-width: 80px;
  color: var(--vt-text-color-grey);
}

.detail-item .private-note{
  font-size: 12px;
  clear: both;
}

/*****************************************************************************/

/**
 * 文章新建、编辑页
 */

 /* 特色图片 */
 .image-upload-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background-color: #fafafa;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.image-upload-area:hover {
  border-color: #007cba;
  background-color: #f0f8ff;
}

.image-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.image-upload-content i {
  font-size: 48px;
  color: #aaa;
  margin-bottom: 10px;
}

.image-preview {
  margin-top: 15px;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#removeImageBtn {
  margin-top: 10px;
}

/**/
#delete-post-btn{
  margin:10px 0 0 0;
}
@media screen and (min-width:900px) {
  #delete-post-btn{
    margin:0 0 0 10px;
  }
}






/**
 * 个人主页
 */

.vt-user-container{
  width: calc(100% - 16px);
  min-height: 300px;
  margin: 10px auto 10px auto;
  position: relative;
  background: var(--background-color, #f0f0f0);
  background-color: var(--vt-bg-color-card);
  border-radius: var(--vt-border-radius);
  box-shadow: 0 0 2px 0 var(--vt-shadow-color);
}

.vt-user-wrapper {
  padding: 10px;
}

@media only screen and (min-width:900px) {
  .vt-user-container{
    width: 1200px;
    margin: 20px auto;
  }
}

/*****************************************************************************/

/**
 * tab
 */
.vt-tablist {
  border-bottom: 1px solid var(--vt-border-color);
}
.vt-tablist ul {
  display: flex;
  overflow-x: auto;
}

.vt-tablist ul::-webkit-scrollbar {
  display: none; 
}

.vt-tablist ul li{ 
  flex: 0 0 auto;
}

.vt-tablist ul li a{
  display: block;
  padding: 15px 10px;
  color: var(--vt-text-color-grey);
}

.vt-tablist ul li.active a{
  color: var(--vt-color-primary);
}

/*****************************************************************************/

/**
 * 文章列表 
 */

.vt-user-posts-list.vt-col-2{
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.vt-user-posts-list.vt-col-2 .vt-post-item{ 
  flex: 0 0 auto;
}

@media only screen and (min-width:900px) {
  .vt-user-posts-list.vt-col-2{
    margin-right: -20px;
    flex-wrap: wrap;
  }
  .vt-user-posts-list.vt-col-2 .vt-post-item{
    width: calc(50% - 20px);
    margin: 0 20px 20px 0;
  }
}





/**
 * profile comments
 */

.vt-user-comments-container {
    padding: 0px;
}

.vt-user-comments-widget {
    background: var(--vt-bg-color-card);
    overflow: hidden;
}

.vt-user-comments-list {
    padding: 0px;
}

.vt-comment-item {
    padding: 20px 20px;
    box-sizing: border-box;
}

.vt-comment-item:last-child {
    border-bottom: none;
}

.vt-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.vt-comment-time {
    color: var(--vt-text-color-grey);
    font-size: 13px;
}

.vt-comment-content {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--vt-text-color);
    background-color: var(--vt-bg-color-grey);
    font-size: 15px;
    padding: 15px;
    border-radius: var(--vt-border-radius);
}

.vt-comment-post {
    padding: 8px 0 0 0;
    color: var(--vt-text-color-grey);
    font-size: 13px;
}

.vt-comment-post a {
    color: var(--vt-color-primary-grey);
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
}

.vt-comment-post i { color:var(--vt-color-primary); }

.vt-no-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--vt-text-color-grey);
}

.vt-no-comments-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--vt-text-color-disable);
}

@media (min-width: 481px) {

}

@media (min-width: 769px) {
    .vt-user-comments-list {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .vt-comment-item{
        width: calc(50% - 20px);
        margin: 0 20px 20px 0;
    }
}





@-webkit-keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translateX(25%)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(25%)}}@-webkit-keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@-webkit-keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translateX(13%)}to{transform:scale(1) translateY(-45%) translateX(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;-webkit-animation:notyf-fadeinup .3s ease-in forwards;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px 0 rgba(0,0,0,.25);position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{-webkit-animation:notyf-fadeoutright .3s forwards;animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translateX(0)}.notyf__toast--disappear .notyf__message{-webkit-animation-delay:.05s;animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translateX(13%);z-index:5;-webkit-animation:ripple .4s ease-out forwards;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.3s;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;-webkit-animation:notyf-fadeinleft .3s forwards;animation:notyf-fadeinleft .3s forwards;-webkit-animation-delay:.35s;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:rgba(0,0,0,.25);border:none;cursor:pointer;transition:opacity .2s ease,background-color .2s ease;outline:none;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:rgba(0,0,0,.15)}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;-webkit-animation-duration:.5s;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px 0 rgba(0,0,0,.13);width:100%}.notyf__dismiss{width:56px}}



