/* Document 站点介绍 / 商务合作：品牌感布局，随主题色与深浅模式 */

html body .document-brand-page {
  --brand-hero-1: color-mix(in srgb, var(--theme-color, #3eaf7c) 22%, #f8fafc 78%);
  --brand-hero-2: color-mix(in srgb, var(--theme-color, #3eaf7c) 8%, #ffffff 92%);
  --brand-hero-fg: #0f172a;
  --brand-hero-muted: rgba(15, 23, 42, 0.72);
  --brand-surface: rgba(255, 255, 255, 0.72);
  --brand-surface-border: rgba(15, 23, 42, 0.08);
  --brand-card-bg: #ffffff;
  --brand-card-border: rgba(15, 23, 42, 0.07);
  --brand-text: #1e293b;
  --brand-muted: #64748b;
  --brand-grid: rgba(15, 23, 42, 0.04);
  --brand-glow: color-mix(in srgb, var(--theme-color, #3eaf7c) 35%, transparent);
}

html.dark body .document-brand-page,
html body.dark .document-brand-page {
  --brand-hero-1: color-mix(in srgb, var(--theme-color, #3eaf7c) 28%, #0f172a 72%);
  --brand-hero-2: color-mix(in srgb, var(--theme-color, #3eaf7c) 12%, #020617 88%);
  --brand-hero-fg: rgba(248, 250, 252, 0.98);
  --brand-hero-muted: rgba(226, 232, 240, 0.78);
  --brand-surface: rgba(15, 23, 42, 0.55);
  --brand-surface-border: rgba(148, 163, 184, 0.18);
  --brand-card-bg: rgba(15, 23, 42, 0.65);
  --brand-card-border: rgba(148, 163, 184, 0.14);
  --brand-text: rgba(248, 250, 252, 0.96);
  --brand-muted: rgba(148, 163, 184, 0.9);
  --brand-grid: rgba(255, 255, 255, 0.05);
  --brand-glow: color-mix(in srgb, var(--theme-color, #3eaf7c) 45%, transparent);
}

html body .document-brand-page .document-brand-page__shell {
  max-width: min(52rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

html body .document-brand-page .document-brand-hero {
  position: relative;
  padding: clamp(2.25rem, 5.5vw, 4rem) clamp(1.25rem, 4vw, 2.75rem);
  border-radius: clamp(16px, 2.5vw, 24px);
  overflow: hidden;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  background: linear-gradient(145deg, var(--brand-hero-1) 0%, var(--brand-hero-2) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 24px 56px rgba(15, 23, 42, 0.12);
  color: var(--brand-hero-fg);
}

html.dark body .document-brand-page .document-brand-hero,
html body.dark .document-brand-page .document-brand-hero {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 64px rgba(0, 0, 0, 0.45);
}

html body .document-brand-page .document-brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--brand-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

html body .document-brand-page .document-brand-hero::after {
  content: "";
  position: absolute;
  width: clamp(200px, 45vw, 420px);
  height: clamp(200px, 45vw, 420px);
  right: -8%;
  top: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

html body .document-brand-page .document-brand-hero__inner {
  position: relative;
  z-index: 1;
}

html body .document-brand-page .document-brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-color, #3eaf7c);
  margin: 0 0 0.65rem;
}

html body .document-brand-page .document-brand-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--theme-color, #3eaf7c);
  opacity: 0.85;
}

html body .document-brand-page .document-brand-hero__title {
  margin: 0 0 0.65rem;
  font-family: 'YouSheBiaoTiHei', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: inherit;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

html body .document-brand-page .document-brand-hero__lead {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.92rem, 2.1vw, 1.05rem);
  line-height: 1.75;
  color: var(--brand-hero-muted);
}

html body .document-brand-page .document-brand-hero__logo {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

html body .document-brand-page .document-brand-hero__logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 12px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-surface-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html body .document-brand-page .document-brand-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: clamp(0.85rem, 2.5vw, 1.15rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

html body .document-brand-page .document-brand-pillar {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-card-border);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

html.dark body .document-brand-page .document-brand-pillar,
html body.dark .document-brand-page .document-brand-pillar {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

html body .document-brand-page .document-brand-pillar:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--theme-color, #3eaf7c) 45%, var(--brand-card-border));
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px color-mix(in srgb, var(--theme-color, #3eaf7c) 22%, transparent);
}

html body .document-brand-page .document-brand-pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  background: color-mix(in srgb, var(--theme-color, #3eaf7c) 16%, transparent);
  color: var(--theme-color, #3eaf7c);
}

html body .document-brand-page .document-brand-pillar__title {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--brand-text);
  letter-spacing: 0.02em;
}

html body .document-brand-page .document-brand-pillar__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--brand-muted);
}

html body .document-brand-page .document-brand-prose {
  padding: clamp(1.25rem, 3vw, 1.75rem) 0;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--brand-text);
}

html body .document-brand-page .document-brand-prose > *:first-child {
  margin-top: 0;
}

html body .document-brand-page .document-brand-prose > *:last-child {
  margin-bottom: 0;
}

html body .document-brand-page .document-brand-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--theme-color, #3eaf7c) 18%, var(--brand-card-bg)) 0%,
    var(--brand-card-bg) 100%
  );
  border: 1px solid var(--brand-card-border);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

html.dark body .document-brand-page .document-brand-cta,
html body.dark .document-brand-page .document-brand-cta {
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35);
}

html body .document-brand-page .document-brand-cta__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--brand-muted);
  max-width: 28rem;
  line-height: 1.6;
}

html body .document-brand-page .document-brand-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

html body .document-brand-page .document-brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html body .document-brand-page .document-brand-btn--primary {
  background: var(--theme-color, #3eaf7c);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-color, #3eaf7c) 40%, transparent);
}

html body .document-brand-page .document-brand-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--theme-color, #3eaf7c) 50%, transparent);
  color: #fff;
}

html body .document-brand-page .document-brand-btn--ghost {
  background: transparent;
  color: var(--brand-text);
  border-color: var(--brand-card-border);
}

html body .document-brand-page .document-brand-btn--ghost:hover {
  border-color: color-mix(in srgb, var(--theme-color, #3eaf7c) 45%, var(--brand-card-border));
  color: var(--theme-color, #3eaf7c);
}

/* —— 商务合作 —— */
html body .document-brand-page .document-brand-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(0.85rem, 2.5vw, 1.15rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

html body .document-brand-page .document-brand-contact-card {
  padding: 1.35rem 1.4rem;
  border-radius: 16px;
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-card-border);
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.06);
}

html.dark body .document-brand-page .document-brand-contact-card,
html body.dark .document-brand-page .document-brand-contact-card {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

html body .document-brand-page .document-brand-contact-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--theme-color, #3eaf7c);
}

html body .document-brand-page .document-brand-contact-card__value {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-text);
  word-break: break-all;
}

html body .document-brand-page .document-brand-contact-card__value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-color, #3eaf7c) 55%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

html body .document-brand-page .document-brand-contact-card__value a:hover {
  color: var(--theme-color, #3eaf7c);
  border-bottom-color: var(--theme-color, #3eaf7c);
}

html body .document-brand-page .document-brand-contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

html body .document-brand-page .document-brand-copy {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--brand-card-border);
  background: color-mix(in srgb, var(--theme-color, #3eaf7c) 10%, var(--brand-card-bg));
  color: var(--brand-text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

html body .document-brand-page .document-brand-copy:hover {
  border-color: color-mix(in srgb, var(--theme-color, #3eaf7c) 40%, var(--brand-card-border));
}

html body .document-brand-page .document-brand-qr {
  margin-top: 0.5rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--brand-card-bg);
  border: 1px solid var(--brand-card-border);
  text-align: center;
  box-shadow: 0 14px 48px rgba(15, 23, 42, 0.08);
}

html.dark body .document-brand-page .document-brand-qr,
html body.dark .document-brand-page .document-brand-qr {
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.4);
}

html body .document-brand-page .document-brand-qr__label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand-muted);
}

html body .document-brand-page .document-brand-qr__frame {
  display: inline-block;
  padding: 0.65rem;
  border-radius: 16px;
  background: #fff;
  line-height: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

html body .document-brand-page .document-brand-qr__frame img {
  display: block;
  width: min(200px, 70vw);
  height: auto;
  border-radius: 10px;
}

html body .document-brand-page .document-brand-qr__hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--brand-muted);
  line-height: 1.55;
}

@media (max-width: 600px) {
  html body .document-brand-page .document-brand-cta {
    flex-direction: column;
    align-items: stretch;
  }

  html body .document-brand-page .document-brand-cta__actions {
    justify-content: stretch;
  }

  html body .document-brand-page .document-brand-btn {
    flex: 1;
    min-width: 0;
  }
}
