bugfix250107.1
全站通知:

MediaWiki:Common.css

来自烟雨江湖WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl + F5Ctrl + R(Mac为⌘ + R
  • Google Chrome:Ctrl + Shift + R(Mac为⌘ + Shift + R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl + F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/* 这里放置的CSS将应用于所有皮肤 */
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&family=Noto+Serif+SC:wght@200..900&family=Ma+Shan+Zheng&display=swap');

/* WIKI背景 */
body {
  min-height: 900px;
  width:100%;
  height:auto;
  background:url("https://patchwiki.biligame.com/images/yanyu/6/61/881emqacmjfvwikj0rmy7iuj0i659ee.jpg") fixed 50% 0 #d1d1d1;
  font-family:"Lantinghei SC","Open Sans",Arial,"Hiragino Sans GB","Microsoft YaHei","微软雅黑","STHeiti","WenQuanYi Micro Hei",SimSun,sans-serif;
}

/* 全局页面底色 */
.game-bg {
	background-color: #f8f5ee;
	background-image: 
        radial-gradient(circle at 20% 30%, rgba(210, 180, 140, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(169, 169, 169, 0.1) 0%, transparent 30%);
}
.wiki-header {
	background: transparent;
}
.menu-wrap .wiki-menu-li-1 {
	background: transparent;
}
.wiki-header .wiki-nav-celling {
	background: #f8f5ee;
}

/* 小屏幕导航栏置顶屏幕 */
@media only screen and (max-width:450px){
    .navbar {
        position: sticky;
        top: 0;
        left: 0;
        background: #f8f5ee !important;
        margin: 0 -15px 10px;
    }
    .nav-head {
    	margin: 0 5px;
    	background: #f8f5ee !important;
    }
    html {
		scroll-padding-top: 75px;
	}
}

/*贡献者名单调整*/
@media screen and (max-width: 600px) {.wiki-componment-rank {padding: 8px 0;}}

/*右侧工具栏调整*/
.bui-sns-info {right: 5px !important;}
@media only screen and (min-width:768px) and (max-width:1750px) {
.bui-sns-info {display: none !important;}
}

/*图片自适应*/
img{max-width:100%;height:auto;margin:0 auto;text-align:center;}

/*B站视频*/
.BiliVideo span{display:none}

/* 黑幕 */
.heimu,.heimu a:link,.heimu a:visited,.heimu a.external:visited{background:#000;color:#000}
.heimu:hover{-webkit-animation:heimugc 0.5s forwards;animation:heimugc 0.5s forwards;}
.heimu:hover a:link,.heimu:hover a:visited{-webkit-animation:heimulinkgc 0.5s forwards;animation:heimulinkgc 0.5s forwards;}
@-webkit-keyframes heimugc{to{color:#FFF}}
@keyframes heimugc{to{color:#FFF}}
@-webkit-keyframes heimulinkgc{to{color:#3B8BFF}}
@keyframes heimulinkgc{to{color:#3B8BFF}}

/* 链接 */
a {color:#0195d4;transition:all 0.9s;}
a:visited {color:#0195d4;}
a:hover {color:#005f88;text-decoration:none;}
a.new, #p-personal a.new {color:#999;}
a.new, #p-personal a.new:hover {color:#808080;}
a.new:visited, #p-personal a.new:visited {color:#999;}

/* 首页版块宽度 */
.sy-top {
  margin-top:auto
}
.sy-big {
  width:100%;
  box-shadow: none;
  background: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding:5px 10px 10px 10px;
  overflow:hidden;
}
@media only screen and (max-width: 759px) {
  .sy-big {
    width:100%;
    padding:5px 10px 25px 10px;
    overflow:hidden;
  }
  .sy-left,
  .sy-left1,
  .sy-right {
    float: none;
    width: 100%;
  }
}
@media only screen and (min-width: 760px) and (max-width: 991px) {
  .sy-left1 {
    float: left;
    width: calc(100% - 290px);
  }
  .sy-left,
  .sy-right {
    float: right;
    width: 280px;
  }
}
@media only screen and (min-width: 992px) {
  .sy-left {
    float: left;
    width: 270px;
  }
  .sy-left1 {
    float: left;
    margin-left: 10px;
    width: calc(100% - 570px);
  }
	.sy-right {
    float: right;
    width: 280px;
  }
}
@media only screen and (max-width: 759px) {
	.page-首页 .col-sm-12 {
      padding:0px;
  }
}

/* ==编辑摘要的样式== */
.mw-summary-preset {
  display: inline;
  margin: 0;
  padding: 0;
}
.mw-summary-preset-item {
  border-left: 1px solid #a2a9b1;
  display: inline-block;
  line-height: 1.25em;
  margin: 0.125em 0;
  padding: 0 0.5em;
}
.mw-summary-preset-item:first-child {
  border-left: medium none;
  padding-left: 0.25em;
}
.mw-summary-preset-item:last-child {
  padding-right: 0.25em;
}
/* --编辑摘要结束-- */

/* == 筛选按钮 == */
li.btn.cardSelectOption {
  margin-bottom: 2px;
}
li.btn.cardSelectOption.selected {
  color: #333 !important;
  background-color: #e6e6e6;
  border-color: #adadad;
  outline: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
  box-shadow: inset 0 3px 5px rgba(0,0,0,.125);
}
@media only screen and (max-width: 759px) {
  .btn-default:hover{background-color: #ffffff;border-color: #ccc}
}
/* -- 筛选按钮 -- */

/* ==悬浮弹出框== */
.iteminfo{display:none;}
.itemhover:hover .iteminfo{display:block;}
#compare .iteminfo {
  display: block;
}
/* --悬浮弹出框-- */

/* 首页标签按钮样式 */
.btn-bamboo {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 5px;
    min-width: 84px;
    background-color: #f7f3e8;
    color: #4a3520;
    border: none;
    border-radius: 0;
    font-family: "STKaiti", "KaiTi", "楷体", Noto Sans SC;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 -3px 0 rgba(210,180,140,0.3),
        inset 0 0 0 1px rgba(210,180,140,0.4);
}
.btn-bamboo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, transparent 95%, rgba(169,139,89,0.1) 95%),
                      linear-gradient(to right, transparent 90%, rgba(169,139,89,0.1) 90%),
                      linear-gradient(to right, transparent 85%, rgba(169,139,89,0.1) 85%);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    background-position: 0 25%, 0 50%, 0 75%;
    opacity: 0.7;
}
.btn-bamboo:hover {
    background-color: #ede6d5;
    color: #2e1f12;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.15),
        inset 0 -4px 0 rgba(210,180,140,0.4),
        inset 0 0 0 1px rgba(210,180,140,0.6);
}
.btn-bamboo:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 -2px 0 rgba(210,180,140,0.3),
        inset 0 0 0 1px rgba(210,180,140,0.4);
}
.btn-bamboo a {
	position: relative;
	text-decoration: none;
	display: block;
    padding: 6px 12px;
    margin: -6px -12px;
    color: inherit;
    z-index: 1;
}

/* 简易线框 */
.dh {
  padding: 10px;
  margin: 15px 0px;
  border: 1px solid #6C6D71;
  overflow: hidden;
}

/* ul li标签调整 */
.mw-content-ltr dd, .mw-content-rtl .mw-content-ltr dd{
  margin:7.5px 0 7.5px 1.6em;
  line-height:1.8;
}
.mw-parser-output li{
  margin-top:5px;
  margin-bottom:5px;
  line-height: 1.8;
}

/*选项卡调整*/
.panel  {
  padding: 0px;
}
.panel-body  {
  padding: 5px;
}
.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
  margin-top: 0;
}
.paneltitle{
  cursor: pointer;
}
.nav > li > span {
  position: relative;
  display: block;
  padding: 10px 5px;
}
.nav-tabs > li > span {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
.nav-tabs > li > span {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
.nav-tabs > li.active > span, .nav-tabs > li.active > span:hover, .nav-tabs > li.active > span:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}

/* 更新履历 */
.update-log .log-title {
  display: none;
}
.update-log .bili-list-group {
  padding: 0px 4px;
}

/* 禁止选中 */
.noselect{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
.nopoint {pointer-events:none}

/* 禁止自动换行 */
.nowrap {white-space:nowrap;}

/* code, pre, code, tt, kbd, samp 样式修正 */
code {
	color: #c7254e;
	background-color: #f9f2f4;
	border: none;
	border-radius: 0;
	padding: 2px 4px;
}
pre, code, tt, kbd, samp, .mw-code {
	font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
}

/* SmartClick修正 */
.popover-content{word-break:break-all}

/* p标签修正 */
.mw-parser-output p {
    line-height: 1.8;
    margin: 7.5px 0px;
}

/* 左浮动目录CSS */
.beframe #toc { /* 对be隐藏目录,否则浮动目录会遮挡正文 */
    display: none;
}

@media only screen and (min-width:768px) {
    .hovertoc #toc .toctogglelabel {
        color: #999;
    }
    .hovertoc .toc,
    .hovertoc .toccolours {
        border: 1px solid #a2a9b157;
    }
    .hovertoc .mw-content-ltr .toc ul ul,
    .hovertoc .mw-content-rtl .mw-content-ltr .toc ul ul {
        margin: 0 0 0 1em;
    }
    .hovertoc #toc li {
        margin: 6px 0;
    }
    .hovertoc #toc li a {
        color: #2B2A27;
    }
    .hovertoc .scroll-active {
        font-weight: bold;
        color: royalblue !important;
    }
}

/* 右侧浮动一小块 */
@media only screen and (min-width:768px) and (max-width:1750px) {
  .mediawiki .hovertoc #toc{
    display: block;
    position: fixed;
    z-index:99999;
    top: 45%;
    right: 0px;
    min-width: 100px;
    max-width: 300px;
    max-height: 50%;
    overflow-y: auto;
    border: 1px solid #000;
    border-radius: 0 4px 4px 0px;
    -moz-border-radius: 0 4px 4px 0px;
    -webkit-border-radius: 0 4px 4px 0px;
    background: rgba(245,245,245,0.9);
    padding: 5px;
    box-shadow: 0 1px 8px #000;
    -webkit-box-shadow: 0 1px 8px #000;
    -moz-box-shadow: 0 1px 8px #000;
  }
}

/* 显示完整在右侧 */
@media only screen and (min-width:1750px) {
    /* 目录位置 */
    .mediawiki .hovertoc #toc {
        position: fixed;
        top: 120px;
        left: max(5px, calc((100vw - 1280px)/2 - 310px));
        width: min(300px, calc((100vw - 1280px)/2 - 12px));
        background: rgba(245,245,245,0.9);
        border: none;
        max-width: max-content;
        -moz-max-width: max-content;
        box-shadow: 0 1px 8px #000;
        -webkit-box-shadow: 0 1px 8px #000;
        -moz-box-shadow: 0 1px 8px #000;
        padding-left: 15px;
    }
    /* 高度限制、滚动支持 */
    .mediawiki .hovertoc #toc>ul {
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        margin:0;
    }
}
.mediawiki .hovertoc #toc>ul::-webkit-scrollbar {
    width: 8px;
}
.mediawiki .hovertoc #toc>ul::-webkit-scrollbar-track {
    background: transparent;
}

.mediawiki .hovertoc #toc>ul::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.mediawiki .hovertoc #toc>ul::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* 内页标题样式 */
#firstHeading{
  font-family: Reeji-CloudSongDa-GB-Regular;
  font-size: 30px;
  color: rgba(0,0,0,0.85);
  line-height: 40px;
  padding-bottom:10px;
}
.mw-body-content h2, .mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6{
  line-height: 1.1;
  font-family: inherit;
}
.mw-body-content h2 {
  border-bottom:1px solid #222222;
  height: auto;
  padding: 8px 0 5px 3px;
  margin: 18px 0 !important;
  text-shadow: 2px 2px 3px #222222;
  overflow: hidden;
  font-size:30px;
}
.mw-body-content h3 {
  background:rgba(43,102,149,0.5);
  border-radius:6px 6px 6px 6px;
  box-shadow:0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10,10,0,0.5);
  color:#FFF;
  height: auto;
  padding: 5px 0 5px 10px;
  margin: 12px 0 !important;
  text-shadow: 2px 2px 3px #222222;
  overflow: hidden;
  font-size:24px;
}
.mw-body-content h4, .mw-body-content h5, .mw-body-content h6{
  background:rgba(91,150,0,0.5);
  border-radius: 6px 6px 6px 6px;
  box-shadow:0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
  color:#FFFFFF;
  height: auto;
  font-weight:bold;
  overflow:hidden;
  margin: 12px 0 !important;
  padding:5px 0 5px 10px;
  text-shadow:2px 2px 3px #222222;
  margin-bottom:10px;
  font-size:20px;
}

/* 折叠面板 */
.darken{
  background-color:#eed3b2;
  border-color:#eed3b2;
}
.bg-info{
  background-color:#5bc0de;
}
.bg-success{
  background-color:#5cb85c;
}
.bg-primary{
  background-color:#337ab7;
}
.bg-warning{
  background-color:#f0ad4e;
}
.bg-danger{
  background-color:#d9534f;
}

/* 表格样式 */
.wikitable {border-collapse: separate;border-spacing: 0;font-family: inherit;margin: 20px 0;background-color: rgba(255, 253, 248, 0.9);border-radius: 6px;overflow: hidden;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),0 4px 12px rgba(0, 0, 0, 0.08);border: 1px solid rgba(210, 200, 185, 0.5);position: relative;}
.wikitable tr:first-child th {background: linear-gradient(to bottom, #f0ece3, #e4dfd5);color: #5a4a3a;padding: 14px 16px;text-align: center;font-weight: bold;border: none;border-bottom: 2px solid #d4c8b8;letter-spacing: 1px;position: relative;}
.wikitable tr:first-child th:after {content: "";position: absolute;bottom: -1px;left: 0;width: 100%;height: 1px;background: linear-gradient(to right, transparent, #c0b5a5, transparent);}
.wikitable tr:not(:first-child) th {background: rgba(235, 230, 220, 0.4);color: #5a4a3a;padding: 10px 12px;text-align: left;font-weight: bold;border-right: 1px solid #d4c8b8;border-bottom: 1px solid rgba(210, 200, 185, 0.4);}
.wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td {padding: 6px;color: #4a4a4a;border:none;border-bottom: 1px solid rgba(210, 200, 185, 0.4);border-right: 1px solid rgba(210, 200, 185, 0.3);transition: all 0.2s ease;}
.wikitable td:last-child {border-right: none;}
.wikitable tr:nth-child(even) {background-color: rgba(252, 249, 244, 0.7);}
.wikitable tr:nth-child(even) th {background-color: rgba(225, 220, 210, 0.5);}
.wikitable tr:hover td,.wikitable tr:hover th {background-color: rgba(235, 230, 220, 0.6);}
.wikitable tr:last-child td,.wikitable tr:last-child th {border-bottom: none;}
.wikitable:after {content: "烟雨江湖";position: absolute;bottom: 10px;right: 10px;font-family: 'Ma Shan Zheng', cursive;color: rgba(180, 175, 170, 0.05);font-size: 48px;font-weight: bold;transform: rotate(-15deg);z-index: 0;pointer-events: none;text-shadow: 1px 1px 2px rgba(0,0,0,0.03);opacity: 0.7;}
.wikitable:before {content: "";position: absolute;top: 0;left: 0;right: 0;bottom: 0;border: 1px solid transparent;background: linear-gradient(90deg, rgba(200,190,180,0.3), rgba(180,170,160,0.4), rgba(200,190,180,0.3)) border-box;-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);-webkit-mask-composite: destination-out;mask-composite: exclude;pointer-events: none;border-radius: 6px;}

/*隐藏编辑器中的按钮“切换至富文本编辑器”*/
#editor-switch-button{
	display:none;
}

/* 屏蔽手机页面用APP打开按钮 */
.app-download-bar{display:none!important;}
.btn-open-app{display:none!important;}
.ad-put-ui{display:none!important;}

/* -----------评论区样式(引自klbq)----------- */
.comments-title {
    border-bottom: 0 none transparent;
    padding: 0;
    border: 0;
    font-size: 24px;
    margin-top: 40px;
}

.comment-replybox {
    display: block !important;
    animation: popReply 0.4s linear;
    margin-bottom: 16px;
    padding: 16px 18px 6px 0;
    border: 0 !important;
    background: rgba(255,255,255,0.33);
    border-radius: 6px;
    box-shadow: 2px 2px 8px #ddd;
}
.comment-toolbar {
	border-radius: 5px;
    background: transparent;
}
.comment-submit {
	border-radius: 5px;
	color: #000;
    background: rgba(235,248,255,0.6);
    margin-right: 5px;
}

.comment-container-top > div:first-child, .comment-container-top > div:last-child {
    line-height: 22px;
    font-weight: bold;
    padding: 12px 0;
    font-size: 18px;
    border: 0;
    margin-top: 20px;
}

.comment-thread {
    border: 0 !important;
    background: rgba(255,255,255,0.33);
    border-radius: 6px;
    padding: 6px 14px;
    margin: 8;
    box-shadow: 2px 2px 8px #ddd;
    animation: popReply 0.4s linear;
}

/* -----------评论区表情扩展----------- */
.comment-extensions {
	padding-left: 24px;
	color: rgba(0, 0, 0, 0.35);
}
.comment-extensions.comment-extensions-app {
	padding-left: 0;
}
.comment-extensions > * {
	display: inline-block;
	height: 1em;
	margin-right: 0.5em;
	vertical-align: middle;
	cursor: pointer;
}
.comment-extensions * {
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}
.comment-emotes-button {
	position: relative;
}
.comment-extensions-app > .comment-emotes-button {
	font-size: large;
}
.comment-emotes-button > svg {
	border-radius: 50%;
	transition: background-color 100ms;
}
.comment-emotes-button > svg:hover,
.comment-emotes-button > svg:focus {
	background-color: rgba(0, 0, 0, 0.1);
}
.comment-emotes-button > svg:active {
	background-color: rgba(0, 0, 0, 0.2);
}
.comment-emotes-box {
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 500px;
	max-width: calc(90vw - 1em);
	margin: 1em 0;
	padding: 0.5em;
	background-color: #fff;
	border-radius: 0.25em;
	box-shadow: 0 0.5em 1em rgba(0, 0, 0, 0.1);
	z-index: 1000;
}
.comment-extensions-app .comment-emotes-box {
	left: -12.5vw;
}
.comment-emotes {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	padding: 0.5em 0;
	max-height: 250px;
	overflow-y: auto;
}
.comment-emotes-active {
	display: flex;
}
.comment-emote {
	width: 75px;
	height: 75px;
}
.comment-emotes > .comment-emote {
	cursor: pointer;
	margin: 0 0.25em;
	border-radius: 0.25em;
}
.comment-emotes-options {
	display: flex;
	align-items: center;
	overflow-x: auto;
	margin-top: 0.5em;
	height: 50px;
	background-color: #eee;
}
.comment-emotes-option {
	width: 50px;
	height: 50px;
	margin-right: 0.5em;
	border-radius: 0 0 0.25em 0.25em;
	cursor: pointer;
}
.comment-emotes-option:last-child {
	margin-right: 0;
}
.comment-emotes-option-active {
	background-color: rgba(255,140,105,.6);
}

/* 回到顶部 */
.backToTop {
  opacity: 1;
  filter: alpha(opacity=100);
  position: fixed;
  _position: absolute;
  z-index: 9999;
  bottom: 5%;
  right: 2.5%;
  display: none;
  height: 43px;
  width: 43px;
  background: url(https://patchwiki.biligame.com/images/yanyu/7/76/ixp6fwazmp2nlht3s5r2pduemwj48ik.png) no-repeat;
  background-size: contain;
  cursor: pointer;
  color: #272727;
}
/* 隐藏编辑页面中的返回顶部按钮 */
.action-edit .backToTop,
.action-submit .backToTop {
  display: none !important;
}

/* 模板:整站通告 */
.carousel-fade .carousel-inner .item{ opacity:0; -webkit-transition-property:opacity;-moz-transition-property:opacity ; -ms-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity ;}
.carousel-fade .carousel-inner .active{ opacity: 1;}
.carousel-fade .carousel-inner .active.left{left: 0;opacity: 0;}
.carousel-fade .carousel-inner .active.right{left: 0;opacity: 0;}
.carousel-fade .carousel-inner .next.left{opacity: 1;}
.carousel-fade .carousel-inner .prev.right{opacity: 1;}
ol .carousel-indicators {z-index:-99;}
.yanyu-notification {
background-color: #f9f6f0;
border: 1px solid #d9c7a7;
border-radius: 2px;
padding: 15px 20px;
margin: 15px 0;
position: relative;
text-align: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
font-size:16px;
font-weight:bolder;
}
.yanyu-notification::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="%23a67c52" stroke-width="1" stroke-dasharray="5,5"/></svg>');
pointer-events: none;
opacity: 0.2;
}
.yanyu-notification-title {
font-size: 1.1em;
font-weight: bold;
color: #8b4513;
margin-bottom: 8px;
padding-bottom: 5px;
border-bottom: 1px solid #e0d5b8;
}
.yanyu-notification-content {
line-height: 1.6;
}

/* -------------------------顶部菜单美化开始------------------------- */
:root {
  /* 颜色变量 */
  --color-primary: #5a4a3a;
  --color-dark: #3a2a1a;
  --color-light: #6a5a4a;
  --color-lighter: #7a6a5a;
  
  /* 背景渐变 */
  --gradient-menu: linear-gradient(105deg, 
    rgba(248, 245, 238, 0.15) 0%, 
    rgba(230, 226, 216, 0.2) 50%,
    rgba(210, 203, 186, 0.25) 100%);
  
  --gradient-hover: linear-gradient(105deg, 
    rgba(230, 220, 210, 0.3) 0%, 
    rgba(210, 200, 190, 0.4) 100%);
  
  /* SVG背景 */
  --svg-pattern: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M20 20l60 60M80 20L20 80" stroke="rgba(180,175,160,0.08)" stroke-width="1.2"/></svg>');
  
  --svg-decor: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10Q50 5 90 10M10 30Q25 15 40 30M60 70Q75 85 90 70" stroke="rgba(150,140,120,0.1)" stroke-width="2" fill="none"/></svg>');
  
  /* 过渡效果 */
  --transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* 主菜单容器 */
.menu-wrap {
  border: 0;
}

/* 一级菜单项 */
.menu-wrap .wiki-menu-li-1 {
  background: var(--gradient-menu), var(--svg-pattern) !important;
  position: relative;
  border: 1px solid;
  border-color: rgba(100, 90, 70, 0.1);
  border-top-color: rgba(150, 140, 120, 0.2);
  border-radius: 3px;
  margin: 0 4px;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  cursor: pointer;
}

.menu-wrap .wiki-menu-li-1:hover {
  background: var(--gradient-hover) !important;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 -1px 2px rgba(255, 255, 255, 0.3);
}

.menu-wrap .wiki-menu-li-1:first-child { border-radius: 4px 0 0 4px; }
.menu-wrap .wiki-menu-li-1:last-child { border-radius: 0 4px 4px 0; }

/* 一级菜单链接 */
.menu-wrap .wiki-menu-li-1 > a {
  color: var(--color-primary) !important;
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.8),
    1px 2px 3px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  letter-spacing: 1px;
  transition: var(--transition);
}

.menu-wrap .wiki-menu-li-1:hover > a {
  color: var(--color-dark) !important;
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.9),
    1px 2px 4px rgba(0, 0, 0, 0.15);
}

/* 菜单装饰效果 */
.menu-wrap .wiki-menu-li-1::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--svg-decor);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-wrap .wiki-menu-li-1:hover::before {
  opacity: 0.6;
}

.menu-wrap .wiki-menu-li-1:hover > a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(120, 110, 90, 0.6), transparent);
  transform: scaleX(1);
}

/* 二级菜单 */
.menu-wrap .wiki-menu-ul-2 {
  background: rgba(248, 245, 238, 0.95) !important;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

/* 二级/三级菜单项 */
.menu-wrap .wiki-menu-li-2,
.menu-wrap .wiki-menu-li-2 .wiki-menu-ul-3 .wiki-menu-li-3,
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3 {
  background-color: transparent !important;
  cursor: pointer;
  position: relative;
}

/* 二级菜单链接 */
.menu-wrap .wiki-menu-li-2 a {
  color: var(--color-light) !important;
  transition: var(--transition);
}

.menu-wrap .wiki-menu-li-2:hover a {
  color: var(--color-primary) !important;
  background: rgba(230, 225, 215, 0.4) !important;
}

/* 悬浮框 */
.wiki-hoverbox .wiki-hoverbox-inner {
  background: rgba(248, 245, 238, 0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  border: 1px solid rgba(200, 195, 180, 0.4);
}

/* 三级菜单链接 */
.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3 a {
  color: var(--color-lighter) !important;
  text-decoration: none;
}

.wiki-hoverbox .wiki-hoverbox-inner .wiki-menu-li-3:hover a {
  color: var(--color-primary) !important;
  background: rgba(240, 235, 225, 0.5) !important;
}

/* 导航栏 */
.wiki-header .wiki-nav {
  box-shadow: 0 1px 4px #ccc, 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 4px 0;
  background-color: #f8f5ee;
}

.wiki-header .wiki-nav.wiki-nav-celling {
  border-radius: 0 4px;
  padding: 0;
}

.wiki-header .wiki-nav,
.wiki-header .wiki-nav-celling .celling-box,
.wiki-header .wiki-nav .nav-search-box {
  border: none;
}

/* 菜单框 */
.wiki-header .wiki-nav .menu-box {
  border-radius: 5px;
  padding: 5px;
}

/* 表单框 */
.wiki-header .wiki-nav .form-box {
  padding: 4px 0;
  border-radius: 5px;
}

.wiki-header .wiki-nav-celling .form-box,
.wiki-header .wiki-nav-celling .menu-box {
  float: left !important;
}

/* 滚动条 */
.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2::-webkit-scrollbar-thumb,
.wiki-hoverbox .wiki-hoverbox-inner::-webkit-scrollbar-thumb {
  background: rgba(180, 175, 160, 0.5);
  border-radius: 3px;
}

.menu-wrap .wiki-menu-li-1 .wiki-menu-ul-2::-webkit-scrollbar-track,
.wiki-hoverbox .wiki-hoverbox-inner::-webkit-scrollbar-track {
  background: rgba(240, 235, 225, 0.3);
  border-radius: 3px;
}

.wiki-header .wiki-nav .celling-logo .pic-logo {
  margin: 4px 0 0 10px;
}

/* 响应式设计 */
@media (min-width: 768px) {
  .wiki-header .wiki-nav-celling {
    width: 870px;
    padding: 0 60px;
  }
  .wiki-header .wiki-nav-celling .menu-wrap .wiki-menu-li-1 {
    width: 80px;
  }
  /* 搜索框 */
  #simpleSearch1 #searchForm {
    border-radius: 8px;
    background: #ddd !important;
  }

  #simpleSearch1 #searchInput {
    border-radius: 8px;
    background: #ddd !important;
    color: rgb(121, 90, 54) !important;
    width: 78%;
    margin-top: 4px;
  }

  #simpleSearch1 #searchButton { width: 18px; }

  .wiki-header .wiki-nav .nav-search-box {
    padding: 6px 0 6px 4%;
  }
}

@media (min-width: 992px) {
  .wiki-header .wiki-nav-celling {
    width: 1090px;
  }
  .wiki-header .wiki-nav-celling .menu-wrap .wiki-menu-li-1 {
    width: 110px;
  }
}

@media (min-width: 1200px) {
  .wiki-header .wiki-nav-celling {
    width: 1280px;
    padding: 0 60px;
  }
  .wiki-header .wiki-nav-celling .menu-wrap .wiki-menu-li-1 {
    width: 125px;
  }
}
/* -------------------------顶部菜单美化结束------------------------- */