/**
 * shazhouy · 参考设计稿适度优化
 * 首页转化 / 倾诉区双栏 / 许愿树侧栏+居中弹窗
 */

/* —— 桌面首页 · 自然流式排版 —— */
@media (min-width: 1024px) {
  :root {
    --lp-header-h: calc(48px + env(safe-area-inset-top, 0px));
  }

  body.shazhouy-app:has(#pageHome.active) .main-page-wrap {
    min-height: calc(100dvh - var(--lp-header-h));
    height: auto;
    overflow: visible;
  }

  body.shazhouy-app:has(#pageHome.active) #backTop {
    display: none !important;
  }

  #pageHome.active {
    display: block !important;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  #pageHome.active .lp-hero-wrap {
    height: auto;
  }

  #pageHome.active .lp-banner.lp-scene--frame {
    height: clamp(420px, 82vh, 880px);
    min-height: 0 !important;
    max-height: none;
    padding: 0 !important;
  }

  #pageHome.active .lp-hero-wrap::after {
    display: none;
  }

  #pageHome.active .lp-features-section--magazine {
    padding: 12px 32px 32px !important;
  }

  #pageHome.active .lp-features-head--category {
    max-width: 720px;
  }

  #pageHome.active .lp-banner h1,
  #pageHome.active .lp-hero-intro h1 {
    font-size: clamp(30px, 3.6vw, 42px);
    margin-bottom: 12px;
  }

  #pageHome.active .lp-banner .lp-lead,
  #pageHome.active .lp-hero-intro .lp-lead {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  #pageHome.active .lp-btn-hero {
    padding: 13px 44px;
    font-size: 15px;
  }

  #pageHome.active .lp-features-section {
    padding: 28px 32px 32px;
    overflow: visible;
  }

  #pageHome.active .lp-features-head {
    display: block !important;
    max-width: 720px;
    margin: 0 auto 18px;
    text-align: center;
  }

  #pageHome.active .lp-features-head h2 {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    color: var(--qq-text);
  }

  #pageHome.active .lp-features-head p {
    font-size: 12px;
    line-height: 1.55;
    color: var(--qq-text-sub);
  }

  #pageHome.active .lp-three-wrap {
    max-width: 720px;
    margin: 0 auto;
    overflow: visible;
  }

  #pageHome.active .lp-three-col {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  #pageHome.active .lp-col-item {
    display: grid !important;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 1px;
    padding: 11px 12px !important;
    text-align: left;
    border-radius: 12px !important;
    border: 1px solid rgba(45, 90, 78, 0.07) !important;
    box-shadow: 0 1px 8px rgba(45, 90, 78, 0.04) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  #pageHome.active .lp-col-item:hover {
    transform: translateY(-1px);
    border-color: rgba(61, 139, 122, 0.18) !important;
    box-shadow: 0 4px 14px rgba(45, 90, 78, 0.07) !important;
  }

  #pageHome.active .lp-col-item::after {
    top: 8px;
    right: 8px;
    width: 4px;
    height: 4px;
    opacity: 0.65;
  }

  #pageHome.active .lp-col-item i {
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: center;
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    background: rgba(61, 139, 122, 0.08) !important;
  }

  #pageHome.active .lp-col-item h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    letter-spacing: 0.02em;
  }

  #pageHome.active .lp-col-item p {
    grid-column: 2;
    grid-row: 2;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: var(--qq-text-sub);
    opacity: 0.88;
  }

  #pageHome.active .lp-col-item--capsule {
    grid-column: 1 / -1;
    border-color: rgba(232, 184, 74, 0.22) !important;
    background: linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(232, 184, 74, 0.08)) !important;
  }
  #pageHome.active .lp-col-item--capsule i {
    background: rgba(232, 184, 74, 0.14) !important;
    color: #b8860b !important;
  }

  #pageHome.active .lp-home-foot {
    max-width: 720px;
    margin: 22px auto 0;
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    border-top: 1px solid rgba(45, 90, 78, 0.08);
  }

  #pageHome.active .lp-home-foot-disclaimer {
    font-size: 11px;
    line-height: 1.65;
    margin: 0;
    max-width: 640px;
    color: #5a6b64;
  }

  #pageHome.active .lp-home-foot-disclaimer strong {
    color: #3d5a50;
    font-weight: 600;
  }

  #pageHome.active .lp-home-foot-hotline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: auto;
    max-width: 260px;
    padding: 6px 14px;
    font-size: 11px;
    box-shadow: 0 2px 10px rgba(45, 106, 90, 0.18);
  }

  #pageHome.active .lp-home-foot-hotline-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.95;
  }

  #pageHome.active .lp-home-foot-hotline-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  #pageHome.active .lp-home-foot-hotline:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(45, 106, 90, 0.28);
  }

  #pageHome.active .lp-home-foot-meta {
    font-size: 10px;
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
    color: #6b7c74;
  }

  #pageHome.active .lp-home-foot-copy {
    font-size: 10px;
    margin: 0;
    color: #8a9a92;
  }

  #pageHome.active .lp-daily-hint {
    display: none !important;
  }
}

