/**
 * 音频转换Web版 - 统一设计系统
 * 设计原则：简洁、大气、层次分明、清晰明了、扁平化
 */

/* ==================== 颜色系统 ==================== */
:root {
  /* 主色调 - 蓝色系（专业、科技感） */
  --primary-color: #1890ff;
  --primary-hover: #40a9ff;
  --primary-active: #096dd9;
  --primary-light: #e6f7ff;
  --primary-lighter: #f0f8ff;

  /* 成功色 - 绿色系 */
  --success-color: #52c41a;
  --success-hover: #73d13d;
  --success-light: #f6ffed;

  /* 警告色 - 橙色系 */
  --warning-color: #faad14;
  --warning-light: #fffbe6;

  /* 错误色 - 红色系 */
  --error-color: #ff4d4f;
  --error-light: #fff1f0;

  /* 中性色 - 灰色系 */
  --text-primary: #262626;
  --text-secondary: #595959;
  --text-tertiary: #8c8c8c;
  --text-disabled: #bfbfbf;

  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-hover: #f0f0f0;

  --border-color: #e8e8e8;
  --border-light: #f0f0f0;
  --border-dark: #d9d9d9;

  /* ==================== 间距系统 ==================== */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-xxl: 24px;
  --spacing-xxxl: 32px;

  /* ==================== 字体系统 ==================== */
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-xxl: 20px;
  --font-size-xxxl: 24px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ==================== 圆角系统 ==================== */
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 8px;
  --border-radius-xl: 12px;
  --border-radius-round: 50%;

  /* ==================== 阴影系统（扁平化，轻微阴影）==================== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-none: none;

  /* ==================== 过渡动画 ==================== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* ==================== Z-index 层级 ==================== */
  --z-index-base: 1;
  --z-index-dropdown: 1000;
  --z-index-sticky: 100;
  --z-index-modal: 10000;
  --z-index-tooltip: 9999;
}

/* ==================== 卡片样式 ==================== */
.card-base {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card-base:hover {
  box-shadow: var(--shadow-md);
}

/* ==================== 按钮样式（扁平化）==================== */
.btn-base {
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

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

.btn-base:active {
  transform: scale(0.98);
}

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

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
}

.btn-primary:active:not(:disabled) {
  background-color: var(--primary-active);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-hover);
}

.btn-success {
  background-color: var(--success-color);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background-color: var(--success-hover);
}

/* ==================== 文本样式 ==================== */
.text-primary {
  color: var(--text-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
}

.text-secondary {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
}

.text-tertiary {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
}

.text-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.text-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

/* ==================== 徽章样式 ==================== */
.badge-base {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success-color);
}

.badge-default {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* ==================== 输入框样式 ==================== */
.input-base {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all var(--transition-base);
}

.input-base:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-lighter);
}

.input-base:disabled {
  background-color: var(--bg-tertiary);
  color: var(--text-disabled);
  cursor: not-allowed;
}

/* ==================== 分隔线样式 ==================== */
.divider {
  height: 1px;
  background-color: var(--border-light);
  margin: var(--spacing-lg) 0;
}

.divider-vertical {
  width: 1px;
  background-color: var(--border-light);
  margin: 0 var(--spacing-lg);
}

/* ==================== 工具类 ==================== */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

