.shell:has(.profile-info-page:not([hidden])) .profile-header { display: none; }
.shell:has(.profile-info-page:not([hidden])) > .page { grid-row: 2; }

.profile-about {
  display: grid;
  gap: 12px;
  padding: 20px 20px max(40px, env(safe-area-inset-bottom));
}

.profile-about-card {
  --about-surface: linear-gradient(123deg, #66594c, #544332 12%, #0a0805);
  display: grid;
  min-height: 142px;
  place-content: center;
  justify-items: center;
  padding: 8px 20px 12px;
  border: 1px solid #4b403480;
  border-radius: 12px;
  background: url('../img/about-card-texture-12506d1c17a5.webp') center / 100% 100% no-repeat, var(--about-surface);
  text-align: center;
}

.profile-about-card:nth-child(2) { --about-surface: linear-gradient(122deg, #482b2a, #331b1a 12%, #030202); }
.profile-about-card:nth-child(3) { --about-surface: linear-gradient(122deg, #5b5857, #3a3635 12%, #111010); }

.profile-about-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(5px 4px 5px #0004);
}

.profile-about-card h2 {
  color: #e8d8c6;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.profile-about-card p {
  max-width: 270px;
  margin-top: 4px;
  color: #dfc89d;
  font-size: 12px;
  line-height: 1.4;
}

.profile-about-partners {
  /* 横向自动滚动（js/partner-marquee.js），一屏约 5 个 */
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 7px;
  min-height: 45px;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: linear-gradient(#252422, #1b1a18);
}

.profile-about-partners::-webkit-scrollbar { display: none; }
.profile-about-partners img {
  flex: none;
  width: calc((100% - 28px) / 5);
  height: 31px;
  object-fit: contain;
}

.profile-about footer {
  margin-top: 12px;
  color: #dfc89d;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.profile-about footer small {
  display: block;
  margin-top: 28px;
  color: #aaa096;
  font-size: 10px;
}

.profile-faq {
  display: grid;
  gap: 14px;
  padding: 8px 16px max(40px, env(safe-area-inset-bottom));
}

.profile-faq-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 116px;
  justify-items: start;
  align-content: center;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid #64533f88;
  border-radius: 8px;
  background: linear-gradient(180deg, #19191925, #70573660);
}

.profile-faq-hero img {
  position: absolute;
  z-index: -1;
  inset: 8px 7px auto auto;
  width: min(36%, 108px);
  height: 94px;
  object-fit: contain;
}

.profile-faq-hero h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.profile-faq-hero p { color: #dfc89d; font-size: 14px; }

.profile-faq-hero button {
  min-height: 30px;
  margin-top: 6px;
  padding: 4px 16px;
  border: 1px solid #7a6360;
  border-radius: 7px;
  font-size: 12px;
}

.profile-faq-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.profile-faq-tabs button {
  min-height: 31px;
  padding: 4px 3px;
  border: 1px solid #393939;
  border-radius: 999px;
  background: #191817;
  color: #a5947e;
  font-size: 14px;
  line-height: 1.2;
}

.profile-faq-tabs button[aria-pressed='true'],
.profile-favorite .promotion-tabs button[aria-pressed='true'] {
  border-color: transparent;
  background: linear-gradient(180deg, #191817, #101010) padding-box,
    linear-gradient(110deg, #c1aa75, #393633 74%) border-box;
  color: #ddbb78;
}

.profile-faq-list {
  display: grid;
  gap: 10px;
  padding: 14px 19px 24px;
  border: 1px solid #7a636066;
  border-radius: 12px;
  background: linear-gradient(#241f19, #1a1814);
}

.profile-faq-list details { border-bottom: 1px solid #b8a08933; }

.profile-faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 15px 8px 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.profile-faq-list summary::-webkit-details-marker { display: none; }
.profile-faq-number { color: #e0d2c5; font-weight: 750; }

.profile-faq-list summary::after {
  position: absolute;
  top: calc(50% - 4px);
  right: 3px;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border: solid #a69278;
  border-width: 0 1px 1px 0;
  content: '';
}

.profile-faq-list details[open] summary::after { transform: rotate(225deg); }

.profile-faq-list p {
  padding: 0 15px 10px 16px;
  color: #dfc89d;
  font-size: 12px;
  line-height: 1.55;
}

.profile-favorite { padding: 0 15px max(40px, env(safe-area-inset-bottom)); }
.profile-favorite .promotion-tabs { min-height: 40px; background: #191817; }
.profile-favorite .promotion-tabs button { min-height: 38px; }

.profile-favorite-empty {
  margin-top: 72px;
  color: #b9a182;
  font-size: 14px;
  text-align: center;
}

.profile-favorite-history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.profile-favorite-history li { display: grid; gap: 4px; font-size: 12px; text-align: center; }
.profile-favorite-history img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }

@media (max-width: 340px) {
  .profile-faq { padding-inline: 12px; }
  .profile-faq-tabs { gap: 5px; }
  .profile-faq-tabs button { font-size: 12px; }
}
