:root {
  --bg: #f3f6fa;
  --bg-soft: #e7edf5;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(102, 124, 150, 0.16);
  --line-strong: rgba(102, 124, 150, 0.24);
  --text: #1f2d3d;
  --muted: #68788c;
  --accent: #356db0;
  --accent-deep: #264f86;
  --accent-soft: rgba(53, 109, 176, 0.08);
  --success: #2f8a65;
  --warn: #b17b23;
  --error: #c05c5c;
  --shadow: 0 16px 34px rgba(31, 51, 80, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(173, 194, 220, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(204, 217, 233, 0.22), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #f3f6fa 42%, #eef2f7 100%);
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.hero,
.intro-card,
.guide-panel,
.summary-card,
.sidebar,
.main-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(236, 242, 248, 0.98), rgba(248, 250, 252, 0.99)),
    var(--panel-strong);
}

.eyebrow,
.section-tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.intro-card h2,
.guide-panel h2,
.panel-head h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.hero-text,
.summary-detail,
.panel-note,
.guide-step p,
.qualification-copy span,
.qualification-copy small,
.intro-card p,
.download-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 780px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(53, 109, 176, 0.09);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 22px rgba(53, 109, 176, 0.2);
}

.button-secondary {
  color: var(--accent-deep);
  background: #f7f9fc;
  border: 1px solid var(--line-strong);
}

.button-ghost {
  color: #5a6d82;
  background: rgba(250, 252, 254, 0.92);
  border: 1px solid rgba(102, 124, 150, 0.16);
}

.button-ghost.hidden {
  display: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.intro-card {
  padding: 24px;
}

.intro-card-highlight {
  background:
    linear-gradient(180deg, rgba(241, 246, 251, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.intro-card-warning {
  background:
    linear-gradient(180deg, rgba(252, 248, 241, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.plain-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.guide-panel {
  margin-top: 20px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel);
  border-color: rgba(53, 109, 176, 0.12);
}

.guide-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.guide-tip {
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f9fc;
  border: 1px solid rgba(102, 124, 150, 0.12);
  color: var(--text);
  line-height: 1.65;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.guide-step {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fdfefe, #f8fafc);
  border: 1px solid rgba(102, 124, 150, 0.1);
}

.step-no {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #4f86cb, #2f66ac);
  font-weight: 700;
}

.guide-step strong {
  display: block;
  margin-bottom: 8px;
}

.guide-step p {
  margin: 0;
  line-height: 1.72;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.summary-card {
  padding: 22px;
}

.summary-card-progress {
  background:
    linear-gradient(180deg, rgba(238, 245, 252, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel);
  border-color: rgba(53, 109, 176, 0.16);
}

.summary-card-soft {
  background:
    linear-gradient(180deg, rgba(247, 249, 252, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.summary-label,
.meta-label {
  display: block;
  color: #6c84a0;
  font-size: 13px;
}

.summary-card strong,
.result-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.35;
}

.summary-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mini-progress {
  width: 100%;
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(53, 109, 176, 0.1);
  overflow: hidden;
}

.mini-progress-secondary {
  height: 8px;
  margin-top: 10px;
  background: rgba(102, 124, 150, 0.12);
}

.mini-progress-bar {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #4c84c7, #2f66ac);
  transition: width 240ms ease;
}

.mini-progress-bar-secondary {
  background: linear-gradient(135deg, #7ea5d3, #4a77b2);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.sidebar,
.main-panel {
  padding: 22px;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(250, 252, 254, 0.98), rgba(255, 255, 255, 0.98)),
    var(--panel);
}

.main-panel {
  background:
    linear-gradient(180deg, rgba(240, 246, 252, 0.98), rgba(255, 255, 255, 0.99)),
    var(--panel);
  border-color: rgba(53, 109, 176, 0.16);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head-stack {
  align-items: flex-start;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f7fb;
  border: 1px solid rgba(53, 109, 176, 0.12);
  color: var(--accent-deep);
  font-size: 13px;
}

.priority-note {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(53, 109, 176, 0.08);
  border: 1px solid rgba(53, 109, 176, 0.14);
  color: var(--accent-deep);
  line-height: 1.7;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 2px;
}

.text-button:hover {
  text-decoration: underline;
}

.search-box,
.query-bar {
  display: flex;
  gap: 12px;
}

.search-box {
  flex-direction: column;
  margin-bottom: 12px;
}

input[type="search"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
}

input[type="search"]::placeholder {
  color: #8ba0b6;
}

.selected-summary {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f8fb;
  border: 1px solid rgba(53, 109, 176, 0.1);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.qualification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 760px;
  margin-top: 14px;
  overflow: auto;
  padding-right: 4px;
}

.qualification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(102, 124, 150, 0.09);
  border-radius: 18px;
  background: #fcfdff;
}

.qualification-copy {
  min-width: 0;
}

.qualification-copy strong {
  display: block;
  line-height: 1.56;
}

.qualification-priority {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #5f738a;
}

.qualification-priority.is-priority {
  color: var(--accent-deep);
  font-weight: 700;
}

.qualification-updated {
  display: block;
  margin-top: 6px;
  color: #7f8ea2;
  font-size: 12px;
  line-height: 1.5;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-ready {
  color: #21684b;
  background: rgba(90, 211, 166, 0.14);
}

.badge-pending {
  color: #8c6420;
  background: rgba(255, 204, 102, 0.14);
}

.message-box {
  margin: 14px 0 18px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(53, 109, 176, 0.07);
  border: 1px solid rgba(53, 109, 176, 0.14);
  color: var(--text);
  line-height: 1.7;
}

.message-box[data-type="success"] {
  background: rgba(90, 211, 166, 0.12);
  color: var(--success);
}

.message-box[data-type="warn"] {
  background: rgba(255, 204, 102, 0.1);
  color: var(--warn);
}

.message-box[data-type="error"] {
  background: rgba(255, 141, 141, 0.1);
  color: var(--error);
}

.download-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.download-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.98));
  border: 1px solid rgba(53, 109, 176, 0.12);
}

.download-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.download-card p {
  margin: 8px 0 0;
  line-height: 1.68;
}

.result-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.result-chip {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(53, 109, 176, 0.12);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(102, 124, 150, 0.1);
  border-radius: 20px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(111, 141, 177, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #f3f7fb;
  font-size: 13px;
  color: #6c84a0;
}

tbody tr:hover {
  background: rgba(53, 109, 176, 0.045);
}

.empty-row,
.empty-list {
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .hero,
  .guide-header,
  .content-grid,
  .summary-grid,
  .intro-grid,
  .guide-steps,
  .query-bar,
  .download-strip {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .intro-grid,
  .summary-grid,
  .guide-steps,
  .download-strip,
  .content-grid {
    display: grid;
  }

  .hero-actions,
  .query-bar {
    width: 100%;
  }

  .button,
  .query-bar input {
    width: 100%;
  }

  .guide-tip {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
    margin-top: 12px;
  }

  .hero,
  .intro-card,
  .guide-panel,
  .summary-card,
  .sidebar,
  .main-panel {
    border-radius: 22px;
  }
}
