*,
::before,
::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: inherit;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

html {
  font-size: 16px;
  scroll-padding-top: var(--sea-nav-height);
  scroll-behavior: smooth;
}

.sea-svg-icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  overflow: hidden;
  width: 1rem;
  height: 1rem;
}

::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--sea-color-gray);
}

::-webkit-scrollbar-track {
  background-color: var(--sea-color-gray-2);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-width: 320px;
  color: var(--sea-color-text-1);
  background-color: var(--sea-color-main-bg);
  font-family: var(--sea-font-family);

  /* 解决ios下代码块字体样式偏大问题 */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* View Transitions API | 主题切换动画，关闭默认CSS动画 */
::view-transition-image-pair(root) {
  isolation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  display: block;
}

::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 999;
}
html[theme=dark]::view-transition-old(root) {
  z-index: 999;
}
html[theme=dark]::view-transition-new(root) {
  z-index: 1;
}
/* 中性色 */
:root {
  --sea-color-white: #ffffff;
  --sea-color-black: #000000;
  --sea-color-primary: #10b981;
  --sea-color-warning: #f59e0b;
  --sea-color-danger: #ef4444;

  --sea-color-warning-bg: #FDF3D8;

  --sea-color-gray: #8e8e93;
  --sea-color-gray-1: #ccc;
  --sea-color-gray-2: #eee;
}

/* 亮色主题 */
:root {
  --sea-color-main-bg: rgba(255, 255, 255);
  --sea-color-bg: #f4f4f4;
  --sea-color-header-bg: hsla(0, 0%, 100%, 0.9);
  --sea-post-shadow: rgba(0, 0, 0, .1);
  --sea-post-shadow-1: rgba(0, 0, 0, .5);

  --sea-color-text-1: rgba(60, 60, 67);
  --sea-color-text-2: rgba(60, 60, 67, 0.75);
  --sea-color-text-3: rgba(60, 60, 67, 0.33);

  --sea-color-divider: rgba(60, 60, 67, 0.12);
  --sea-color-border: rgba(60, 60, 67, 0.29);
  --sea-color-gutter: rgba(60, 60, 67, 0.42);

  --sea-color-bg-soft: #f6f6f7;
  --sea-color-bg-alt: #f6f6f7;
  --sea-color-text-code: #476582;
  --sea-color-mute: #f6f6f7;

  --sea-color-border-1: #e3e8f7;

  --sea-code-color: var(--sea-color-black);
  --sea-code-selection: #b3d4fc;
  --sea-pre-code-bg: rgba(0, 0, 0, 0.03);
  --sea-code-bg: rgba(0, 0, 0, 0.06);
}

/* 暗色主题 */
html[theme=dark] {
  --sea-color-main-bg: #1e1e22;
  --sea-color-bg: #27272b;
  --sea-color-header-bg: rgba(30, 30, 34, 0.8);
  --sea-post-shadow: rgba(255, 255, 255, .1);
  --sea-post-shadow-1: rgba(255, 255, 255, .5);

  --sea-color-text-1: rgba(255, 255, 245, 0.86);
  --sea-color-text-2: rgba(235, 235, 245, 0.6);
  --sea-color-text-3: rgba(235, 235, 245, 0.38);

  --sea-color-divider: rgba(82, 82, 89, 0.32);
  --sea-color-border: rgba(82, 82, 89, 0.68);
  --sea-color-gutter: rgba(60, 60, 67, 0.62);

  --sea-color-bg-soft: #252529;
  --sea-color-bg-alt: #161618;
  --sea-color-text-code: #c9def1;
  --sea-color-mute: #313136;

  --sea-color-border-1: #3d3d3f;

  --sea-code-color: var(--sea-color-white);
  --sea-code-selection: #3b82f680;
  --sea-pre-code-bg: rgba(255, 255, 255, 0.04);
  --sea-code-bg: rgba(255, 255, 255, 0.08);
}

:root {
  --sea-main-width: 85%;
  --sea-main-max-width: 800px;
  --sea-nav-height: 85px;
}

/* 字体 */
:root {
  --sea-font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco,
    Consolas, 'Liberation Mono', 'Courier New', monospace;
}

