/* 基础重置与背景 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 卡片网格容器 — 经典响应式卡片布局 */
.card-grid {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ----- 骨架卡片 ----- */
.skeleton-card {
    background-color: #ffffff;
    border-radius: .4rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    padding: 1rem 1rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.02);
    width: calc(100% - 2px);
}

/* 骨架内所有块级占位元素共用闪电动画 */
.skeleton-block {
    background: #e5e7eb;  /* 基色 — 中性200 */
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;      /* 让伪元素流光被裁剪 */
}

/* 流动光效 (shimmer) — 所有骨架块共有 */
.skeleton-block::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 70%,
    transparent 100%
);
transform: translateX(-100%);
animation: shimmer 2s infinite;
pointer-events: none;
}

/* 闪电动画 — 流畅的横向划过 */
@keyframes shimmer {
100% {
    transform: translateX(100%);
}
}

/* 卡片头部：模拟图标 + 双行文字 */
.card-header {
display: flex;
align-items: center;
gap: 0.8rem;
}

/* 圆形图标骨架 */
.skeleton-icon {
width: 3.8rem;
height: 3.8rem;
background-color: #d1d5db;   /* 稍深一点增加层次 */
border-radius: 5px;        /* 圆形 */
flex-shrink: 0;
}

/* 头部两行文字区域 */
.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.skeleton-title {
    height: 1rem;
    width: 90%;
    background-color: #d1d5db;
}

.skeleton-subtitle {
    height: 0.8rem;
    width: 99%;
    background-color: #d1d5db;
}

/* 标签组 (两个小圆角块) */
.tags-group {
    flex: 1;
    display: flex;
    gap: 0.5rem;
}

.skeleton-tag {
    width: 2rem;
    height: 0.8rem;
    background-color: #d1d5db;
    border-radius: .2rem;
}

.line-card{
    width: calc(100% - 24px);
    max-width: 600px;
    border-radius: 5px;
    margin: 1px;
    padding: 8px;
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 0 2px #d9d9d9;
}
.line-card *{
    padding: 0;
    margin: 0;
}
.line-card-left{
    width: 74px;
    height: 74px;
    float: left;
    border-radius: 8px;
    background: #f5c8c8;
    overflow: hidden;
    position: relative;
}
.line-card-left .line-label{
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10px;
    color: #000000;
    padding: 3px 5px;
    border-radius: 4px 0 4px 0;
}
.line-card-left .difficulty-label-1{
    background: #7bf28b;
}
.line-card-left .difficulty-label-2{
    background: #f2f27b;
}
.line-card-left .difficulty-label-3{
    background: #f0a146;
}
.line-card-left .difficulty-label-4{
    background: #ee592b;
}
.line-card-left .difficulty-label-5{
    background: #f00808;
}   
.line-card-left img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.line-card-right{
    width: calc(100% - 84px);
    margin-left: 10px;
    float: right;
}
.line-card-right h4{
    font-size: 14px;
    color: #333333;
    overflow: hidden;
    white-space: pre;
    text-overflow: ellipsis;
}
.line-detail-info-list{
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666666;
    margin: 2px 0 3px;
}
.line-detail-info-list .line-detail-info-item{
    display: flex;
    align-items: center;
}
.line-detail-info-list .line-detail-info-item img{
    width: 12px;
}
.line-user-data{
    font-size: 10px;
    color: #999999;
}
.line-label-list{
    padding: 6px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.line-label-list .line-label-item{
    font-size: 8px;
    color: #666666;
    padding: 2px 4px;
    margin-right: 4px;
    background: #f6f6f6;
    border-radius: 4px;
    float: left;
}
/* 2026年9月15日12:21:14 新增 官方图标 */
.is-offcial{
    width: 20px;
    height: 20px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    color: #fff;
    background: #00ca80;
    display: none;
}
.is-offcial.show{
    display: inline-block;
    text-align: center;
}