:root {
  --bg: #f4f7fc;
  --card: #ffffff;
  --line: #e4e9f2;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #3267ff;
  --primary-soft: #ebf1ff;
  --success: #1aa56b;
  --warning: #d18300;
  --danger: #d73a4a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9ff 0%, var(--bg) 50%, #f6f9ff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 45deg, #87a8ff, #68d6ff, #5b8cff, #87a8ff);
  box-shadow: inset 0 0 0 2px #fff, 0 6px 18px rgba(72, 118, 255, 0.3);
}

.brand-name {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-meta {
  margin-left: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 28px;
}

.nav a {
  font-size: 20px;
  color: #1f2a44;
  font-weight: 600;
  opacity: 0.86;
}

.nav a.active,
.nav a:hover {
  color: #13285d;
  opacity: 1;
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.avatar-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f97393, #c026d3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  padding: 42px 0 18px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #cfd9ff;
  background: #f4f7ff;
  color: #2d5fe3;
  font-size: 15px;
  font-weight: 600;
}

.hero-title {
  margin: 26px auto 0;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.18;
  max-width: 900px;
  letter-spacing: 0.3px;
}

.hero-title span {
  background: linear-gradient(92deg, #2f58ff 0%, #4f79ff 35%, #6a4dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 22px auto 0;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.7;
  max-width: 980px;
  color: #5c6d8e;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #3564ff 0%, #5280ff 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(50, 103, 255, 0.3);
}

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

.btn-ghost {
  border-color: #ccd8ff;
  background: #f3f7ff;
  color: #2f5ee5;
}

.grid {
  margin-top: 42px;
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}

.feature-icon {
  font-size: 24px;
}

.feature-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #102043;
}

.feature-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: #63779f;
}

.feature-desc strong {
  color: #2b56e0;
}

.section-block {
  margin-top: 16px;
  padding: 18px 0 4px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  color: #11234b;
}

.section-head p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #607192;
}

.detail-card h3 {
  margin: 0;
  font-size: 19px;
  color: #102043;
}

.detail-card p {
  margin: 10px 0 0;
  color: #5d7093;
  font-size: 15px;
  line-height: 1.7;
}

.list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #5d7093;
  font-size: 15px;
  line-height: 1.8;
}

.list.ordered {
  list-style: decimal;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline .step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid #e7edfb;
  font-size: 15px;
  color: #29406a;
}

.timeline .step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #3267ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.qr-hint {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  border-radius: 14px;
  border: 1px solid #dce6fb;
  background: #f7faff;
  padding: 8px;
}

.qr-box.large {
  width: 260px;
  height: 260px;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}

.page-main {
  padding: 24px 0 42px;
  flex: 1;
}

.page-title {
  margin: 0;
  font-size: 34px;
}

.page-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px;
}

.apply-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: start;
}

.aside-panel {
  position: sticky;
  top: 18px;
}

.aside-text {
  margin: 12px 0 18px;
  color: #566a8e;
  line-height: 1.7;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-item.full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #24314d;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d9e1ef;
  border-radius: 10px;
  background: #fdfefe;
  padding: 10px 12px;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6b8cff;
  box-shadow: 0 0 0 3px rgba(81, 125, 255, 0.15);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.status.pending {
  background: #fff8eb;
  color: var(--warning);
}

.status.approved {
  background: #edfbf5;
  color: var(--success);
}

.status.rejected {
  background: #fff0f2;
  color: var(--danger);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

thead th {
  text-align: left;
  font-size: 13px;
  color: #50607e;
  background: #f7f9fe;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid #edf1f7;
  font-size: 14px;
  color: #20304f;
  vertical-align: top;
}

.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mini {
  border: 1px solid #dce3f3;
  background: #fff;
  color: #2c3d62;
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.btn-mini.success {
  border-color: #b9ebd4;
  color: #158555;
  background: #effdf5;
}

.btn-mini.danger {
  border-color: #f6c5cd;
  color: #bf2e40;
  background: #fff2f4;
}

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dbe6ff;
  background: #f3f7ff;
  color: #3157b9;
  font-size: 14px;
}

.notice.error {
  border-color: #ffd3da;
  background: #fff3f5;
  color: #bf3652;
}

.kv {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 10px;
  column-gap: 14px;
  font-size: 14px;
}

.kv .k {
  color: #6b7a95;
}

.footer {
  border-top: 1px solid #e6ecf8;
  padding: 26px 0 32px;
  color: #7a87a1;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .apply-layout {
    grid-template-columns: 1fr;
  }

  .aside-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar {
    flex-wrap: wrap;
    height: auto;
    gap: 10px;
    padding: 12px 0;
  }

  .nav {
    margin-left: 0;
    gap: 14px;
    width: 100%;
    order: 3;
    flex-wrap: wrap;
  }

  .hero-subtitle {
    line-height: 1.6;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-hint {
    grid-template-columns: 1fr;
  }

  .qr-box,
  .qr-box.large {
    width: min(260px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
