2026-01-12 14:52:41 +08:00
: root {
2026-01-12 21:07:35 +08:00
/* Easy-Vibe Theme Fix v2025-01-12 */
2026-01-12 22:19:04 +08:00
/* 通过变量控制分组底部留白(默认 24px) */
2026-01-12 14:52:41 +08:00
--vp-sidebar-nav-section-gap : 8 px ;
2026-01-13 20:46:02 +08:00
--ev-doc-font-size : 14 px ;
2026-01-13 15:42:48 +08:00
--ev-doc-line-height : 1.65 ;
2026-01-12 12:21:35 +08:00
}
2026-01-13 12:27:41 +08:00
. vp-doc {
2026-01-13 14:42:34 +08:00
font-size : var ( - - ev - doc - font - size ) ;
line-height : var ( - - ev - doc - line - height ) ;
--el-font-size-extra-large : calc ( var ( - - ev - doc - font - size ) + 6 px ) ;
--el-font-size-large : calc ( var ( - - ev - doc - font - size ) + 4 px ) ;
--el-font-size-medium : calc ( var ( - - ev - doc - font - size ) + 2 px ) ;
--el-font-size-base : var ( - - ev - doc - font - size ) ;
--el-font-size-small : calc ( var ( - - ev - doc - font - size ) - 1 px ) ;
--el-font-size-extra-small : calc ( var ( - - ev - doc - font - size ) - 2 px ) ;
--el-font-line-height-primary : var ( - - ev - doc - line - height ) ;
}
2026-01-13 15:42:48 +08:00
. vp-doc p ,
. vp-doc ul ,
. vp-doc ol {
line-height : var ( - - ev - doc - line - height ) !important ;
}
2026-01-13 14:42:34 +08:00
. vp-doc : where ( p , ul , ol , table , blockquote , pre , details , figure ) {
margin : 10 px 0 ;
}
2026-01-13 15:42:48 +08:00
. vp-doc blockquote {
2026-01-13 20:46:02 +08:00
font-size : inherit !important ;
line-height : var ( - - ev - doc - line - height ) !important ;
2026-01-13 15:42:48 +08:00
color : var ( - - vp - c - text -2 ) ;
2026-01-13 20:46:02 +08:00
margin : 16 px 0 !important ;
padding : 0 0 0 16 px !important ;
2026-01-13 15:42:48 +08:00
}
. vp-doc blockquote p {
font-size : inherit !important ;
2026-01-13 20:46:02 +08:00
line-height : inherit !important ;
margin : 8 px 0 !important ;
}
. vp-doc blockquote p : first-child {
margin-top : 0 !important ;
}
. vp-doc blockquote p : last-child {
margin-bottom : 0 !important ;
2026-01-13 15:42:48 +08:00
}
2026-01-13 14:42:34 +08:00
. vp-doc : where ( li ) {
margin : 4 px 0 ;
}
. vp-doc : where ( ul , ol ) {
padding-left : 1.15 em ;
}
. vp-doc : where ( h1 , h2 , h3 , h4 , h5 , h6 ) {
line-height : 1.3 ;
2026-01-26 13:00:54 +08:00
scroll-margin-top : calc ( var ( - - vp - nav - height , 64 px ) + 24 px ) ;
2026-01-13 14:42:34 +08:00
}
. vp-doc : where ( h1 ) {
margin : 22 px 0 12 px ;
}
. vp-doc : where ( h2 ) {
margin : 20 px 0 10 px ;
}
. vp-doc h2 {
margin : 16 px 0 8 px !important ;
padding-top : 10 px !important ;
border-top : 0 !important ;
}
. vp-doc : where ( h3 ) {
margin : 18 px 0 8 px ;
}
. vp-doc : where ( h4 , h5 , h6 ) {
margin : 16 px 0 8 px ;
}
. vp-doc : where ( hr ) {
margin : 14 px 0 ;
}
. vp-doc : where ( th , td ) {
padding : 6 px 10 px ;
}
. vp-doc : where ( : not ( pre ) > code ) {
font-size : 0.95 em ;
2026-01-13 12:27:41 +08:00
}
2026-01-12 22:19:04 +08:00
/* 生产环境(带 data-v-* 的 scoped 样式)会比 class 选择器更高优先级。
为避免 build/preview 时被覆盖,这里显式匹配 scoped 属性并加 !important。 */
: where ( html ) . VPSidebarItem . level-0 ,
: where ( html ) . VPSidebarItem . level-0 [ data-v-d81de50c ] {
padding-bottom : 8 px !important ;
2026-01-12 12:21:35 +08:00
}
2026-01-12 14:52:41 +08:00
/* 减少一级标题文字与下方子菜单的间距 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarItem . level-0 > . item ,
: where ( html ) . VPSidebarItem . level-0 [ data-v-d81de50c ] > . item {
padding-bottom : 4 px !important ;
2026-01-12 12:21:35 +08:00
}
2026-01-12 18:23:52 +08:00
/* 调整子菜单项之间的间距 - 针对所有层级 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarItem . level-1 . item ,
: where ( html ) . VPSidebarItem . level-1 [ data-v-d81de50c ] . item ,
: where ( html ) . VPSidebarItem . level-2 . item ,
: where ( html ) . VPSidebarItem . level-2 [ data-v-d81de50c ] . item ,
: where ( html ) . VPSidebarItem . level-3 . item ,
: where ( html ) . VPSidebarItem . level-3 [ data-v-d81de50c ] . item ,
: where ( html ) . VPSidebarItem . level-4 . item ,
: where ( html ) . VPSidebarItem . level-4 [ data-v-d81de50c ] . item {
padding-top : 3 px !important ;
padding-bottom : 3 px !important ;
min-height : 26 px !important ; /* 稍微放大便于点击 */
2026-01-12 12:21:35 +08:00
}
2026-01-12 14:52:41 +08:00
/* 针对可能存在的特定类名进行覆盖,确保紧凑 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarGroup ,
: where ( html ) . VPSidebarGroup [ data-v-8d50c081 ] {
2026-01-12 18:23:52 +08:00
padding-top : 6 px !important ;
padding-bottom : 6 px !important ;
2026-01-12 12:21:35 +08:00
}
2026-01-12 14:52:41 +08:00
/* 进一步压缩分组标题与第一项之间的间距 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarItem . level-0 + . VPSidebarItem . level-1 ,
2026-01-13 14:42:34 +08:00
: where ( html )
. VPSidebarItem . level-0 [ data-v-d81de50c ]
+ . VPSidebarItem . level-1 [ data-v-d81de50c ] {
2026-01-12 18:23:52 +08:00
margin-top : -2 px !important ;
2026-01-12 12:21:35 +08:00
}
2026-01-12 14:52:41 +08:00
/* 压缩分组标题本身的行高 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarItem . level-0 . text ,
: where ( html ) . VPSidebarItem . level-0 [ data-v-d81de50c ] . text {
2026-01-12 18:23:52 +08:00
line-height : 1.3 !important ;
2026-01-12 14:52:41 +08:00
}
/* 压缩子项的行高 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarItem . level-1 . text ,
: where ( html ) . VPSidebarItem . level-1 [ data-v-d81de50c ] . text ,
: where ( html ) . VPSidebarItem . level-2 . text ,
: where ( html ) . VPSidebarItem . level-2 [ data-v-d81de50c ] . text ,
: where ( html ) . VPSidebarItem . level-3 . text ,
: where ( html ) . VPSidebarItem . level-3 [ data-v-d81de50c ] . text {
2026-01-12 18:23:52 +08:00
line-height : 1.4 !important ;
padding : 0 !important ; /* 移除文字本身的内边距 */
}
/* 强制链接本身没有额外的边距 */
2026-01-12 22:19:04 +08:00
: where ( html ) . VPSidebarItem . VPLink ,
: where ( html ) . VPSidebarItem [ data-v-d81de50c ] . VPLink {
2026-01-12 18:23:52 +08:00
padding-top : 2 px !important ;
padding-bottom : 2 px !important ;
min-height : auto !important ;
2026-01-12 15:31:23 +08:00
}
2026-01-12 22:19:04 +08:00
/* 清空 sidebar item 自带的 margin,避免垂直间距被放大 */
: where ( html ) . VPSidebarItem . item ,
: where ( html ) . VPSidebarItem [ data-v-d81de50c ] . item {
margin-bottom : 0 !important ;
}
2026-01-12 15:31:23 +08:00
/* 图片高度限制策略:根据长宽比调整最大高度 */
/* 越高的图片(长宽比越大),限制的高度越小,避免占用过多纵向空间 */
. vp-doc img . img-tall {
2026-01-13 12:27:41 +08:00
max-height : 380 px !important ;
max-width : 100 % !important ;
2026-01-12 15:31:23 +08:00
width : auto !important ;
2026-01-13 12:27:41 +08:00
height : auto !important ;
2026-01-12 15:31:23 +08:00
}
. vp-doc img . img-very-tall {
2026-01-13 12:27:41 +08:00
max-height : 280 px !important ;
max-width : 100 % !important ;
2026-01-12 15:31:23 +08:00
width : auto !important ;
2026-01-13 12:27:41 +08:00
height : auto !important ;
2026-01-12 15:31:23 +08:00
}
. vp-doc img . img-ultra-tall {
2026-01-13 12:27:41 +08:00
max-height : 200 px !important ;
max-width : 100 % !important ;
width : auto !important ;
height : auto !important ;
}
. vp-doc img . img-limit-width {
max-width : 100 % !important ;
max-height : 320 px !important ;
width : auto !important ;
height : auto !important ;
}
2026-01-26 13:00:54 +08:00
/* 布局调整:增加内容区域的最大宽度,并适当增加内边距 */
@ media ( min-width : 960px ) {
. VPDoc : not ( . has-sidebar ) . container {
max-width : 1280 px !important ;
padding-left : 40 px !important ;
padding-right : 40 px !important ;
}
. VPDoc . has-sidebar . container {
max-width : 100 % !important ; /* 移除强制宽度限制,让内容自然对齐 */
padding-left : 40 px !important ;
padding-right : 40 px !important ;
}
/* 强制统一首页 Hero 区域的宽度和边距,使其与下方 Features 区域对齐 */
. VPHomeHero . container {
max-width : 1280 px !important ;
padding-left : 40 px !important ;
padding-right : 40 px !important ;
}
}
2026-01-13 12:27:41 +08:00
. vp-doc img . img-limit-height {
max-height : 450 px !important ;
max-width : 100 % !important ;
2026-01-12 15:31:23 +08:00
width : auto !important ;
2026-01-13 12:27:41 +08:00
height : auto !important ;
2026-01-12 15:31:23 +08:00
}
2026-01-12 15:34:58 +08:00
/* Fix tagline wrapping issues */
. VPHomeHero . tagline {
2026-01-13 09:42:39 +08:00
white-space : pre-wrap ;
word-break : break-word ;
2026-01-12 15:34:58 +08:00
max-width : none !important ;
}
2026-01-13 09:42:39 +08:00
@ media ( min-width : 960px ) {
. VPHomeHero . tagline {
white-space : nowrap ;
}
}
2026-01-13 20:09:45 +08:00
/* 移除链接下划线,改善阅读体验 */
. vp-doc a {
text-decoration : none !important ;
border-bottom : 1 px solid transparent ;
transition : border-bottom-color 0.2 s ease-in-out ;
}
. vp-doc a : hover {
border-bottom-color : var ( - - vp - c - brand -1 , #646cff ) ;
}
/* 链接保持无下划线,只在悬停时显示 */
. VPDoc a ,
. VPLink a {
text-decoration : none !important ;
}
/* 侧边栏链接无下划线 */
. VPSidebarItem . VPLink {
text-decoration : none !important ;
}
. VPSidebarItem . VPLink : hover {
text-decoration : none !important ;
}
2026-01-26 13:00:54 +08:00
/* iOS/Apple Style Enhancements */
/* System Font Stack */
: root {
--vp-font-family-base : - apple-system , BlinkMacSystemFont , "SF Pro Text" , "Segoe UI" , Roboto , Helvetica , Arial , sans-serif , "Apple Color Emoji" , "Segoe UI Emoji" , "Segoe UI Symbol" ;
}
/* Glassmorphism Utilities */
. glass {
background : rgba ( 255 , 255 , 255 , 0.7 ) ;
backdrop-filter : blur ( 20 px ) ;
-webkit- backdrop-filter : blur ( 20 px ) ;
border : 1 px solid rgba ( 255 , 255 , 255 , 0.3 ) ;
}
. dark . glass {
background : rgba ( 0 , 0 , 0 , 0.7 ) ;
border : 1 px solid rgba ( 255 , 255 , 255 , 0.1 ) ;
}
/* Hero Section Refinements */
. VPHomeHero . name {
background : -webkit- linear-gradient ( 315 deg , #42d392 25 % , #647eff ) ;
background-clip : text ;
-webkit- background-clip : text ;
-webkit- text-fill-color : transparent ;
filter : drop-shadow ( 0 0 30 px rgba ( 66 , 211 , 146 , 0.3 ) ) ;
}
. VPHomeHero . text {
font-weight : 500 ;
color : var ( - - vp - c - text -2 ) ;
}
. VPHomeHero . action . VPButton . brand {
border-radius : 20 px ;
background-image : linear-gradient ( to right , #42d392 , #647eff ) ;
border : none ;
transition : transform 0.2 s , opacity 0.2 s ;
}
. VPHomeHero . action . VPButton . brand : hover {
transform : scale ( 1.05 ) ;
opacity : 0.9 ;
}
. VPHomeHero . action . VPButton . alt {
border-radius : 20 px ;
border-color : var ( - - vp - c - divider ) ;
background-color : var ( - - vp - c - bg - soft ) ;
transition : transform 0.2 s ;
}
. VPHomeHero . action . VPButton . alt : hover {
transform : scale ( 1.05 ) ;
background-color : var ( - - vp - c - bg ) ;
}
2026-01-27 02:06:42 +08:00
/* HomeFeatures Sections Scroll Offset */
. section-container {
scroll-margin-top : 80 px ;
}
2026-01-27 11:02:44 +08:00
/* Home Hero Full Screen */
. VPHomeHero {
min-height : 100 vh ;
min-height : 100 dvh ;
display : flex !important ;
align-items : center ;
justify-content : center ;
padding-top : var ( - - vp - nav - height , 64 px ) !important ;
padding-bottom : 18 vh !important ;
box-sizing : border-box ;
}