/* 阴影 */
:root {
  --sea-shadow-card: 0 1px 15px 0 var(--sea-post-shadow);
  --sea-shadow-header: 0 2px 3px rgba(170, 178, 189, 0.2);
}
code[class*="language-"],
pre[class*="language-"] {
  color: #f8f8f2; /* 默认文本颜色 (深色主题) */
  background: none;
  text-shadow: 0 1px rgba(0,0,0,0.3); /* 文本阴影，增强在深色背景的可读性 */
  font-family: var(--sea-font-family);
  font-size: 0.875rem;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}
pre[class*="language-"] {
/* 顶部内边距为按钮留出空间 */
  padding: 3.2em 1em 1em;
  margin: 0.5em 0;
  overflow: auto;
  border-radius: 0.3em;
  position: relative;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
  background: #272822; /* 深色背景 */
}
pre[class*="language-"]::before {
  content: '';
  position: absolute;
  top: 0.7em;
  left: 1em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
}
:not(pre) > code[class*="language-"] {
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  white-space: normal;
}
pre.line-numbers {
  position: relative;
  padding-left: 3.8em;
}
pre.line-numbers > code {
  position: relative;
  white-space: inherit;
}
.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
/* 此 'top' 值用于将行号与代码垂直对齐 */
  top: 0em;
  font-size: 100%;
  left: -3.8em;
  width: 3em;
  letter-spacing: -1px;
  border-right: 1px solid #3d3d3f; /* 深色主题下的行号边框 */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}
