/* ===== 全局基础样式 ===== */
body {
  background-color: #f8fafd;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #2d3436;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ===== 顶部导航栏 ===== */
.navbar {
  background-color: #00B894;
  border: none;
}

/* ===== 面板卡片样式 ===== */
.panel {
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border: none;
  margin-bottom: 28px;
  background-color: #fff;
}

.panel-heading {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background-color: #00B894;
  color: #fff;
  padding: 14px 20px;
}

.panel.panel-primary > .panel-heading,
.panel.panel-info > .panel-heading {
  background-color: #3b82f6;
}

.panel-title {
  font-size: 17px;
  font-weight: bold;
  margin: 0;
}

.panel-body {
  padding: 24px;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  background-color: #fff;
}

/* ===== tab 样式 ===== */
.nav-tabs {
  border-bottom: 2px solid #eee;
  margin: 0 12px;
}

.nav-tabs > li > a {
  color: #7f8c8d;
  font-weight: 500;
  padding: 12px 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  transition: color 0.2s, border-bottom 0.2s;
}

.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
  color: #00B894;
  border-bottom: 3px solid #00B894;
  background: transparent;
}

/* ===== 表单输入组 ===== */
.input-group .form-control {
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid #ccc;
  padding: 10px 14px;
}

.input-group-btn .btn {
  border-radius: 6px;
  height: 42px;
}

/* ===== 文件信息表格 ===== */
.table.fileinfo-table {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
  width: 100%;
}

.table.fileinfo-table th,
.table.fileinfo-table td {
  padding: 12px 16px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #edf0f2;
  font-size: 14px;
}

/* ===== 按钮样式 ===== */
.btn {
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.25s ease-in-out;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  cursor: pointer;
}

.btn-primary {
  background: #00B894;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #00997a;
}

.btn-info {
  background: #00cec9;
  color: #fff;
  border: none;
}
.btn-info:hover {
  background: #00b2af;
}

.btn-danger {
  background: #d63031;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #c0392b;
}

.copy-btn {
  background: #00B894;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  transition: background 0.25s ease-in-out;
}
.copy-btn:hover {
  background: #00997a;
}

/* ===== 图标 ===== */
.elseview .tubiao i {
  font-size: 52px;
  color: #00B894;
}

/* ===== 提示卡片（右侧） ===== */
.panel-info .panel-heading {
  background-color: #00cec9;
  color: #fff;
}

/* ===== 二维码样式 ===== */
.qrcode img {
  border: 8px solid #f1f3f5;
  border-radius: 14px;
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===== 播放器样式 ===== */
#aplayer {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.videoplayer {
  width: 100%;
  max-width: 800px;
  height: 480px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* ===== 密码输入卡片 ===== */
.password-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: #f9fafb;
}

.password-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  text-align: center;
  border: 1px solid #e5e7eb;
}

.password-header {
  font-size: 17px;
  font-weight: 600;
  color: #2d3436;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-header i {
  font-size: 16px;
  color: #00B894;
  margin-right: 6px;
}

.password-error {
  background: #ffeaea;
  color: #d63031;
  font-size: 14px;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid #f5c6cb;
  transition: opacity 0.5s ease;
}

.password-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
  text-align: left;
}

.password-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  box-sizing: border-box;
  outline: none;
}

.password-input:focus {
  border-color: #00B894;
  box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.08);
}

.password-actions {
  display: flex;
  justify-content: space-between;
}

.btn-confirm {
  flex: 1;
  background: #00B894;
  color: white;
  border: none;
  padding: 9px 0;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm:hover {
  background: #00a282;
}

.btn-cancel {
  flex: 1;
  background: transparent;
  color: #666;
  text-decoration: none;
  margin-left: 12px;
  padding: 9px 0;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  display: inline-block;
  border: 1px solid #dcdcdc;
  transition: background 0.2s;
}

.btn-cancel:hover {
  background: #f2f2f2;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
  .nav-tabs > li > a {
    font-size: 13px;
    padding: 10px 12px;
  }

  .panel-heading h3 {
    font-size: 15px;
  }

  .btn {
    width: 100%;
    margin-top: 10px;
  }

  .videoplayer {
    height: 240px;
  }

  .table.fileinfo-table th,
  .table.fileinfo-table td {
    font-size: 13px;
    padding: 10px;
  }

  .input-group .form-control {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .password-card {
    padding: 20px;
    max-width: 90%;
  }

  .password-actions {
    flex-direction: column;
  }

  .btn-confirm,
  .btn-cancel {
    width: 100%;
    margin: 0 0 12px 0;
  }

  .btn-cancel {
    margin-left: 0;
  }
}
