:root {
      --primary: #1890ff;
      --primary-light: #e6f7ff;
      --border: #e8e8e8;
      --bg: #f5f7fa;
      --card: #ffffff;
      --text: #333333;
      --text-light: #8c8c8c;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
      margin: 0;
      padding: 0;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    .container {
      max-width: 800px;
      margin: 0 auto;
      padding: 16px;
    }

    header {
      text-align: center;
      padding: 20px 0;
    }

    header h1 {
      font-size: 24px;
      font-weight: 600;
      color: var(--primary);
      margin: 0;
    }

    /* Tab 导航 */
    .tab-nav {
      display: flex;
      background: var(--card);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      margin-bottom: 24px;
    }

    .tab-btn {
      flex: 1;
      padding: 14px;
      font-size: 16px;
      font-weight: 500;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-light);
      transition: all 0.2s;
    }

    .tab-btn.active {
      background: var(--primary);
      color: white;
    }

    .tab-btn:hover:not(.active) {
      background: var(--primary-light);
      color: var(--primary);
    }

    /* 视图容器 */
    .view {
      display: none;
    }

    .view.active {
      display: block;
    }

    /* 应用卡片 */
    .app-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 16px;
      margin-top: 12px;
    }

    .app-card {
      background: var(--card);
      border-radius: 12px;
      padding: 16px;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .app-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .app-icon {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .app-name {
      font-size: 14px;
      font-weight: 500;
      margin: 0 0 8px;
    }

    .app-link {
      display: inline-block;
      padding: 6px 12px;
      background: var(--primary);
      color: white;
      text-decoration: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
    }

    .app-link:hover {
      opacity: 0.9;
    }

    /* 表单区域 */
    .panel {
      background: var(--card);
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      margin-bottom: 24px;
    }

    .panel h2 {
      margin-top: 0;
      font-size: 20px 12px;
      color: var(--text);
    }

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

    input[type="text"],
    input[type="password"],
    input[type="file"] {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 16px;
      background: #fafafa;
    }

    input[type="file"] {
      padding: 6px;
      background: white;
    }

    .btn {
      padding: 10px 20px;
      font-size: 16px;
      font-weight: 500;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
    }

    .btn-primary:hover {
      background: #40a9ff;
    }

    .btn-secondary {
      background: #f0f0f0;
      color: #333;
    }

    .btn-secondary:hover {
      background: #e0e0e0;
    }

    .btn-group {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }

    /* 文件列表 */
    .file-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .file-item {
  /*display: flex;*/
  /*justify-content: space-between;*/
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #ddd
}
#market .file-item {padding: 8px 12px;display: flex;justify-content: space-between;}
#market .file-item .btn-download{
    padding: 6px 22px;
}

.btn-download {
  background: #4CAF50;
  color: white;
  text-decoration: none;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 14px;
}
.btn-download:hover {
  background: #45a049;
}

    .file-icon {
      width: 36px;
      height: 36px;
      background: #f0f9ff;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 14px;
      color: var(--primary);
      font-size: 18px;
    }

    .file-info {
      /*flex: 1;*/
    }
    .file-info a{
      text-decoration: none;
    }

    .file-name {
      font-size:16px;
      width: 100%;
      word-break: break-all;
      font-weight: 500;
      margin: 0 0 4px;
      color: var(--text);
      text-decoration: none;
      display: block;
    }

    .file-name:hover {
      color: var(--primary);
    }

    .file-meta {
        margin-top:-4px; padding-top:0px;margin-bottom:8px;
      font-size: 12px;
      color: var(--text-light);
    }

    .empty-state {
      text-align: center;
      padding: 40px 0;
      color: var(--text-light);
    }

    .empty-state p {
      margin: 0;
    }

    /* 响应式 */
    @media (max-width: 600px) {
      .app-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .btn-group {
        flex-direction: column;
      }
    }
    
    /* 文件上传区域美化 */
.upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  min-height: 44px;
}

.upload-label:hover {
  border-color: #1890ff;
  background: #f0f9ff;
}

.upload-label .upload-btn {
  background: #1890ff;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}

#uploadFileName {
  flex: 1;
  width: 180px;
  word-wrap: break-word;
  color: #555;
  font-size: 14px;
}

/* 上传进度条 */
.progress-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: #1890ff;
  transition: width 0.2s ease;
}

.progress-text {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-top: 4px;
}

/* 存储空间信息 */
.storage-info {
  font-size: 14px;
  color: #666;
  margin: 8px 0;
}

/* 文件操作按钮组 */
.file-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-rename,
.btn-delete {
  /*display: none;*/
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-rename {
  background: #faad14;
  color: white;
}

.btn-rename:hover {
  background: #ffc53d;
}

.btn-delete {
  background: #ff4d4f;
  color: white;
}

.btn-delete:hover {
  background: #ff7875;
}