/* ========== Layout ========== */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ========== Navigation ========== */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.logo-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-link.active { background: var(--primary-light); color: var(--primary); }
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== Dashboard ========== */
.dashboard-welcome {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.dashboard-welcome h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.dashboard-welcome p {
  font-size: 13px;
  color: var(--text-secondary);
}

.scenes-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

/* ========== Compliance Practice ========== */
.practice-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}
.practice-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.customer-profile {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.customer-profile h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.customer-profile p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}
.customer-opening {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.customer-opening::before {
  content: "客户说：";
  font-weight: 700;
  color: var(--primary);
}

/* ========== Result Panel ========== */
.result-panel {
  display: none;
  animation: fadeIn 0.3s ease-out;
}
.result-panel.active { display: block; }

.score-display {
  text-align: center;
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.score-display .score-number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}
.score-display .score-number.pass { color: var(--success); }
.score-display .score-number.fail { color: var(--danger); }
.score-display .score-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ========== Report View ========== */
.report-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.report-list-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.report-list-item .r-status {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.report-list-item .r-status.pending {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
}
.report-list-item .r-status.signed {
  background: var(--success-bg);
  border: 2px solid var(--success-border);
}
.report-list-item .r-info { flex: 1; }
.report-list-item .r-info .r-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.report-list-item .r-info .r-meta {
  font-size: 12px;
  color: var(--text-secondary);
}
.report-list-item .r-score {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

/* ========== Team Members ========== */
.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
}
.member-card .m-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.member-card .m-info { flex: 1; }
.member-card .m-info .m-name {
  font-size: 14px;
  font-weight: 600;
}
.member-card .m-info .m-email {
  font-size: 12px;
  color: var(--text-secondary);
}
.member-card .m-progress {
  text-align: right;
}
.member-card .m-progress .m-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.member-card .m-progress .m-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== Settings ========== */
.settings-section {
  margin-bottom: 32px;
}
.settings-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .main { padding: 16px 12px 60px; }
  .nav-links { display: none; }
  .scenes-track { grid-template-columns: 1fr; }
  .practice-layout { grid-template-columns: 1fr; }
  .practice-sidebar {
    position: static;
    order: -1;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
