/* 小咩品牌标题 v1.0：所有选择器限定在 .xm-brand 内，不影响其他界面。 */
.xm-brand {
  --xm-pink: #955178;
  --xm-purple: #8261b5;
  --xm-caramel: #b77542;
  --xm-caption: #826f80;
  --xm-border: #f0dfe9;
  --xm-font: "幼圆", "YouYuan", "Microsoft YaHei", sans-serif;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  padding: 24px 28px;
  margin-bottom: 24px;
  border: 1px solid #5b4352;
  border-radius: 26px;
  background: linear-gradient(115deg, #241923 0%, #2b2030 48%, #202238 100%);
  box-shadow: 0 10px 28px #0008;
  overflow: hidden;
  font-family: "Microsoft YaHei", sans-serif;
}
.xm-brand *, .xm-brand *::before, .xm-brand *::after { box-sizing: border-box; }
.xm-brand .xm-logo {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border: 5px solid #fff;
  border-radius: 30px;
  box-shadow: 0 5px 13px #9b736c26;
  transform: rotate(-5deg);
  background: #e8d6c5;
}
.xm-brand button.xm-logo { padding: 0; cursor: zoom-in; }
.xm-brand .xm-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 25px;
}
.xm-brand .xm-logo::after {
  content: "✦";
  position: absolute;
  right: -12px;
  bottom: -10px;
  color: #b37a22;
  background: #fff0bf;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 29px;
  font-size: 22px;
}
.xm-brand .xm-copy { position: relative; min-width: 0; z-index: 1; }
.xm-brand .xm-title {
  font-family: var(--xm-font);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--xm-pink);
  text-shadow: 0 2px 0 #1c141d;
}
.xm-brand .xm-magic { color: var(--xm-purple); }
.xm-brand .xm-product { color: var(--xm-caramel); }
.xm-brand .xm-badge {
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #f1c9a8;
  background: #3b2b38e6;
  border: 1px solid #76566b;
  border-radius: 99px;
  padding: 5px 9px;
  margin-left: 10px;
  text-shadow: none;
}
.xm-brand .xm-subtitle {
  margin: 0;
  max-width: 640px;
  font-size: 12px;
  line-height: 1.8;
  color: #cdb4c5;
}
.xm-brand .xm-sparkle {
  position: absolute;
  right: 22px;
  top: 12px;
  color: #c3a4df;
  font-size: 27px;
  transform: rotate(12deg);
}
.xm-image-viewer { padding: 12px; border: 0; border-radius: 18px; max-width: 94vw; max-height: 94vh; background: #fff5f9; box-shadow: 0 16px 60px #0005; font-family: "Microsoft YaHei", sans-serif; }
.xm-image-viewer::backdrop { background: #201629b8; }
.xm-image-viewer img { display: block; max-width: 85vw; max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.xm-image-viewer form { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 10px; color: #955178; font-size: 14px; }
.xm-image-viewer button { padding: 8px 16px; border: 1px solid #ecd6e5; border-radius: 7px; background: white; color: #955178; cursor: pointer; }
@media (max-width: 600px) {
  .xm-brand { padding: 20px 16px; gap: 15px; }
  .xm-brand .xm-logo { flex-basis: 70px; width: 70px; height: 70px; border-radius: 23px; }
  .xm-brand .xm-logo img { border-radius: 18px; }
  .xm-brand .xm-title { font-size: 25px; letter-spacing: 1px; }
  .xm-brand .xm-badge { display: table; margin: 6px 0 0; }
  .xm-brand .xm-sparkle { font-size: 18px; right: 10px; }
}
