/* ============ 文档工具箱 · 导航首页 ============ */
body {
  overflow: auto;
  background: linear-gradient(160deg, #f2f5fb 0%, #f4f2fa 45%, #eff7f3 100%);
  min-height: 100%;
}

.home-badge {
  font-size: 12px;
  color: #5b6b85;
  background: #f0f3f9;
  border: 1px solid #e2e7f0;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.home-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 24px 44px;
}

/* 徽标（替代 emoji） */
.hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #4f7dff, #2f6bff);
  box-shadow: 0 8px 22px rgba(47, 107, 255, .28);
  margin-bottom: 18px;
}
.hero-mark svg { width: 28px; height: 28px; }

.home-hero { text-align: center; margin-bottom: 36px; }
.home-hero h1 {
  font-size: 32px;
  margin: 0 0 10px;
  font-weight: 750;
  letter-spacing: 1px;
  color: var(--text);
}
.home-hero p { margin: 0; color: #5a6b8c; font-size: 15px; letter-spacing: .3px; line-height: 1.7; }

/* 卡片 */
.home-cards { display: flex; gap: 22px; }
.home-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 26px 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 6px 24px rgba(60, 80, 180, .07);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
/* 卡片顶部色条：印章=蓝，发票=绿 */
.home-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.home-card:nth-child(1)::before { background: linear-gradient(90deg, #4f7dff, #2f6bff); }
.home-card:nth-child(2)::before { background: linear-gradient(90deg, #22b573, #1a9a5f); }
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(60, 80, 180, .13);
  border-color: rgba(47, 107, 255, .35);
}
.home-card:nth-child(2):hover { border-color: rgba(34, 181, 115, .35); }

.hc-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(20, 40, 80, .16);
  margin-bottom: 16px;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.home-card:hover .hc-icon { transform: scale(1.06); }
.hc-icon svg { width: 26px; height: 26px; }

.hc-body h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--text);
}
.hc-body p {
  margin: 0 0 14px;
  color: #5a6b8c;
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: .2px;
}

.hc-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hc-tags li {
  font-size: 12px;
  font-weight: 500;
  color: #3d4f74;
  background: #f3f6ff;
  border: 1px solid #e3eaff;
  border-radius: 8px;
  padding: 3px 10px;
  letter-spacing: .2px;
}

.hc-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f7dff, #2f6bff);
  border-radius: 10px;
  padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(47, 107, 255, .3);
  transition: all .2s;
  align-self: flex-start;
}
.home-card:nth-child(2) .hc-cta { background: linear-gradient(135deg, #22b573, #1a9a5f); box-shadow: 0 4px 12px rgba(34, 181, 115, .3); }
.hc-cta svg { width: 15px; height: 15px; transition: transform .18s; }
.home-card:hover .hc-cta svg { transform: translateX(3px); }

.home-foot {
  margin-top: 36px;
  text-align: center;
  color: #7a8aa8;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 760px) {
  .home-cards { flex-direction: column; }
}
