* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #0f0f14;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  min-height: 100vh;
  padding: 20px;
  color: #e2e8f0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 磨砂玻璃卡片核心样式 */
.glass-card {
  background: rgba(22, 22, 32, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 20px;
  width: 100%;
}

/* 头部样式 */
header h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.subtitle {
  color: #94a3b8;
  font-size: 14px;
}

/* 分层介绍 */
.layer-intro h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

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

.layer-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.layer-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.layer-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.layer-content p {
  font-size: 13px;
  color: #94a3b8;
}

/* 配置区域 */
.config-area h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.checkbox-item input {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}

/* 上传区域样式 */
.upload-area {
  width: 100%;
  height: 140px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover, .upload-area.drag-over {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.upload-content {
  text-align: center;
  color: #94a3b8;
}

.upload-content svg {
  margin-bottom: 8px;
  color: #6366f1;
}

.upload-content p {
  font-size: 15px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.upload-content span {
  font-size: 12px;
  color: #64748b;
}

/* 文件信息样式 */
.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
  margin-bottom: 16px;
}

.file-name {
  font-weight: 500;
  color: #e2e8f0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 13px;
  color: #94a3b8;
}

.small-btn {
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.small-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* 代码区域 */
.code-area {
  width: 100%;
}

.code-input-wrapper h3,
.code-output-wrapper h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 300px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 16px;
  color: #e2e8f0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus {
  border-color: #6366f1;
}

textarea::placeholder {
  color: #64748b;
}

textarea[readonly] {
  background: rgba(15, 15, 20, 0.8);
  cursor: default;
}

/* 按钮组 */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: white;
}

.primary-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 底部提示 */
.tips p {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .layer-list {
    grid-template-columns: 1fr;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .file-info {
    flex-wrap: wrap;
  }
}
/* ========== VIP系统相关样式 ========== */
/* 头部用户区域 */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.username {
  color: #e2e8f0;
  font-weight: 500;
}

/* VIP标签 */
.vip-tag {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.vip-badge {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

.vip-btn {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  font-size: 13px;
  padding: 6px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}

.vip-btn:hover {
  opacity: 0.9;
}

/* 次数提示 */
.count-tip {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 12px;
}

/* VIP模态框 */
.vip-modal {
  max-width: 500px;
}

.vip-rights {
  margin-bottom: 20px;
}

.rights-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #e2e8f0;
}

/* VIP套餐选择 */
.vip-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.package-item {
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.package-item:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.package-item.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.package-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.package-item .price {
  font-size: 20px;
  font-weight: 700;
  color: #f59e0b;
}

.package-item .price span {
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
}

.vip-submit-btn {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 0;
}

.vip-submit-btn:hover {
  opacity: 0.9;
}

/* 禁用状态样式优化 */
.checkbox-item input:disabled + span {
  color: #64748b;
  cursor: not-allowed;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .header-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .vip-packages {
    grid-template-columns: 1fr;
  }
}
