/* ========== 首页门户 ========== */
.home-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

/* —— Hero —— */
.home-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 34px 28px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(26, 22, 54, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-hero-copy {
  min-width: 0;
  max-width: 680px;
}

.home-hero-title {
  margin: 8px 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.home-hero-desc {
  margin: 0 0 16px;
  max-width: 520px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.home-hero-points {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-hero-points li {
  position: relative;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.home-hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-hero-note {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.home-hero-note a {
  color: var(--grad-a);
  font-weight: 600;
  text-decoration: none;
}

.home-hero-note a:hover {
  text-decoration: underline;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(91, 75, 255, 0.08);
}

.home-stat {
  padding: 14px 12px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(91, 75, 255, 0.08);
}

.home-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--grad-a);
  line-height: 1.1;
}

.home-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* —— 服务矩阵 —— */
.home-matrix {
  margin-bottom: 20px;
}

.home-matrix-head {
  margin-bottom: 14px;
}

.home-matrix-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(91, 75, 255, 0.65);
}

.home-matrix-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-matrix-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  padding: 16px 16px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(26, 22, 54, 0.04);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.home-matrix-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 75, 255, 0.22);
  box-shadow: 0 10px 28px rgba(91, 75, 255, 0.1);
}

.home-matrix-card-accent {
  background: linear-gradient(145deg, rgba(91, 75, 255, 0.08), rgba(232, 83, 154, 0.06));
  border-color: rgba(91, 75, 255, 0.18);
}

.home-matrix-num {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(91, 75, 255, 0.5);
}

.home-matrix-card strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.home-matrix-card em {
  margin-top: auto;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* —— 分享 —— */
.home-share {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(91, 75, 255, 0.1);
}

.home-share summary {
  padding: 14px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
}

.home-share summary::-webkit-details-marker {
  display: none;
}

.home-share-body {
  padding: 0 18px 16px;
  border-top: 1px solid rgba(91, 75, 255, 0.08);
}

.home-share-text {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(91, 75, 255, 0.1);
  font-size: 0.82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
  font-family: inherit;
}

.home-footer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 4px 0 0;
}

.home-footer a {
  color: var(--grad-a);
  font-weight: 600;
  text-decoration: none;
}

.home-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .home-matrix-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-main {
    padding: 16px 16px 32px;
  }

  .home-hero {
    padding: 24px 20px 22px;
    gap: 20px;
  }

  .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-hero-actions .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .home-matrix-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 文档页（about / services 共用） ========== */
.doc-page .doc-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 20px 32px;
}

.doc-container {
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.page-content {
  padding: 32px 36px 28px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grad-a);
  margin-bottom: 10px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.page-lead {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(91, 75, 255, 0.1);
}

.doc-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 24px;
  text-align: center;
}

.doc-footer-tip {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.doc-footer-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.legal-toc,
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(91, 75, 255, 0.1);
}

.legal-toc a,
.guide-toc a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 75, 255, 0.06);
  border: 1px solid rgba(91, 75, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--grad-a);
  text-decoration: none;
}

.legal-section,
.guide-section {
  scroll-margin-top: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(91, 75, 255, 0.08);
}

.legal-article {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.85;
  text-align: justify;
}

.legal-clause {
  font-weight: 800;
  color: var(--grad-a);
}

.legal-meta {
  color: var(--ink-soft);
  font-size: 0.84rem;
  margin-bottom: 14px !important;
}

.legal-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(91, 75, 255, 0.06);
  border: 1px solid rgba(91, 75, 255, 0.12);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.guide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.guide-steps,
.guide-list {
  padding-left: 22px;
  font-size: 0.9rem;
  line-height: 1.85;
}

.guide-dl dt {
  margin-top: 14px;
  font-weight: 800;
}

.guide-dl dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .page-content {
    padding: 22px 18px 20px;
  }
}
