/* ===== 彩虹网盘 - 黑白扁平大厂风 ===== */
/* 设计参考：Apple / Vercel / Linear 极简风格 */

/* --- Reset & Base --- */
* { box-sizing: border-box; }
html { position: relative; min-height: 100%; }
body {
  margin: 0 0 60px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1d1d1f;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation --- */
.navbar-default {
  background: #fff !important;
  border: none !important;
  border-bottom: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
  margin-bottom: 0;
  min-height: 52px;
}
.navbar-default .container { max-width: 960px; }
.navbar-default .navbar-header { margin-left: 0; }
.navbar-default .navbar-brand {
  color: #1d1d1f !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: -0.3px;
  padding: 14px 15px;
}
.navbar-default .navbar-nav > li > a {
  color: #6e6e73 !important;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  transition: color 0.15s;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #1d1d1f !important;
  background: transparent !important;
}
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:focus {
  color: #1d1d1f !important;
  background: transparent !important;
  font-weight: 600;
  position: relative;
}
.navbar-default .navbar-nav > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #1d1d1f;
}
.navbar-default .navbar-toggle {
  border: none !important;
  margin-right: 0;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background: transparent !important;
}
.navbar-default .navbar-toggle .icon-bar {
  background: #1d1d1f !important;
  height: 2px;
  width: 20px;
}
.navbar-default .navbar-right > li > a { color: #6e6e73 !important; }

/* --- Page Content --- */
.page-content { min-height: calc(100vh - 140px); }
.container { max-width: 960px; }

/* --- Cards / Well --- */
.well, .panel {
  border: 1px solid #e5e5e5 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 24px;
}
.well.bs-component { padding: 28px; }
.panel-heading {
  background: #fff !important;
  border-bottom: 1px solid #e5e5e5 !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 14px 20px !important;
}
.panel-primary > .panel-heading {
  border-bottom: 1px solid #e5e5e5 !important;
}
.panel-primary { border-color: #e5e5e5 !important; }
.panel-info { border-color: #e5e5e5 !important; }
.panel-info > .panel-heading {
  color: #1d1d1f !important;
  background: #f5f5f7 !important;
  border-bottom: 1px solid #e5e5e5 !important;
}
.panel-primary > .panel-heading h3,
.panel-info > .panel-heading h3 {
  color: #1d1d1f !important;
  font-size: 14px;
  font-weight: 600;
}
.panel-body { padding: 20px !important; }
.list-group-item {
  border-color: #f0f0f0 !important;
  padding: 12px 20px !important;
  font-size: 13px;
  color: #6e6e73;
}

/* --- Typography --- */
h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.3px;
  margin-top: 0;
  margin-bottom: 20px;
}
h3, h4, h5 { color: #1d1d1f; }
.text-muted { color: #86868b !important; }

/* --- Table --- */
.table { font-size: 13px; margin-bottom: 0; }
.table > thead > tr > th {
  border-bottom: 1px solid #e5e5e5 !important;
  color: #86868b;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 12px !important;
}
.table > tbody > tr > td {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 12px !important;
  vertical-align: middle;
}
.table > tbody > tr:hover { background: #f5f5f7; }
.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.table-striped > tbody > tr:nth-of-type(odd):hover { background: #f5f5f7; }
.filelist > tbody > tr > td {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  border-radius: 8px !important;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 18px;
  transition: all 0.15s;
  border: none !important;
  box-shadow: none !important;
}
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  background: #1d1d1f !important;
  color: #fff !important;
}
.btn-primary:hover { background: #333 !important; }
.btn-default,
.btn-default:hover,
.btn-default:focus {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  border: 1px solid #e5e5e5 !important;
}
.btn-info,
.btn-info:hover {
  background: #1d1d1f !important;
  color: #fff !important;
}
.btn-success,
.btn-success:hover {
  background: #1d1d1f !important;
  color: #fff !important;
}
.btn-danger,
.btn-danger:hover {
  background: #ff3b30 !important;
  color: #fff !important;
}
.btn-raised { box-shadow: none !important; }
.btn-fab {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  min-width: 48px !important;
  padding: 0 !important;
}
.btn-fab i { font-size: 20px; }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 10px !important; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* --- Forms --- */
.form-control {
  border: 1px solid #d2d2d7 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px;
  padding: 8px 12px;
  height: 38px;
  transition: border-color 0.15s;
}
.form-control:focus {
  border-color: #1d1d1f !important;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}
.form-group label.control-label { font-size: 14px; color: #1d1d1f; font-weight: 500; }
.form-group { padding-bottom: 0; margin: 0 0 15px 0; }
.checkbox label { font-size: 13px; color: #6e6e73; }
.help-block { font-size: 12px; color: #86868b; }

/* --- Search --- */
.searchbox { margin-top: -6px; }
.searchbox .form-control { width: 200px; }
.searchbox button { margin-top: 0; vertical-align: middle; }
@media (min-width: 767px) { .searchbox { float: right; } }
@media (max-width: 767px) {
  .searchbox .form-control { width: 100%; margin-bottom: 8px; }
}

/* --- Pagination --- */
.pagination > li > a,
.pagination > li > span {
  border: none !important;
  color: #6e6e73;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px !important;
  margin: 0 2px;
}
.pagination > li > a:hover {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
.pagination > .active > a,
.pagination > .active > a:hover {
  background: #1d1d1f !important;
  color: #fff !important;
}
.pagination > .disabled > a,
.pagination > .disabled > a:hover {
  color: #c7c7cc !important;
  background: transparent !important;
}

/* --- Tabs --- */
.nav-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e5e5 !important;
}
.nav-tabs > li > a {
  color: #6e6e73 !important;
  border: none !important;
  margin: 0 !important;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 0 !important;
}
.nav-tabs > li > a:hover {
  background: transparent !important;
  color: #1d1d1f !important;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  color: #1d1d1f !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid #1d1d1f !important;
  font-weight: 600;
}

/* --- Input Group / Copy Buttons --- */
.input-group-addon,
.input-group-btn .btn {
  border-radius: 0 8px 8px 0 !important;
}
.input-group .form-control { border-radius: 8px 0 0 8px !important; }

/* --- Progress Bar --- */
.progress {
  height: 6px;
  border-radius: 3px;
  background: #f0f0f0;
  box-shadow: none;
}
.progress-bar {
  background: #1d1d1f;
  border-radius: 3px;
}

/* --- File Info Table --- */
.fileinfo-table { max-width: 80%; font-size: 13px; }
.fileinfo-table th {
  background: #f5f5f7;
  font-weight: 500;
  color: #6e6e73;
}
.fileinfo-table td { color: #1d1d1f; }
@media (max-width: 767px) { .fileinfo-table { max-width: 100%; } }

/* --- Upload Page --- */
.infobox {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
#uploadTitle {
  color: #86868b !important;
  font-size: 18px !important;
  font-weight: 400 !important;
}
.filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #86868b;
}

/* --- File View --- */
.view { padding-top: 40px; padding-bottom: 60px; }
.video_view { width: 100%; max-height: 450px; min-height: 300px; border-radius: 10px; }
.image_view { max-width: 100%; max-height: 450px; min-height: 300px; }
.image { max-width: 100%; max-height: 450px; border-radius: 8px; }
.tubiao {
  background: transparent;
  font-size: 72px;
  color: #c7c7cc;
  width: 100px;
  height: 100px;
}
.elsetext { top: 0; color: #6e6e73; font-size: 16px; }
.elseview { height: 120px; }

/* --- Login Page --- */
.loginbtn { margin: 8px !important; }

/* --- Footer --- */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  line-height: 50px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
}
.footer p { font-size: 12px; color: #86868b; margin: 0; }
.footer a { color: #6e6e73; text-decoration: none; }
.footer a:hover { color: #1d1d1f; }

/* --- Links --- */
a { color: #1d1d1f; text-decoration: none; transition: color 0.15s; }
a:hover { color: #6e6e73; }

/* --- Alert --- */
.alert { border-radius: 10px !important; border: none !important; font-size: 13px; }
.alert-success { background: #f0fdf4; color: #16a34a; }
.alert-info { background: #f0f9ff; color: #0284c7; }
.alert-warning { background: #fffbeb; color: #d97706; }
.alert-danger { background: #fef2f2; color: #dc2626; }

/* --- Loading --- */
.colorful_loading_frame {
  background: rgba(255,255,255,0.85);
  color: #1d1d1f;
}
.colorful_loading > i {
  background-color: #1d1d1f !important;
  width: 4px !important;
  margin-right: 2px !important;
}

/* --- Checkbox --- */
.checkbox input[type="checkbox"] {
  accent-color: #1d1d1f;
}

/* --- APlayer Override --- */
.aplayer .aplayer-pic { height: 80px; width: 80px; border-radius: 8px; }
.aplayer .aplayer-info { margin-left: 80px; }
.aplayer .aplayer-info .aplayer-music .aplayer-title { font-size: 15px; }

/* --- QR Code Image --- */
.panel-body img[alt="二维码"] { border-radius: 8px; }

/* --- Responsive --- */
@media (max-width: 767px) {
  .navbar-default .container { padding: 0 16px; }
  .well, .panel { padding: 16px; border-radius: 8px !important; }
  .well.bs-component { padding: 16px; }
  h2 { font-size: 17px; }
  .container { padding: 0 12px; }
  .infobox { padding: 24px 16px; }
  .videoplayer { height: 300px; }
}
