:root {
  --ios-bg: #eef3f8;
  --ios-surface: rgba(255, 255, 255, 0.82);
  --ios-surface-strong: rgba(255, 255, 255, 0.95);
  --ios-border: rgba(15, 23, 42, 0.08);
  --ios-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --ios-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --ios-text: #10213a;
  --ios-muted: #66758f;
  --ios-blue: #0a84ff;
  --ios-green: #34c759;
  --ios-red: #ff3b30;
  --ios-yellow: #ff9f0a;
}

html,
body {
  min-height: 100%;
}

body.ios-site-body {
  background: radial-gradient(circle at top left, rgba(10, 132, 255, 0.14), transparent 28%), radial-gradient(circle at top right, rgba(52, 199, 89, 0.12), transparent 24%), linear-gradient(180deg, #f9fbfd 0%, var(--ios-bg) 100%);
  color: var(--ios-text);
  font-family: "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  padding-bottom: 36px;
}

.container {
  width: min(1180px, calc(100% - 28px));
}

a {
  color: var(--ios-blue);
}

.navbar.ios-navbar {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--ios-shadow-soft);
  margin-top: 18px;
  border-radius: 24px;
  position: sticky;
  top: 12px;
  z-index: 1000;
}

.navbar.ios-navbar .navbar-brand,
.navbar.ios-navbar .navbar-nav > li > a {
  color: var(--ios-text) !important;
  font-weight: 600;
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--ios-blue), #5ac8fa);
  border-radius: 999px;
  margin-right: 10px;
}

.navbar-nav > .active > a,
.navbar-nav > .active > a:hover,
.navbar-nav > .active > a:focus {
  background: rgba(10, 132, 255, 0.08) !important;
  border-radius: 16px;
}

.user-pill {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.user-pill-avatar,
.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ios-blue), #5ac8fa);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.25);
}

.page-shell,
.auth-shell {
  padding-top: 18px;
}

.ios-hero,
.ios-panel,
.well,
.panel,
.modal-content {
  background: var(--ios-surface);
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 28px;
  box-shadow: var(--ios-shadow);
}

.ios-hero {
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ios-hero h1 {
  margin: 8px 0 12px;
  font-size: 36px;
  font-weight: 700;
}

.ios-hero p {
  color: var(--ios-muted);
  margin: 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ios-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--ios-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-grid,
.hero-side-card,
.admin-hero-stats {
  display: grid;
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(1, minmax(160px, 1fr));
  min-width: 240px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ios-border);
  border-radius: 22px;
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
}

.stat-card span,
.file-main span,
.tips-list span,
.account-meta span {
  color: var(--ios-muted);
}

.stat-card.compact strong {
  font-size: 20px;
}

.ios-btn,
.table-action,
.btn.btn-primary,
.btn.btn-default,
.btn.btn-info,
.btn.btn-success,
.btn.btn-danger,
.btn.btn-warning {
  border-radius: 16px;
  border: 0;
  box-shadow: none;
  padding: 11px 18px;
  font-weight: 600;
}

.ios-btn,
.btn.btn-primary,
.table-action {
  background: linear-gradient(135deg, var(--ios-blue), #5ac8fa) !important;
  color: #fff !important;
}

.ios-btn.secondary,
.btn.btn-default,
.table-action.secondary {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--ios-text) !important;
}

.form-control,
.input-group-addon {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ios-border);
  border-radius: 16px;
  box-shadow: none;
  height: 46px;
}

.form-control:focus {
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.list-panel,
.upload-panel,
.tips-panel,
.form-card,
.account-card {
  padding: 24px;
}

.workspace-shell {
  display: block;
}

.workspace-shell.with-sidebar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.enterprise-auth-modal .modal-dialog {
  width: min(1040px, calc(100% - 20px));
  margin: 40px auto;
}

.auth-modal-body {
  padding: 0;
}

.auth-close {
  position: absolute;
  right: 18px;
  top: 12px;
  z-index: 5;
  font-size: 28px;
}

.auth-modal-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 620px;
}

.auth-modal-intro {
  padding: 36px;
  background: linear-gradient(160deg, rgba(10, 132, 255, 0.1), rgba(52, 199, 89, 0.08));
  border-right: 1px solid var(--ios-border);
}

.auth-modal-intro h2 {
  margin: 18px 0 10px;
  font-size: 34px;
}

.auth-intro-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-intro-points div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}

.auth-intro-points strong {
  display: block;
  margin-bottom: 4px;
}

.auth-intro-points span {
  color: var(--ios-muted);
}

.auth-modal-panel {
  padding: 32px;
}

.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-tab {
  border: 0;
  border-radius: 14px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ios-text);
  font-weight: 700;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--ios-blue), #5ac8fa);
  color: #fff;
}

.auth-tab-pane {
  display: none;
}

.auth-tab-pane.active {
  display: block;
}

.auth-submit {
  width: 100%;
}

.auth-reset-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ios-border);
}

.auth-stage {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 560px) 1fr;
  gap: 22px;
  align-items: stretch;
}

.auth-modern-shell {
  display: flex;
  justify-content: center;
}