.line-numbers-rows > span:before {
  content: counter(linenumber);
  color: #999; /* 行号数字的颜色 */
  display: block;
  padding-right: 0.8em;
  text-align: right;
}
pre .caption {
  position: absolute;
  top: 0.5em;
  right: 1em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  color: #999;
  font-size: 0.8rem;
  font-weight: 500;
}
html[theme=light] code[class*="language-"],
html[theme=light] pre[class*="language-"] {
  color: #333; /* 白色主题下的主文本颜色 */
  text-shadow: none; /* 移除文本阴影 */
}
html[theme=light] :not(pre) > code[class*="language-"],
html[theme=light] pre[class*="language-"] {
  background: #fafafa; /* 白色主题下的背景色 */
}
html[theme=light] .line-numbers .line-numbers-rows {
  border-right-color: #e3e3e3; /* 白色主题下的行号边框颜色 */
}
html[theme=light] .token.comment,
html[theme=light] .token.prolog,
html[theme=light] .token.doctype,
html[theme=light] .token.cdata,
html[theme=dark] .token.comment,
html[theme=dark] .token.prolog,
html[theme=dark] .token.doctype,
html[theme=dark] .token.cdata {
  color: #999;
}
html[theme=light] .token.punctuation,
html[theme=dark] .token.punctuation {
  color: #ccc;
}
html[theme=light] .token.namespace,
html[theme=dark] .token.namespace {
  opacity: 0.7;
}
html[theme=light] .token.property,
html[theme=light] .token.tag,
html[theme=light] .token.boolean,
html[theme=light] .token.number,
html[theme=light] .token.constant,
html[theme=light] .token.symbol,
html[theme=light] .token.deleted,
html[theme=dark] .token.property,
html[theme=dark] .token.tag,
html[theme=dark] .token.boolean,
html[theme=dark] .token.number,
html[theme=dark] .token.constant,
html[theme=dark] .token.symbol,
html[theme=dark] .token.deleted {
  color: #f92672;
}
html[theme=light] .token.selector,
html[theme=light] .token.attr-name,
html[theme=light] .token.string,
html[theme=light] .token.char,
html[theme=light] .token.builtin,
html[theme=light] .token.inserted,
html[theme=dark] .token.selector,
html[theme=dark] .token.attr-name,
html[theme=dark] .token.string,
html[theme=dark] .token.char,
html[theme=dark] .token.builtin,
html[theme=dark] .token.inserted {
  color: #a6e22e;
}
html[theme=light] .token.operator,
html[theme=light] .token.entity,
html[theme=light] .token.url,
html[theme=light] .language-css .token.string,
html[theme=light] .style .token.string,
html[theme=dark] .token.operator,
html[theme=dark] .token.entity,
html[theme=dark] .token.url,
html[theme=dark] .language-css .token.string,
html[theme=dark] .style .token.string {
  color: #f8f8f2;
}
html[theme=light] .token.operator,
html[theme=light] .token.entity,
html[theme=light] .token.url,
html[theme=light] .language-css .token.string,
html[theme=light] .style .token.string {
  color: #9a6e3a;
}
html[theme=light] .token.atrule,
html[theme=light] .token.attr-value,
html[theme=light] .token.keyword,
html[theme=dark] .token.atrule,
html[theme=dark] .token.attr-value,
html[theme=dark] .token.keyword {
  color: #66d9ef;
}
html[theme=light] .token.function,
html[theme=light] .token.class-name,
html[theme=dark] .token.function,
html[theme=dark] .token.class-name {
  color: #e6db74;
}
html[theme=light] .token.regex,
html[theme=light] .token.important,
html[theme=light] .token.variable,
html[theme=dark] .token.regex,
html[theme=dark] .token.important,
html[theme=dark] .token.variable {
  color: #fd971f;
}
html[theme=light] .token.important,
html[theme=light] .token.bold,
html[theme=dark] .token.important,
html[theme=dark] .token.bold {
  font-weight: bold;
}
html[theme=light] .token.italic,
html[theme=dark] .token.italic {
  font-style: italic;
}
html[theme=light] .token.entity,
html[theme=dark] .token.entity {
  cursor: help;
}
html[theme=dark] code ::-moz-selection,
html[theme=dark] code::-moz-selection,
html[theme=dark] pre ::-moz-selection,
html[theme=dark] pre::-moz-selection {
  background: rgba(255,255,255,0.2); /* 或其他适合深色主题的颜色 */
}
html[theme=dark] code ::selection,
html[theme=dark] code::selection,
html[theme=dark] pre ::selection,
html[theme=dark] pre::selection {
  background: rgba(255,255,255,0.2);
}
html[theme=light] code ::-moz-selection,
html[theme=light] code::-moz-selection,
html[theme=light] pre ::-moz-selection,
html[theme=light] pre::-moz-selection {
  background: rgba(0,0,0,0.4); /* 或其他适合浅色主题的颜色 */
}
html[theme=light] code ::selection,
html[theme=light] code::selection,
html[theme=light] pre ::selection,
html[theme=light] pre::selection {
  background: rgba(0,0,0,0.4);
}
.copy-code-button {
  position: absolute;
  top: 0.7em;
  right: 1em;
  background-color: rgba(255,255,255,0.2);
  color: #f8f8f2;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 4px 10px;
  font-family: var(--sea-font-family);
  font-size: 0.8em;
  cursor: pointer;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out, border-color 0.3s;
  z-index: 10;
}
pre[class*="language-"]:hover .copy-code-button {
  opacity: 1;
}
html[theme=light] .copy-code-button {
  background-color: #e3e3e3;
  color: #333;
  border-color: #ccc;
}
.sea-header {
  width: 100%;
  border-bottom: 1px solid var(--sea-color-divider);
}

#sea-main-wrapper {
  width: var(--sea-main-max-width);
  padding: 1rem 0 0;
  max-width: 100%;
  margin: 0;
  order: 2; /* 视觉上排在第二位 */
}

/* -- 新的页面内容网格布局 -- */
.sea-content-wrapper {
  display: grid;
  /* 定义一个三列网格布局：
    - 中间列宽度为文章主体最大宽度
    - 两侧的 '1fr' 列会平分剩余空间
  */
  grid-template-columns: 1fr minmax(auto, var(--sea-main-max-width)) 1fr;
  column-gap: 2rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.2rem;
}

#sea-main-wrapper {
  grid-column: 2; /* 强制主内容区始终位于中间的第二列 */
  width: 100%;
  padding: 1rem 0 0;
  margin: 0;
  /* 不再需要 order 属性 */
}

