/* ===== 首页文章滚动标题 ===== */
.article-ticker-wrap {
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.article-ticker {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.article-ticker-item {
    color: #4b5563;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}
.article-ticker-item:hover {
    color: #2563eb;
    text-decoration: underline;
}
.article-ticker-sep {
    color: #d1d5db;
    font-size: 12px;
    margin: 0 10px;
    display: inline-block;
    vertical-align: middle;
}
/* ===== 小喇叭动态图标 ===== */
.article-ticker-label .fa-bullhorn {
    display: inline-block;
    animation: bullhornShake 1.8s ease-in-out infinite;
    transform-origin: center;
}
@keyframes bullhornShake {
    0%, 100% { transform: rotate(0deg) scale(1); }
    10%  { transform: rotate(-6deg) scale(1.08); }
    20%  { transform: rotate(5deg) scale(1.05); }
    30%  { transform: rotate(-4deg) scale(1.1); }
    40%  { transform: rotate(3deg) scale(1.04); }
    50%  { transform: rotate(0deg) scale(1); }
}
@media (max-width: 768px) {
    .article-ticker-item { max-width: 160px; font-size: 12px; }
}

/* ===== AJAX 表格动画 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.light-table-container { animation: fadeInUp 0.6s ease-out; min-height: 400px; contain: layout style; }
@keyframes headerGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(37,99,235,0.2); }
    50% { box-shadow: 0 4px 20px rgba(37,99,235,0.3); }
}
thead { animation: headerGlow 3s infinite; }
.filter-group:hover label .p-2 { transform: rotate(10deg); }
.filter-group label .p-2 { transition: all 0.3s ease; }
/* loading时隐藏表格body内容 */
.overflow-x-auto.loading { position: relative; }
.overflow-x-auto.loading::after {
    content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.6);
    pointer-events: none; z-index: 5;
}

/* ===== 列内容截断：文字在卡片内部被截断，不溢出 ===== */
.truncate-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  width: 100%;
}
.truncate-cell .truncate {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 材质卡：固定最大宽度，文字自动截断 */
.material-card {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 14px !important;
}
.material-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* 备注卡 */
.remark-card {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 14px !important;
}
.remark-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* 存货地 */
.location-card {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 10px 14px !important;
}
.location-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ===== 鼠标拖拽滚动 ===== */
#dataContainer {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
#dataContainer.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}
#dataContainer.dragging::-webkit-scrollbar { display: none; }