.auth-modern-card {
  width: 100%;
  max-width: 520px;
  padding: 38px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  border: 1px solid rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
}

.auth-modern-head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modern-head h2 {
  margin: 18px 0 10px;
  font-size: 36px;
  font-weight: 700;
}

.auth-modern-head p {
  color: var(--ios-muted);
  margin: 0;
}

.auth-simple-form .form-group {
  margin-bottom: 16px;
}

.auth-input {
  height: 56px;
  border-radius: 14px;
  background: #f8fafc;
  padding: 15px 18px;
}

.auth-password-group {
  position: relative;
}

.auth-password-group .auth-input {
  padding-right: 54px;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ios-muted);
}

.auth-bottom-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.auth-bottom-links a {
  color: var(--ios-text);
  font-weight: 500;
}

.auth-side {
  min-height: 620px;
  border-radius: 32px;
  background: linear-gradient(165deg, rgba(255,255,255,.2), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 25px 60px rgba(15,23,42,.08);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.auth-side:hover {
  transform: translateY(-2px);
}

.auth-side-inner {
  padding: 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-side h2 {
  margin: 18px 0 10px;
  font-size: 34px;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.auth-feature-list span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--ios-text);
}

.auth-center-card {
  padding: 24px;
  min-height: 620px;
}

.auth-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.auth-switcher.single {
  grid-template-columns: 1fr;
}

.auth-switch-btn {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--ios-text);
  font-weight: 700;
}

.auth-switch-btn.active {
  background: linear-gradient(135deg, var(--ios-blue), #5ac8fa);
  color: #fff;
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.auth-pane-desc {
  color: var(--ios-muted);
  margin-bottom: 18px;
}

.compact-oauth {
  margin-top: 18px;
}

.auth-reset-panel {
  margin-top: 18px;
}

.auth-stage.login-active .auth-side-login,
.auth-stage.register-active .auth-side-register {
  background: linear-gradient(165deg, rgba(10,132,255,.16), rgba(255,255,255,.18));
}

.auth-stage.login-active .auth-side-register,
.auth-stage.register-active .auth-side-login {
  opacity: .78;
}

.folder-sidebar,
.main-workspace {
  min-width: 0;
}

.folder-sidebar {
  padding: 22px;
  position: sticky;
  top: 98px;
  height: fit-content;
}

.folder-sidebar-head,
.folder-card-actions,
.folder-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-sidebar-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.folder-tree-level {
  display: grid;
  gap: 6px;
  margin-left: 12px;
}

.folder-tree-item {
  display: grid;
  gap: 6px;
}

.folder-tree-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ios-text);
}

.folder-tree-link.active,
.folder-tree-link:hover {
  background: rgba(10, 132, 255, 0.08);
  text-decoration: none;
}

.folder-breadcrumbs {
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--ios-muted);
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.folder-card {
  padding: 18px;
  border: 1px solid var(--ios-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.folder-card a {
  color: var(--ios-text);
}

.folder-card strong {
  display: block;
  margin-top: 8px;
}

.folder-card-actions {
  margin-top: 10px;
  justify-content: flex-end;
}

.table-responsive {
  border: 0;
}

.list-panel-head,
.upload-options,
.account-actions,
.pagination-wrap,
.oauth-buttons,
.auth-grid,
.upload-layout {
  display: flex;
  gap: 16px;
}

.list-panel-head,
.pagination-wrap {
  justify-content: space-between;
  align-items: center;
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.premium-hero {
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.68));
}

.textarea-control {
  min-height: 110px;
  height: auto;
  padding-top: 14px;
  resize: vertical;
}

.form-links {
  text-align: right;
  margin: -2px 0 14px;
}

.form-links a,
.card-head-inline a {
  color: var(--ios-blue);
  font-weight: 600;
}

.card-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head-inline h3 {
  margin: 0;
}

.code-line {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.code-input {
  flex: 1;
}

.small-btn {
  height: 46px;
  white-space: nowrap;
}

.left-options {
  justify-content: flex-start;
}

.modern-table thead th {
  border-top: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: var(--ios-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modern-table tbody td {
  border-top: 1px solid rgba(15, 23, 42, 0.05) !important;
  vertical-align: middle !important;
}

.file-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.file-main strong {
  display: block;
}

.file-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--ios-blue);
  font-size: 12px;
  font-weight: 700;
}

.table-action {
  display: inline-flex;
  margin-right: 8px;
}

.upload-dropzone {
  text-align: center;
  padding: 16px 8px;
}

.upload-status-area {
  min-height: 58px;
}

.dropzone-icon {
  width: 96px;
  height: 96px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.16), rgba(52, 199, 89, 0.18));
  color: var(--ios-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 18px;
}

.upload-dropzone h2 {
  margin: 0 0 8px;
  color: var(--ios-text);
}

.upload-dropzone p,
.oauth-title,
.pagination-info,
.tip-item,
.account-card p {
  color: var(--ios-muted);
}

.upload-options {
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.folder-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 10px;
}

.folder-select-group {
  min-width: 240px;
  margin-bottom: 0;
}

.ios-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 14px;
}

.tips-list {
  display: grid;
  gap: 14px;
}

.tip-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tip-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.auth-grid,
.upload-layout {
  display: block;
}

.navbar-collapse {
  border-top: 0;
  box-shadow: none;
}

.navbar-toggle {
  border: 0;
  margin-top: 14px;
}

.navbar-toggle .icon-bar {
  background: var(--ios-text);
}

.auth-grid .ios-panel,
.upload-layout .ios-panel {
  margin-bottom: 24px;
}

.ios-form .form-group label {
  font-size: 13px;
  color: var(--ios-muted);
  font-weight: 600;
}

.account-card {
  text-align: center;
}

.account-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  font-size: 28px;
}

