.official-account-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-width: 0;
  margin: 0 0 67px;
  padding: 34px 0 36px;
  border-top: 1px solid var(--line, #29282f);
  border-bottom: 1px solid var(--line, #29282f);
}

.official-account-home-copy,
.official-account-footer-copy {
  min-width: 0;
}

.official-account-home h2 {
  margin: 0;
  color: var(--text, #f1f0f5);
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.official-account-description {
  max-width: 65ch;
  margin: 10px 0 0;
  color: var(--muted, #a19fae);
  font-size: 14px;
  line-height: 1.8;
}

.official-account-account-name {
  min-width: 0;
  margin: 19px 0 0;
  color: var(--muted, #a19fae);
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.official-account-account-name strong {
  color: var(--text, #f1f0f5);
  font-weight: 650;
}

.official-account-alias-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
  margin-top: 14px;
}

.official-account-alias {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted, #a19fae);
  font-size: 14px;
  line-height: 1.7;
  user-select: text;
}

.official-account-alias-value {
  color: var(--text, #f1f0f5);
  font-weight: 650;
  letter-spacing: 0.01em;
  user-select: text;
}

.official-account-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 74px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line, #29282f);
  border-radius: 7px;
  background: transparent;
  color: var(--text, #f1f0f5);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.official-account-copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-account-copy:hover {
  border-color: var(--purple, #a78bfa);
  background: var(--surface-2, #19191f);
}

.official-account-copy:focus-visible,
.official-account-qr-image-link:focus-visible,
.official-account-qr-link:focus-visible,
.official-account-details summary:focus-visible {
  outline: 2px solid var(--purple, #a78bfa);
  outline-offset: 4px;
}

.official-account-copy:disabled {
  opacity: 0.65;
}

.official-account-status {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 1.7em;
  color: var(--muted, #a19fae);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.official-account-status[data-wechat-state="success"] {
  color: var(--purple, #a78bfa);
}

.official-account-instruction {
  max-width: 65ch;
  margin: 11px 0 0;
  color: var(--muted, #a19fae);
  font-size: 13px;
  line-height: 1.75;
}

.official-account-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 148px;
  min-width: 136px;
  margin: 0;
}

.official-account-qr-image-link {
  display: block;
  width: 136px;
  height: 136px;
  overflow: hidden;
  border: 1px solid var(--line, #29282f);
  background: #fff;
}

.official-account-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  object-fit: contain;
}

.official-account-qr figcaption,
.official-account-qr-link {
  color: var(--muted, #a19fae);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.official-account-qr-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--purple, #a78bfa);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.official-account-qr-link:hover {
  color: var(--text, #f1f0f5);
}

.official-account-footer {
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 42px 24px;
}

.official-account-details {
  min-width: 0;
  border-top: 1px solid var(--line, #29282f);
  border-bottom: 1px solid var(--line, #29282f);
}

.official-account-details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted, #a19fae);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.official-account-details summary::-webkit-details-marker {
  display: none;
}

.official-account-details summary:hover {
  color: var(--text, #f1f0f5);
}

.official-account-summary-icon {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--purple, #a78bfa);
}

.official-account-summary-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-account-summary-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-account-details[open] .official-account-summary-chevron {
  transform: rotate(90deg);
}

.official-account-details-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  min-width: 0;
  padding: 5px 0 27px;
}

.official-account-footer .official-account-account-name {
  margin-top: 0;
}

.official-account-footer .official-account-alias-row {
  margin-top: 10px;
}

.official-account-footer .official-account-instruction {
  margin-top: 8px;
}

.official-account-footer .official-account-qr {
  align-self: start;
}

@media (max-width: 600px) {
  .official-account-home {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 44px;
    padding: 28px 0 30px;
  }

  .official-account-home h2 {
    font-size: 25px;
  }

  .official-account-home .official-account-qr,
  .official-account-footer .official-account-qr {
    grid-template-columns: 144px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    justify-items: start;
    width: 100%;
    min-width: 0;
  }

  .official-account-home .official-account-qr-image-link,
  .official-account-footer .official-account-qr-image-link {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 144px;
    height: 144px;
  }

  .official-account-home .official-account-qr-image,
  .official-account-footer .official-account-qr-image {
    width: 100%;
    height: 100%;
  }

  .official-account-home .official-account-qr figcaption,
  .official-account-footer .official-account-qr figcaption {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    text-align: left;
  }

  .official-account-home .official-account-qr-link,
  .official-account-footer .official-account-qr-link {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-content: flex-start;
    text-align: left;
  }

  .official-account-footer {
    padding: 0 20px 24px;
  }

  .official-account-details-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

