/* ===== 结果页主体 ===== */
.results-page {
  padding-top: 64px;
  min-height: 100vh;
  background: #f5f7fa;
}

/* ===== 顶部摘要区 ===== */
.results-summary {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0e6ff 50%, #fce4ec 100%);
  padding: 40px 24px 48px;
}

.summary-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  color: #1a73e8;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 20px;
}

.back-btn:hover {
  background: #fff;
  transform: translateX(-2px);
}

.back-arrow {
  font-size: 16px;
}

.results-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.results-subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 32px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.summary-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.summary-card-number {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.summary-card-number.total { color: #1a73e8; }
.summary-card-number.high { color: #2e7d32; }
.summary-card-number.medium { color: #f57c00; }
.summary-card-number.low { color: #7b1fa2; }

.summary-card-label {
  font-size: 13px;
  color: #777;
}

/* ===== 筛选工具栏 ===== */
.results-toolbar {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  padding: 16px 24px;
  position: sticky;
  top: 64px;
  z-index: 50;
}

.toolbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.filter-select {
  padding: 6px 32px 6px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fafbfc;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23999' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: #1a73e8;
}

.result-count {
  margin-left: auto;
  font-size: 13px;
  color: #999;
  font-weight: 600;
}

/* ===== 结果列表 ===== */
.results-list {
  padding: 32px 24px 60px;
}

.results-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== 结果卡片 ===== */
.result-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  border: 1px solid #e8ecf0;
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #c8d8e8;
}

.result-card.level-high {
  border-left: 4px solid #2e7d32;
}
.result-card.level-medium {
  border-left: 4px solid #f57c00;
}
.result-card.level-low {
  border-left: 4px solid #7b1fa2;
}
.result-card.level-minimal {
  border-left: 4px solid #bbb;
}

/* 左侧匹配度圆环 */
.result-score {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.score-ring svg {
  transform: rotate(-90deg);
  width: 64px;
  height: 64px;
}

.score-ring-bg {
  fill: none;
  stroke: #e8ecf0;
  stroke-width: 5;
}

.score-ring-fill {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.score-ring-fill.high { stroke: #2e7d32; }
.score-ring-fill.medium { stroke: #f57c00; }
.score-ring-fill.low { stroke: #7b1fa2; }
.score-ring-fill.minimal { stroke: #bbb; }

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #333;
}

.score-level {
  font-size: 11px;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.score-level.high { background: #e8f5e9; color: #2e7d32; }
.score-level.medium { background: #fff3e0; color: #e65100; }
.score-level.low { background: #f3e5f5; color: #7b1fa2; }
.score-level.minimal { background: #f5f5f5; color: #999; }

/* 右侧内容 */
.result-body {
  flex: 1;
  min-width: 0;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.result-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
}

.result-country-badge {
  flex-shrink: 0;
  font-size: 13px;
  color: #666;
  background: #f5f7fa;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.result-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.result-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.result-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.result-meta-item {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-meta-item strong {
  color: #333;
  font-weight: 600;
}

.result-meta-item.amount strong {
  color: #d32f2f;
  font-size: 15px;
}

/* 维度得分条 */
.result-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  display: none;
}

.result-card.expanded .result-details {
  display: block;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.detail-label {
  font-size: 12px;
  color: #888;
  width: 70px;
  flex-shrink: 0;
}

.detail-bar {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.detail-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.detail-bar-fill.high { background: #2e7d32; }
.detail-bar-fill.medium { background: #f57c00; }
.detail-bar-fill.low { background: #7b1fa2; }
.detail-bar-fill.minimal { background: #bbb; }

.detail-value {
  font-size: 12px;
  color: #666;
  width: 36px;
  text-align: right;
}

/* ===== 无结果 ===== */
.no-results {
  padding: 80px 24px;
  text-align: center;
}

.no-results-inner {
  max-width: 400px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.no-results h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 10px;
}

.no-results p {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

.retry-btn {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}

.retry-btn:hover {
  transform: translateY(-2px);
}

/* ===== 详情弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f5f5f5;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.modal-close:hover {
  background: #e0e0e0;
}

.modal-body {
  padding: 32px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
  padding-right: 40px;
}

.modal-country {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

/* 信息网格 */
.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-info-label {
  font-size: 12px;
  color: #999;
  font-weight: 600;
}

.modal-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.modal-info-value.amount {
  color: #d32f2f;
  font-size: 16px;
  font-weight: 800;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.modal-requirements,
.modal-materials {
  list-style: none;
  padding: 0;
}

.modal-requirements li,
.modal-materials li {
  font-size: 14px;
  color: #555;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.modal-requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: 700;
}

.modal-materials li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #1a73e8;
  font-weight: 700;
}

.modal-source {
  display: inline-block;
  font-size: 14px;
  color: #1a73e8;
  font-weight: 600;
  background: #e8f0fe;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.modal-source:hover {
  background: #d2e3fc;
}

/* ===== 报名入口按钮 ===== */
.modal-register-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  margin: 20px 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
}
.modal-register-btn:hover {
  background: linear-gradient(135deg, #1557b0 0%, #1a73e8 100%);
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.45);
  transform: translateY(-2px);
}

.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-tag {
  font-size: 12px;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 4px 10px;
  border-radius: 4px;
}

/* 反馈区 */
.modal-feedback {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.feedback-buttons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.fb-btn {
  padding: 10px 24px;
  border: 2px solid #e8ecf0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-btn:hover {
  border-color: #1a73e8;
  background: #f8f9fb;
}

.fb-up:hover {
  border-color: #2e7d32;
  background: #e8f5e9;
}

.fb-down:hover {
  border-color: #c62828;
  background: #fce4ec;
}

.feedback-comment {
  margin-top: 12px;
}

.fb-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color 0.2s;
}

.fb-textarea:focus {
  border-color: #1a73e8;
}

.fb-submit {
  margin-top: 8px;
  padding: 8px 20px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.fb-submit:hover {
  background: #1557b0;
}

.feedback-thanks {
  margin-top: 12px;
  font-size: 14px;
  color: #2e7d32;
  font-weight: 600;
}

/* 查看详情按钮 */
.result-detail-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #1a73e8;
  border-radius: 8px;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.result-detail-btn:hover {
  background: #1a73e8;
  color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .result-count {
    margin-left: 0;
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .result-score {
    flex-direction: row;
    width: auto;
    gap: 12px;
  }

  .result-header {
    flex-direction: column;
  }
}
