:root {
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-dark: #0284c7;
  --primary-soft: #e0f2fe;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 165, 233, 0.06);
  --shadow: 0 4px 6px rgba(14, 165, 233, 0.05), 0 10px 24px rgba(14, 165, 233, 0.08);
  --shadow-md: 0 8px 16px rgba(14, 165, 233, 0.08), 0 16px 40px rgba(14, 165, 233, 0.12);
  --shadow-lg: 0 12px 32px rgba(14, 165, 233, 0.12), 0 24px 64px rgba(14, 165, 233, 0.16);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 24px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo span {
  font-weight: 700;
  color: var(--primary-dark);
  -webkit-text-fill-color: var(--primary-dark);
}

/* 子页面/普通 header 中 .AI 单独加深，避免看不清 */
header .logo span {
  color: var(--primary-dark);
  -webkit-text-fill-color: var(--primary-dark);
}

.header-subtitle {
  font-size: 16px;
  color: var(--gray-600);
  font-weight: 500;
}

.header-back {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(14, 165, 233, 0.15);
  transition: var(--transition);
}

.header-back:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.2);
}

.card h1, .card h2, .card h3 {
  margin-top: 0;
  color: var(--gray-900);
}

.card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* Form elements */
textarea, input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}

textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

textarea::placeholder, input[type="text"]::placeholder {
  color: var(--gray-400);
}

textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.15);
}

.btn-success:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-warning {
  background: var(--warning);
  color: var(--white);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Step navigation */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
  padding: 0 12px;
}

.step-nav::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  max-width: 120px;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gray-500);
  border: 2px solid var(--gray-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  transition: var(--transition);
}

.step-item.active .step-number {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

.step-item.completed .step-number {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.step-name {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  transition: var(--transition);
}

.step-item.active .step-name {
  color: var(--primary-dark);
  font-weight: 600;
}

.step-item.completed .step-name {
  color: var(--success);
}

.step-content {
  min-height: 400px;
}

/* Table editor */
.table-editor {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.table-editor thead {
  background: var(--gray-50);
}

.table-editor th,
.table-editor td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-200);
}

.table-editor th {
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.table-editor tbody tr:hover {
  background: var(--gray-50);
}

.table-editor tbody tr:last-child td {
  border-bottom: none;
}

.table-editor td input,
.table-editor td textarea,
.table-editor td select {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  transition: var(--transition);
}

.table-editor td input:focus,
.table-editor td textarea:focus,
.table-editor td select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.table-editor td textarea {
  min-height: 60px;
  resize: vertical;
}

/* Skill cards */
.skill-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}

.skill-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 20px;
}

.skill-field {
  margin-bottom: 20px;
}

.skill-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--gray-700);
}

.skill-field input,
.skill-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
}

.skill-field input:focus,
.skill-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.skill-field textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}

.code-block {
  background: var(--gray-900);
  color: #f1f5f9;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-block input {
  background: transparent;
  color: #f1f5f9;
  border: none;
  border-bottom: 1px solid var(--gray-600);
  font-family: inherit;
  font-size: 13px;
}

.code-block input:focus {
  outline: none;
  border-bottom-color: var(--primary-light);
  box-shadow: none;
}

/* Auth pages logo fix */
.auth-header .logo {
  -webkit-text-fill-color: initial;
  color: var(--primary-dark);
  justify-content: center;
  background: none;
}

/* Key-value editor */
.kv-editor {
  display: grid;
  gap: 20px;
}

.kv-editor .skill-field {
  margin-bottom: 0;
}

/* Actions */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.actions .btn {
  min-width: 120px;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 500;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--gray-500);
}

