/* 全局变量 */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --text-color: #333;
  --text-light: #666;
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --border-color: #e9ecef;
  --success-color: #4cc9f0;
  --warning-color: #f72585;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* 全局样式 */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* 表单样式 */
.form-group {
  padding-bottom: 0;
  margin: 0 0 15px 0;
}

.form-group label.control-label {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}

.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 10px 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
  outline: none;
}

/* 按钮样式 */
.btn {
  border-radius: var(--border-radius);
  padding: 8px 16px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-default {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.btn-default:hover {
  background-color: var(--border-color);
}

/* 卡片样式 */
.well {
  background-color: var(--card-background);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  margin-bottom: 20px;
}

/* 导航标签 */
.nav-tabs {
  background: var(--card-background);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  padding: 0 20px;
}

.nav-tabs>li>a {
  color: var(--text-light);
  border: 0;
  margin: 0;
  padding: 15px 20px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-tabs>li>a:hover {
  background-color: transparent;
  border: 0;
  color: var(--primary-color);
}

.nav-tabs>li>a:focus {
  background-color: transparent;
  border: 0;
  color: var(--primary-color);
}

.nav-tabs>li.active>a {
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

/* 表格样式 */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-hover>tbody>tr:hover {
  background-color: rgba(67, 97, 238, 0.05);
  transition: var(--transition);
}

.filelist>tbody>tr>td {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  padding: 12px 15px;
}

.filelist>tbody>tr>td:first-child {
  font-weight: 600;
  color: var(--primary-color);
}

/* 搜索框样式 */
.searchbox {
  margin-top: 0;
  display: flex;
  align-items: center;
}

.searchbox .form-control {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border-right: none;
}

.searchbox button {
  margin-top: 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

@media (min-width:767px) {
  .searchbox {
    float: right;
  }
}

/* 分页样式 */
.pagination {
  margin-top: 20px;
}

.pagination li a {
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin: 0 5px;
  transition: var(--transition);
}

.pagination li a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.05);
}

.pagination li.disabled a {
  color: var(--text-light);
  border-color: var(--border-color);
  background-color: var(--card-background);
}

.pagination li.active a {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* 查看页面样式 */
.view {
  padding-top: 70px;
  padding-bottom: 80px;
}

.elsetext {
  top: 0;
  color: var(--text-light);
  font-size: 20px;
}

.elseview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius);
}

.tubiao {
  background-color: transparent;
  font-size: 100px;
  color: var(--text-light);
  width: 100px;
  height: 100px;
}

.video_view {
  width: 100%;
  max-height: 450px;
  min-height: 300px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.image_view {
  max-width: 100%;
  max-height: 450px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius);
}

.image {
  max-width: 100%;
  max-height: 450px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* 播放器样式 */
.aplayer {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.aplayer .aplayer-pic {
  height: 100px;
  width: 100px;
  border-radius: 0;
}

.aplayer .aplayer-info .aplayer-music .aplayer-title {
  font-size: 18px;
  font-weight: 500;
}

.aplayer .aplayer-info {
  margin-left: 100px;
  padding: 25px 7px 0 10px;
  height: 66px;
  box-sizing: border-box;
}

.videoplayer {
  width: 100%;
  height: 530px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

@media (max-width:1999px) {
  .videoplayer {
    height: 500px;
  }
}

@media (max-width:991px) {
  .videoplayer {
    height: 450px;
  }
}

@media (max-width:767px) {
  .videoplayer {
    height: 400px;
  }
}

/* 登录表单 */
#loginform {
  max-width: 400px;
  margin: 0 auto;
  background-color: var(--card-background);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

#loginform .loginbtn {
  margin: 15px 0;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
}

.loginbtn i {
  padding-top: 15px;
}

/* 加载动画 */
@-webkit-keyframes stretchdelay {
  0%, 100%, 40% {
    -webkit-transform: scaleY(.4);
  }
  20% {
    -webkit-transform: scaleY(1);
  }
}

@keyframes stretchdelay {
  0%, 100%, 40% {
    -webkit-transform: scaleY(.4);
    transform: scaleY(.4);
  }
  20% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
  }
}

.colorful_loading_frame {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  color: var(--primary-color);
  text-align: center;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colorful_loading {
  margin: 0 auto;
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 10px;
}

.colorful_loading>i {
  display: inline-block;
  margin-right: 3px;
  width: 6px;
  height: 100%;
  background-color: var(--primary-color);
  -webkit-animation: stretchdelay 1.2s infinite ease-in-out;
  animation: stretchdelay 1.2s infinite ease-in-out;
}

.colorful_loading .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.colorful_loading .rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.colorful_loading .rect4 {
  -webkit-animation-delay: -.9s;
  animation-delay: -.9s;
}

.colorful_loading .rect5 {
  -webkit-animation-delay: -.8s;
  animation-delay: -.8s;
}

/* 响应式设计 */
@media (max-width:767px) {
  .fileinfo-table {
    max-width: 100%;
  }
  
  .well {
    padding: 15px;
  }
  
  .nav-tabs {
    padding: 0 10px;
  }
  
  .nav-tabs>li>a {
    padding: 10px 15px;
  }
  
  .filelist>tbody>tr>td {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  #loginform {
    padding: 20px;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.well {
  animation: fadeIn 0.5s ease-out;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 按钮样式增强 */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::after {
  left: 0;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-sm);
}

/* 表单输入反馈 */
.form-control:focus {
  animation: pulse 0.3s ease-in-out;
}

/* 按钮组样式 */
.btn-group {
  display: flex;
  gap: 8px;
}

/* 状态提示 */
.alert {
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: slideIn 0.3s ease-out;
}

/* 卡片悬停效果 */
.card-hover {
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 表格行悬停效果 */
tr.card-hover:hover {
  transform: translateX(5px);
  box-shadow: none;
}

/* 导航栏链接动画 */
.nav navbar-nav li a {
  position: relative;
}

.nav navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav navbar-nav li a:hover::after {
  width: 100%;
}

/* 加载动画增强 */
.colorful_loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* 搜索框交互 */
.searchbox .form-control:focus {
  width: 250px !important;
}

/* 分页按钮交互 */
.pagination li a {
  position: relative;
  overflow: hidden;
}

.pagination li a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 标签样式 */
.label {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.label:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
