/* PKU180 自定义样式 · 覆盖与微调 */

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* 输入框聚焦时的精致环 */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 4px rgba(140, 24, 21, 0.08);
}

/* 拖拽区域 hover 效果 */
.drop-zone {
    transition: all 0.2s ease;
}
.drop-zone.drag-active {
    background-color: #fef3f3;
    border-color: #8C1815;
    transform: scale(1.01);
}

/* 进度条动画 */
@keyframes progress-stripes {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}

.progress-bar-animated {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
    animation: progress-stripes 1s linear infinite;
}

/* 卡片 hover 升起 */
.card-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
}

/* 文本省略 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 打印优化（速查卡可打印）*/
@media print {
    .no-print { display: none !important; }
}