.empty-state h2 {
  color: var(--gray-800);
  font-size: 22px;
  margin-bottom: 10px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-r { background: #e0f2fe; color: #0369a1; }
.badge-a { background: #fee2e2; color: #991b1b; }
.badge-c { background: #fef3c7; color: #92400e; }
.badge-i { background: #f3f4f6; color: #4b5563; }

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 500;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  animation: slideIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Helper text */
.help-text {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 6px 24px 40px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-badges {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 30px;
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}

.hero-badge::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* Feature cards grid */
.feature-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-soft) 0%, #dbeafe 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--gray-900);
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Report body */
.report-body {
  line-height: 1.8;
  color: var(--gray-800);
}

.report-body h1 {
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px;
  margin-bottom: 24px;
  font-size: 30px;
}

.report-body h2 {
  color: var(--gray-800);
  margin-top: 36px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
}

.report-body h3 {
  color: var(--gray-700);
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 18px;
}

.report-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.report-body th, .report-body td {
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 14px;
  text-align: left;
}

.report-body th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 13px;
}

.report-body tbody tr:hover {
  background: var(--gray-50);
}

.report-body tbody tr:last-child td {
  border-bottom: none;
}

.report-body code {
  background: var(--gray-100);
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-family: "SF Mono", Monaco, monospace;
  font-size: 13px;
  color: var(--danger);
}

.report-body pre {
  background: var(--gray-900);
  color: #f8fafc;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.report-body ul, .report-body ol {
  margin: 12px 0;
  padding-left: 24px;
}

.report-body li {
  margin: 6px 0;
}

/* Final result */
#final-result {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--gray-200);
}

#final-result p {
  margin: 6px 0;
  color: var(--gray-600);
  font-size: 14px;
}

/* Hidden */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  header {
    margin-bottom: 16px;
  }

  header .container {
    height: auto;
    min-height: 56px;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    align-items: flex-start;
  }

  header .container > div:first-child {
    width: 100%;
    justify-content: space-between;
    align-items: center !important;
  }

  header .container > div:last-child {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: flex-start;
  }

  .logo {
    font-size: 22px;
  }

  .header-subtitle {
    display: none;
  }

  .header-back {
    padding: 6px 10px;
    font-size: 13px;
  }

  .card {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
  }

  .card h1 {
    font-size: 22px;
  }

  .card h2 {
    font-size: 18px;
  }

  .card h3 {
    font-size: 16px;
  }

  .hero {
    padding: 12px 0 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badge {
    padding: 6px 12px;
    font-size: 12px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-card .icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step-nav {
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-nav::before {
    display: none;
  }

  .step-item {
    flex: 0 0 auto;
    min-width: 52px;
    max-width: none;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
    margin-bottom: 4px;
  }

  .step-name {
    font-size: 10px;
    white-space: nowrap;
  }

  .step-content {
    min-height: 300px;
  }

  .table-editor {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 13px;
  }

  .table-editor th,
  .table-editor td {
    padding: 8px 10px;
    min-width: 80px;
  }

  .table-editor td input,
  .table-editor td textarea,
  .table-editor td select {
    font-size: 13px;
    padding: 6px;
  }

  .skill-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .skill-card h3 {
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 16px;
  }

  .skill-field {
    margin-bottom: 16px;
  }

  .skill-field label {
    font-size: 12px;
  }

  .skill-field input,
  .skill-field textarea {
    padding: 8px 10px;
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .actions .btn,
  .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  textarea {
    min-height: 120px;
    font-size: 15px;
  }

  .loading {
    padding: 32px 16px;
  }

  .toast {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 20px;
    text-align: center;
    justify-content: center;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-box {
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
  }

  .modal-body iframe {
    min-height: 60vh;
  }

  .report-body h1 {
    font-size: 24px;
  }

  .report-body h2 {
    font-size: 20px;
  }

  .report-body pre {
    padding: 12px;
    font-size: 12px;
  }

  #final-result {
    padding: 16px;
  }

  .auth-container {
    margin: 40px auto;
    padding: 0 12px;
  }

  .auth-container .card {
    padding: 24px 20px;
  }

  .auth-header .logo {
    font-size: 32px;
  }
}

/* 小屏手机额外优化 */
@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 15px;
  }

  .step-name {
    font-size: 9px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .card {
    padding: 14px;
  }
}

/* 法律协议弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--gray-500);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gray-800);
}

.modal-body {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  border: none;
}

/* 报告页中嵌入的 Skill 折叠块 */
.skill-details {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 12px 0;
}

.skill-details summary {
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  user-select: none;
}

.skill-details summary:hover {
  color: var(--primary);
}

.skill-block {
  background: var(--gray-900);
  color: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0 0;
}
