* {
  box-sizing: border-box;
}

body.has-navbar.legacy-glass-page {
  margin: 0;
  min-height: 100vh;
  padding: 110px 20px 48px;
  overflow-x: hidden;
  color: #27364a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #4facfe 50%, #1e3c72 100%);
  background-size: 400% 400%;
  animation: legacyGradientShift 15s ease infinite;
  position: relative;
}

body.has-navbar.legacy-glass-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(224, 247, 255, 0.15) 0%, transparent 50%);
}

@keyframes legacyGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.legacy-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.legacy-header {
  color: #fff;
  padding: 48px 40px;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.legacy-header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: legacyRotate 20s linear infinite;
}

@keyframes legacyRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.legacy-header-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.legacy-header h1 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 2.5rem;
  line-height: 1.18;
  font-weight: 750;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.legacy-header p {
  margin: 16px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
  font-size: 1.02rem;
}

.legacy-header-actions,
.legacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.legacy-header-actions {
  justify-content: flex-end;
}

.legacy-content {
  padding: 40px;
  border-radius: 0 0 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.legacy-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.legacy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.legacy-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 25px;
}

.legacy-section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a5298;
  font-size: 1.5rem;
  font-weight: 650;
}

.legacy-section-title i {
  color: #4facfe;
  font-size: 1.8rem;
}

.legacy-section-copy {
  margin: 8px 0 0;
  color: #5d6b7b;
  line-height: 1.75;
}

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

.legacy-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legacy-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legacy-card {
  padding: 25px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legacy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
  transition: width 0.3s ease;
}

.legacy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.legacy-card:hover::before {
  width: 100%;
  opacity: 0.1;
}

.legacy-card > * {
  position: relative;
  z-index: 1;
}

.legacy-card-label,
.legacy-card strong.label {
  display: block;
  margin-bottom: 10px;
  color: #2a5298;
  font-size: 0.9rem;
  font-weight: 650;
}

.legacy-card-value {
  color: #444;
  font-size: 1.12rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.legacy-card h3 {
  margin: 0 0 12px;
  color: #2a5298;
  font-size: 1.3rem;
  font-weight: 700;
}

.legacy-card p {
  color: #5d6b7b;
  line-height: 1.75;
  margin: 0;
}

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

.legacy-stat-card {
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.legacy-stat-card h3 {
  margin: 0 0 10px;
  font-size: 2.45rem;
  line-height: 1;
  font-weight: 750;
  color: #fff;
}

.legacy-stat-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.legacy-btn,
.legacy-tab,
.legacy-small-btn {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #4facfe;
  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
  transition: all 0.3s ease;
}

.legacy-btn:hover,
.legacy-small-btn:hover {
  color: #fff;
  background: #00f2fe;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.5);
  transform: translateY(-2px);
}

.legacy-btn.secondary {
  background: #6c757d;
}

.legacy-btn.secondary:hover {
  background: #5a6268;
}

.legacy-btn.outline {
  color: #4facfe;
  background: transparent;
  border: 2px solid #4facfe;
}

.legacy-btn.outline:hover {
  color: #fff;
  background: #4facfe;
}

.legacy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.legacy-tab {
  color: #2a5298;
  background: rgba(79, 172, 254, 0.1);
  border: 2px solid rgba(79, 172, 254, 0.35);
  min-width: 160px;
}

.legacy-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(79, 172, 254, 0.35);
}

.legacy-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.legacy-list li {
  display: flex;
  gap: 10px;
  color: #4e5f72;
  line-height: 1.55;
}

.legacy-list i {
  color: #4facfe;
  margin-top: 3px;
}

.legacy-price {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin: 20px 0 14px;
}

.legacy-price strong {
  color: #2a5298;
  font-size: 2.4rem;
  line-height: 1;
}

.legacy-price span,
.legacy-price del {
  color: #6c7888;
  margin-bottom: 5px;
  font-weight: 600;
}

.legacy-table-wrap {
  overflow-x: auto;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.legacy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.legacy-table th,
.legacy-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #465569;
  line-height: 1.55;
}

.legacy-table th {
  color: #2a5298;
  background: rgba(79, 172, 254, 0.1);
  font-weight: 700;
}

.legacy-table tr:last-child td {
  border-bottom: 0;
}

.legacy-chart-container {
  position: relative;
  height: 400px;
  margin: 30px 0;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legacy-svg-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.legacy-report-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legacy-report-item {
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.legacy-report-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
  transition: width 0.3s ease;
  pointer-events: none;
}

.legacy-report-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
}

.legacy-report-item:hover::before {
  width: 100%;
  opacity: 0.1;
}

.legacy-report-item.highlighted {
  border: 2px solid #4facfe;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.15) 100%);
}

.legacy-report-item.highlighted::after {
  content: attr(data-badge-label);
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #4facfe;
  color: #fff;
  font-size: 0.75rem;
  pointer-events: none;
}

.legacy-report-main,
.legacy-report-actions {
  position: relative;
  z-index: 1;
}

.legacy-report-main {
  flex: 1;
  min-width: 0;
}

.legacy-report-with-avatar {
  display: flex;
  gap: 15px;
  align-items: center;
}

.legacy-report-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4facfe;
  flex: 0 0 auto;
}

.legacy-report-main h4 {
  margin: 0 0 8px;
  color: #2a5298;
  font-size: 1.1rem;
  font-weight: 650;
}

.legacy-report-meta,
.legacy-report-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.45;
}

.legacy-report-departments {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legacy-department-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  font-size: 0.85rem;
  font-weight: 550;
}

.legacy-report-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.legacy-report-score {
  color: #2a5298;
  font-size: 1.5rem;
  font-weight: 750;
}

.legacy-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.legacy-empty i {
  display: block;
  margin-bottom: 20px;
  font-size: 4rem;
  opacity: 0.5;
}

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

.legacy-field-label {
  display: block;
  margin-bottom: 6px;
  color: #4facfe;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.5px;
}

.legacy-field-input,
.legacy-field-readonly {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #4facfe;
  color: #333;
  background: #fff;
  outline: none;
}

.legacy-field-readonly {
  border-color: #d0dff8;
  color: #888;
  background: #e8f0fe;
}

.legacy-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(20, 34, 54, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legacy-modal-mask.show {
  display: flex;
}

.legacy-modal {
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  position: relative;
}

.legacy-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #5a6778;
  font-size: 1.3rem;
  cursor: pointer;
}

.legacy-contact-qr {
  display: block;
  width: min(260px, 100%);
  margin: 16px auto 0;
  padding: 8px;
  border-radius: 15px;
  border: 1px solid rgba(79, 172, 254, 0.25);
  background: #fff;
}

@media (max-width: 980px) {
  .legacy-header-main,
  .legacy-grid.three,
  .legacy-grid.two {
    grid-template-columns: 1fr;
  }

  .legacy-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  body.has-navbar.legacy-glass-page {
    padding: 88px 12px 34px;
  }

  .legacy-header {
    padding: 34px 22px;
    border-radius: 16px 16px 0 0;
  }

  .legacy-header h1 {
    font-size: 2rem;
  }

  .legacy-content {
    padding: 24px 18px;
    border-radius: 0 0 16px 16px;
  }

  .legacy-section-head,
  .legacy-report-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .legacy-chart-container {
    height: 320px;
    padding: 18px;
  }

  .legacy-report-actions,
  .legacy-btn,
  .legacy-tab {
    width: 100%;
  }

  .legacy-report-actions {
    justify-content: space-between;
  }
}