/* —— 通用 —— */
@media (min-width: 1024px) {
  .lp-nav-extra { display: none !important; }
  .lp-header-anon-ref {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
  }
  .lp-header-anon-ref strong {
    font-family: ui-monospace, monospace;
    color: #fff;
    margin-left: 4px;
  }
}

.lp-header-anon-ref { display: none; }

/* —— 首页实况条 —— */
.lp-live-strip {
  position: absolute;
  top: 18px;
  left: max(20px, env(safe-area-inset-left, 0px));
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  max-width: min(96%, 920px);
  overflow: visible;
  pointer-events: none;
}
.lp-live-strip::-webkit-scrollbar { display: none; }
.lp-live-strip > * {
  pointer-events: auto;
  flex-shrink: 0;
}
.lp-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 18, 14, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: default;
  font-family: inherit;
}
.lp-live-pill--env,
.lp-live-pill--clock,
.lp-live-pill--lang,
.lp-live-pill--api {
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.lp-live-pill--env:hover,
.lp-live-pill--clock:hover,
.lp-live-pill--lang:hover,
.lp-live-pill--api:hover {
  background: rgba(16, 24, 20, 0.68);
  transform: translateY(-1px);
}
.lp-live-env,
.lp-live-clock,
.lp-live-lang {
  position: relative;
  z-index: 22;
}
.lp-scene-menu,
.lp-live-clock-menu,
.lp-live-lang-menu {
  z-index: 60;
}
.lp-live-pill strong {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.lp-live-pill i { font-size: 10px; opacity: 0.82; flex-shrink: 0; }
.lp-live-pill--env .lp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #6ec9a8;
  box-shadow: 0 0 6px rgba(110, 201, 168, 0.55);
}
.lp-live-dot.is-night {
  background: #6a8fd4;
  box-shadow: 0 0 6px rgba(106, 143, 212, 0.55);
}
.lp-live-dot.is-dusk {
  background: #e8a86a;
  box-shadow: 0 0 6px rgba(232, 168, 106, 0.55);
}
.lp-live-pill--api {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 18, 14, 0.52);
  border-color: rgba(255, 255, 255, 0.1);
}
.lp-live-pill--api i {
  color: #e8c878;
  opacity: 1;
}
.lp-live-lang { position: relative; }
.lp-live-pill--lang {
  padding-right: 9px;
  gap: 4px;
}
.lp-live-pill--lang i { font-size: 8px; opacity: 0.72; }
.lp-live-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 18, 16, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  z-index: 60;
}
.lp-live-lang-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.lp-live-lang-menu button:hover,
.lp-live-lang-menu button.active {
  background: rgba(61, 139, 122, 0.22);
  color: #fff;
}

.lp-live-clock { position: relative; }
.lp-live-pill--clock {
  gap: 4px;
  padding-right: 9px;
}
.lp-live-pill--clock strong {
  min-width: 7ch;
  letter-spacing: 0.01em;
}
.lp-live-clock-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 1px;
  flex-shrink: 0;
}
.lp-live-zone-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-clock-caret { font-size: 8px; opacity: 0.72; margin-left: 1px; }
.lp-live-clock-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 152px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 18, 16, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  z-index: 60;
  pointer-events: auto;
}
.lp-live-clock-menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.lp-live-clock-menu button:hover,
.lp-live-clock-menu button.active {
  background: rgba(61, 139, 122, 0.22);
  color: #fff;
}
.lp-live-clock-menu button small {
  opacity: 0.55;
  font-size: 11px;
  margin-left: 4px;
}

.lp-hero-wrap {
  position: relative;
  overflow: visible;
}

