﻿:root {
  --primary-color: #0f766e;
  --secondary-color: #0b5f58;
  --accent-color: #f26b4f;
  --success-color: #1f9d6a;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --bg-color: #f4efe6;
  --panel-color: #fff8ef;
  --panel-strong: #fffdf9;
  --text-color: #1d2a2f;
  --muted-color: #5b6b73;
  --border-color: #e6d7c6;
  --card-shadow: 0 18px 45px rgba(24, 29, 37, 0.12);
  --soft-shadow: 0 10px 24px rgba(24, 29, 37, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --border-radius: 12px;
  --shadow: 0 10px 24px rgba(24, 29, 37, 0.08);
  --sidebar-bg: #1b1f2a;
  --sidebar-accent: #f26b4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(242, 107, 79, 0.12), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(15, 118, 110, 0.12), transparent 45%),
    linear-gradient(180deg, #f7f0e6 0%, #efe5d6 100%);
  color: var(--text-color);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(27, 31, 42, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, .page-title {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
}

.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, #141822 70%, #10131c 100%);
  color: #f8f3ea;
  padding: 20px 0;
  box-shadow: 6px 0 30px rgba(10, 12, 18, 0.35);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-logo i {
  color: var(--sidebar-accent);
}

.app-logo h1 {
  font-size: 18px;
  font-weight: 600;
}

.sidebar-profile,
.user-info {
  margin: 16px 16px 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(242, 107, 79, 0.2);
  color: #f8e9d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.logout-btn,
.btn-ghost {
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #f8f3ea;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.logout-btn:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-menu {
  list-style: none;
  margin-top: 18px;
}

.nav-item {
  margin: 6px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: none;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.2s ease;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-item:hover {
  background: rgba(242, 107, 79, 0.12);
  color: #fff;
}

.nav-item.active {
  background: rgba(242, 107, 79, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(242, 107, 79, 0.35);
}

.main-content {
  flex: 1;
  padding: 32px;
  background: rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(6px);
}

.page-header {
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 28px;
  font-weight: 600;
}

.section-card {
  background: var(--panel-color);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.section-card h2,
.section-card h3 {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  color: var(--text-color);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #efe7da;
  color: var(--text-color);
}

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

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

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.primary-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.secondary-btn {
  padding: 10px 16px;
  background: #efe7da;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--panel-strong);
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: #f0e6d8;
  font-weight: 600;
  color: var(--text-color);
}

tr:hover {
  background: rgba(242, 107, 79, 0.06);
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(31, 157, 106, 0.12);
  color: #1f9d6a;
}

.badge-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.badge-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.badge-primary {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-card {
  background: var(--panel-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--soft-shadow);
}

.hero-title {
  font-size: 30px;
  margin-bottom: 8px;
}

.hero-subtitle {
  color: var(--muted-color);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stat-card {
  border-radius: 14px;
  padding: 16px;
  background: #fffaf2;
  border: 1px solid var(--border-color);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-color);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 6px;
}

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

.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #fffdf9;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
  min-height: 150px;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
  border-color: rgba(242, 107, 79, 0.5);
}

.module-card i {
  font-size: 20px;
  color: var(--accent-color);
}

.module-card small {
  color: var(--muted-color);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
}

.page-content {
  animation: rise 0.35s ease;
}

.stagger > * {
  animation: rise 0.45s ease;
  animation-fill-mode: both;
}

.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-page {
  background: radial-gradient(circle at 20% 20%, rgba(242, 107, 79, 0.18), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(15, 118, 110, 0.2), transparent 45%),
    #151821;
  color: #fdf7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-page .container {
  background: rgba(20, 24, 32, 0.85);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(5, 8, 14, 0.45);
}

.login-page .left-panel {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.25), rgba(242, 107, 79, 0.2));
}

.login-page .logo i,
.login-page .feature i {
  color: var(--accent-color);
}

.login-page .toggle-btn.active {
  background: var(--accent-color);
  color: #1d1d1d;
  box-shadow: 0 6px 18px rgba(242, 107, 79, 0.35);
}

.login-page .form-container input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fdf7ee;
}

.login-page .form-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-page .submit-btn {
  background: var(--accent-color);
}

.login-page .submit-btn:hover {
  background: #e35b3f;
}

@media (max-width: 992px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .main-content {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .main-content {
    padding: 20px;
  }

  .module-card {
    min-height: unset;
  }
}

.muted {
  color: var(--muted-color);
  font-size: 12px;
}


.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}


.login-page::before {
  opacity: 0.15;
}


.login-page .bg-circle {
  background: rgba(242, 107, 79, 0.18);
}

.login-page .left-panel h2 {
  color: #fdf7ee;
}


.login-page * {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
}

.login-page h1,
.login-page h2,
.login-page h3 {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
}


body,
body * {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
}

.page-title,
.section-card h2,
.section-card h3,
.hero-title {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
}