.account-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  text-align: left;
}

.oauth-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.oauth-buttons {
  flex-wrap: wrap;
  margin-top: 12px;
}

.ios-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
}

.progress {
  height: 20px;
  margin-bottom: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}

.progress-bar {
  background: linear-gradient(135deg, var(--ios-blue), #5ac8fa);
}

.filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer.ios-footer {
  margin-top: 30px;
  background: transparent;
}

.footer.ios-footer .text-muted {
  color: var(--ios-muted);
}

.form-group { padding-bottom: 0; margin: 0 0 15px 0; }
.elsetext { top: 0; color: #6f7d92; font-size: 18px; }
.elseview { height: 150px; }
.tubiao { background-color: transparent; font-size: 100px; color: #9aa8ba; width: 100px; height: 100px; }
.view { padding-top: 70px; padding-bottom: 80px; }
.video_view { width: 100%; max-height: 450px; min-height: 300px; }
.image_view { max-width: 100%; max-height: 450px; min-height: 300px; }
.image { max-width: 100%; max-height: 450px; border-radius: 22px; }
.nav-tabs { background: transparent; }
.nav-tabs > li > a { color: #000; border: 0; margin: 0; border-radius: 14px; }
.nav-tabs > li > a:hover { background-color: transparent; border: 0; }
.nav-tabs > li > a,.nav-tabs > li > a:focus,.nav-tabs > li > a:hover { background-color: transparent !important; border: 0 !important; color: #222 !important; font-weight: 500; }
.nav-tabs > li.active { background-color: rgba(10, 132, 255, 0.08); border-bottom-color: transparent; border-radius: 14px; }
.nav-tabs > li.active > a { border-bottom-color: transparent; }
.form-group label.control-label { font-size: 16px; color: #333; }
.fileinfo-table { max-width: 80%; }
.filelist > tbody > tr > td { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
.form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }
.videoplayer { width: 100%; height: 530px; border-radius: 24px; overflow: hidden; }

@media (max-width: 991px) {
  .ios-hero {
    flex-direction: column;
  }

  .stats-grid {
    width: 100%;
  }

  .search-form,
  .list-panel-head,
  .pagination-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .fileinfo-table { max-width: 100%; }
  .videoplayer { height: 420px; }
  .container { width: calc(100% - 24px); }
  .workspace-shell.with-sidebar { grid-template-columns: 1fr; }
  .folder-sidebar { position: static; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-modal-layout { grid-template-columns: 1fr; }
  .auth-modal-intro { border-right: 0; border-bottom: 1px solid var(--ios-border); }
  .auth-stage { grid-template-columns: 1fr; }
  .auth-side { min-height: auto; }
  .auth-center-card { min-height: 0; }
  .auth-modern-card { max-width: 100%; }
}

@media (max-width: 767px) {
  .navbar.ios-navbar { margin-top: 10px; border-radius: 18px; }
  .ios-hero,
  .ios-panel,
  .list-panel,
  .upload-panel,
  .tips-panel,
  .form-card,
  .account-card { padding: 18px; border-radius: 22px; }
  .ios-hero h1 { font-size: 28px; }
  .dropzone-icon { width: 78px; height: 78px; font-size: 34px; }
  .videoplayer { height: 320px; }
  .code-line { flex-direction: column; align-items: stretch; }
  .navbar-nav { margin: 10px 0; }
  .navbar-nav > li > a { border-radius: 14px; }
  .modern-table { min-width: 720px; }
  .hero-actions,
  .account-actions,
  .upload-options,
  .oauth-buttons { flex-direction: column; }
  .hero-actions .btn,
  .account-actions .btn,
  .upload-options label,
  .oauth-buttons .btn { width: 100%; }
  .folder-toolbar { flex-direction: column; align-items: stretch; }
  .folder-select-group { min-width: 0; }
  .folder-grid { grid-template-columns: 1fr; }
  .auth-modal-intro,
  .auth-modal-panel { padding: 22px; }
  .auth-modal-intro h2 { font-size: 28px; }
  .auth-side-inner,
  .auth-center-card { padding: 20px; }
  .auth-side h2 { font-size: 28px; }
  .auth-modern-card { padding: 24px 18px; }
  .auth-modern-head h2 { font-size: 30px; }
  .auth-bottom-links { flex-direction: column; align-items: center; }
}

@-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(6, 14, 30, .45); text-align:center; }
.colorful_loading { margin:25% 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:#fff; -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 }