.sea-toc-aside {
  position: fixed;
  top: 50px; /* 侧边栏距离顶部的距离 */
  left: calc((100% - var(--sea-main-max-width)) / 2 - 320px - 2rem);
  width: 250px;
  display: none; /* 默认隐藏，在宽屏时由下面的媒体查询显示 */
  bottom: 20px; /* 侧边栏距离底部的距离 */
}
/* 在宽屏上显示目录 */
@media screen and (min-width: 1350px) {
  .sea-toc-aside {
    display: block;
  }
}
.sea-nav-wrap {
  width: var(--sea-main-width);
  height: var(--sea-nav-height);
  max-width: var(--sea-main-max-width);
  margin: 0 auto;
  padding: 0 1.2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sea-nav-logo {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  cursor: pointer;
}

.sea-nav-menus {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#sea-nav-toggle {
  display: none;
}
.sea-menu-wrap {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.sea-menu-icon {
  cursor: pointer;
}

#sea-theme-light {
  display: none;
}

.sea-menu-icon .sea-svg-icon {
  width: 1.2rem;
  height: 1.2rem;
}

#sea-menu-close-icon {
  cursor: pointer;
  display: none;
}

#sea-menu-close-icon .sea-svg-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.sea-menu-link{
  transition: color .3s ease;
}

.sea-menu-link:hover,
.sea-menu-link.active {
  color: var(--sea-color-primary);
}
#sea-footer-container {
  margin-top: auto;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#sea-footer-container .sea-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sea-footer-menu-link .sea-footer-link__dot:last-child {
  display: none;
}

#sea-footer-container .sea-footer-link:hover {
  color: var(--sea-color-primary);
}

#sea-footer-container .split-line {
  margin: 0 8px;
}

.sea-footer-theme-by .theme {
  font-weight: bold;
}

.sea-footer-theme-by .theme:hover {
  color: var(--sea-color-primary);
}
.sea-index-title {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: .5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sea-color-divider);
}

.sea-post-item {
  position: relative;
  padding: 1rem 0;
  margin-bottom: 0.8rem;
  transition: all .3s;
  border-bottom: 1px solid var(--sea-color-divider);
}

.sea-post-title {
  font-size: 1.4rem;
  font-weight: 700;
  transition: all .3s ease-out 0s;
  margin: 0.5rem 0;
  border: none;
  cursor: pointer;
}

.sea-post-link {
  display: block;
}

.sea-post-line {
  transition: all 0.3s ease-out;
  border-top: 2px solid var(--sea-color-text-1);
  display: block;
  width: 2rem;
}

.sea-post-abstract {
  line-height: 1.5;
  margin: 1rem 0;
  color: var(--sea-color-text-2);
  letter-spacing: .5px;
}

.sea-post-item:hover .sea-post-title {
  color: var(--sea-color-primary);
}

.sea-post-item:hover .sea-post-line {
  width: 5rem;
  border-color: var(--sea-color-primary);
}

.sea-post-top-flag {
  color: var(--sea-color-danger);
}

.sea-post-item .sea-post-meta {
  font-size: .875rem;
}

.sea-post-item .sea-post-meta .sea-svg-icon {
  width: .875rem;
  height: .875rem;
}

.sea-index-all-posts {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.sea-index-all-posts .sea-svg-icon {
  width: .875rem;
  height: .875rem;
}

.sea-index-all-posts__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.sea-index-all-posts:hover .sea-index-all-posts__link {
  color: var(--sea-color-primary);
}
.sea-archive-total {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.sea-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}

.sea-archive-year {
  grid-column: 1 / -1; /* 让元素跨越所有列 */
  margin: 0;
}

.sea-archive-list-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border: 1px solid var(--sea-color-border-1);
  padding: .8rem;
  border-radius: 10px;
  cursor: pointer;
}

.sea-archive-list-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--sea-color-text-1);
  transition: color 0.3s ease;
}

.sea-archive-list-item-date {
  color: var(--sea-color-text-2);
}

.sea-archive-list-item:hover .sea-archive-list-item-title {
  color: var(--sea-color-primary);
}
.sea-article-content {
  word-break: break-word;
  margin-top: 1.5rem;
}

.sea-article-title {
  font-size: 1.75rem;
  text-align: center;
}