/* —— 杂志风首页：全图 Hero + 波浪 + 白底内容 —— */
body.shazhouy-app:has(#pageHome.active) .lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  background: var(--qq-header-hero-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-hero-wrap--magazine .lp-banner--magazine {
  min-height: clamp(320px, 62vh, 680px) !important;
  min-height: clamp(320px, 62dvh, 680px) !important;
  padding: 0 !important;
  overflow: hidden;
  --lp-scene-photo-pos: center 58%;
}

.lp-hero-wrap--magazine .lp-banner--magazine .lp-scene__veil--hero {
  background: linear-gradient(
    180deg,
    rgba(8, 12, 16, 0.08) 0%,
    rgba(8, 12, 16, 0.02) 40%,
    rgba(8, 12, 16, 0.12) 100%
  ) !important;
}

.lp-hero-halftone {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.lp-hero-wrap--magazine .lp-live-strip {
  top: calc(var(--lp-header-h, 52px) + 16px);
}

.lp-hero-wave {
  position: relative;
  z-index: 5;
  margin-top: -1px;
  line-height: 0;
  pointer-events: none;
}
.lp-hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 6vw, 72px);
}

.lp-hero-float {
  position: relative;
  z-index: 12;
  max-width: min(1100px, calc(100% - 32px));
  margin: clamp(-42px, -4vw, -28px) auto 0;
  padding: 0 16px;
  pointer-events: none;
}
.lp-hero-float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  box-shadow:
    0 10px 40px rgba(15, 30, 24, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(255, 255, 255, 0.85);
  pointer-events: auto;
  animation: lpFloatIn 0.65s ease both;
}
@keyframes lpFloatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.lp-hero-float .lp-cat-label {
  margin-bottom: 0;
}
.lp-hero-float-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.lp-float-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-left: -10px;
  background: var(--av-bg, #eef4f0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.lp-float-avatar:first-child { margin-left: 0; }

.lp-hero-wrap--magazine::after {
  display: none !important;
}

.lp-features-section--magazine {
  background: var(--qq-bg-white) !important;
  padding: 28px 16px 32px !important;
  margin-top: -2px;
}

.lp-hero-quote {
  max-width: 720px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
  color: #5a6b64;
  letter-spacing: 0.02em;
}
.lp-hero-quote-heart {
  color: #e25555;
  margin-right: 6px;
}

.lp-hero-intro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  color: var(--qq-text);
}
.lp-hero-intro .lp-hero-card {
  padding: 0 12px;
}
.lp-hero-intro h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--qq-text);
  text-shadow: none;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.lp-hero-intro .lp-lead {
  font-size: 15px;
  color: var(--qq-text-sub);
  text-shadow: none;
  opacity: 1;
  margin-bottom: 20px;
}
.lp-hero-intro .lp-btn-hero {
  box-shadow: 0 8px 24px rgba(45, 106, 90, 0.22);
}

.lp-features-head--category {
  max-width: 1100px;
  margin: 0 auto 24px !important;
  text-align: left !important;
}
.lp-cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qq-text-sub);
  margin-bottom: 8px;
}
.lp-cat-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--qq-primary);
  border-radius: 1px;
}
.lp-features-head--category h2 {
  font-size: clamp(20px, 2.5vw, 26px) !important;
  text-align: left !important;
  margin-bottom: 6px !important;
}
.lp-features-head--category p {
  text-align: left !important;
}

/* —— 首页首屏 · 雾林参考稿（背景：bg-hero-mist.png） —— */
.lp-banner .lp-scene__photo {
  object-fit: cover;
  object-position: var(--lp-scene-photo-pos, center 42%);
  filter: saturate(1.06) brightness(1.02);
}
.lp-hero-trust,
.lp-privacy-promise,
.lp-award-text,
.lp-banner-sub,
.lp-ai-companion {
  display: none !important;
}
#lpLake { display: none !important; }

/* 首页内嵌页脚（桌面一屏 / 移动首页） */
.lp-home-foot {
  text-align: center;
  padding: 16px 16px 8px;
  border-top: 1px solid rgba(45, 90, 78, 0.1);
  margin-top: 12px;
}
.lp-home-foot-disclaimer {
  font-size: 11px;
  line-height: 1.55;
  color: #5a6b64;
  max-width: 680px;
  margin: 0 auto 10px;
}
.lp-home-foot-disclaimer strong {
  color: #3d5a50;
  font-weight: 600;
}
.lp-home-foot-hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d6a5a 0%, #3d8b7a 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(45, 106, 90, 0.2);
  width: auto;
  max-width: 100%;
}
.lp-home-foot-meta {
  font-size: 10px;
  line-height: 1.45;
  color: #6b7c74;
  margin: 10px auto 0;
  max-width: 720px;
}
.lp-home-foot-copy {
  font-size: 10px;
  color: #8a9a92;
  margin: 6px auto 0;
}

