body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f5f5f5;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  color: #333;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}

h2 {
  color: #666;
  font-size: 1.2em;
  margin-bottom: 15px;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

input[type="text"],
input[type="number"],
input[type="url"],
input[type="password"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #4CAF50;
  outline: none;
}

.buttons {
  margin-top: 20px;
  text-align: right;
}

button {
  padding: 8px 16px;
  margin-left: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

#save {
  background: #4CAF50;
  color: white;
}

#reset {
  background: #f44336;
  color: white;
}

button:hover {
  opacity: 0.9;
}

.status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  border-radius: 4px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.status.success {
  background: #4CAF50;
  opacity: 1;
}

.status.error {
  background: #f44336;
  opacity: 1;
}

.file-types-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
  background: #fff;
}

.file-type-category {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.file-type-category:last-child {
  margin-bottom: 0;
}

.file-type-category h3 {
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.file-types-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 10px;
}

.file-type-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.file-type-item:hover {
  background-color: #e9e9e9;
}

.file-type-item input[type="checkbox"] {
  margin-right: 8px;
}

/* 添加响应式支持 */
@media (max-width: 768px) {
  .file-types-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* 美化滚动条 */
.file-types-container::-webkit-scrollbar {
  width: 8px;
}

.file-types-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.file-types-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.file-types-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* 标签样式 */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.help-text {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 12px;
}

/* 按钮样式 */
.button-group {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #1a73e8;
  color: white;
}

.btn-primary:hover {
  background-color: #1557b0;
}

.btn-secondary {
  background-color: #5f6368;
  color: white;
}

.btn-secondary:hover {
  background-color: #494c50;
}

.btn-info {
  background-color: #34a853;
  color: white;
}

.btn-info:hover {
  background-color: #2d8544;
}

/* 复选框组样式 */
.checkbox-group {
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* 输入框样式 */
.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-control:focus {
  border-color: #1a73e8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.file-types-help {
  margin-top: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
} 