.sea-post-meta {
  color: var(--sea-color-text-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}

.sea-post-time,
.sea-post-tags,
.sea-post-categories {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  transition: color 0.3s ease;
}

.sea-post-tags:hover,
.sea-post-categories:hover  {
  color: var(--sea-color-primary);
}

.sea-post-meta__center {
  justify-content: center;
}

.sea-article-catalog-title {
  display: flex;
  align-items: center;
}

.sea-article-catalog-title .sea-svg-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: .5rem;
  cursor: pointer;
}

.sea-article-catalog-title .sea-svg-icon.sea-svg-icon-rotate {
  transform: rotate(90deg);
}

.sea-article-catalog > .toc {
  display: none;
}

.sea-article-catalog > .toc.sea-article-catalog-show {
  display: block;
}

.sea-article-catalog .toc,
.sea-article-catalog .toc-child {
  list-style-type: disc;
  padding-left: 1.8rem;
}

.sea-article-catalog .toc-number {
  display: none;
}

.sea-article-catalog .toc-item {
  margin-top: 1rem;
}

.sea-article-catalog .toc-link {
  text-decoration: none;
  color: inherit;
  padding: .5rem 0;
  font-weight: 500;
}

.sea-article-catalog .toc-link:hover {
  color: var(--sea-color-primary);
}

/* 目录美化样式 */
/* 1. 使 .sea-article-catalog 成为一个 flex 容器，并撑满整个侧边栏 */
.sea-toc-aside .sea-article-catalog {
  display: flex;
  flex-direction: column;
  height: 80%; /* 关键：让它占满父容器 .sea-toc-aside 的全部高度 */
}

/* 2. 目录标题样式 (作为固定部分) */
.sea-toc-aside .sea-article-catalog-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-top: 1rem;
  flex-shrink: 0; /* 防止标题在空间不足时被压缩 */
  margin-top: 10vh;
}