.lp-hero-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.lp-hero-card::before { display: none !important; }

@media (min-width: 1024px) {
  .lp-banner.lp-scene--frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .lp-banner .lp-scene__veil--hero {
    background:
      linear-gradient(
        180deg,
        rgba(8, 16, 20, 0.02) 0%,
        rgba(6, 12, 16, 0.08) 62%,
        rgba(6, 12, 16, 0.16) 84%,
        rgba(245, 242, 235, 0.08) 94%,
        rgba(245, 242, 235, 0.24) 100%
      ),
      radial-gradient(ellipse 50% 40% at 72% 12%, rgba(255, 220, 130, 0.18) 0%, transparent 58%) !important;
  }
  .lp-hero-card {
    position: relative;
    max-width: min(720px, 61.8vw);
    padding: 0 32px;
    animation: lpHeroCardIn 0.7s ease both;
  }
  .lp-banner h1 {
    font-size: clamp(36px, 4vw, 46px);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: 0.06em;
    font-weight: 700;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
  }
  .lp-banner .lp-lead {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 26em;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  }
  .lp-btn-hero {
    padding: 14px 52px;
    font-size: 16px;
    min-width: 200px;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #e8a030 0%, #f0c050 48%, #e8b040 100%) !important;
    color: #2a2218 !important;
    box-shadow: 0 10px 32px rgba(200, 140, 30, 0.42);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  }
  .lp-btn-hero:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 40px rgba(200, 140, 30, 0.52);
  }
  .lp-live-strip { top: 22px; left: max(32px, env(safe-area-inset-left, 0px)); }
}

@keyframes lpHeroCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 功能卡片区 · 首页基础样式 */
@media (min-width: 1024px) {
  .lp-features-section {
    max-width: none;
    margin: 0;
    padding: 28px 32px 36px;
    background: var(--qq-bg);
    position: relative;
    z-index: 1;
  }
  .lp-three-wrap {
    width: 100%;
    margin: 0 auto;
  }
  .lp-col-item {
    text-align: center;
    position: relative;
    border-radius: 18px !important;
    border: none !important;
    box-shadow: 0 6px 24px rgba(30, 60, 50, 0.08) !important;
  }
  .lp-col-item::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--qq-accent-dot);
    opacity: 0.85;
  }
  .lp-col-item i {
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  #lpLake { display: none; }
}

/* —— 倾诉区 · 左右双栏 —— */
@media (min-width: 1024px) {
  #pageTreehole .app-workspace-head {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 16px 24px 0 !important;
  }
  .anon-id-bar { flex: 1; min-width: 0; padding-bottom: 0 !important; }
  .anon-id-bar #sidebarNoDisplay { display: none; }
  #pageTreehole .qq-main-tabs {
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0;
    flex: none;
    justify-content: flex-start;
    max-width: none;
    width: auto;
  }
  body.shazhouy-app:has(#pageTreehole.active) .main-page-wrap {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  #pageTreehole.active {
    overflow: visible;
    min-height: auto;
  }

  .app-workspace .qq-body {
    max-width: min(1200px, 100%);
    padding: 20px clamp(12px, 2.5vw, 24px) 48px !important;
    box-sizing: border-box;
  }
  #pageTreehole .qq-three-col {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100%;
  }

  #pageTreehole.treehole-tab-daily .qq-body {
    padding-bottom: 72px !important;
  }
  /* 倾诉区网格布局见 treehole-tabs.css */
  #pageTreehole.treehole-tab-shuoshuo #publishCard {
    margin-bottom: 0 !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    box-shadow: none;
  }
  #pageTreehole.treehole-tab-shuoshuo .quick-confide-input {
    min-height: 72px;
    max-height: 140px;
    font-size: 15px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  #pageTreehole.treehole-tab-shuoshuo .moments-media-grid {
    max-width: min(100%, 320px);
  }
  #pageTreehole .quick-confide-actions .qq-btn-publish { display: inline-flex !important; }
  #pageTreehole .publish-sticky-bar { display: none !important; }
  .qq-tab {
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 14px;
  }
  .qq-tab.active {
    box-shadow: 0 4px 12px rgba(61, 139, 122, 0.28);
  }
}

