.link-line {
    font-size: 16px;
    border-bottom: 1px solid #dddddd;
    min-height:180px;
    position:relative;
    overflow: hidden;
}

/* 缩略图容器样式 */
.thumbnail-container {
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 本地缩略图样式 */
.link-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.link-thumbnail.loaded {
    opacity: 1;
}

/* 在线favicon样式 */
.link-favicon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.link-favicon.loaded {
    opacity: 1;
}

/* 内容容器样式 */
.content-container {
    flex: 1;
    min-width: 0; /* 防止flex子元素溢出 */
}

.link-line .angle{
    width:70px;
    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:not(.link-thumbnail):not(.link-favicon) {
    width: 16px;
    height: 16px;
    /*border-radius: 50%;*/
    margin-right: 1px;
    position: relative;
    top:3px;
}
/* 卡片链接样式 - 让整个卡片区域都可点击 */
.card-link {
    display: block;
    color: #212121;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.card-link:hover {
    color: #212121;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-link:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* 原有的链接样式 */
.link-line a{
    color:#212121;
    text-decoration:none;
}
.link-space{
    margin-top:16px;
    contain: layout style paint;
}
.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: 4; 
    
}
.category-name{
    padding-left:8px;
}
.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:99;
    border-radius: 40px;
    /* border:1px solid red; */
}
.top i{
    font-size: 40px; color: #1E9FFF;
    font-weight: bold;
}
.hidden {
    display: none;
}
/* 显示二维码26acb7ec88feb5a6 */
.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;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .link-thumbnail {
        width: 90px;
        height: 90px;
        transition: opacity 0.2s ease;
    }
    
    .link-favicon {
        width: 24px;
        height: 24px;
        transition: opacity 0.2s ease;
    }
    
    .thumbnail-container {
        margin-right: 8px;
    }
    
    .mdui-card {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    .link-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .link-favicon {
        width: 20px;
        height: 20px;
    }
    
    .thumbnail-container {
        margin-right: 6px;
    }
    
    /* 移动端卡片链接优化 */
    .card-link {
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
    }
    
    .card-link:hover {
        transform: none; /* 移动端禁用hover效果 */
    }
}

/* 性能优化样式 - 统一管理 */
/* 图片加载优化 */
.link-thumbnail, .link-favicon {
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.link-thumbnail.loaded, .link-favicon.loaded {
    opacity: 1;
}

/* 加载占位符 */
.thumbnail-placeholder {
    background: #f0f0f0;
    border-radius: 4px;
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 全局图片优化 */
img {
    max-width: 100%;
    height: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 卡片渲染优化 */
.mdui-card {
    contain: layout style paint;
    will-change: transform;
}

/* 搜索性能优化 */
.search {
    contain: layout style;
}

/* 容器优化 */
.mdui-container {
    contain: layout style;
}

.link-space {
    contain: layout style paint;
}

/* 字体渲染优化 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .link-thumbnail, .link-favicon {
        transition: opacity 0.2s ease;
    }
    
    .mdui-card {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    .link-thumbnail, .link-favicon,
    .mdui-card {
        transition: none;
    }
}