﻿/* ===== XiYuJing 全站全局样式（与首页 poetize 风格统一） ===== */
:root {
  --pz-bg: #ffffff;
  --pz-bg2: #f5f6fb;
  --pz-font: #1f1f1f;
  --pz-grey: #666;
  --pz-grey2: #999;
  --pz-border: rgba(0,0,0,.08);
  --pz-border2: rgba(0,0,0,.14);
  --pz-card: rgba(255,255,255,.85);
  --pz-card2: #fff;
  --pz-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.05);
  --pz-shadow-h: 0 10px 30px rgba(0,0,0,.12);
  --pz-white: #fff;
  --pz-black: #111;
  --pz-red: #ff4b2b;
  --pz-red2: #ff416c;
  --pz-accent: #39c5bb;
  --pz-theme: #ff623e;
  --pz-translucent: rgba(0,0,0,.4);
  --pz-mask: rgba(0,0,0,.55);
  --pz-font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body { background: var(--pz-bg); color: var(--pz-font); font-family: var(--pz-font-family); }
html.dark {
  --pz-bg: linear-gradient(0deg, #221831, #1b1b2e, #15151c);
  --pz-bg2: #17162a;
  --pz-font: #e4e4e4;
  --pz-grey: #b4b4b4;
  --pz-grey2: #8a8a8a;
  --pz-border: rgba(255,255,255,.1);
  --pz-border2: rgba(255,255,255,.18);
  --pz-card: rgba(255,255,255,.07);
  --pz-card2: rgba(255,255,255,.05);
  --pz-shadow: 0 4px 24px rgba(0,0,0,.35), 0 1px 4px rgba(0,0,0,.2);
  --pz-shadow-h: 0 10px 30px rgba(0,0,0,.45);
}

/* ----- 全站统一导航栏（参考 poetize） ----- */
.nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  height: 60px;
  margin: 0;
  padding: 0 28px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  color: #fff;
  font-family: var(--pz-font-family);
  z-index: 9999;
  user-select: none;
  transition: background .3s ease-in-out, color .3s ease-in-out, box-shadow .3s ease-in-out;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav.solid {
  background: rgba(255,255,255,.94);
  color: #333;
  box-shadow: 0 1px 3px rgba(0,34,77,.06);
}
html.dark .nav.solid { background: rgba(28,24,48,.94); color: #e4e4e4; }

.nav-title { cursor: pointer; }
.nav-title a {
  font-family: "Xvyu","STKaiti","KaiTi",serif;
  font-size: 24px; color: inherit; text-decoration:none; letter-spacing:1px;
  white-space: nowrap;
}
.nav-title a:hover { opacity:.85; }

.nav-right { display:flex; align-items:center; gap:10px; }

.nav-menu {
  display: flex; align-items:center; flex-wrap:nowrap;
  list-style:none; margin:0; padding:0; gap:6px;
}
.nav-menu > li { display:flex; align-items:center; position:relative; height:60px; }
.nav-menu > li > a,
.nav-drop-label {
  display:flex; align-items:center; gap:6px;
  height:100%; padding:0 6px;
  font-size:16px; color:inherit; text-decoration:none; cursor:pointer;
  white-space:nowrap;
}
.nav-menu > li > a i, .nav-drop-label i { font-size:16px; }
.nav-menu > li > a::after, .nav-drop-label::after {
  content:""; position:absolute; bottom:0; left:0;
  height:4px; width:100%; max-width:0;
  background: var(--pz-theme);
  transition: max-width .25s ease-in-out;
}
.nav-menu > li:hover > a::after, .nav-menu > li > a.active::after,
.nav-drop:hover .nav-drop-label::after { max-width:100%; }
.nav-menu > li:hover > a span, .nav-menu > li > a.active span,
.nav-menu > li:hover > a i, .nav-drop:hover .nav-drop-label span { color: var(--pz-theme); }

.nav-login {
  display:flex; align-items:center; gap:5px;
  height:60px; padding:0 8px;
  color:inherit; font-size:16px; text-decoration:none; cursor:pointer;
  white-space:nowrap; position:relative;
}
.nav-login::after {
  content:""; position:absolute; bottom:0; left:0;
  height:4px; width:100%; max-width:0; background:var(--pz-theme);
  transition:max-width .25s ease-in-out;
}
.nav-login:hover::after { max-width:100%; }
.nav-login:hover span { color: var(--pz-theme); }

.nav-user { position:relative; display:flex; align-items:center; height:60px; padding:0 6px; }
.nav-avatar { width:36px; height:36px; border-radius:50%; object-fit:cover; display:block; border:2px solid rgba(255,255,255,.45); cursor:pointer; }
html:not(.dark) .nav.solid .nav-avatar { border-color: rgba(0,0,0,.15); }
.pz-user-menu {
  position:absolute; top:100%; right:-6px;
  min-width: 230px;
  background:#fff; color:#1f1f1f;
  border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.18);
  padding:8px 8px 10px; display:none; z-index:10002; text-align:left;
  user-select:none;
}
/* 桥接区：避免鼠标从头像移向菜单时因空隙而收起 */
.pz-user-menu::before { content:''; position:absolute; top:-18px; left:-10px; right:-10px; height:18px; }
.nav-user:hover .pz-user-menu { display:block; }
html.dark .pz-user-menu { background: rgba(32,28,54,.98); color:#e4e4e4; }
.pz-user-head { display:flex; align-items:center; gap:10px; padding:8px 10px 12px; border-bottom:1px solid var(--pz-border); }
.pz-user-head-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; }
.pz-user-name { font-weight:700; font-size:15px; }
.pz-user-badge { margin-left:6px; font-size:10px; font-weight:900; color:#fff; background:var(--pz-red2); padding:2px 7px; border-radius:4px; vertical-align:middle; }
.pz-user-item { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:8px; color:inherit; text-decoration:none; font-size:14px; }
.pz-user-item:hover { background:var(--pz-border); color:var(--pz-theme); }
.pz-user-item > i { width:16px; text-align:center; font-size:15px; }
.pz-user-item > .el-icon-arrow-right { margin-left:auto; width:auto; color:var(--pz-grey2); font-size:13px; }
.pz-user-div { height:1px; background:var(--pz-border); margin:6px 10px; }

.nav-burger {
  display:none; align-items:center; justify-content:center;
  width:40px; height:40px; border:none; border-radius:10px;
  background: rgba(255,255,255,.14); color:#fff; cursor:pointer; font-size:21px;
}
html:not(.dark) .nav.solid .nav-burger { color:#333; background: rgba(0,0,0,.06); }

/* 右对齐下拉 */
.pz-submenu-right { left:auto !important; right:0; }

/* 手机菜单 */
.menu_list {
  position: fixed !important; top:60px; left:0; right:0;
  background: rgba(22,19,38,.97) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding:8px 16px 16px; z-index:9998;
}
.menu_list.open { display:block !important; }
.menu_list a {
  display:block; color:#fff; font-size:16px; font-family:var(--pz-font-family);
  padding:13px 6px; border-bottom:1px solid rgba(255,255,255,.08); text-decoration:none;
}
.menu_list a:hover { color:var(--pz-theme); }

@media (max-width: 850px) {
  .nav { padding:0 14px; gap:8px; }
  .nav-menu, .nav-user, .nav-login { display:none !important; }
  .nav-burger { display:flex; }
  .nav-title a { font-size:20px; }
}
/* ----- 内页统一排版（poetize 风格容器） ----- */
[class*="main_class"] {
  font-family: var(--pz-font-family);
  color: var(--pz-font);
}
.header_class {
  font-family: var(--pz-font-family) !important;
  height: auto !important;
  padding: 60px 20px 20px;
  text-align: center;
}
.header_class .one {
  font-size: 42px !important;
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.header_class .two { color: rgba(255,255,255,.8) !important; font-size: 18px !important; }

/* 分类标签条 */
.main_class .top {
  background: var(--pz-card2) !important;
  border: 1px solid var(--pz-border);
  border-radius: 16px !important;
  box-shadow: var(--pz-shadow);
  padding: 12px 14px !important;
  width: 90% !important;
  max-width: 900px;
  backdrop-filter: blur(8px);
}
.main_class .top .item { margin: 4px !important; }
.main_class .top .item .one {
  height: auto !important;
  padding: 7px 14px !important;
  border: 1px solid var(--pz-border2) !important;
  border-radius: 2rem 0 0 2rem !important;
  font-size: 14px !important;
  color: var(--pz-font);
  background: transparent;
}
.main_class .top .item .one:hover { background: var(--pz-border) !important; }
.main_class .top .item .one::before { display: none !important; }
.main_class .top .item .two {
  height: auto !important;
  padding: 7px 14px !important;
  border-radius: 0 2rem 2rem 0 !important;
  background: linear-gradient(90deg, var(--pz-red), var(--pz-red2)) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
}

/* 文章列表（home 风格卡片） */
.main_class .bottom {
  background: transparent !important;
  width: 90% !important;
  max-width: 900px;
  margin-top: 16px;
}
.main_class .bottom > ul > li {
  background: var(--pz-card) !important;
  border: 1px solid var(--pz-border);
  border-radius: 16px !important;
  box-shadow: var(--pz-shadow);
  overflow: hidden;
  margin-bottom: 24px !important;
  transition: box-shadow .3s, transform .3s;
  color: var(--pz-font);
}
.main_class .bottom > ul > li:hover { box-shadow: var(--pz-shadow-h); transform: translateY(-3px); }
.main_class .bottom > ul > li .left > div { border-radius: 10px !important; }
.main_class .bottom > ul > li .right h2 a { color: var(--pz-font) !important; }
.main_class .bottom > ul > li .right h2 a:hover { color: var(--pz-theme) !important; }
.main_class .bottom > ul > li .right .p { color: var(--pz-grey) !important; font-size: 17px !important; }
.main_class .bottom > ul > li .right .article_info { color: var(--pz-grey) !important; font-size: 14px !important; }
.main_class .bottom > ul > li .right .a {
  background: linear-gradient(90deg, var(--pz-red), var(--pz-red2)) !important;
  color: #fff !important;
  border-radius: 2rem !important;
}

/* 归档时间线 */
.wrapper .box-area .box-text {
  background: var(--pz-card) !important;
  border: 1px solid var(--pz-border);
  border-radius: 16px;
  box-shadow: var(--pz-shadow);
  color: var(--pz-font) !important;
}
.wrapper .box-area .box-text p { color: var(--pz-grey) !important; }

/* 相册 */
.photo {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: var(--pz-shadow);
  border: 1px solid var(--pz-border);
}
.photo span { color: var(--pz-white); text-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* 书库 */
.bank_main { font-family: var(--pz-font-family); }
.bank_main .item, .main_class .bottom_main { color: var(--pz-font); }
.bank_main .content_class .website {
  background: var(--pz-card2);
  border: 1px solid var(--pz-border);
  border-radius: 14px;
  box-shadow: var(--pz-shadow);
  transition: box-shadow .3s, transform .3s;
}
.bank_main .content_class .website:hover { box-shadow: var(--pz-shadow-h); transform: translateY(-3px); }
.bank_main .content_class .website .title { color: var(--pz-font); }
.bank_main .content_class .website .about p { color: var(--pz-grey); }

/* ----- 文章阅读页 ----- */
.article_header { position: relative; }
.article_header .article_bj { width: 100%; height: 300px; object-fit: cover; }
.article_header .title { position: absolute; inset: 0; background: rgba(0,0,0,.4); color: #fff; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; padding: 20px; }
.article_header .title h1 { font-size: 34px; text-shadow: 0 4px 16px rgba(0,0,0,.4); }
.article_header .title p { color: rgba(255,255,255,.85); }
.article main { font-family: var(--pz-font-family); }
.article .article_content, .article_main { color: var(--pz-font) !important; }
html.dark .article .article_content, html.dark .article_main { color: var(--pz-font) !important; }

/* ----- 浮动按钮（暗色 + 回顶，全站） ----- */
.pz-float {
  position: fixed;
  right: 22px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9998;
}
.pz-float-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--pz-border2);
  box-shadow: 0 2px 12px rgba(0,0,0,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  cursor: pointer;
  font-size: 20px;
  transition: all .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pz-float-btn:hover { background: var(--pz-theme); color: #fff; transform: scale(1.08); }

/* ----- 登录/独立页卡片 ----- */
.login_card {
  background: var(--pz-card);
  border: 1px solid var(--pz-border);
  border-radius: 20px;
  box-shadow: var(--pz-shadow);
  backdrop-filter: blur(8px);
  color: var(--pz-font);
}

@media (max-width: 850px) {
  .header_class .one { font-size: 30px !important; }
  .main_class .top, .main_class .bottom { width: 100% !important; }
  .nav { padding: 0 12px; }
  .nav .nei > a:not(.input) { display: none; }
  .nav .photo_menu { display: block; }
  .nav h2 a { font-size: 20px; }
}



/* ----- 文章正文暗色可读性 ----- */
html.dark #article_content,
html.dark .article_content,
html.dark .editormd-preview,
html.dark .editormd-preview-container,
html.dark .markdown-body { color: var(--pz-font) !important; }
html.dark #article_content p,
html.dark .article_content p,
html.dark .editormd-preview p { color: var(--pz-font) !important; }
html.dark #article_content h1, html.dark #article_content h2,
html.dark #article_content h3, html.dark #article_content h4 { color: var(--pz-font) !important; }
html.dark #article_content blockquote { color: var(--pz-grey) !important; }

/* ----- 通用内页文字使用设计令牌 ----- */
[class*="main_class"], .bank_main, #my_space, .info_user, .account_security {
  color: var(--pz-font);
}
html.dark #my_space .user_info h3, html.dark #my_space .user_info h4 { color: var(--pz-font); }
html.dark .collection_table { color: var(--pz-font); }
html.dark .collection_table td, html.dark .collection_table th { border-color: var(--pz-border); }

/* ----- 登录/注册/404 卡片背景 ----- */
html.dark .login_forms input, html.dark .code input { color: var(--pz-font); background: var(--pz-card2); }
html.dark .login_forms input::placeholder { color: var(--pz-grey2); }

/* ----- 内页背景图：作为顶部 hero 渐隐到内容背景（与首页一致） ----- */
.bj {
  position: fixed !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 54vh !important;
  object-fit: cover;
  z-index: -1000 !important;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,0) 92%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,0) 92%);
}
.header_class {
  min-height: 44vh !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px 0 !important;
}

/* ----- 文章页暗色：内容/评论容器 ----- */
html.dark #app main { background-color: var(--pz-bg); }
html.dark #app main .article .article_title,
html.dark #app main .article .article_content,
html.dark #app main .article .comment_submit,
html.dark #app main .article .comment_list > ul > li > .right,
html.dark #app main .article .comment_submit .body { background-color: var(--pz-card2); }
html.dark #app main .article .article_title p,
html.dark #app main .article .article_title p span { color: var(--pz-grey); }
html.dark #app main .slider_bar { background: var(--pz-card2); color: var(--pz-font); border-color: var(--pz-border); }
html.dark #app main .slider_bar .body p { color: var(--pz-grey); }


html.dark .pz-float-btn {
  background: rgba(40,33,64,.9);
  border-color: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
}

/* ===== 导航“记录”下拉（CSS 悬浮，避免 el-dropdown 定位/层级问题） ===== */
.pz-menu-item, .nav-drop { position: relative; }
.pz-submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--pz-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  display: none;
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html.dark .pz-submenu { background: rgba(35,30,58,.96); border-color: rgba(255,255,255,.12); }
.pz-submenu::before { content:''; position:absolute; top:-16px; left:-12px; right:-12px; height:16px; }
.pz-menu-item:hover .pz-submenu, .nav-drop:hover .pz-submenu { display: block; }
.pz-submenu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s;
}
.pz-submenu a i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--pz-grey);
}
html.dark .pz-submenu a { color: #e4e4e4; }
.pz-submenu a:hover { background: var(--pz-border); color: var(--pz-theme); }
.nav-drop-label { cursor: pointer; }
.nav-drop-label i { font-size: 12px; margin-left: 4px; }


.nav-drop-label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 15px;
  color: #fff;
  font-family: var(--pz-font-family);
  transition: background .25s, color .25s;
}
.nav-drop:hover .nav-drop-label { background: rgba(255,255,255,.16); color: #fff; }
.nav-drop-label i.far, .nav-drop-label i.fa { margin-right: 4px; }




/* ===== Element UI 消息提示：下移避开顶部导航栏 ===== */
.el-message {
  top: 92px !important;
  z-index: 10001 !important;
}
