/* 1. 密码验证层样式 */
.password-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.password-card {
  width: 100%;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 30px 25px;
  text-align: center;
}
.password-card h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 500;
}
.password-card .input-group {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}
.password-card .form-control {
  height: 45px;
  border: 1px solid #eee;
  border-right: none;
  font-size: 15px;
  padding: 0 15px;
  transition: border-color 0.3s ease;
}
.password-card .form-control.error {
  border-color: #ff4444;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.2);
}
.password-card .btn {
  height: 45px;
  border-radius: 0;
  font-size: 15px;
  background-color: #ef5e74;
  border-color: #ef5e74;
}
.password-card .btn:hover {
  background-color: #e04a60;
  border-color: #e04a60;
}
.password-card .error-text {
  color: #ff4444;
  font-size: 14px;
  margin-top: 5px;
  display: none;
  animation: fadeIn 0.3s ease;
}

/* 2. 动画效果 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-left {
  0% { transform: translateY(-50%) translateX(100%); }
  100% { transform: translateY(-50%) translateX(-100%); }
}
@keyframes loading-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.shake { animation: shake 0.5s ease; }

/* 3. 页面基础样式 */
img { max-width: 100%; }
p { margin-bottom: 0; }

/* 4. 滚动公告 */
.speaker {
  background-color: #feeb75;
  margin-top: 10px;
  padding: 5px 10px;
  height: 34px !important;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.speaker .scroll-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  padding-left: 30px; 
  animation: scroll-left 10s linear infinite;
}
.speaker::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url('static/img/1icon.png') no-repeat center;
  background-size: 24px;
  z-index: 1;
}
.speaker:hover .scroll-wrap { animation-play-state: paused; }

/* 5. 视频列表 */
div.item { margin-bottom: 1rem; }
div.image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
div.image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
p.time {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  font-size: 12px;
  background-color: rgba(0,0,0,0.7);
  padding: 2px 6px;
  border-radius: 4px;
}
.item a {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}
p.title {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 12px;
  color: #282828;
  padding: 6px 0;
}
#lists {
  margin-top: 10px;
  margin-left: -5px;
  margin-right: -5px;
}
#lists>div {
  padding-left: 5px;
  padding-right: 5px;
}

/* 6. 图片懒加载 */
img[data-src] {
  background-color: #f5f5f5;
  min-height: 100px;
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}
img[data-src].loaded { opacity: 1; }
.img-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  z-index: 1;
}
.img-loading::after {
  content: '';
  width: 100%;
  height: 100%;
  border: 2px solid #ddd;
  border-top-color: #666;
  border-radius: 50%;
  animation: loading-rotate 0.8s linear infinite;
  display: block;
}

/* 7. 分页 */
.pagination .page-link { cursor: pointer !important; }