:root {
  --ink: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.94);
  --line: rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --shadow: 0 20px 48px -26px rgba(2, 6, 23, 0.6);
  --shadow-hover: 0 28px 60px -24px rgba(2, 6, 23, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 12% -8%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(900px 520px at 92% 2%, rgba(45, 212, 191, 0.16), transparent 56%),
    linear-gradient(180deg, #0b1220 0%, #0d1b2a 52%, #0a1420 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 顶部 */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 62px 24px 8px;
}

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

.logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  background: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #7dd3fc;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #f8fafc;
  font-weight: 700;
}

.subtitle {
  margin: 22px 0 0;
  color: #94a3b8;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* 主体 */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 26px 24px 48px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap:focus-within {
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.search-wrap svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f5f9;
  font-size: 15px;
  font-family: inherit;
}

.search-wrap input::placeholder {
  color: #7c8ba1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

/* 卡片 */
.card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: rise 0.45s ease both;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 189, 248, 0.45);
}

.card:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
}

.card-icon {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(2, 6, 23, 0.55);
}

.card-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-blue {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tone-orange {
  background: linear-gradient(135deg, #e07a5f, #c2410c);
}

.tone-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.tone-purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.card-body {
  min-width: 0;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  display: block;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-link {
  color: #1d4ed8;
  background: #eff6ff;
}

.badge-wecom {
  color: #047857;
  background: #ecfdf5;
}

.card-desc {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0369a1;
}

.card-action svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.card:hover .card-action svg {
  transform: translate(2px, -2px);
}

.card.wecom .card-action {
  color: #047857;
}

/* 空状态与提示 */
.empty {
  margin: 44px 0 0;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.hint {
  margin: 34px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
}

.footer {
  padding: 26px 24px 38px;
  text-align: center;
  color: #526174;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.66);
  backdrop-filter: blur(5px);
  animation: fade 0.18s ease both;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 30px 30px 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(2, 6, 23, 0.85);
  animation: pop 0.22s ease both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  margin-bottom: 16px;
}

.modal-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-card h2 {
  margin: 0;
  font-size: 20px;
}

.modal-desc {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.modal-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 34px;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.6;
}

.modal-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.modal-ok {
  margin-top: 24px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 13px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.modal-ok:hover {
  background: #1e293b;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 44px;
  }

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

  .card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
