/* ====================== 太极龙·达到归一 OneNav 主题 ====================== */
:root {
    /* 太极核心配色 */
    --taiji-white: #ffffff;
    --taiji-black: #0a0a0a;
    --taiji-gold: #d4af37; /* 龙元素专属金色 */
    --taiji-gray: #666666;
    --card-radius: 16px;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 16px rgba(212, 175, 55, 0.25);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 白天模式（太极白） */
body {
    background-color: var(--taiji-white);
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 暗黑模式（太极黑） */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--taiji-black);
        color: #e0e0e0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
}

/* 网站标题（龙元素风格） */
.header .title {
    color: var(--taiji-black);
    font-weight: bold;
    letter-spacing: 2px;
}
@media (prefers-color-scheme: dark) {
    .header .title {
        color: var(--taiji-white);
    }
}

/* 分类标题 */
.category-title {
    color: var(--taiji-black);
    border-left: 3px solid var(--taiji-gold);
    padding-left: 10px;
}
@media (prefers-color-scheme: dark) {
    .category-title {
        color: var(--taiji-white);
    }
}

/* 链接卡片（太极圆角+金色边框） */
.link-card {
    background: var(--taiji-white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
@media (prefers-color-scheme: dark) {
    .link-card {
        background: #1a1a1a;
    }
}

/* 卡片 hover 龙元素发光效果 */
.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--taiji-gold);
}

/* 图标适配 */
.link-icon {
    border-radius: 8px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
body{
    /* 增加锚点跳转过度效果 */
    scroll-behavior: smooth;
}
/* 锚点元素位置 */
.anchor-element {
    position: absolute;
    /*控制距离顶部 100px*/
    top: -180px;
    visibility: hidden;
}
.link-line {
    font-size: 16px;
    /* border-bottom: 1px solid #dddddd; */
    height:120px;
    position:relative;
    overflow: hidden;
}
.link-line .angle{
    width:50px;
    height:70px;
    position: absolute;
    background: #FF5722;
    top:-50px;
    right:-50px;
    transform: rotate(45deg);
    color:#fff;
}
.link-line .angle span{
    position: absolute;
    bottom:0;
    display: block;
    width:20px;
    text-align: center;
}
.link-line img {
    width: 16px;
    height: 16px;
    /*border-radius: 50%;*/
    margin-right: 1px;
    position: relative;
    top:3px;
}
.link-line a{
    color:#212121;
    text-decoration:none;
}
.link-space{
    margin-top:16px;
    z-index:999;
}
.link-title{
    /*color:rgb(0,0,0);*/
    font-size:14px;
    font-weight:bold;
    white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height:15px;
}
.link-content{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical; 
    -webkit-line-clamp: 2; 
    
}
.default-title h1{
    font-size: 1.2em;
}
.category-name{
    padding-left:8px;
    font-weight: bold;
}
.category-name i {
    padding-right:12px;
}
footer{
    width:100%;
    /* margin-top:2em; */
    text-align:center;
    line-height: 18px;
    margin-top:2em;
    margin-bottom: 2em;
}
footer a{
    color:#8C9EFF;
    text-decoration: none;
}

.top{
	position:fixed;
	right:10px;
	bottom:30px;
    z-index:1000;
    border-radius: 40px;
    /* border:1px solid red; */
}
.top i{
    font-size: 40px; color: #1E9FFF;
    font-weight: bold;
}
.hidden {
    display: none;
}
/* 显示二维码 */
.show_qrcode{
    height: 300px;
    width: 260px;
    text-align: center;
}
.show_qrcode img{
    text-align: center;
    max-height: 200px;
    max-width: 200px;
}

/* msg弹窗提醒 */
.msg{
    width:40%;
    line-height: 16px;
    text-align: center;
    padding:16px;
    position: fixed;
    top:30%;
    left:30%;
    /* color:#FFFFFF; */
    /* border: 1px #009933 solid; */
    background-color:rgba(0, 0, 0, 0.3);
    /* box-shadow:2px 2px 2px #aaa; */
    border-radius: 2px;
    display: none;
}
.mdui-dialog-title{
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow:ellipsis;
}
.mdui-snackbar-top{
    background-color: #FF2377;
}
.cat-title{
    margin-top: -40px;
    padding-top:79px;
    /* margin-bottom: 0; */
}

/* :target {
    padding-top: 70px;
    margin-top: -70px;
  } */

.category_sub{
    font-size:14px;
    margin-left:0px;
    /*padding-left:8px;*/
}
.category_sub i{
    padding-right:5px;
}
#drawer{
    /* background-color: #FEFEFE; */
    /* box-shadow:1px 0 5px 0 #eeeeee; */
    border-right: 0.5px solid rgba(0, 0, 0, 0.12);
}
#qrcode img{
    max-width: 200px;
}

.more-link a{
    color:#31bdec;
    text-decoration: none;
}

#backButton {
    background-color: #f2f2f2; /* 淡灰色 */
    color: #333; /* 按钮文本颜色为深灰色 */
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition-duration: 0.4s;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    z-index:9999;
    display: block;
    position: relative;
}

#backButton:hover {
    background-color: #e0e0e0; /* 悬停时的颜色稍暗 */
    color: #000; /* 悬停时文本颜色为黑色 */
}

.search{
    z-index:99;
    position: relative;
}