/* 3. 可滚动容器的样式 */
.sea-toc-aside .sea-toc-scrollable {
  overflow-y: auto; /* 核心：启用垂直滚动 */
  
  /* --- 隐藏滚动条 --- */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.sea-toc-aside .sea-toc-scrollable::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


/* 4. 目录列表（.toc）本身的美化样式 */
.sea-toc-aside .toc {
  display: block !important;
  list-style: none;
  padding-left: 1rem;
  border-left: 2px solid var(--sea-color-divider);
  padding-bottom: 1rem; /* 为滚动到底部时增加一些空间 */
}

.sea-toc-aside .toc .toc-item {
  margin-top: 0.5rem;
}

.sea-toc-aside .toc .toc-link {
  font-size: 0.875rem;
  color: var(--sea-color-text-2);
  transition: color 0.2s ease;
}

.sea-toc-aside .toc .toc-link:hover {
  color: var(--sea-color-primary);
}

.sea-toc-aside .toc .toc-child {
  padding-left: 1rem;
}

/* 5. 覆盖旧样式，确保我们的代码生效 */
.sea-article-catalog-title .sea-svg-icon {
  display: none;
}

.sea-post-views {
  display: flex;
  align-items: center;   /* 关键：垂直居中 */
  gap: .5rem;            /* 图标与数字间距 */
}

.sea-post-views svg {
  width: 3vh;            /* 让图标高度与文字一致 */
  height: 3vh;
}

.eye-icon {
  outline: 1px solid red;
}
.sea-friend-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.sea-friend-wrapper .sea-friend-card {
  color: inherit;
  padding: 12px;
  border-radius: 10px;
  background-color: var(--sea-color-main-bg);
  border: 1px solid var(--sea-color-border-1);
  cursor: pointer;
  display: flex;
  gap: 15px;
  transition: all .2s ease-in-out;
}

.sea-friend-wrapper .sea-friend-card:hover {
  text-decoration: none;
}

.sea-friend-wrapper .sea-friend-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.sea-friend-wrapper .sea-friend-content {
  flex: 1;
  overflow: hidden;
}

.sea-friend-wrapper .sea-friend-name {
  color: var(--sea-color-primary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sea-friend-wrapper .sea-friend-desc {
  color: var(--sea-color-gray);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sea-works-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.sea-works-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sea-color-border-1);
  border-radius: 10px;
}

.sea-works-cover {
  /* 宽高比20:9 */
  width: 100%;
  padding-top: 45%;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--sea-color-border-1);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.sea-works-cover img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  object-fit: cover;
  border: none !important;
  border-radius: 0 !important;
  transition: transform 0.3s ease;
}

.sea-works-card:hover img {
  transform: scale(1.1);
}

.sea-works-content {
  padding: 0.625rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sea-works-card .sea-works-title {
  font-size: 1rem;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sea-works-card:hover .sea-works-title {
  color: var(--sea-color-primary);
}

.sea-works-desc {
  font-size: 0.875rem;
  color: var(--sea-color-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sea-works-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sea-works-tag {
  padding: 2px 5px;
  border: 1px solid var(--sea-color-border-1);
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--sea-color-gray);
}
.sea-project-wrapper {
  padding: 20px 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  margin: 1rem auto;
  box-shadow: 0 3px 7px -1px rgba(0, 0, 0, .1);
  background: var(--sea-color-bg-soft);
  line-height: 1.5;
  font-family: var(--sea-font-family);
  border-radius: 8px;
  overflow: hidden;
  z-index: 0;
  max-width: 900px;
  min-height: 250px;
}

.blog-card a {
  color: inherit;
  text-decoration: none;
}

.blog-card:hover .photo {
  transform: scale(1.2) rotate(2deg);
}

.blog-card .meta {
  position: relative;
  z-index: 0;
  height: 200px;
  flex-shrink: 0;
}

.blog-card .photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  transition: transform .3s ease-out;
}

.blog-card .description {
  padding: 1.5rem;
  background: var(--sea-color-main-bg);
  position: relative;
  z-index: 1;
}

.blog-card .description h1 {
  line-height: 1.1;
  margin: 0;
  font-size: 1.5rem;
  color: var(--sea-color-text-1);
}

.blog-card .description p {
  position: relative;
  margin: 1rem 0 0;
  color: var(--sea-color-text-2);
}

.blog-card .description p:first-of-type {
  margin-top: 1.25rem;
}

.blog-card .description p:first-of-type::before {
  content: "";
  position: absolute;
  height: 5px;
  background: var(--sea-color-primary);
  width: 40px;
  top: -0.85rem;
  border-radius: 3px;
}

.blog-card .description .read-more {
  text-align: right;
  margin-top: 1.5rem;
}

.blog-card .description .read-more a {
  color: var(--sea-color-primary);
  display: inline-block;
  position: relative;
  font-weight: bold;
  font-size: 0.9rem;
}

/* 桌面端样式 */
@media (min-width: 640px) {
  .blog-card {
    flex-direction: row;
  }
  .blog-card .meta {
    flex-basis: 40%;
    height: auto;
  }
  .blog-card .description {
    flex-basis: 60%;
    padding: 2rem;
  }
  .blog-card .description::before {
    transform: skewX(-3deg);
    content: "";
    background: var(--sea-color-main-bg);
    width: 30px;
    height: 310px;
    position: absolute;
    left: -10px;
    top: 0;
    bottom: 0;
    z-index: -1;
  }
  .blog-card.alt {
    flex-direction: row-reverse;
  }
  .blog-card.alt .description::before {
    left: inherit;
    right: -10px;
    transform: skew(3deg);
  }
}
.sea-prev-next-wrapper {
  border-top: 1px solid var(--sea-color-divider);
  margin-top: 2rem;
  padding-top: .5rem;
}

.sea-prev-next-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.sea-prev-next-wrapper .prev {
  float: left;
  text-align: left;
}

.sea-prev-next-wrapper .next {
  float: right;
  text-align: right;
}

.sea-prev-next-wrapper .prev,
.sea-prev-next-wrapper .next {
  width: 48%;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sea-prev-next-wrapper .link {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sea-prev-next-wrapper .prev:hover .link,
.sea-prev-next-wrapper .next:hover .link {
  text-decoration: none;
}

.sea-prev-next-wrapper .sea-svg-icon {
  width: .875rem;
  height: .875rem;
}
.sea-pagination {
  text-align: center;
}

.sea-pagination .page-number,
.sea-pagination .prev,
.sea-pagination .next,
.sea-pagination .space {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  background-color: var(--sea-color-bg);
  margin: .3rem;
  border-radius: 5px;
  text-align: center;
}

.sea-pagination .page-number.current {
  background-color: var(--sea-color-primary);
  color: var(--sea-color-white);
}
/**
 * Headings
 * -------------------------------------------------------------------------- */

.sea-doc h1 {
  line-height: 2.5rem;
  font-size: 1.75rem;
}

.sea-doc h2 {
  line-height: 2rem;
  font-size: 1.5rem;
}

.sea-doc h3 {
  line-height: 1.75rem;
  font-size: 1.25rem;
}

.sea-doc .headerlink {
  float: left;
  margin-left: -0.87em;
  padding-right: 0.23em;
  opacity: 0;
  transition: color 0.25s, opacity 0.25s;
}

.sea-doc .headerlink::before {
  content: "#";
  color: var(--sea-color-primary);
}

.sea-doc h1:hover .headerlink,
.sea-doc h1 .headerlink:focus,
.sea-doc h2:hover .headerlink,
.sea-doc h2 .headerlink:focus,
.sea-doc h3:hover .headerlink,
.sea-doc h3 .headerlink:focus,
.sea-doc h4:hover .headerlink,
.sea-doc h4 .headerlink:focus,
.sea-doc h5:hover .headerlink,
.sea-doc h5 .headerlink:focus,
.sea-doc h6:hover .headerlink,
.sea-doc h6 .headerlink:focus {
  opacity: 1;
}

/**
 * Paragraph and inline elements
 * -------------------------------------------------------------------------- */

.sea-doc p {
  margin: 1rem 0;
  line-height: 1.75rem;
}

.sea-doc strong {
  font-weight: 600;
}

.sea-doc em {
  font-style: italic;
}

.sea-doc blockquote {
  margin: 1rem 0;
  border-left: 2px solid var(--sea-color-divider);
  padding-left: 1rem;
  transition: border-color 0.5s;
}

.sea-doc blockquote>p {
  margin: 0;
  font-size: 1rem;
  color: var(--sea-color-text-2);
  transition: color 0.5s;
}

.sea-doc blockquote footer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--sea-color-text-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sea-doc blockquote.note.info {
  border-color: var(--sea-color-primary);
}

.sea-doc blockquote.note.warning {
  border-color: var(--sea-color-warning);
}

.sea-doc blockquote.note.danger {
  border-color: var(--sea-color-danger);
}

.sea-doc blockquote.note .note-title {
  margin-bottom: .5rem;
  display: block;
  font-size: 1.3em;
}

.sea-doc a {
  font-weight: 500;
  color: var(--sea-color-primary);
  text-decoration-style: dotted;
  transition: color 0.3s ease;
}

.sea-doc a:hover {
  text-decoration: underline;
  text-underline-offset: .4rem;
}

/**
 * Lists
 * -------------------------------------------------------------------------- */

.sea-doc ul {
  list-style: disc;
}

.sea-doc ol {
  list-style: decimal;
}

.sea-doc dl {
  list-style: square
}

.sea-doc li+li {
  margin-top: .5rem;
}

.sea-doc li>ol,
.sea-doc li>ul,
.sea-doc li>dl {
  margin: .5rem 0 0;
}

/**
 * Table
 * -------------------------------------------------------------------------- */

.sea-doc table {
  display: block;
  border-collapse: collapse;
  margin: 1.25rem 0;
  overflow-x: auto;
}

.sea-doc tr:nth-child(2n) {
  background-color: var(--sea-color-bg-soft);
}

.sea-doc th,
.sea-doc td {
  border: 1px solid var(--sea-color-divider);
  padding: .5rem 1rem;
}

.sea-doc th {
  text-align: left;
  font-size: .875rem;
  font-weight: 600;
  color: var(--sea-color-text-2);
  background-color: var(--sea-color-bg-soft);
}

.sea-doc td {
  font-size: .875rem;
}

/**
 * Decorational elements
 * -------------------------------------------------------------------------- */

.sea-doc hr {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid var(--sea-color-divider);
}

.sea-doc img,
.sea-doc video {
  max-width: 100%
}

.sea-doc img {
  border: 2px solid var(--sea-color-divider);
  -moz-border-radius: 1rem;
  -webkit-border-radius: 1rem;
  border-radius: 1rem;
}

.sea-doc img {
  display: block;
  margin: 0 auto;
  border: 2px solid var(--sea-color-divider);
  -moz-border-radius: 1rem;
  -webkit-border-radius: 1rem;
  border-radius: 1rem;
}

/* 将Mermaid图表居中显示 */
.mermaid {
  text-align: center;
}
.sea-page-card-wrapper {
  margin-bottom: 2rem;
}

.sea-page-card-title {
  line-height: 2.5rem;
  font-size: 1.75rem;
  padding-bottom: 1rem;
  text-align: center;
}

.sea-hover-list-item {
  transition: all .3s;
}

.sea-hover-list-item:hover {
  box-shadow: 0 8px 16px -4px var(--sea-post-shadow);
  transform: translate3d(0, -2px, 0);
}
.sea-page-tags,
.sea-page-categories {
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}

.sea-page-tags__item,
.sea-page-categories__item {
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: .5em;
  padding: .8rem;
  border-radius: 16px;
  background-color: var(--sea-color-main-bg);
  border: 1px solid var(--sea-color-border-1);
  transition: all .3s;
  cursor: pointer;
  line-height: 1;
}

.sea-page-tags__item:hover,
.sea-page-categories__item:hover {
  color: var(--sea-color-primary);
}

.sea-page-tags__item .name,
.sea-page-categories__item .name {
  margin: 0 .5rem;
}

#sea-hero-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.sea-hero-info__left {
  flex: 1;
}

.sea-hero-info__right {
  width: 9rem;
  height: 9rem;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
}

.sea-hero-info__avatar {
  width: 100%;
}

.sea-hero-name {
  font-size: 1.8rem;
}

.sea-hero-info__intro {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--sea-color-text-2);
}

.sea-hero-info__link-item {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: .4rem;
  display: inline-block;
  margin-bottom: 1rem;
  transition: all .3s;
  color: var(--sea-color-text-2);
  font-size: 0.875rem;
}

.sea-hero-info__link-item:hover {
  color: var(--sea-color-primary);
}

.sea-hero-info__dot:last-child {
  display: none;
}
@media screen and (max-width: 768px) {
  :root {
    --sea-main-width: 100%;
  }

  html {
    font-size: 14px;
  }

  #sea-nav-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  #sea-nav-toggle .sea-svg-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .sea-menu-wrap {
    display: block;
    background-color: var(--sea-color-bg);
    position: fixed;
    width: 80%;
    height: 100%;
    top: 0px;
    right: 0px;
    z-index: 10;
    padding: var(--sea-nav-height) 1.2rem 0;
    transform: translateX(100%);
    overflow: auto;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  }

  #sea-nav-dimmer {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 1;
    transform: translateX(100%);
    background-color: var(--sea-color-gutter);
    opacity: 0;
    transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
  }

  .sea-nav-on {
    overflow: hidden;
  }

  .sea-nav-on .sea-menu-wrap {
    transform: translateX(0);
  }

  .sea-nav-on #sea-nav-dimmer {
    opacity: 1;
    transform: translateX(0);
  }

  .sea-menu-wrap .sea-menu-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sea-color-divider);
  }

  .sea-menu-sep {
    display: none;
  }

  .sea-menu-icon {
    display: block;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--sea-color-divider);
  }

  #sea-menu-close-icon {
    display: block;
    position: absolute;
    top: 2.5rem;
    left: 1.2rem;
  }

  .sea-hero-info__right {
    display: none;
  }

  .sea-prev-next-wrapper .prev,
  .sea-prev-next-wrapper .next {
    width: 100%;
    padding-bottom: .2rem;
    border-radius: 0;
  }

  .sea-footer-row .split-line {
    display: none;
  }

  .sea-footer-row .sea-footer-theme-by {
    width: 100%;
  }
}
