:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --border: #e5e4e7;
  --code-bg: #f4f3ec;
  --accent: #aa3bff;
  --accent-bg: rgba(170, 59, 255, 0.1);
  --accent-border: rgba(170, 59, 255, 0.5);
  --social-bg: rgba(244, 243, 236, 0.5);
  --shadow:
    rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;

  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  --heading: system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Consolas, monospace;

  font: 18px/145% var(--sans);
  letter-spacing: 0.18px;
  color-scheme: light dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  @media (max-width: 1024px) {
    font-size: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --border: #2e303a;
    --code-bg: #1f2028;
    --accent: #c084fc;
    --accent-bg: rgba(192, 132, 252, 0.15);
    --accent-border: rgba(192, 132, 252, 0.5);
    --social-bg: rgba(47, 48, 58, 0.5);
    --shadow:
      rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
  }

  #social .button-icon {
    filter: invert(1) brightness(2);
  }
}

body {
  margin: 0;
}

#root {
  width: 1126px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  border-inline: 1px solid var(--border);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

h1,
h2 {
  font-family: var(--heading);
  font-weight: 500;
  color: var(--text-h);
}

h1 {
  font-size: 56px;
  letter-spacing: -1.68px;
  margin: 32px 0;
  @media (max-width: 1024px) {
    font-size: 36px;
    margin: 20px 0;
  }
}
h2 {
  font-size: 24px;
  line-height: 118%;
  letter-spacing: -0.24px;
  margin: 0 0 8px;
  @media (max-width: 1024px) {
    font-size: 20px;
  }
}
p {
  margin: 0;
}

code,
.counter {
  font-family: var(--mono);
  display: inline-flex;
  border-radius: 4px;
  color: var(--text-h);
}

code {
  font-size: 15px;
  line-height: 135%;
  padding: 4px 8px;
  background: var(--code-bg);
}
/* 基础样式 */
@keyframes stripeMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-box {
  background: white;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-title {
  color: #212529;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.login-subtitle {
  color: #6c757d;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 32px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #495057;
  font-size: 14px;
  font-weight: 600;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  padding: 10px 16px;
  background: #f8d7da;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
}

.login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.login-hint {
  margin-top: 20px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  font-size: 14px;
  color: #495057;
  text-align: center;
}

/* 主应用布局 */
.admin-app {
  display: flex;
  min-height: 100vh;
  background: #f8f9fa;
}

.sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #e9ecef;
}

.sidebar-header h2 {
  color: #212529;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-info {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  color: #495057;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid transparent;
}

.nav-btn:hover {
  background: #f8f9fa;
  color: #212529;
}

.nav-btn.active {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-weight: 600;
  border-left-color: #667eea;
}

