:root {
  --primary: #1DB954;
  --primary-hover: #1ed760;
  --sidebar-bg: #0F172A;
  --sidebar-text: #94A3B8;
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-sub: #64748B;
  --border-light: #E2E8F0;
  --radius-base: 8px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* 登录页专属样式 */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}

.login-card {
  width: 400px;
  padding: 48px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-base);
  transition: all 0.2s;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

/* 布局框架 */
.app-container { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 10px rgba(0,0,0,0.05);
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu-item {
  padding: 14px 24px;
  margin: 4px 12px;
  border-radius: var(--radius-base);
  cursor: pointer;
  color: var(--sidebar-text);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.menu-item.active { background: var(--primary); color: #fff; }

.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.top-navbar {
  height: 70px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

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

/* 组件样式 */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.btn {
  padding: 10px 20px;
  border-radius: var(--radius-base);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

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

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 16px;
  background: #F8FAFC;
  color: var(--text-sub);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-base);
  background: #fff;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border-left: 4px solid var(--primary);
}