/* —— 许愿树 —— */
.wish-ribbon-sidebar {
  display: none;
}
.wish-compose-backdrop-ref {
  display: none;
}

@media (min-width: 1024px) {
  #pageWish {
    --wish-header-h: var(--lp-header-h, 56px);
    min-height: calc(100dvh - var(--wish-header-h));
  }
  .wish-page-wrap {
    height: calc(100dvh - var(--wish-header-h));
  }

  .wish-hero-dock {
    left: 28px;
    bottom: 32px;
    width: min(280px, calc(100% - 260px));
  }
  .wish-hero-glass {
    padding: 20px 22px 18px;
    border-radius: 18px;
  }
  .wish-hero-title {
    font-size: 30px;
  }

  .wish-ribbons,
  .wish-float-card,
  .wish-tree-empty-hint { display: none !important; }

  .wish-ribbon-sidebar {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    width: 208px;
    max-height: min(340px, calc(100dvh - var(--wish-header-h, 56px) - 80px));
    height: auto;
    z-index: 9;
    background: linear-gradient(160deg, rgba(18, 14, 10, 0.72) 0%, rgba(28, 22, 16, 0.58) 100%);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid rgba(255, 220, 150, 0.12);
    border-radius: 14px;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  }
  .wish-ribbon-sidebar-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 245, 230, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }
  .wish-sidebar-hd-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .wish-sidebar-hd-actions #wishSidebarCount {
    font-size: 11px;
    font-weight: 400;
    color: rgba(232, 184, 74, 0.85);
  }
  .wish-panel-fold {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(240, 235, 225, 0.85);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .wish-panel-fold:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffe8b0;
  }
  .wish-ribbon-sidebar {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  }
  .wish-ribbon-sidebar.is-collapsed {
    transform: translate(100%, -50%);
    opacity: 0;
    pointer-events: none;
  }
  .wish-sidebar-tab {
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 9;
    transform: translateY(-50%);
    padding: 12px 10px 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 245, 230, 0.9);
    font-size: 12px;
    cursor: pointer;
    writing-mode: vertical-rl;
    letter-spacing: 0.12em;
    pointer-events: auto;
  }
  .wish-sidebar-tab:not([hidden]) {
    display: block;
  }
  .wish-sidebar-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffe8b0;
  }
  .wish-scene.wish-sidebar-collapsed .wish-scene-credit {
    right: auto !important;
  }
  .wish-ribbon-sidebar-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
  }
  .wish-sidebar-item {
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(232, 184, 74, 0.55);
  }
  .wish-sidebar-text {
    display: block;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(245, 240, 230, 0.88);
    word-break: break-word;
  }
  .wish-sidebar-item time {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: rgba(200, 195, 185, 0.48);
  }
  .wish-sidebar-empty {
    padding: 14px 8px;
    text-align: center;
    font-size: 11px;
    color: rgba(220, 215, 205, 0.48);
    line-height: 1.55;
  }
  .wish-scene-credit {
    bottom: 14px;
    font-size: 8px;
    opacity: 0.38;
  }
  .wish-compose-backdrop-ref {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 18;
    background: rgba(4, 8, 14, 0.5);
    backdrop-filter: blur(3px);
    pointer-events: auto;
  }
  .wish-compose-backdrop-ref.is-open { display: block; }
  .wish-compose-sheet {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(400px, calc(100% - 320px));
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: 16px;
    padding: 22px 24px 20px;
    z-index: 20;
    background: linear-gradient(165deg, rgba(18, 14, 10, 0.94) 0%, rgba(24, 18, 12, 0.9) 100%);
    border: 1px solid rgba(255, 220, 150, 0.16);
    border-top: 2px solid rgba(212, 168, 64, 0.42);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.48);
    transition: transform 0.26s ease, opacity 0.26s ease, visibility 0.26s ease;
  }
  .wish-compose-sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .wish-compose-sheet .wish-compose-close {
    width: auto;
    height: auto;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
  }
  .wish-compose-sheet textarea { min-height: 120px; font-size: 15px; }
  .wish-compose-sheet-hd h3 { font-size: 20px; }
}