.logout-btn {
  color: #dc3545;
  margin-top: auto;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid #e9ecef;
  font-size: 13px;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  color: #28a745;
  font-weight: 500;
}

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.page-title {
  color: #212529;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* 仪表盘样式 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}

.stat-label {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.quick-actions {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid #e9ecef;
}

.quick-actions h2 {
  color: #212529;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.action-btn.secondary {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e9ecef;
}

.action-btn.tertiary {
  background: #28a745;
  color: white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 知识库管理 */
.knowledge-container {
  background: white;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e9ecef;
}

.upload-section {
  margin-bottom: 32px;
}

.upload-section h2 {
  color: #212529;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 上传指南美化 */
.upload-guide {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 2px solid #dee2e6;
}

.upload-guide p {
  color: #495057;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 15px;
}

.upload-guide p strong {
  color: #212529;
  font-weight: 600;
}

.upload-guide ol {
  margin: 16px 0 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
}

.upload-guide li {
  counter-increment: step-counter;
  margin-bottom: 12px;
  padding-left: 36px;
  position: relative;
  color: #495057;
  line-height: 1.6;
  font-size: 15px;
}

.upload-guide li:before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* 上传区域 */
.upload-area {
  margin-top: 14px;
}

.upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  padding: 18px;
  border: 3px dashed #adb5bd;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

.upload-btn:hover {
  border-color: #667eea;
  background: #f8f9fa;
}

.upload-btn input {
  display: none;
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  width: 100%;
}

.upload-icon {
  font-size: 56px;
  color: #667eea;
}

.upload-hint {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

/* 文件类型标签 */
.file-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

.file-type-tag {
  padding: 6px 12px;
  background: #e9ecef;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 多媒体上传区域 */
.media-upload-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #e9ecef;
}

.media-upload-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #212529;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.media-upload-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.media-upload-card:hover {
  border-color: #667eea;
}

.media-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.media-title {
  color: #212529;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.media-desc {
  color: #6c757d;
  font-size: 13px;
  line-height: 1.4;
}

.media-upload-card input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* 文件列表 */
.knowledge-list {
  margin-top: 32px;
}

.knowledge-list h2 {
  color: #212529;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 2px dashed #dee2e6;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: #adb5bd;
}

.empty-state p {
  color: #6c757d;
  margin: 8px 0;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-item:hover {
  border-color: #667eea;
}

.file-item.file-learned {
  background: rgba(40, 167, 69, 0.05);
  border-color: #28a745;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.file-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 10px;
}

.file-details {
  flex: 1;
}

.file-name {
  color: #212529;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.file-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6c757d;
}

.file-status {
  font-weight: 500;
}

.file-status.learned {
  color: #28a745;
}

.file-status.not-learned {
  color: #dc3545;
}

.file-actions {
  display: flex;
  gap: 8px;
}

.action-learn {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.action-delete {
  padding: 8px 16px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* 表单样式 */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e9ecef;
}

.form-section h3 {
  color: #212529;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  width: 100%;
  resize: vertical;
}

.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 48px;
}

.avatar-upload-btn label {
  display: inline-block;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

/* 视频上传特殊样式 */
.video-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}

.tag-desc {
  font-size: 11px;
  opacity: 0.9;
  margin-left: 4px;
}

.video-preview-upload {
  margin-top: 16px;
  text-align: center;
}

.video-preview-upload video {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  background: #000;
}

.video-preview-upload p {
  margin-top: 8px;
  color: #6c757d;
  font-size: 14px;
}

/* 视频规格网格 */
.video-specs {
  margin-top: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 2px solid #e9ecef;
}

.video-specs h3 {
  color: #212529;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.spec-icon {
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 10px;
}

.spec-info {
  flex: 1;
}

.spec-title {
  color: #212529;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-desc {
  color: #6c757d;
  font-size: 13px;
}

/* 视频文件项特殊样式 */
.video-item {
  border-left: 4px solid #667eea;
}

.video-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.file-duration {
  color: #28a745;
  font-weight: 500;
}

.file-format {
  color: #667eea;
  font-weight: 500;
}

/* 视频操作按钮 */
.action-play {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-download {
  padding: 8px 16px;
  background: #17a2b8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-play:hover, .action-download:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 视频使用说明 */
.video-usage {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  border: 2px solid #dee2e6;
}

.video-usage h3 {
  color: #212529;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.usage-content {
  color: #495057;
  line-height: 1.6;
}

.usage-content p {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.usage-content p:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.usage-content strong {
  color: #212529;
}

/* 进度条容器 */
.upload-progress-container {
  width: 100%;
  margin-top: 16px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #495057;
}

.progress-bar-container {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

/* 知识库管理特殊样式 */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.refresh-btn {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-btn:hover:not(:disabled) {
  background: #5a6268;
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-state {
  text-align: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.file-filename {
  color: #495057;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
}

.file-status {
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.file-status.learned {
  background: #d4edda;
  color: #155724;
}

.file-status.not-learned {
  background: #fff3cd;
  color: #856404;
}

.file-learned-at {
  color: #6c757d;
  font-size: 12px;
}

/* 文件操作按钮 */
.file-actions {
  display: flex;
  gap: 8px;
}

.action-learn {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-learned {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-preview {
  padding: 8px 16px;
  background: #17a2b8;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-learn:hover, .action-preview:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 使用说明 */
.usage-guide {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  border: 2px solid #dee2e6;
}

.usage-guide h3 {
  color: #212529;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-content {
  color: #495057;
  line-height: 1.6;
}

.guide-content p {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.guide-content p:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.guide-content strong {
  color: #212529;
}

/* 文件图标颜色 */
.file-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e9ecef;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .file-actions {
    flex-direction: column;
  }
  
  .file-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .file-meta span {
    display: block;
    margin-bottom: 4px;
  }
}

/* ==================== 移动端适配 ==================== */

/* 通用移动端样式 */
@media (max-width: 768px) {
  .admin-app {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 2px solid #e9ecef;
    padding: 16px;
  }
  
  .sidebar-header {
    text-align: center;
    margin-bottom: 16px;
  }
  
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .nav-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .sidebar-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
  }
  
  .main-content {
    margin-left: 0;
    padding: 20px 16px;
  }
  
  .page-title {
    font-size: 24px;
    text-align: center;
  }
  
  /* 统计卡片适配 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  /* 快速操作按钮适配 */
  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .action-btn {
    width: 100%;
  }
  
  /* 知识库管理适配 */
  .knowledge-container {
    flex-direction: column;
  }
  
  .upload-section,
  .knowledge-list {
    width: 100%;
  }
  
  .upload-guide {
    padding: 16px;
  }
  
  .upload-guide ol {
    padding-left: 20px;
  }
  
  .upload-guide li {
    margin-bottom: 8px;
  }
  
  /* 上传区域适配 */
  .upload-area {
    padding: 30px 20px;
  }
  
  .upload-content {
    padding: 20px;
  }
  
  .upload-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }
  
  /* 文件类型标签适配 */
  .file-type-tags {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .file-type-tag {
    flex: 1;
    min-width: 80px;
    padding: 8px 10px;
  }
  
  /* 文件列表适配 */
  .file-item {
    flex-direction: column;
    padding: 16px;
  }
  
  .file-info {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .file-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  
  .action-learn,
  .action-delete {
    flex: 1;
    padding: 10px;
  }
  
  /* 多媒体上传网格适配 */
  .media-upload-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .media-upload-card {
    padding: 20px;
  }
  
  /* 视频规格网格适配 */
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* 表单适配 */
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-group {
    width: 100%;
  }
  
  /* 登录界面适配 */
  .login-box {
    width: 90%;
    max-width: 400px;
    padding: 30px 20px;
  }
  
  .login-title {
    font-size: 28px;
  }
  
  .login-subtitle {
    font-size: 20px;
  }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-btn {
    min-width: 100px;
    font-size: 13px;
    padding: 8px 10px;
  }
  
  .page-title {
    font-size: 22px;
  }
  
  .upload-guide {
    font-size: 14px;
  }
  
  .upload-guide p {
    margin-bottom: 8px;
  }
  
  .file-type-tag {
    min-width: 70px;
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .file-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .file-meta span {
    font-size: 12px;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .spec-item {
    padding: 10px;
  }
  
  .login-box {
    width: 95%;
    padding: 25px 16px;
  }
  
  .login-title {
    font-size: 24px;
  }
  
  .login-form {
    padding: 0 10px;
  }
  
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .login-btn {
    padding: 12px;
    font-size: 16px;
  }
}

/* 平板横屏适配 */
@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }
  
  .main-content {
    margin-left: 220px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .knowledge-container {
    flex-direction: column;
  }
  
  .upload-section,
  .knowledge-list {
    width: 100%;
  }
  
  .media-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .nav-btn,
  .action-btn,
  .action-learn,
  .action-delete,
  .action-play,
  .action-download,
  .login-btn,
  .save-profile-btn {
    min-height: 44px; /* 苹果推荐的最小触摸目标尺寸 */
  }
  
  input[type="file"] {
    min-height: 44px;
  }
  
  .file-item {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  /* 增加触摸区域 */
  .upload-area {
    padding: 40px 20px;
  }
  
  .upload-content {
    padding: 30px;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .admin-app {
    background: #121212;
    color: #e0e0e0;
  }
  
  .sidebar {
    background: #1e1e1e;
    border-color: #333;
  }
  
  .nav-btn {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
  }
  
  .nav-btn.active {
    background: #3d3d3d;
    border-color: #667eea;
  }
  
  .main-content {
    background: #121212;
  }
  
  .stat-card {
    background: #1e1e1e;
    border-color: #333;
  }
  
  .upload-section,
  .knowledge-list {
    background: #1e1e1e;
    border-color: #333;
  }
  
  .upload-guide {
    background: #2d2d2d;
    border-color: #444;
  }
  
  .upload-area {
    background: #2d2d2d;
    border-color: #444;
  }
  
  .file-item {
    background: #2d2d2d;
    border-color: #444;
  }
  
  .login-box {
    background: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
  }
  
  .form-group input {
    background: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
  }
  
  .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .nav-btn,
  .action-btn,
  .action-learn,
  .action-delete {
    border-width: 2px;
  }
  
  .file-item {
    border-width: 2px;
  }
  
  .upload-area {
    border-width: 2px;
  }
}

/* 减少动画（对运动敏感用户） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .nav-btn:hover,
  .action-btn:hover,
  .file-item:hover {
    transform: none !important;
  }
}

/* 超大屏幕适配 */
@media (min-width: 1440px) {
  .admin-app {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .main-content {
    margin-left: 280px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .knowledge-container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* 打印样式 */
@media print {
  .sidebar,
  .nav-btn,
  .action-buttons,
  .upload-area,
  .file-actions {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0;
    padding: 0;
  }
  
  .page-title {
    color: #000 !important;
  }
  
  .file-item {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
/* v2 */
/* 移动端固定头部导航 - 头部固定，内容可滑动 */

/* ==================== 移动端基础布局 (768px以下) ==================== */

@media (max-width: 768px) {
  
  /* 1. 重置基础布局 */
  body, #root {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    overflow: hidden !important; /* 防止整体滚动 */
  }
  
  /* 2. 主容器改为固定高度布局 */
  .admin-app {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  
  /* 3. 侧边栏改为固定头部 */
  .sidebar {
    width: 100% !important;
    min-height: auto !important;
    position: static !important;
    background: #2c3e50 !important;
    color: white !important;
    padding: 0 !important;
    border-bottom: 2px solid #1a252f !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    flex-shrink: 0 !important; /* 防止压缩 */
  }
  
  /* 4. 头部标题区域 */
  .sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  .sidebar-header h2 {
    font-size: 18px !important;
    margin: 0 !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  .admin-info {
    font-size: 12px !important;
    color: #bdc3c7 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
  }
  
  /* 5. 导航菜单 - 5个一级菜单在同一行，用竖线分隔 */
  .sidebar-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important; /* 5个等分列 */
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #34495e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  
  /* 6. 导航按钮 - 5个按钮等分，竖线分隔，文字居中对齐 */
  .nav-btn {
    position: relative !important;
    padding: 0 !important; /* 移除内边距，使用line-height控制垂直居中 */
    font-size: 12px !important;
    text-align: center !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important; /* 垂直居中 */
    justify-content: center !important; /* 水平居中 */
    line-height: 48px !important; /* 使用line-height实现垂直居中 */
    font-weight: 500 !important;
    height: 48px !important; /* 固定高度 */
  }
  
  /* 方案A: 去掉图标，只显示文字（使用伪元素覆盖） */
  .nav-btn {
    font-size: 0 !important; /* 隐藏原始文本（含图标） */
  }
  
  /* 为每个按钮设置完整的文字内容 - 使用伪元素确保居中对齐 */
  .nav-btn::before {
    content: "" !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
    line-height: normal !important;
  }
  
  .nav-btn:nth-child(1)::before {
    content: "仪表盘" !important;
  }
  
  .nav-btn:nth-child(2)::before {
    content: "知识库" !important;
  }
  
  .nav-btn:nth-child(3)::before {
    content: "多媒体" !important;
  }
  
  .nav-btn:nth-child(4)::before {
    content: "IP设计" !important;
  }
  
  .nav-btn:nth-child(5)::before {
    content: "退出" !important;
  }
  
  /* 激活状态 */
  .nav-btn.active::before {
    font-weight: 600 !important;
    color: white !important;
  }
  
  /* 确保伪元素文字垂直居中 */
  .nav-btn::before {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* 竖线分隔符 - 更明显的分隔 */
  .nav-btn:not(:last-child)::after {
    content: "|" !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 14px !important;
    font-weight: 300 !important;
  }
  
  /* 移除最后一个按钮的分隔符 */
  .nav-btn:last-child::after {
    display: none !important;
  }
  
  /* 按钮激活状态 */
  .nav-btn.active {
    background: #3498db !important;
    color: white !important;
    font-weight: 600 !important;
  }
  
  .nav-btn.active::after {
    background: rgba(255, 255, 255, 0.3) !important;
  }
  
  /* 按钮触摸反馈 */
  .nav-btn:active {
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  /* 7. 退出按钮特殊样式 */
  .logout-btn {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
  }
  
  .logout-btn.active {
    background: #e74c3c !important;
    color: white !important;
  }
  
  /* 8. 侧边栏页脚 - 移到内容区域 */
  .sidebar-footer {
    display: none !important; /* 在移动端隐藏，可以移到内容区域 */
  }
  
  /* 9. 主内容区域 - 可滑动 */
  .main-content {
    flex: 1 !important;
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    background: white !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
  }
  
  /* 10. 内容容器 - 添加内边距 */
  .main-content > div {
    padding: 20px 15px !important;
    min-height: calc(100vh - 140px) !important; /* 减去头部高度 */
  }
  
  /* 11. 页面标题 */
  .page-title {
    font-size: 24px !important;
    margin: 0 0 25px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #e9ecef !important;
    color: #2c3e50 !important;
  }
  
  /* 12. 统计卡片网格 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
  }
  
  .stat-card {
    padding: 20px 15px !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }
  
  .stat-icon {
    font-size: 28px !important;
    margin-bottom: 12px !important;
  }
  
  .stat-value {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin-bottom: 5px !important;
  }
  
  .stat-label {
    font-size: 13px !important;
    color: #6c757d !important;
  }
  
  /* 13. 快速操作区域 */
  .quick-actions {
    background: white !important;
    border-radius: 10px !important;
    padding: 25px 20px !important;
    margin-top: 20px !important;
    border: 1px solid #e9ecef !important;
  }
  
  .action-buttons {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }
  
  .action-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 500 !important;
    min-height: 52px !important;
  }
  
  .action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
  }
  
  .action-btn.secondary {
    background: #3498db !important;
    color: white !important;
  }
  
  .action-btn.tertiary {
    background: #2ecc71 !important;
    color: white !important;
  }
  
  /* 14. 知识库管理页面 */
  .knowledge-management {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  .knowledge-container {
    width: 100% !important;
    background: transparent !important;
  }
  
  .upload-section {
    background: white !important;
    border-radius: 10px !important;
    padding: 25px 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e9ecef !important;
  }
  
  .upload-guide {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #495057 !important;
  }
  
  .upload-guide p {
    margin-bottom: 10px !important;
  }
  
  .upload-guide strong {
    color: #2c3e50 !important;
  }
  
  /* 15. 文件列表适配 */
  .file-list {
    width: 100% !important;
    margin-top: 20px !important;
  }
  
  .file-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 20px !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    margin-bottom: 15px !important;
  }
  
  .file-info {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .file-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  
  .file-actions button {
    padding: 12px 10px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    border: 1px solid #dee2e6 !important;
    background: white !important;
    color: #495057 !important;
    min-height: 44px !important;
  }
  
  .action-learn {
    background: #3498db !important;
    color: white !important;
    border-color: #3498db !important;
  }
  
  .action-preview {
    background: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
  }
  
  .action-delete {
    background: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
  }
  
  /* 16. 使用说明 */
  .usage-guide {
    background: #e8f4fd !important;
    border-radius: 10px !important;
    padding: 25px 20px !important;
    margin-top: 25px !important;
    border: 1px solid #b3d7ff !important;
  }
  
  .guide-content {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
  }
  
  .guide-content p {
    margin-bottom: 12px !important;
  }
  
  /* 17. 多媒体上传网格 */
  .media-upload-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-top: 20px !important;
  }
  
  .media-upload-card {
    padding: 25px 15px !important;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    text-align: center !important;
  }
  
  .media-icon {
    font-size: 36px !important;
    margin-bottom: 15px !important;
  }
  
  .media-title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
  }
  
  .media-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #6c757d !important;
    margin-bottom: 15px !important;
  }
  
  /* 18. 表单元素优化 */
  input[type="text"],
  input[type="password"],
  input[type="file"],
  textarea,
  select {
    font-size: 16px !important;
    padding: 16px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    background: white !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* 19. 登录界面移动端优化 */
  .login-container {
    padding: 20px 15px !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .login-box {
    width: 100% !important;
    max-width: 400px !important;
    padding: 35px 25px !important;
  }
  
  .login-title {
    font-size: 26px !important;
  }
  
  .login-subtitle {
    font-size: 16px !important;
  }
}

/* ==================== 小屏幕优化 (480px以下) ==================== */

@media (max-width: 480px) {
  
  /* 1. 头部标题缩小 */
  .sidebar-header h2 {
    font-size: 16px !important;
  }
  
  .admin-info {
    font-size: 11px !important;
    padding: 3px 6px !important;
  }
  
  /* 2. 导航按钮进一步优化 - 更小的文字和间距，保持垂直居中 */
  .nav-btn {
    padding: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
  }
  
  .nav-btn::before {
    font-size: 11px !important; /* 更小字号 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
  }
  
  /* 竖线分隔符调整 */
  .nav-btn:not(:last-child)::after {
    font-size: 12px !important;
  }
  
  /* 3. 统计卡片改为1列 */
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* 4. 多媒体上传网格改为1列 */
  .media-upload-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* 5. 文件操作按钮改为垂直排列 */
  .file-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  .file-actions button {
    width: 100% !important;
  }
  
  /* 6. 页面标题缩小 */
  .page-title {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
  
  /* 7. 内容区域内边距调整 */
  .main-content > div {
    padding: 15px 12px !important;
  }
  
  /* 8. 登录界面进一步优化 */
  .login-box {
    padding: 30px 20px !important;
    max-width: 350px !important;
    border-radius: 15px !important;
  }
  
  .login-title {
    font-size: 24px !important;
  }
  
  .login-subtitle {
    font-size: 15px !important;
  }
}

/* ==================== 超小屏幕优化 (360px以下) ==================== */

@media (max-width: 360px) {
  /* 超小屏幕的终极优化 */
  
  /* 1. 头部标题进一步缩小 */
  .sidebar-header h2 {
    font-size: 14px !important;
  }
  
  .admin-info {
    font-size: 10px !important;
    padding: 2px 4px !important;
  }
  
  /* 2. 导航按钮终极优化 - 使用缩写 */
  .nav-btn::before {
    font-size: 10px !important;
  }
  
  /* 使用缩写文本 */
  .nav-btn:nth-child(1)::before {
    content: "仪表" !important;
  }
  
  .nav-btn:nth-child(2)::before {
    content: "知识" !important;
  }
  
  .nav-btn:nth-child(3)::before {
    content: "媒体" !important;
  }
  
  .nav-btn:nth-child(4)::before {
    content: "IP" !important;
  }
  
  .nav-btn:nth-child(5)::before {
    content: "退出" !important;
  }
  
  /* 3. 竖线分隔符更细 */
  .nav-btn:not(:last-child)::after {
    font-size: 10px !important;
    opacity: 0.2 !important;
  }
  
  /* 4. 内容区域进一步优化 */
  .main-content > div {
    padding: 12px 10px !important;
  }
  
  .page-title {
    font-size: 20px !important;
  }
}

/* ==================== 横屏优化 (768px以下，横屏) ==================== */

@media (max-width: 768px) and (orientation: landscape) {
  /* 横屏时头部高度减小 */
  .sidebar {
    flex-shrink: 0 !important;
  }
  
  .sidebar-header {
    padding: 8px 15px !important;
  }
  
  .nav-btn {
    padding: 10px 8px !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }
  
  .main-content > div {
    min-height: calc(100vh - 120px) !important;
  }
}

/* ==================== 触摸设备优化 ==================== */

@media (hover: none) and (pointer: coarse) {
  /* 改善触摸反馈 */
  .nav-btn:active,
  .action-btn:active,
  .file-actions button:active {
    opacity: 0.8 !important;
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
  
  /* 改善滚动体验 */
  .main-content {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
  }
  
  /* 防止双击缩放 */
  input[type="text"],
  input[type="password"],
  input[type="file"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ==================== 固定头部调试标记 ==================== */

@media (max-width: 768px) {
  body::after {
    content: "📱 移动端适配";
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 99999;
    opacity: 0.8;
  }
  
  /* 移除左上角遮挡标记，改为右下角 */
  /* .sidebar::before 已移除，避免遮挡文字 */
}/* build-1777005406 */
/* v2 */
